@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --color-bg: #FAF9F6;
  --color-bg-alt: #F0EDE8;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #6B6B63;
  --color-text-muted: #9C9C94;
  --color-accent: #5C7A52;
  --color-accent-dark: #4A6341;
  --color-accent-light: #E8F0E5;
  --color-accent-lighter: #F4F8F3;
  --color-sale: #C4553D;
  --color-sale-bg: #FDF0ED;
  --color-star: #D4A843;
  --color-border: #E5E2DC;
  --color-border-light: #F0EDE8;
  --color-shadow: rgba(26, 26, 26, 0.06);
  --color-shadow-md: rgba(26, 26, 26, 0.1);
  --color-overlay: rgba(26, 26, 26, 0.4);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px var(--color-shadow);
  --shadow-md: 0 4px 12px var(--color-shadow);
  --shadow-lg: 0 8px 30px var(--color-shadow-md);
  --shadow-xl: 0 16px 48px var(--color-shadow-md);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --container-max: 1320px;
  --container-narrow: 960px;
  --header-height: 72px;
}

html.storefront-loading body {
  opacity: 0;
  visibility: hidden;
}

html.storefront-ready body {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s ease;
}

body[data-storefront-template="template-2"],
body[data-storefront-template="boutique"] {
  --color-bg: #FFF8F5;
  --color-bg-alt: #FFF0EA;
  --color-surface: #FFFFFF;
  --color-text: #211B1A;
  --color-text-secondary: #6F635F;
  --color-text-muted: #A8948D;
  --color-border: #F0DAD2;
  --color-border-light: #F8E9E3;
  --font-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-lg: 0 18px 42px rgba(83, 48, 36, 0.12);
}

body[data-storefront-template="minimal"] {
  --color-bg: #F7F8FA;
  --color-bg-alt: #EFF2F6;
  --color-surface: #FFFFFF;
  --color-text: #101828;
  --color-text-secondary: #475467;
  --color-text-muted: #98A2B3;
  --color-border: #DDE3EA;
  --color-border-light: #EAEFF5;
  --font-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 16px;
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
}

body[data-storefront-template="template-2"] .hero,
body[data-storefront-template="boutique"] .hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.82), transparent 34%),
    linear-gradient(135deg, rgba(255,238,230,0.92), rgba(255,248,245,0.98));
}

body[data-storefront-template="template-2"] .hero__content,
body[data-storefront-template="boutique"] .hero__content {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

body[data-storefront-template="template-2"] .hero__image,
body[data-storefront-template="boutique"] .hero__image {
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 60px rgba(95, 57, 45, 0.16);
}

body[data-storefront-template="template-2"] .hero__float-card,
body[data-storefront-template="boutique"] .hero__float-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 18px 36px rgba(95, 57, 45, 0.14);
}

body[data-storefront-template="template-2"] .hero__badge,
body[data-storefront-template="boutique"] .hero__badge {
  background: rgba(255,255,255,0.72);
  border-color: rgba(225, 156, 132, 0.28);
}

body[data-storefront-template="template-2"] .hero__title em,
body[data-storefront-template="boutique"] .hero__title em {
  color: var(--color-accent);
  font-style: normal;
}

body[data-storefront-template="template-2"] .header,
body[data-storefront-template="boutique"] .header {
  background: rgba(255, 248, 245, 0.86);
  border-bottom: 1px solid rgba(240, 218, 210, 0.7);
  box-shadow: 0 10px 34px rgba(83, 48, 36, 0.06);
}

body[data-storefront-template="template-2"] .header__nav a,
body[data-storefront-template="boutique"] .header__nav a {
  border-radius: 999px;
}

body[data-storefront-template="template-2"] .header__nav a:hover,
body[data-storefront-template="template-2"] .header__nav a.active,
body[data-storefront-template="boutique"] .header__nav a:hover,
body[data-storefront-template="boutique"] .header__nav a.active {
  background: rgba(255,255,255,0.82);
  box-shadow: inset 0 0 0 1px rgba(225, 156, 132, 0.18);
}

body[data-storefront-template="template-2"] .header__search,
body[data-storefront-template="boutique"] .header__search {
  background: rgba(255,255,255,0.75);
  border-color: rgba(240, 218, 210, 0.6);
}

body[data-storefront-template="template-2"] .btn--primary,
body[data-storefront-template="boutique"] .btn--primary {
  box-shadow: 0 18px 30px rgba(92, 122, 82, 0.18);
}

body[data-storefront-template="template-2"] .btn--secondary,
body[data-storefront-template="boutique"] .btn--secondary {
  background: rgba(255,255,255,0.72);
}

body[data-storefront-template="boutique"] .btn,
body[data-storefront-template="boutique"] .hero__float-card,
body[data-storefront-template="boutique"] .category-card,
body[data-storefront-template="boutique"] .product-card {
  border-radius: 24px;
}

body[data-storefront-template="template-2"] .btn,
body[data-storefront-template="template-2"] .hero__float-card,
body[data-storefront-template="template-2"] .category-card,
body[data-storefront-template="template-2"] .product-card {
  border-radius: 24px;
}

body[data-storefront-template="template-2"] .category-card,
body[data-storefront-template="boutique"] .category-card {
  box-shadow: 0 22px 40px rgba(95, 57, 45, 0.12);
}

body[data-storefront-template="template-2"] .category-card__overlay,
body[data-storefront-template="boutique"] .category-card__overlay {
  background: linear-gradient(180deg, transparent 8%, rgba(33, 27, 26, 0.78) 100%);
}

