/* ==========================================================================
   SUN CITY Home Wear — Foundational Brand CSS
   Women's Home Wear & Abayas | Premium E-Commerce Styling
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */
:root {
  /* ---- Brand Palette ---- */
  --sc-primary:          #1A82A1;          /* Teal / Ocean Blue          */
  --sc-primary-dark:     #136A84;          /* Hover / pressed state      */
  --sc-primary-light:    #E0F4FA;          /* Tint for backgrounds       */
  --sc-primary-rgb:      26, 130, 161;     /* For rgba() usage           */

  --sc-accent:           #FFC107;          /* Warm Yellow / Gold         */
  --sc-accent-dark:      #FFA000;          /* Deeper gold for hover      */
  --sc-accent-light:     #FFF8E1;          /* Light gold tint            */
  --sc-accent-rgb:       255, 193, 7;

  /* ---- Neutrals ---- */
  --sc-white:            #FFFFFF;
  --sc-off-white:        #F8F9FA;
  --sc-light-grey:       #ECEFF1;
  --sc-mid-grey:         #90A4AE;
  --sc-dark-grey:        #455A64;
  --sc-near-black:       #1B2631;

  /* ---- Semantic ---- */
  --sc-success:          #2ECC71;
  --sc-error:            #E74C3C;
  --sc-info:             var(--sc-primary);
  --sc-sale:             #E53935;

  /* ---- Typography ---- */
  --sc-font-primary:     'Cairo', 'Tajawal', sans-serif;
  --sc-font-display:     'Tajawal', 'Cairo', sans-serif;

  --sc-fs-xs:            0.75rem;    /* 12px */
  --sc-fs-sm:            0.875rem;   /* 14px */
  --sc-fs-base:          1rem;       /* 16px */
  --sc-fs-md:            1.125rem;   /* 18px */
  --sc-fs-lg:            1.25rem;    /* 20px */
  --sc-fs-xl:            1.5rem;     /* 24px */
  --sc-fs-2xl:           2rem;       /* 32px */
  --sc-fs-3xl:           2.5rem;     /* 40px */
  --sc-fs-hero:          3.25rem;    /* 52px */

  --sc-fw-light:         300;
  --sc-fw-regular:       400;
  --sc-fw-medium:        500;
  --sc-fw-semibold:      600;
  --sc-fw-bold:          700;
  --sc-fw-extrabold:     800;

  --sc-line-height:      1.7;

  /* ---- Spacing Scale ---- */
  --sc-space-xs:         0.25rem;    /* 4px  */
  --sc-space-sm:         0.5rem;     /* 8px  */
  --sc-space-md:         1rem;       /* 16px */
  --sc-space-lg:         1.5rem;     /* 24px */
  --sc-space-xl:         2rem;       /* 32px */
  --sc-space-2xl:        3rem;       /* 48px */
  --sc-space-3xl:        4rem;       /* 64px */
  --sc-space-4xl:        6rem;       /* 96px */

  /* ---- Borders & Radius ---- */
  --sc-radius-sm:        6px;
  --sc-radius-md:        10px;
  --sc-radius-lg:        16px;
  --sc-radius-pill:      9999px;

  /* ---- Shadows (Luxury / Soft) ---- */
  --sc-shadow-xs:        0 1px 3px rgba(0, 0, 0, 0.04);
  --sc-shadow-sm:        0 2px 8px rgba(0, 0, 0, 0.06);
  --sc-shadow-md:        0 4px 16px rgba(0, 0, 0, 0.08);
  --sc-shadow-lg:        0 8px 30px rgba(0, 0, 0, 0.10);
  --sc-shadow-xl:        0 16px 48px rgba(0, 0, 0, 0.12);
  --sc-shadow-glow:      0 0 20px rgba(var(--sc-primary-rgb), 0.15);
  --sc-shadow-accent:    0 0 20px rgba(var(--sc-accent-rgb), 0.20);

  /* ---- Transitions ---- */
  --sc-transition-fast:  0.2s ease;
  --sc-transition:       0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sc-transition-slow:  0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Layout ---- */
  --sc-container-max:    1280px;
  --sc-header-height:    72px;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  direction: rtl;
  text-align: right;
  font-family: var(--sc-font-primary);
  font-size: var(--sc-fs-base);
  font-weight: var(--sc-fw-regular);
  line-height: var(--sc-line-height);
  color: var(--sc-near-black);
  background-color: var(--sc-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--sc-primary);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

::selection {
  background-color: var(--sc-primary);
  color: var(--sc-white);
}

/* ==========================================================================
   3. UTILITY / LAYOUT
   ========================================================================== */
.sc-container {
  width: 100%;
  max-width: var(--sc-container-max);
  margin-inline: auto;
  padding-inline: var(--sc-space-lg);
}

.sc-section {
  padding-block: var(--sc-space-3xl);
}

.sc-section--alt {
  background-color: var(--sc-off-white);
}

.sc-flex {
  display: flex;
  align-items: center;
  gap: var(--sc-space-md);
}

.sc-grid {
  display: grid;
  gap: var(--sc-space-lg);
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sc-font-display);
  font-weight: var(--sc-fw-bold);
  line-height: 1.3;
  color: var(--sc-near-black);
}

