/* IM DECOR - Artisanal Luxury Heritage Base Design System */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
  /* Artisanal Luxury Heritage - Core Palette */
  --primary: #103a28;
  --primary-dark: #002315;
  --primary-container: #103a28;
  --primary-light: #184734;
  --on-primary: #ffffff;
  --primary-fixed: #c0edd2;
  --primary-fixed-dim: #a5d0b7;

  --secondary: #775a19;
  --secondary-container: #fed488;
  --accent-gold: #c5a059;
  --accent-gold-bright: #d4af37;
  --accent-gold-light: #e5c278;
  --on-secondary-container: #785a1a;

  --bg: #fbf9f6;
  --surface: #ffffff;
  --surface-pure: #ffffff;
  --surface-cream: #faf8f5;
  --surface-ivory: #f5f1eb;
  --surface-low: #f5f3f0;
  --surface-container: #efeeeb;
  --surface-high: #eae8e5;
  --surface-highest: #e4e2df;
  --border: #e8e2d9;
  --border-hairline: #e8e2d9;

  --text: #1a202c;
  --text-primary: #1a202c;
  --muted: #5f6354;
  --text-muted: #5f6354;
  --on-surface-variant: #414943;

  --badge-discount-bg: #fbefe8;
  --badge-discount-text: #b33e1a;
  --rating-star: #d4af37;

  /* Semantic status colors */
  --brand: #103a28;
  --brand2: #c5a059;
  --success: #1b5e20;
  --danger: #b33e1a;
  --warning: #b26a00;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 4px 20px -2px rgba(24, 71, 52, 0.04), 0 2px 6px -1px rgba(16, 58, 40, 0.02);
  --shadow-md: 0 16px 36px -8px rgba(16, 58, 40, 0.08), 0 4px 12px -2px rgba(197, 160, 89, 0.06);
  --shadow-lg: 0 24px 48px -12px rgba(16, 58, 40, 0.12);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  --header-top-h: 36px;
  --header-h: 80px;
  --container: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  padding-top: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.font-heading,
.font-headline,
.hero-copy h1,
.products-header-card h1,
.section-head h2,
.pdp-title,
.category-card h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--text-primary);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 40px 0;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.surface-ivory {
  background: var(--surface-ivory);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
}

.surface-cream {
  background: var(--surface-cream);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================= BUTTONS ================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.22s ease-out;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-gold);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--accent-gold);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(16, 58, 40, 0.25);
}

.btn-secondary,
.btn-outline-primary {
  border: 1px solid var(--accent-gold);
  background: transparent;
  color: var(--primary);
}

.btn-secondary:hover,
.btn-outline-primary:hover {
  background: var(--surface-cream);
  border-color: var(--accent-gold-bright);
  color: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--surface-low);
  border-color: var(--border-hairline);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* ================= BADGES & PILLS ================= */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent-gold-bright);
  color: #261900;
  font-size: 11px;
  font-weight: 700;
}

.card-badge,
.badge-discount {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--badge-discount-bg);
  color: var(--badge-discount-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill,
.filter-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border-hairline);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.pill:hover,
.filter-pill:hover {
  border-color: var(--accent-gold);
  color: var(--primary);
}

.divider {
  height: 1px;
  background: var(--border-hairline);
  margin: 16px 0;
}

/* ================= ANNOUNCEMENT BAR ================= */

.top-announcement-bar {
  background: var(--primary);
  color: var(--on-primary);
  text-align: center;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-announcement-bar a,
.top-announcement-bar strong {
  color: var(--accent-gold-light);
}

/* ================= LUXURY HEADER & NAVIGATION ================= */

.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(251, 249, 246, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-primary);
  z-index: 1000;
  box-shadow: 0 1px 12px rgba(24, 71, 52, 0.04);
}

.header-container {
  width: 100%;
  max-width: 100%;
  padding: 0 36px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-brand-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.menu {
  flex: 1;
  height: 100%;
}

.menu-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease-out;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.header-svg-icon,
.nav-chevron {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-svg-icon {
  width: 20px;
  height: 20px;
}

.nav-chevron {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.header-search {
  flex: 0 1 360px;
  min-width: 220px;
}

.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  background: var(--surface-cream);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-form:focus-within {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 58, 40, 0.12);
}

.header-search-submit {
  flex: 0 0 46px;
  width: 46px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}

.header-search-submit .header-svg-icon {
  width: 19px;
  height: 19px;
}

.header-search-submit:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.header-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 18px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1;
}

.header-search-input:focus {
  outline: none;
  box-shadow: none;
}

.header-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.icon-btn i {
  font-size: 15px;
}

.icon-btn:hover {
  background: var(--surface-ivory);
  border-color: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.icon-btn:active {
  transform: translateY(0);
}

.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  border: 1px solid var(--accent-gold);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
}

/* ================= SUB-NAVIGATION CATEGORY BAR ================= */

.category-subnav-bar {
  width: 100%;
  border-top: 1px solid var(--border-hairline);
  background: var(--surface-low);
  padding: 10px 36px;
}

.category-subnav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  overflow-x: auto;
  white-space: nowrap;
}

.category-subnav-link {
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.01em;
  color: var(--on-surface-variant);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
}

.category-subnav-link:hover,
.category-subnav-link.active {
  color: var(--primary);
  background: var(--surface-cream);
}

/* ================= MEGA MENU ================= */

.mega-menu {
  position: fixed;
  inset-inline: 0;
  top: var(--header-h);
  padding: 24px 40px;
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--border-hairline);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.mega-parent:hover > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
}

.mega-menu-card {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-hairline);
  background: var(--surface-cream);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.mega-menu-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.mega-menu-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.mega-menu-card span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