body[data-storefront-template="template-2"] .products-section,
body[data-storefront-template="boutique"] .products-section {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(180deg, rgba(255, 248, 245, 0.55), rgba(255, 255, 255, 0));
}

body[data-storefront-template="template-2"] .product-card,
body[data-storefront-template="boutique"] .product-card {
  border: 1px solid rgba(240, 218, 210, 0.8);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,249,246,0.98));
  box-shadow: 0 16px 34px rgba(95, 57, 45, 0.08);
}

body[data-storefront-template="template-2"] .product-card__image-wrap,
body[data-storefront-template="boutique"] .product-card__image-wrap {
  background: linear-gradient(180deg, rgba(255, 245, 240, 1), rgba(255,255,255,1));
}

body[data-storefront-template="template-2"] .product-card__add-btn,
body[data-storefront-template="boutique"] .product-card__add-btn {
  box-shadow: 0 12px 24px rgba(92, 122, 82, 0.22);
}

body[data-storefront-template="template-2"] .newsletter__inner,
body[data-storefront-template="boutique"] .newsletter__inner {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(135deg, var(--color-accent) 0%, #7A5C52 100%);
  border-radius: 34px;
  box-shadow: 0 28px 56px rgba(58, 37, 31, 0.18);
}

body[data-storefront-template="template-2"] .footer,
body[data-storefront-template="boutique"] .footer {
  background: #241d1c;
  color: #f3ebe8;
}

body[data-storefront-template="template-2"] .footer__brand-desc,
body[data-storefront-template="template-2"] .footer__links a,
body[data-storefront-template="template-2"] .footer__contact,
body[data-storefront-template="boutique"] .footer__brand-desc,
body[data-storefront-template="boutique"] .footer__links a,
body[data-storefront-template="boutique"] .footer__contact {
  color: rgba(243, 235, 232, 0.76);
}

body[data-storefront-template="template-2"] .footer__payment-icon,
body[data-storefront-template="boutique"] .footer__payment-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}