h1 { font-size: var(--sc-fs-hero); }
h2 { font-size: var(--sc-fs-3xl); }
h3 { font-size: var(--sc-fs-2xl); }
h4 { font-size: var(--sc-fs-xl);  }
h5 { font-size: var(--sc-fs-lg);  }
h6 { font-size: var(--sc-fs-md);  }

.sc-section-title {
  font-family: var(--sc-font-display);
  font-size: var(--sc-fs-2xl);
  font-weight: var(--sc-fw-bold);
  text-align: center;
  margin-bottom: var(--sc-space-sm);
  color: var(--sc-near-black);
}

.sc-section-subtitle {
  font-size: var(--sc-fs-md);
  font-weight: var(--sc-fw-regular);
  text-align: center;
  color: var(--sc-mid-grey);
  margin-bottom: var(--sc-space-2xl);
}

/* Decorative line under section titles */
.sc-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--sc-primary), var(--sc-accent));
  margin: var(--sc-space-sm) auto 0;
  border-radius: var(--sc-radius-pill);
}

/* ==========================================================================
   5. HEADER / NAVBAR  —  Glassmorphism + Sleek Underline
   ========================================================================== */
.site-header,
.header,
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  height: var(--sc-header-height);
  padding-inline: var(--sc-space-lg);
  background-color: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
          backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition:
    background-color var(--sc-transition),
    box-shadow var(--sc-transition),
    backdrop-filter var(--sc-transition);
}

/* Stronger glass when user scrolls */
.site-header.scrolled,
.header.scrolled,
header.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
          backdrop-filter: blur(20px) saturate(200%);
  box-shadow: var(--sc-shadow-md);
}

/* Inner wrapper to constrain content */
.header__inner,
.site-header > .sc-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--sc-container-max);
  margin-inline: auto;
}

.header__logo img,
.site-header .logo img {
  max-height: 48px;
  width: auto;
  transition: transform var(--sc-transition-fast);
}

.header__logo img:hover,
.site-header .logo img:hover {
  transform: scale(1.04);
}

/* ---- Nav Links with Sleek Underline ---- */
.nav a,
.main-nav a,
.header__nav a {
  position: relative;
  font-family: var(--sc-font-display);
  font-size: var(--sc-fs-sm);
  font-weight: var(--sc-fw-semibold);
  color: var(--sc-near-black);
  padding: 6px 14px;
  transition: color var(--sc-transition);
}

.nav a:hover,
.main-nav a:hover,
.header__nav a:hover,
.nav a.active,
.main-nav a.active,
.header__nav a.active {
  color: var(--sc-primary);
}

/* Underline — starts from center, expands both ways */
.nav a::after,
.main-nav a::after,
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--sc-primary), rgba(var(--sc-primary-rgb), 0.6));
  border-radius: var(--sc-radius-pill);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav a:hover::after,