body[data-storefront-template="minimal"] .announcement {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body[data-storefront-template="minimal"] h1,
body[data-storefront-template="minimal"] h2,
body[data-storefront-template="minimal"] h3,
body[data-storefront-template="minimal"] h4 {
  letter-spacing: -0.03em;
}

body[data-storefront-template="minimal"] .header {
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid var(--color-border);
  box-shadow: none;
}

body[data-storefront-template="minimal"] .hero {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

body[data-storefront-template="minimal"] .btn,
body[data-storefront-template="minimal"] .hero__float-card,
body[data-storefront-template="minimal"] .category-card,
body[data-storefront-template="minimal"] .product-card {
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

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

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.heading-xl {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.01em;
}

.heading-md {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.heading-sm {
  font-size: 1.25rem;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-desc {
  margin: 0 auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
}

.btn--outline-white {
  background-color: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
  background-color: #fff;
  color: var(--color-text);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1rem;
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn--cart {
  background-color: var(--color-accent);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

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

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border-light);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.header__logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  color: var(--color-text);
  display: inline-flex;
  align-items: baseline;
}

.header__logo-text-primary {
  color: #111;
}

.header__logo-text span {
  color: var(--color-accent);
  display: inline-block;
}

.header__logo-text span + span {
  margin-left: -0.08em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  min-width: 200px;
  position: relative;
  overflow: visible;
}

.header__search:hover,
.header__search:focus-within {
  border-color: var(--color-border);
  background: var(--color-surface);
}

.header__search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--color-text);
  width: 100%;
}

.header__search input::placeholder {
  color: var(--color-text-muted);
}

.header__search svg {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.header__search.is-open {
  border-color: var(--color-border);
  background: var(--color-surface);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  padding: 10px;
  display: grid;
  gap: 6px;
  z-index: 30;
}

.search-dropdown:empty {
  display: none;
}

.search-dropdown__item,
.search-dropdown__submit {
  width: 100%;
  border-radius: 16px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.search-dropdown__item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  text-align: left;
}

.search-dropdown__item:hover,
.search-dropdown__submit:hover {
  background: var(--color-accent-lighter);
}

.search-dropdown__image {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--color-bg-alt);
}

.search-dropdown__content {
  min-width: 0;
}

.search-dropdown__category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.search-dropdown__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

.search-dropdown__price {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.search-dropdown__submit {
  padding: 12px 14px;
  text-align: center;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.search-dropdown__empty {
  padding: 14px 12px 6px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.header__action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.header__action-btn:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.header__action-btn.has-items,
.header__action-btn.is-active {
  color: var(--color-accent);
  background: var(--color-accent-lighter);
}

.header__cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.header__favorites-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--color-sale);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.header__mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

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

.announcement {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  padding: 8px 24px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.announcement + .header {
  top: 36px;
}

.announcement + .header ~ main {
  padding-top: calc(var(--header-height) + 36px);
}

/* ========================================
   HERO SECTION
   ======================================== */

main {
  padding-top: var(--header-height);
}

.search-results {
  padding: 0 0 96px;
}

.search-results__summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.search-results__query {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.search-results__empty {
  display: none;
  margin-top: 8px;
  padding: 48px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 243, 0.88));
  text-align: center;
  box-shadow: var(--shadow-md);
}

.search-results__empty h3 {
  margin-bottom: 10px;
}

.search-results__empty p {
  max-width: 480px;
  margin: 0 auto 20px;
  color: var(--color-text-secondary);
}

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #E8E3D9 0%, #D4CFC3 30%, #BFC5B0 70%, #A8B49A 100%);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: radial-gradient(circle at 20% 50%, var(--color-accent) 1px, transparent 1px),
                    radial-gradient(circle at 80% 20%, var(--color-accent) 1px, transparent 1px),
                    radial-gradient(circle at 60% 80%, var(--color-accent) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 70px 70px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 80px 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero__title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero__title em {
  font-style: italic;
  color: var(--color-accent-dark);
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__image {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 80%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__float-card {
  position: absolute;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.hero__float-card--1 {
  right: 38%;
  bottom: 15%;
  animation-delay: -2s;
}

.hero__float-card--2 {
  right: 8%;
  top: 15%;
  animation-delay: -4s;
}

.hero__float-card .card-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.hero__float-card .card-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.hero__float-card .card-value {
  font-weight: 700;
  font-size: 0.95rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ========================================
   CATEGORIES SECTION
   ======================================== */

.categories {
  padding: 100px 0;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 20px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-alt);
}

.category-card:first-child {
  grid-row: span 2;
}

.category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover .category-card__image {
  transform: scale(1.05);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0.1) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background var(--transition-base);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(to top, rgba(26, 26, 26, 0.8) 0%, rgba(26, 26, 26, 0.2) 60%, transparent 100%);
}

.category-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.category-card__count {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.category-card__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all var(--transition-base);
}

.category-card:hover .category-card__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ========================================
   PRODUCT CARDS
   ======================================== */

.products-section {
  padding: 100px 0;
}

.products-section--alt {
  background: var(--color-bg-alt);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.products__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.products__header .section-desc {
  margin-bottom: 0;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-light);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.06);
}

.product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card__badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.product-card__badge--sale {
  background: var(--color-sale);
  color: #fff;
}

.product-card__badge--new {
  background: var(--color-accent);
  color: #fff;
}

.product-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: var(--color-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-fast);
}

.product-card:hover .product-card__wishlist {
  opacity: 1;
  transform: scale(1);
}

.product-card__wishlist:hover {
  color: var(--color-sale);
}

.product-card__quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.product-card:hover .product-card__quick-add {
  transform: translateY(0);
}

.product-card__quick-add .btn {
  width: 100%;
}

.product-card__body {
  padding: 16px;
}

.product-card__category {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.product-card__stars {
  display: flex;
  gap: 1px;
  color: var(--color-star);
}

.product-card__stars svg {
  width: 14px;
  height: 14px;
}

.product-card__rating-count {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-card__price-current {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
}

.product-card__price-original {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-card__price--sale .product-card__price-current {
  color: var(--color-sale);
}

.product-card__add-btn {
  width: 38px;
  height: 38px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: all var(--transition-fast);
}

.product-card__add-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ========================================
   PROMO BANNER
   ======================================== */

.promo-banner {
  padding: 0 0 100px;
}

.promo-banner__inner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #3D5A3E 0%, #5C7A52 50%, #7A9A6E 100%);
}

.promo-banner__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: 
    radial-gradient(circle at 30% 30%, #fff 2px, transparent 2px),
    radial-gradient(circle at 70% 70%, #fff 1.5px, transparent 1.5px);
  background-size: 40px 40px, 30px 30px;
}

.promo-banner__content {
  position: relative;
  padding: 60px 80px;
  max-width: 560px;
  color: #fff;
}

.promo-banner__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 12px;
}

.promo-banner__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #fff;
}

.promo-banner__desc {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 28px;
}

.promo-banner__image {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  height: 80%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.promo-banner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */

.benefits {
  padding: 100px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.benefit-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.benefit-card:hover {
  background: var(--color-bg);
  transform: translateY(-4px);
}

.benefit-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: all var(--transition-base);
}

.benefit-card:hover .benefit-card__icon {
  background: var(--color-accent);
  color: #fff;
  transform: scale(1.05);
}

.benefit-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.benefit-card__desc {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials {
  padding: 100px 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-2px);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: var(--color-star);
  margin-bottom: 16px;
}

.testimonial-card__stars svg {
  width: 16px;
  height: 16px;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent);
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card__date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ========================================
   NEWSLETTER
   ======================================== */

.newsletter {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.newsletter__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter__title {
  margin-bottom: 12px;
}

.newsletter__desc {
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  font-size: 1rem;
}

.newsletter__form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter__input:focus {
  border-color: var(--color-accent);
}

.newsletter__note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: 8px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.footer__links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer__contact svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.footer__bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

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

.footer__payment-icon {
  width: 42px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   CATEGORY PAGE
   ======================================== */

.page-hero {
  padding: 48px 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb__sep {
  font-size: 0.7rem;
}

.category-page {
  padding: 48px 0 100px;
}

.category-page__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.filter-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
}

.filter-group {
  margin-bottom: 32px;
}

.filter-group__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-light);
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.filter-checkbox:hover {
  color: var(--color-text);
}

.filter-checkbox--link {
  text-decoration: none;
  justify-content: space-between;
}

.filter-checkbox--link.is-active {
  color: var(--color-text);
  font-weight: 600;
}

.filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.filter-checkbox__decorative {
  pointer-events: none;
}

.filter-checkbox__count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.filter-rating-option {
  align-items: center;
  gap: 8px;
}

.filter-rating-option__stars {
  flex-shrink: 0;
}

.filter-rating-option__stars svg {
  width: 14px;
  height: 14px;
}

.filter-rating-option__label {
  color: var(--color-text);
  font-weight: 600;
}

.category-empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px dashed var(--color-border);
  border-radius: 24px;
  background: #fff;
  text-align: center;
  color: var(--color-text-secondary);
}

.category-empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 10px;
}

.price-range {
  display: flex;
  gap: 12px;
  align-items: center;
}

.price-range input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  outline: none;
  transition: border-color var(--transition-fast);
}

.price-range input:focus {
  border-color: var(--color-accent);
}

.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.category-toolbar__count {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.category-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-toolbar__sort label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.category-toolbar__sort select {
  padding: 8px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  outline: none;
  cursor: pointer;
}

.custom-select {
  position: relative;
  min-width: 224px;
}

.custom-select__trigger {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.custom-select__trigger:hover,
.custom-select.open .custom-select__trigger {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(92, 122, 82, 0.08);
}

.custom-select__trigger svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.custom-select.open .custom-select__trigger svg {
  transform: rotate(180deg);
}

.custom-select__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  padding: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition-fast);
  z-index: 40;
}

.custom-select.open .custom-select__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select__option {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--color-text);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.custom-select__option:hover,
.custom-select__option.is-selected {
  background: var(--color-accent);
  color: #fff;
}

.category-toolbar__view {
  display: flex;
  gap: 4px;
}

.category-toolbar__view button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
}

.category-toolbar__view button.active,
.category-toolbar__view button:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-lighter);
}

.products__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.products__grid--list {
  grid-template-columns: 1fr;
  gap: 18px;
}

.products__grid--list .product-card {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}

.products__grid--list .product-card:hover {
  transform: none;
}

.products__grid--list .product-card__image-wrap {
  aspect-ratio: auto;
  height: 100%;
  min-height: 220px;
}

.products__grid--list .product-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
}

.products__grid--list .product-card__name {
  -webkit-line-clamp: 3;
  font-size: 1.2rem;
}

.products__grid--list .product-card__footer {
  margin-top: auto;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 48px;
}

.pagination__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.pagination__btn:hover {
  border-color: var(--color-border);
  background: var(--color-surface);
}

.pagination__btn.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */

.product-detail {
  padding: 48px 0 100px;
}

.product-detail__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.product-gallery__main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
  margin-bottom: 12px;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform var(--transition-slow);
}

.product-gallery__main:hover img {
  transform: scale(1.08);
}

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
}