.main-nav a:hover::after,
.header__nav a:hover::after,
.nav a.active::after,
.main-nav a.active::after,
.header__nav a.active::after {
  width: 70%;
}

/* ---- Header Icons (cart, user, search) ---- */
.header-icons,
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sc-space-md);
}

.header-icons a,
.header__actions a,
.header__actions button {
  position: relative;
  color: var(--sc-near-black);
  font-size: var(--sc-fs-lg);
  transition:
    color var(--sc-transition-fast),
    transform var(--sc-transition-fast);
}

.header-icons a:hover,
.header__actions a:hover,
.header__actions button:hover {
  color: var(--sc-primary);
  transform: scale(1.12);
}

/* Cart badge */
.cart-count,
.header__cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: var(--sc-fw-bold);
  color: var(--sc-near-black);
  background-color: var(--sc-accent);
  border-radius: var(--sc-radius-pill);
  position: absolute;
  top: -8px;
  right: -10px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(var(--sc-accent-rgb), 0.35);
  animation: sc-pulse 2s ease-in-out infinite;
}

/* Mobile hamburger area */
@media (max-width: 768px) {
  .site-header,
  .header,
  header {
    padding-inline: var(--sc-space-md);
  }
}

/* ==========================================================================
   6. BUTTONS (CTAs)
   ========================================================================== */
.btn,
.button,
button[type="submit"],
input[type="submit"],
.add-to-cart,
.salla-btn,
.zid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sc-space-xs);
  padding: 12px 28px;
  font-family: var(--sc-font-display);
  font-size: var(--sc-fs-sm);
  font-weight: var(--sc-fw-semibold);
  letter-spacing: 0.02em;
  border-radius: var(--sc-radius-sm);
  cursor: pointer;
  transition:
    background-color var(--sc-transition),
    color var(--sc-transition),
    transform var(--sc-transition-fast),
    box-shadow var(--sc-transition);
}

/* Primary CTA */
.btn--primary,
.btn-primary,
.add-to-cart,
button[type="submit"],
input[type="submit"] {
  background-color: var(--sc-primary);
  color: var(--sc-white);
  border: 2px solid var(--sc-primary);
}

.btn--primary:hover,
.btn-primary:hover,
.add-to-cart:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background-color: var(--sc-primary-dark);
  border-color: var(--sc-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--sc-shadow-glow);
}

.btn--primary:active,
.btn-primary:active,
.add-to-cart:active {
  transform: translateY(0);
}

/* Secondary / Outline CTA */
.btn--secondary,
.btn-secondary,
.btn--outline {
  background-color: transparent;
  color: var(--sc-primary);
  border: 2px solid var(--sc-primary);
}

.btn--secondary:hover,
.btn-secondary:hover,
.btn--outline:hover {
  background-color: var(--sc-primary);
  color: var(--sc-white);
  transform: translateY(-2px);
  box-shadow: var(--sc-shadow-glow);
}

/* Accent CTA (Buy Now, etc.) */
.btn--accent {
  background-color: var(--sc-accent);
  color: var(--sc-near-black);
  border: 2px solid var(--sc-accent);
}

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

/* Large button variant */
.btn--lg {
  padding: 16px 40px;
  font-size: var(--sc-fs-base);
  border-radius: var(--sc-radius-md);
}

/* Icon button */
.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* ==========================================================================
   7. PRODUCT CARDS  —  High-End Fashion Grid
   ========================================================================== */

/* ---- Card Container ---- */
.product-card,
.product-item,
.product-block,
.s-product-card-entry {
  position: relative;
  background-color: var(--sc-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--sc-shadow-xs);
  transition:
    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover,
.product-item:hover,
.product-block:hover,
.s-product-card-entry:hover {
  transform: translateY(-5px);
  box-shadow: var(--sc-shadow-lg);
}

/* ---- Image Container (3:4 fashion ratio) ---- */
.product-card__image,
.product-item__image,
.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 8px 8px 0 0;
  background-color: var(--sc-off-white);
}

.product-card__image img,
.product-item__image img,
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Subtle zoom on hover — 1.03 scale */
.product-card:hover .product-card__image img,
.product-item:hover .product-item__image img,
.product-block:hover .product-image img,
.s-product-card-entry:hover img {
  transform: scale(1.03);
}