.product-gallery__thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
  background: var(--color-bg-alt);
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
  border-color: var(--color-accent);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info__badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-info__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}

.product-info__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.product-info__rating .stars {
  display: flex;
  gap: 2px;
  color: var(--color-star);
}

.product-info__rating .stars svg {
  width: 18px;
  height: 18px;
}

.product-info__rating-text {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.product-info__rating-text a {
  color: var(--color-accent);
  font-weight: 500;
}

.product-info__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.product-info__price {
  font-size: 2rem;
  font-weight: 700;
}

.product-info__price--sale {
  color: var(--color-sale);
}

.product-info__price-original {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-info__price-save {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-sale);
  background: var(--color-sale-bg);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.product-info__vat {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.product-info__divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 24px 0;
}

.product-info__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-info__stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.product-info__stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
}

.product-info__stock-dot--low {
  background: #FF9800;
}

.product-info__quantity {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.product-info__quantity button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.product-info__quantity button:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.product-info__quantity button:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.product-info__quantity button:hover {
  background: var(--color-bg-alt);
}

.product-info__quantity input {
  width: 56px;
  height: 44px;
  text-align: center;
  border: 1.5px solid var(--color-border);
  border-left: none;
  border-right: none;
  font-weight: 600;
  outline: none;
}

.product-info__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.product-info__actions .btn {
  flex: 1;
}

.product-info__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.product-info__meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-info__meta svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.product-tabs {
  margin-top: 80px;
}

.product-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border-light);
  margin-bottom: 32px;
}

.product-tabs__tab {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}

.product-tabs__tab:hover {
  color: var(--color-text);
}

.product-tabs__tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.product-tabs__content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.product-specs {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
}

.product-specs dt,
.product-specs dd {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.product-specs dt {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg);
}

.related-products {
  padding: 80px 0 100px;
  border-top: 1px solid var(--color-border-light);
}

/* ========================================
   CART PAGE
   ======================================== */

.cart-page {
  padding: 48px 0 100px;
}

.cart-page__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border-light);
  align-items: center;
}

.cart-item__image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item__variant {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.cart-item__quantity {
  display: flex;
  align-items: center;
  gap: 0;
}

.cart-item__quantity button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 1rem;
  transition: background var(--transition-fast);
}

.cart-item__quantity button:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.cart-item__quantity button:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cart-item__quantity button:hover {
  background: var(--color-bg-alt);
}

.cart-item__quantity span {
  width: 40px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item__right {
  text-align: right;
}

.cart-item__price {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.cart-item__remove {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.cart-item__remove:hover {
  color: var(--color-sale);
}

.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.cart-summary__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.cart-summary__row--total {
  font-size: 1.15rem;
  font-weight: 700;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 2px solid var(--color-border);
}

.cart-summary__row span:last-child {
  font-weight: 600;
}

.cart-summary__free-shipping {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-accent-lighter);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-accent-dark);
  margin: 20px 0;
}

.cart-summary__btn {
  width: 100%;
  margin-top: 8px;
}

.cart-summary__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.cart-empty {
  text-align: center;
  padding: 80px 24px;
}

.cart-empty__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.cart-empty__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cart-empty__desc {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* ========================================
   CHECKOUT PAGE
   ======================================== */

.checkout-page {
  padding: 48px 0 100px;
}

.checkout-page__layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

.checkout-steps {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
}

.checkout-step::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color-border);
  margin-left: 12px;
}

.checkout-step:last-child::after {
  display: none;
}

.checkout-step__number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.checkout-step.active {
  color: var(--color-text);
}

.checkout-step.active .checkout-step__number {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.checkout-step.completed .checkout-step__number {
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-color: var(--color-accent-light);
}

.checkout-section {
  margin-bottom: 40px;
}

.checkout-section__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row--single {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-accent);
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 12px;
}

.shipping-option:hover {
  border-color: var(--color-accent);
}

.shipping-option.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-lighter);
}

.shipping-option input[type="radio"] {
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
}

.shipping-option__details {
  flex: 1;
}

.shipping-option__name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.shipping-option__time {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.shipping-option__price {
  font-weight: 700;
  font-size: 0.95rem;
}

.shipping-option__price--free {
  color: var(--color-accent);
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 12px;
}

.payment-option:hover {
  border-color: var(--color-accent);
}

.payment-option.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-lighter);
}

.payment-option input[type="radio"] {
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
}

.payment-option__icon {
  width: 40px;
  height: 28px;
  background: var(--color-bg-alt);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.payment-option__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.checkout-order-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.checkout-order-summary__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.checkout-order-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.checkout-order-item:last-of-type {
  border-bottom: none;
}

.checkout-order-item__image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-alt);
  flex-shrink: 0;
}

.checkout-order-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-order-item__name {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.checkout-order-item__qty {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.checkout-order-item__price {
  margin-left: auto;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.checkout-promo {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}

.checkout-promo input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.85rem;
}

.checkout-promo button {
  padding: 10px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.checkout-promo button:hover {
  border-color: var(--color-text);
}

/* ========================================
   ANIMATIONS
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ========================================
   TOAST / NOTIFICATION
   ======================================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-text);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  transform: translateY(120%);
  transition: transform var(--transition-spring);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
}

.toast__icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent-light);
}

/* ========================================
   UTILITY PANEL
   ======================================== */

body.has-utility-panel {
  overflow: hidden;
}

.utility-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.32);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 2300;
}

.utility-panel-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.utility-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: 2310;
  display: flex;
  flex-direction: column;
}

.utility-panel.open {
  transform: translateX(0);
}

.utility-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--color-border-light);
}

.utility-panel__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.utility-panel__title {
  font-size: 2rem;
}

.utility-panel__close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.utility-panel__close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.utility-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.utility-panel__stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.utility-panel__empty {
  margin: auto 0;
  text-align: center;
  padding: 32px 12px;
}

.utility-panel__empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-accent-lighter);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.utility-panel__empty h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.utility-panel__empty p,
.utility-panel__account-text,
.utility-panel__help p,
.favorite-item__category {
  color: var(--color-text-secondary);
}

.utility-panel__footer {
  margin-top: auto;
  padding-top: 8px;
}

.utility-panel__footer--double {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.favorite-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  background: var(--color-bg);
}

.favorite-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.favorite-item__image {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
}

.favorite-item__category {
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.favorite-item__name {
  font-weight: 600;
  line-height: 1.4;
}

.favorite-item__remove {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-sale);
}

.cart-preview-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  background: var(--color-bg);
}

.cart-preview-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-preview-item__image {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
}

.cart-preview-item__info {
  min-width: 0;
}

.cart-preview-item__category,
.cart-preview-item__meta {
  color: var(--color-text-secondary);
  font-size: 0.82rem;
}

.cart-preview-item__name {
  font-weight: 600;
  line-height: 1.4;
  margin: 3px 0 4px;
}

.utility-panel__summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
}

.utility-panel__summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.utility-panel__account-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-accent-lighter), #fff);
  border: 1px solid var(--color-border-light);
}

.utility-panel__account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.utility-panel__account-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.utility-link-btn {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.utility-link-btn:hover {
  border-color: var(--color-border);
  background: var(--color-bg);
}

.utility-link-btn--link {
  display: block;
}

.utility-panel__help {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
}

/* ========================================
   AUTH PAGE
   ======================================== */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
}

.auth-shell--wide {
  grid-template-columns: minmax(0, 1fr) 460px;
}

.auth-shell__content {
  padding: 32px 40px 56px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(92, 122, 82, 0.16), transparent 35%),
    linear-gradient(180deg, #f8f5f0 0%, #faf9f6 100%);
}

.auth-shell__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 40px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 226, 220, 0.9);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(16px);
}

.auth-card--wide {
  max-width: 780px;
}

.auth-card__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.auth-card__title {
  margin-bottom: 12px;
}

.auth-card__desc {
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form--wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  align-items: start;
}

.auth-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form__group--full {
  grid-column: 1 / -1;
}

.auth-form__group label {
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-form__group input {
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-form__group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(92, 122, 82, 0.12);
}

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
}

.auth-form__row a {
  color: var(--color-accent);
  font-weight: 600;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
}

.auth-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-choice-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.auth-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-choice-card__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.auth-choice-card__content strong {
  font-size: 0.98rem;
}

.auth-choice-card__content span {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-choice-card input:checked + .auth-choice-card__content {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(92, 122, 82, 0.12);
  transform: translateY(-1px);
}

.auth-register-business {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(92, 122, 82, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(92, 122, 82, 0.05);
}

.auth-register-business__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.auth-register-business__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-register-business__header strong {
  font-size: 0.98rem;
}

.auth-register-business__header span {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-card__divider {
  position: relative;
  text-align: center;
  margin: 26px 0 20px;
  color: var(--color-text-muted);
  font-size: 0.84rem;
}

.auth-card__divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border-light);
}

.auth-card__divider span {
  position: relative;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
}

.auth-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-socials .btn {
  width: 100%;
}

.auth-card__foot {
  margin-top: 24px;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  text-align: center;
}

.auth-card__foot a {
  color: var(--color-accent);
  font-weight: 700;
}

.auth-shell__aside {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.auth-shell__aside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-shell__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.1), rgba(26, 26, 26, 0.55));
}