/* ---- Quick-action icons overlay (wishlist, quick-view) ---- */
.product-card__actions,
.product-item__actions {
  position: absolute;
  top: var(--sc-space-sm);
  left: var(--sc-space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--sc-space-xs);
  z-index: 3;
}

.product-card__actions button,
.product-item__actions button,
.product-card__actions a,
.product-item__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--sc-white);
  color: var(--sc-near-black);
  font-size: var(--sc-fs-base);
  box-shadow: var(--sc-shadow-sm);
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background-color var(--sc-transition-fast),
    color var(--sc-transition-fast);
}

.product-card__actions button:nth-child(2),
.product-item__actions button:nth-child(2),
.product-card__actions a:nth-child(2),
.product-item__actions a:nth-child(2) {
  transition-delay: 0.06s;
}

.product-card__actions button:nth-child(3),
.product-item__actions button:nth-child(3),
.product-card__actions a:nth-child(3),
.product-item__actions a:nth-child(3) {
  transition-delay: 0.12s;
}

.product-card:hover .product-card__actions button,
.product-card:hover .product-card__actions a,
.product-item:hover .product-item__actions button,
.product-item:hover .product-item__actions a {
  opacity: 1;
  transform: translateX(0);
}

.product-card__actions button:hover,
.product-item__actions button:hover,
.product-card__actions a:hover,
.product-item__actions a:hover {
  background-color: var(--sc-primary);
  color: var(--sc-white);
}

/* ---- Add to Cart — Hidden by default, slides up on hover ---- */
.product-card .add-to-cart,
.product-item .add-to-cart,
.product-block .add-to-cart,
.s-product-card-entry .add-to-cart,
.product-card__add-to-cart,
.product-item__add-to-cart {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sc-space-xs);
  width: 100%;
  padding: 14px;
  font-family: var(--sc-font-display);
  font-size: var(--sc-fs-sm);
  font-weight: var(--sc-fw-semibold);
  letter-spacing: 0.03em;
  color: var(--sc-white);
  background-color: var(--sc-primary);
  border: none;
  border-radius: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    background-color var(--sc-transition-fast);
}

.product-card:hover .add-to-cart,
.product-item:hover .add-to-cart,
.product-block:hover .add-to-cart,
.s-product-card-entry:hover .add-to-cart,
.product-card:hover .product-card__add-to-cart,
.product-item:hover .product-item__add-to-cart {
  opacity: 1;
  transform: translateY(0);
}

.product-card .add-to-cart:hover,
.product-item .add-to-cart:hover,
.product-card__add-to-cart:hover,
.product-item__add-to-cart:hover {
  background-color: var(--sc-primary-dark);
}

/* ---- Product Info Section ---- */
.product-card__info,
.product-item__info,
.product-details {
  padding: var(--sc-space-md) var(--sc-space-md) var(--sc-space-lg);
}

/* ---- Product Title ---- */
.product-card__title,
.product-item__title,
.product-title,
.product-card__info h3,
.product-item__info h3 {
  font-family: var(--sc-font-display);
  font-size: var(--sc-fs-sm);
  font-weight: var(--sc-fw-medium);
  color: var(--sc-dark-grey);
  margin-bottom: var(--sc-space-sm);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--sc-transition-fast);
}

.product-card__title:hover,
.product-item__title:hover,
.product-title:hover,
.product-card__info h3:hover,
.product-item__info h3:hover {
  color: var(--sc-primary);
}

/* ---- Product Pricing — Elegant ---- */
.product-card__price,
.product-item__price,
.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sc-space-sm);
}

/* Current / Discounted Price */
.product-card__price .current-price,
.product-item__price .current-price,
.product-price .current-price,
.price--sale,
.product-card__price strong,
.product-item__price strong {
  font-family: var(--sc-font-display);
  font-size: var(--sc-fs-lg);
  font-weight: var(--sc-fw-bold);
  color: var(--sc-primary);
  letter-spacing: -0.01em;
}