.auth-shell__quote {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
  color: #fff;
}

.auth-shell__quote p {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 16px;
}

.product-card__wishlist.is-active,
.btn--icon.is-active {
  color: #fff;
  background: var(--color-sale);
  border-color: var(--color-sale);
}

.product-card__wishlist.is-active {
  opacity: 1;
  transform: scale(1);
}

/* ========================================
   MOBILE NAV OVERLAY
   ======================================== */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: all var(--transition-base);
}

.mobile-nav.open {
  visibility: visible;
  opacity: 1;
}

.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: var(--color-surface);
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

.mobile-nav.open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav__links a {
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mobile-nav__links a:hover {
  background: var(--color-bg-alt);
}

/* ========================================
   TEMPLATE 2 OVERRIDES
   ======================================== */

body[data-storefront-template="template-2"] {
  background:
    radial-gradient(circle at top left, rgba(201, 123, 94, 0.08), transparent 28%),
    linear-gradient(180deg, #f7efe9 0%, #fffaf7 42%, #f5ede8 100%);
}

body[data-storefront-template="template-2"] main {
  position: relative;
}

body[data-storefront-template="template-2"] .announcement {
  background:
    linear-gradient(90deg, #231917 0%, #3f2c27 48%, #231917 100%);
  color: #f7ebe4;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body[data-storefront-template="template-2"] .header {
  background: rgba(34, 25, 23, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

body[data-storefront-template="template-2"] .header.scrolled {
  box-shadow: 0 18px 40px rgba(35, 25, 23, 0.18);
}

body[data-storefront-template="template-2"] .header__logo-text,
body[data-storefront-template="template-2"] .header__logo-text-primary,
body[data-storefront-template="template-2"] .header__mobile-toggle,
body[data-storefront-template="template-2"] .header__action-btn,
body[data-storefront-template="template-2"] .header__nav a {
  color: #f8ede6;
}

body[data-storefront-template="template-2"] .header__nav {
  gap: 10px;
}

body[data-storefront-template="template-2"] .header__nav a {
  padding: 9px 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-storefront-template="template-2"] .header__nav a:hover,
body[data-storefront-template="template-2"] .header__nav a.active {
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  border-bottom-color: rgba(255, 255, 255, 0.68);
}

body[data-storefront-template="template-2"] .header__search {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-storefront-template="template-2"] .header__search input,
body[data-storefront-template="template-2"] .header__search svg {
  color: #f8ede6;
}

body[data-storefront-template="template-2"] .header__search input::placeholder {
  color: rgba(248, 237, 230, 0.68);
}

body[data-storefront-template="template-2"] .header__action-btn:hover,
body[data-storefront-template="template-2"] .header__action-btn.has-items,
body[data-storefront-template="template-2"] .header__action-btn.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body[data-storefront-template="template-2"] .header__cart-count,
body[data-storefront-template="template-2"] .header__favorites-count {
  background: #fff;
  color: #231917;
}

body[data-storefront-template="template-2"] .hero {
  min-height: 100vh;
  padding: 56px 0 36px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.2), transparent 20%),
    radial-gradient(circle at 82% 20%, rgba(201, 123, 94, 0.2), transparent 24%),
    linear-gradient(135deg, #211816 0%, #503730 34%, #86614f 100%);
}

body[data-storefront-template="template-2"] .hero::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 36px;
  pointer-events: none;
}

body[data-storefront-template="template-2"] .hero__bg-pattern {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 34px 34px;
}

body[data-storefront-template="template-2"] .hero__content {
  max-width: 560px;
  padding: 56px 40px;
  background: rgba(15, 11, 10, 0.46);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 34px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

body[data-storefront-template="template-2"] .hero__badge {
  background: rgba(255,255,255,0.1);
  color: #f6ddd2;
  border-color: rgba(255,255,255,0.16);
}

body[data-storefront-template="template-2"] .hero__title,
body[data-storefront-template="template-2"] .hero__desc {
  color: #fff8f4;
}

body[data-storefront-template="template-2"] .hero__title {
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  letter-spacing: -0.05em;
}

body[data-storefront-template="template-2"] .hero__title em {
  color: #ffceb9;
}

body[data-storefront-template="template-2"] .hero__desc {
  max-width: 440px;
  color: rgba(255, 244, 238, 0.82);
}

body[data-storefront-template="template-2"] .btn--primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #7f9b75 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

body[data-storefront-template="template-2"] .btn--secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.16);
}

body[data-storefront-template="template-2"] .btn--secondary:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.14);
}

body[data-storefront-template="template-2"] .hero__image {
  right: 4%;
  width: 42%;
  height: 76%;
  border-radius: 32px 32px 120px 32px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

body[data-storefront-template="template-2"] .hero__image::after {
  content: '';
  position: absolute;
  inset: auto 24px 24px auto;
  width: 140px;
  height: 140px;
  border-right: 1px solid rgba(255,255,255,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.22);
  border-radius: 0 0 28px 0;
}

body[data-storefront-template="template-2"] .hero__float-card {
  background: #fff7f1;
  border: 1px solid rgba(175, 128, 108, 0.26);
  border-radius: 22px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.16);
}

body[data-storefront-template="template-2"] .hero__float-card .card-icon {
  background: rgba(92, 122, 82, 0.12);
  color: var(--color-accent);
}

body[data-storefront-template="template-2"] .section-header {
  text-align: left;
  max-width: 760px;
  margin: 0 0 54px;
}

body[data-storefront-template="template-2"] .section-header .section-desc {
  margin: 0;
}

body[data-storefront-template="template-2"] .section-subtitle {
  color: #8d5a48;
  letter-spacing: 0.18em;
}

body[data-storefront-template="template-2"] .categories,
body[data-storefront-template="template-2"] .products-section,
body[data-storefront-template="template-2"] .promo-banner,
body[data-storefront-template="template-2"] .testimonials,
body[data-storefront-template="template-2"] .related-products,
body[data-storefront-template="template-2"] .cart-page,
body[data-storefront-template="template-2"] .category-page,
body[data-storefront-template="template-2"] .product-detail,
body[data-storefront-template="template-2"] .checkout-page {
  position: relative;
}

body[data-storefront-template="template-2"] .categories::before,
body[data-storefront-template="template-2"] .products-section::before,
body[data-storefront-template="template-2"] .testimonials::before,
body[data-storefront-template="template-2"] .related-products::before {
  content: '';
  display: block;
  width: 96px;
  height: 1px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, #8d5a48, transparent);
}

body[data-storefront-template="template-2"] .category-card {
  border-radius: 28px;
  border: 1px solid rgba(141, 90, 72, 0.14);
  box-shadow: 0 22px 44px rgba(61, 40, 32, 0.14);
}

body[data-storefront-template="template-2"] .category-card:first-child {
  border-radius: 32px 32px 110px 32px;
}

body[data-storefront-template="template-2"] .category-card__overlay {
  padding: 30px;
  background: linear-gradient(180deg, rgba(18, 14, 13, 0.08) 12%, rgba(18, 14, 13, 0.76) 100%);
}

body[data-storefront-template="template-2"] .category-card__name {
  font-size: 1.72rem;
}

body[data-storefront-template="template-2"] .category-card__count {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-storefront-template="template-2"] .category-card__arrow {
  opacity: 1;
  transform: none;
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.9);
  color: #2a1e1a;
}

body[data-storefront-template="template-2"] .products-section {
  background: transparent;
}

body[data-storefront-template="template-2"] .products__header {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(141, 90, 72, 0.14);
}

body[data-storefront-template="template-2"] .product-card {
  position: relative;
  overflow: visible;
  border-radius: 28px;
  border: 1px solid rgba(141, 90, 72, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(254,247,243,0.98));
  box-shadow: 0 20px 38px rgba(61, 40, 32, 0.08);
}

body[data-storefront-template="template-2"] .product-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-sale));
}

body[data-storefront-template="template-2"] .product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 48px rgba(61, 40, 32, 0.14);
}

body[data-storefront-template="template-2"] .product-card__image-wrap {
  margin: 14px 14px 0;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff7f1 0%, #f7ede8 100%);
}

body[data-storefront-template="template-2"] .product-card__body {
  padding: 18px 18px 20px;
}

body[data-storefront-template="template-2"] .product-card__category {
  color: #8d5a48;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

body[data-storefront-template="template-2"] .product-card__name {
  font-size: 1.18rem;
}

body[data-storefront-template="template-2"] .product-card__wishlist {
  opacity: 1;
  transform: none;
  background: rgba(255,255,255,0.9);
  color: #5d463e;
}

body[data-storefront-template="template-2"] .product-card__badge {
  border: 1px solid rgba(255,255,255,0.22);
}

body[data-storefront-template="template-2"] .product-card__add-btn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #7f9b75 100%);
  color: #fff;
}

body[data-storefront-template="template-2"] .page-hero {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(201, 123, 94, 0.1), transparent 25%),
    linear-gradient(180deg, #f5ebe6 0%, rgba(255,255,255,0.96) 100%);
  border-bottom-color: rgba(141, 90, 72, 0.12);
}

body[data-storefront-template="template-2"] .filter-sidebar,
body[data-storefront-template="template-2"] .cart-summary,
body[data-storefront-template="template-2"] .checkout-order-summary,
body[data-storefront-template="template-2"] .checkout-section {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(141, 90, 72, 0.12);
  border-radius: 26px;
  box-shadow: 0 18px 38px rgba(61, 40, 32, 0.08);
  padding: 24px;
}

body[data-storefront-template="template-2"] .category-toolbar,
body[data-storefront-template="template-2"] .product-info__divider,
body[data-storefront-template="template-2"] .checkout-order-item,
body[data-storefront-template="template-2"] .cart-item {
  border-color: rgba(141, 90, 72, 0.14);
}

body[data-storefront-template="template-2"] .custom-select__trigger,
body[data-storefront-template="template-2"] .price-range input,
body[data-storefront-template="template-2"] .checkout-promo input,
body[data-storefront-template="template-2"] .checkout-promo button,
body[data-storefront-template="template-2"] .product-info__quantity button,
body[data-storefront-template="template-2"] .product-info__quantity input {
  border-radius: 16px;
}

body[data-storefront-template="template-2"] .checkout-step__number {
  border-radius: 14px;
}

body[data-storefront-template="template-2"] .payment-option {
  border-radius: 22px;
  border-color: rgba(141, 90, 72, 0.14);
  background: rgba(255,255,255,0.88);
}

body[data-storefront-template="template-2"] .payment-option.selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(92, 122, 82, 0.08);
}

body[data-storefront-template="template-2"] .newsletter {
  background: transparent;
}

body[data-storefront-template="template-2"] .newsletter__inner {
  position: relative;
  max-width: 860px;
  padding: 54px 56px;
  text-align: left;
  overflow: hidden;
}