/* Original / Crossed-out Price */
.product-card__price .old-price,
.product-item__price .old-price,
.product-price .old-price,
.price--compare,
.product-card__price del,
.product-item__price del,
.product-price del {
  font-family: var(--sc-font-primary);
  font-size: var(--sc-fs-xs);
  font-weight: var(--sc-fw-regular);
  color: var(--sc-mid-grey);
  text-decoration: line-through;
  text-decoration-color: rgba(144, 164, 174, 0.5);
  text-decoration-thickness: 1.5px;
}

/* Discount percentage badge next to price */
.product-card__price .discount-percent,
.product-item__price .discount-percent,
.product-price .discount-percent,
.price--discount-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: var(--sc-fw-bold);
  color: var(--sc-sale);
  background-color: rgba(229, 57, 53, 0.08);
  border-radius: var(--sc-radius-pill);
  line-height: 1.4;
}

/* When there is NO discount — single price display */
.product-card__price--single,
.product-item__price--single {
  font-family: var(--sc-font-display);
  font-size: var(--sc-fs-md);
  font-weight: var(--sc-fw-semibold);
  color: var(--sc-near-black);
}

/* ---- Touch device: show Add to Cart always ---- */
@media (hover: none) {
  .product-card .add-to-cart,
  .product-item .add-to-cart,
  .product-block .add-to-cart,
  .s-product-card-entry .add-to-cart,
  .product-card__add-to-cart,
  .product-item__add-to-cart {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    border-radius: 0 0 8px 8px;
  }

  .product-card__actions button,
  .product-item__actions button,
  .product-card__actions a,
  .product-item__actions a {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   8. BADGES & TAGS
   ========================================================================== */
.badge,
.tag,
.product-badge,
.product-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-family: var(--sc-font-display);
  font-size: var(--sc-fs-xs);
  font-weight: var(--sc-fw-bold);
  letter-spacing: 0.03em;
  border-radius: var(--sc-radius-pill);
  position: absolute;
  top: var(--sc-space-sm);
  right: var(--sc-space-sm);
  z-index: 2;
}

/* Sale badge */
.badge--sale,
.tag--sale,
.sale-badge {
  background-color: var(--sc-sale);
  color: var(--sc-white);
}

/* New arrival badge */
.badge--new,
.tag--new,
.new-badge {
  background-color: var(--sc-accent);
  color: var(--sc-near-black);
}

/* Sold out badge */
.badge--sold-out,
.tag--sold-out {
  background-color: var(--sc-mid-grey);
  color: var(--sc-white);
}

/* Featured badge */
.badge--featured {
  background-color: var(--sc-primary);
  color: var(--sc-white);
}

/* ==========================================================================
   9. PRODUCT GRID LAYOUT
   ========================================================================== */
.products-grid,
.product-list,
.products-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sc-space-lg);
}

@media (max-width: 1024px) {
  .products-grid,
  .product-list,
  .products-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid,
  .product-list,
  .products-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sc-space-md);
  }
}

@media (max-width: 480px) {
  .products-grid,
  .product-list,
  .products-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sc-space-sm);
  }
}

/* ==========================================================================
   10. HERO / BANNER SECTION
   ========================================================================== */
.hero,
.banner,
.slider-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--sc-off-white);
}

.hero__content,
.banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sc-space-xl);
}

.hero__title,
.banner__title {
  font-family: var(--sc-font-display);
  font-size: var(--sc-fs-hero);
  font-weight: var(--sc-fw-extrabold);
  color: var(--sc-near-black);
  margin-bottom: var(--sc-space-md);
  line-height: 1.2;
}

.hero__subtitle,
.banner__subtitle {
  font-size: var(--sc-fs-lg);
  color: var(--sc-dark-grey);
  margin-bottom: var(--sc-space-xl);
  max-width: 600px;
  margin-inline: auto;
}

/* ==========================================================================
   11. CATEGORIES / COLLECTIONS
   ========================================================================== */
.categories-grid,
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sc-space-lg);
}

.category-card,
.collection-card {
  position: relative;
  border-radius: var(--sc-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  box-shadow: var(--sc-shadow-sm);
  transition: transform var(--sc-transition), box-shadow var(--sc-transition);
}

.category-card:hover,
.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sc-shadow-lg);
}

.category-card img,
.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--sc-transition-slow);
}

.category-card:hover img,
.collection-card:hover img {
  transform: scale(1.08);
}

.category-card__overlay,
.collection-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(var(--sc-primary-rgb), 0.75) 0%,
    transparent 60%
  );
  display: flex;
  align-items: flex-end;
  padding: var(--sc-space-lg);
}

.category-card__title,
.collection-card__title {
  font-family: var(--sc-font-display);
  font-size: var(--sc-fs-xl);
  font-weight: var(--sc-fw-bold);
  color: var(--sc-white);
}

/* ==========================================================================
   12. ANNOUNCEMENT BAR / TOP BAR
   ========================================================================== */
.announcement-bar,
.top-bar {
  background: linear-gradient(135deg, var(--sc-primary), var(--sc-primary-dark));
  color: var(--sc-white);
  text-align: center;
  padding: var(--sc-space-sm) var(--sc-space-md);
  font-family: var(--sc-font-display);
  font-size: var(--sc-fs-sm);
  font-weight: var(--sc-fw-medium);
}

.announcement-bar a,
.top-bar a {
  color: var(--sc-accent);
  font-weight: var(--sc-fw-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer,
footer {
  background-color: var(--sc-near-black);
  color: var(--sc-light-grey);
  padding-block: var(--sc-space-3xl) var(--sc-space-xl);
}

.site-footer h4,
footer h4,
.footer-title {
  font-family: var(--sc-font-display);
  font-size: var(--sc-fs-md);
  font-weight: var(--sc-fw-bold);
  color: var(--sc-white);
  margin-bottom: var(--sc-space-md);
  position: relative;
}

.footer-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--sc-accent);
  margin-top: var(--sc-space-xs);
  border-radius: var(--sc-radius-pill);
}

.site-footer a,
footer a {
  color: var(--sc-mid-grey);
  font-size: var(--sc-fs-sm);
  transition: color var(--sc-transition-fast), padding-right var(--sc-transition-fast);
}

.site-footer a:hover,
footer a:hover {
  color: var(--sc-accent);
  padding-right: 4px;
}

.footer-bottom,
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--sc-space-xl);
  padding-top: var(--sc-space-lg);
  text-align: center;
  font-size: var(--sc-fs-xs);
  color: var(--sc-mid-grey);
}

/* Social icons in footer */
.footer-social a,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--sc-light-grey);
  font-size: var(--sc-fs-md);
  margin-inline-start: var(--sc-space-sm);
  transition:
    background-color var(--sc-transition),
    color var(--sc-transition),
    transform var(--sc-transition-fast);
}

.footer-social a:hover,
.social-links a:hover {
  background-color: var(--sc-primary);
  color: var(--sc-white);
  transform: translateY(-3px);
  padding-right: 0;
}

/* ==========================================================================
   14. FORMS & INPUTS
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--sc-font-primary);
  font-size: var(--sc-fs-sm);
  color: var(--sc-near-black);
  background-color: var(--sc-white);
  border: 1.5px solid var(--sc-light-grey);
  border-radius: var(--sc-radius-sm);
  transition: border-color var(--sc-transition-fast), box-shadow var(--sc-transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--sc-primary);
  box-shadow: 0 0 0 3px rgba(var(--sc-primary-rgb), 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--sc-mid-grey);
}

/* Newsletter input group */
.newsletter-form,
.subscribe-form {
  display: flex;
  gap: var(--sc-space-sm);
  max-width: 480px;
}

.newsletter-form input,
.subscribe-form input {
  flex: 1;
  border-radius: var(--sc-radius-sm) 0 0 var(--sc-radius-sm);
}

.newsletter-form button,
.subscribe-form button {
  border-radius: 0 var(--sc-radius-sm) var(--sc-radius-sm) 0;
  white-space: nowrap;
}

/* ==========================================================================
   15. BREADCRUMB
   ========================================================================== */