body[data-storefront-template="template-2"] .newsletter__inner::before {
  content: '';
  position: absolute;
  right: 42px;
  top: 36px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 32px;
  transform: rotate(12deg);
}

body[data-storefront-template="template-2"] .newsletter__title,
body[data-storefront-template="template-2"] .newsletter__desc,
body[data-storefront-template="template-2"] .newsletter__note {
  color: #fff;
}

body[data-storefront-template="template-2"] .newsletter__form {
  margin: 0;
  max-width: 540px;
}

body[data-storefront-template="template-2"] .newsletter__input {
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.2);
}

body[data-storefront-template="template-2"] .footer {
  position: relative;
  padding-top: 96px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 20%),
    linear-gradient(180deg, #221816 0%, #120d0c 100%);
}

body[data-storefront-template="template-2"] .footer__grid {
  gap: 56px;
  border-bottom-color: rgba(255,255,255,0.08);
}

body[data-storefront-template="template-2"] .footer__heading {
  letter-spacing: 0.02em;
}

body[data-storefront-template="template-2"] .mobile-nav__panel,
body[data-storefront-template="template-2"] .utility-panel,
body[data-storefront-template="template-2"] .chat-panel {
  background: linear-gradient(180deg, #fffaf7, #f8efea);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell__aside {
    display: none;
  }

  .auth-choice-grid {
    grid-template-columns: 1fr;
  }

  .auth-form--wide,
  .auth-register-business__grid {
    grid-template-columns: 1fr;
  }

  .hero__image {
    display: none;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__float-card {
    display: none;
  }

  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .categories__grid .category-card:first-child {
    grid-row: span 1;
  }

  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail__layout {
    gap: 40px;
  }

  .checkout-page__layout {
    grid-template-columns: 1fr 360px;
  }

  .promo-banner__image {
    display: none;
  }

  .promo-banner__content {
    max-width: 100%;
  }

  .utility-panel {
    width: min(380px, 100%);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .header__nav {
    display: none;
  }

  .header__search {
    display: none;
  }

  .header__mobile-toggle {
    display: flex;
  }

  .hero {
    min-height: 70vh;
  }

  .search-results__summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .utility-panel {
    width: 100%;
  }

  .utility-panel__header,
  .utility-panel__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .auth-shell__content {
    padding: 20px 16px 32px;
  }

  .auth-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .categories__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }

  .products__grid,
  .products__grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .products__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefit-card {
    text-align: left;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px;
  }

  .benefit-card__icon {
    margin: 0;
    flex-shrink: 0;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .category-page__layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
  }

  .product-detail__layout {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .cart-page__layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .checkout-page__layout {
    grid-template-columns: 1fr;
  }

  .checkout-order-summary {
    position: static;
    order: -1;
  }

  .checkout-steps {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .promo-banner__content {
    padding: 40px 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .product-specs {
    grid-template-columns: 140px 1fr;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .categories__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 160px);
  }

  .products__grid,
  .products__grid--3 {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 12px;
  }

  .cart-item__right {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .product-gallery__thumbs {
    overflow-x: auto;
  }

  .product-gallery__thumb {
    flex-shrink: 0;
  }
}

/* ========================================
   LIVE CHAT WIDGET
   ======================================== */

.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 8000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(92, 122, 82, 0.4);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
}

.chat-fab:hover {
  background: var(--color-accent-dark);
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(92, 122, 82, 0.5);
}

.chat-fab__icon,
.chat-fab__close {
  position: absolute;
  transition: all var(--transition-base);
}

.chat-fab__close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.chat-fab.active .chat-fab__icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.chat-fab.active .chat-fab__close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.chat-fab__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: var(--color-sale);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg);
  transition: all var(--transition-fast);
}

.chat-fab.active .chat-fab__badge {
  opacity: 0;
  transform: scale(0);
}

.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 380px;
  max-height: 520px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  z-index: 7999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-light);
}

.chat-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-panel__header {
  background: var(--color-accent);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.chat-panel__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-panel__header-info {
  flex: 1;
}

.chat-panel__header-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.chat-panel__header-status {
  font-size: 0.78rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-panel__header-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8FE68F;
}

.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  max-height: 340px;
  background: var(--color-bg);
}

.chat-msg {
  display: flex;
  gap: 8px;
  max-width: 85%;
  animation: chatMsgIn 0.3s ease-out both;
}

.chat-msg--bot {
  align-self: flex-start;
}

.chat-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.chat-msg--user .chat-msg__avatar {
  background: var(--color-bg-alt);
  color: var(--color-text-secondary);
}

.chat-msg__bubble {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
}

.chat-msg--bot .chat-msg__bubble {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
  border-bottom-left-radius: 4px;
}

.chat-msg--user .chat-msg__bubble {
  background: var(--color-accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg__time {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.chat-msg--user .chat-msg__time {
  text-align: right;
}

.chat-panel__quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 12px;
  background: var(--color-bg);
}

.chat-panel__quick-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-panel__quick-btn:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
}

.chat-panel__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-surface);
  flex-shrink: 0;
}

.chat-panel__input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.88rem;
  background: transparent;
  color: var(--color-text);
}

.chat-panel__input input::placeholder {
  color: var(--color-text-muted);
}

.chat-panel__send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chat-panel__send:hover {
  background: var(--color-accent-dark);
  transform: scale(1.05);
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: chatTyping 1.2s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .chat-panel {
    right: 12px;
    left: 12px;
    bottom: 90px;
    width: auto;
    max-height: 70vh;
  }

  .chat-fab {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
}