.breadcrumb,
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--sc-space-xs);
  font-size: var(--sc-fs-sm);
  color: var(--sc-mid-grey);
  padding: var(--sc-space-md) 0;
}

.breadcrumb a,
.breadcrumbs a {
  color: var(--sc-mid-grey);
}

.breadcrumb a:hover,
.breadcrumbs a:hover {
  color: var(--sc-primary);
}

.breadcrumb .separator::before {
  content: '/';
  margin-inline: var(--sc-space-xs);
}

.breadcrumb .current,
.breadcrumbs .current {
  color: var(--sc-near-black);
  font-weight: var(--sc-fw-semibold);
}

/* ==========================================================================
   16. SCROLLBAR (Custom Luxury)
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--sc-off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--sc-primary);
  border-radius: var(--sc-radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sc-primary-dark);
}

/* ==========================================================================
   17. ANIMATIONS
   ========================================================================== */
@keyframes sc-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sc-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes sc-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0;  }
}

.sc-animate-fadeInUp {
  animation: sc-fadeInUp 0.6s var(--sc-transition) both;
}

.sc-animate-fadeIn {
  animation: sc-fadeIn 0.5s ease both;
}

/* ---- Scroll Reveal (Intersection Observer companion) ---- */
.sc-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.sc-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .sc-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Ripple Effect (Button micro-interaction) ---- */
.sc-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  transform: scale(0);
  animation: sc-ripple-expand 0.55s ease-out forwards;
}

@keyframes sc-ripple-expand {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* ---- Bounce Effect (Button micro-interaction) ---- */
.sc-btn-bounce {
  animation: sc-bounce-click 0.35s ease;
}

@keyframes sc-bounce-click {
  0%   { transform: scale(1);    }
  30%  { transform: scale(0.94); }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1);    }
}

/* Loading skeleton shimmer */
.sc-skeleton {
  background: linear-gradient(90deg,
    var(--sc-light-grey) 25%,
    var(--sc-off-white) 50%,
    var(--sc-light-grey) 75%
  );
  background-size: 200% 100%;
  animation: sc-shimmer 1.5s infinite;
  border-radius: var(--sc-radius-sm);
}

/* ==========================================================================
   18. SALE BANNER / PROMO STRIP
   ========================================================================== */
.sale-banner,
.promo-banner {
  background: linear-gradient(135deg, var(--sc-accent), var(--sc-accent-dark));
  color: var(--sc-near-black);
  text-align: center;
  padding: var(--sc-space-xl) var(--sc-space-md);
  border-radius: var(--sc-radius-md);
  margin-bottom: var(--sc-space-xl);
}

.sale-banner h2,
.promo-banner h2 {
  font-size: var(--sc-fs-2xl);
  font-weight: var(--sc-fw-extrabold);
  margin-bottom: var(--sc-space-sm);
}

/* ==========================================================================
   19. RESPONSIVE TYPOGRAPHY
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --sc-fs-hero: 2.25rem;
    --sc-fs-3xl:  1.75rem;
    --sc-fs-2xl:  1.5rem;
    --sc-fs-xl:   1.25rem;
  }

  .sc-section {
    padding-block: var(--sc-space-2xl);
  }

  .sc-container {
    padding-inline: var(--sc-space-md);
  }

  .hero,
  .banner,
  .slider-section {
    min-height: 50vh;
  }
}

@media (max-width: 480px) {
  :root {
    --sc-fs-hero: 1.75rem;
    --sc-fs-3xl:  1.5rem;
    --sc-fs-2xl:  1.25rem;
  }

  .btn,
  .button,
  .add-to-cart {
    padding: 10px 20px;
    font-size: var(--sc-fs-xs);
  }

  .hero,
  .banner,
  .slider-section {
    min-height: 40vh;
  }
}

/* ==========================================================================
   20. PRINT STYLES
   ========================================================================== */
@media print {
  body {
    color: #000;
    background: #fff;
  }
  .site-header,
  .site-footer,
  .announcement-bar,
  .top-bar {
    display: none;
  }
}
