/* =============================================================
   FestiveKart – Main Stylesheet
   Phase 1, Subphase 2: Asset Integration & UI Refinement
   -------------------------------------------------------------
   TABLE OF CONTENTS
   1.  Design Tokens (CSS Variables)
   2.  CSS Reset & Base
   3.  Typography
   4.  Layout Utilities
   5.  Header
   6.  Category Nav
   7.  Hero Carousel
   8.  Section Shared Styles
   9.  Product Cards
   10. Brand Section
   11. Deals & Offers
   12. Promotional Banners
   13. Product Categories Grid
   14. Cart Section
   15. About Section
   16. Footer
   17. Buttons
   18. Responsive – 1024px (Laptop)
   19. Responsive – 768px (Tablet)
   20. Responsive – 480px (Mobile)
   21. Responsive – 375px (Small Mobile)
   ============================================================= */


/* =============================================================
   1. DESIGN TOKENS
   ============================================================= */
:root {
  /* Primary palette */
  --color-primary:       #2874f0;
  --color-yellow:        #ffe000;
  --color-action:        #fb641b;

  /* Neutrals */
  --color-bg:            #ffffff;
  --color-bg-light:      #f1f3f6;
  --color-text-primary:  #212121;
  --color-text-muted:    #878787;
  --color-border:        #e0e0e0;
  --color-hover:         #e8f0fe;

  /* Semantic */
  --color-success:       #388e3c;
  --color-warning:       #ff6f00;
  --color-error:         #d32f2f;
  --color-rating:        #ff9f00;

  /* Typography */
  --font-family:         'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --text-display:        24px;
  --text-heading-lg:     20px;
  --text-heading-md:     16px;
  --text-heading-sm:     14px;
  --text-body:           14px;
  --text-body-sm:        12px;
  --text-caption:        11px;

  /* Spacing – 4px micro, 8px sm, 12px compact, 16px standard, 24px section, 32px large, 48px major */
  --space-4:             4px;
  --space-8:             8px;
  --space-12:            12px;
  --space-16:            16px;
  --space-24:            24px;
  --space-32:            32px;
  --space-48:            48px;

  /* Legacy aliases (keep for compatibility) */
  --space-xs:            4px;
  --space-sm:            8px;
  --space-md:            16px;
  --space-lg:            24px;
  --space-xl:            32px;
  --space-xxl:           48px;

  /* Border & radius */
  --radius-none:         0px;
  --radius-sm:           2px;
  --radius-md:           4px;
  --radius-lg:           8px;
  --radius-round:        50%;
  --border-default:      1px solid #e0e0e0;
  --border-focus:        1px solid #2874f0;

  /* Shadows */
  --shadow-card:         0 1px 6px 0 rgba(0, 0, 0, 0.10);
  --shadow-card-hover:   0 4px 16px 0 rgba(0, 0, 0, 0.14);
  --shadow-header:       0 2px 4px 0 rgba(0, 0, 0, 0.16);
  --shadow-dropdown:     0 4px 16px 0 rgba(0, 0, 0, 0.16);

  /* Layout */
  --max-width:           1280px;
  --header-height:       64px;
  --category-nav-height: 56px;
  --content-gutter:      16px;

  /* Product image container */
  --product-img-height:  200px;
}


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

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

body {
  font-family: var(--font-family);
  font-size: var(--text-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}


/* =============================================================
   3. TYPOGRAPHY
   ============================================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
}

h2 { font-size: var(--text-heading-lg); }
h3 { font-size: var(--text-heading-md); }

p {
  font-size: var(--text-body);
  color: var(--color-text-primary);
  line-height: 1.6;
}


/* =============================================================
   4. LAYOUT UTILITIES
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-gutter);
  padding-right: var(--content-gutter);
}

/* White card section */
.section {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-8);
  padding: var(--space-16) var(--space-16) var(--space-24);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-16);
  border-bottom: var(--border-default);
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: var(--text-heading-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.section-title-badge {
  font-size: var(--text-caption);
  font-weight: 500;
  background-color: var(--color-action);
  color: #fff;
  padding: 2px var(--space-8);
  border-radius: var(--radius-sm);
  vertical-align: middle;
}

.section-view-all {
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--color-primary);
  white-space: nowrap;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s;
}

.section-view-all:hover {
  background-color: var(--color-hover);
}


/* =============================================================
   5. HEADER
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--color-primary);
  box-shadow: var(--shadow-header);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

/* Logo */
.header-logo { flex-shrink: 0; }

.logo-link {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  padding: var(--space-4) 0;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.logo-accent { color: var(--color-yellow); }

.logo-tagline {
  font-size: 10px;
  font-style: italic;
  color: var(--color-yellow);
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Search */
.header-search {
  flex: 1;
  min-width: 0;
  max-width: 580px;
}

.search-form {
  display: flex;
  align-items: stretch;
  background-color: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0 var(--space-16);
  font-size: var(--text-body);
  color: var(--color-text-primary);
  background: transparent;
}

.search-input::placeholder {
  color: var(--color-text-muted);
  font-size: 13px;
}

.search-btn {
  width: 52px;
  flex-shrink: 0;
  background-color: var(--color-yellow);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.search-btn:hover {
  background-color: #f5d400;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.header-action-item {
  display: flex;
  align-items: center;
}

.header-link {
  color: #fff;
  font-size: var(--text-body);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s;
  white-space: nowrap;
}

.header-link:hover {
  background-color: rgba(255,255,255,0.14);
}

/* Login button */
.btn-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: var(--color-primary);
  padding: 0 var(--space-24);
  border-radius: var(--radius-sm);
  line-height: 1.25;
  height: 38px;
  white-space: nowrap;
  font-weight: 700;
  transition: background-color 0.15s;
}

.btn-login:hover { background-color: #f5f5f5; }

.btn-login-text {
  font-size: 13px;
  font-weight: 700;
}

.btn-login-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Cart link */
.header-cart-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: #fff;
  font-size: var(--text-body);
  font-weight: 500;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-sm);
  position: relative;
  transition: background-color 0.15s;
}

.header-cart-link:hover {
  background-color: rgba(255,255,255,0.14);
}

.cart-label { margin-left: 2px; }

.cart-count {
  position: absolute;
  top: 2px;
  right: 4px;
  background-color: var(--color-action);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.cart-count:empty { display: none; }


/* =============================================================
   6. CATEGORY NAV
   ============================================================= */
.category-nav {
  background-color: var(--color-bg);
  border-bottom: var(--border-default);
  height: var(--category-nav-height);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  position: sticky;
  top: var(--header-height);
  z-index: 900;
}

.category-nav .container { height: 100%; }

.category-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
}

.category-list::-webkit-scrollbar { display: none; }

.category-item { flex-shrink: 0; }

.category-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-16);
  height: var(--category-nav-height);
  color: var(--color-text-primary);
  gap: var(--space-4);
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.category-link:hover,
.category-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.category-label {
  font-size: 11px;
  font-weight: 500;
}


/* =============================================================
   7. HERO CAROUSEL
   ============================================================= */
.hero-section {
  padding: 0;
  background: transparent;
  margin-bottom: var(--space-8);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: #1a1a2e;
  /* Reserve space while images load */
  min-height: 240px;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

/* Image-based slide */
.carousel-slide-img-wrap {
  width: 100%;
  /* Fixed height; image fills it proportionally */
  height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a2e;
}

.carousel-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Arrow buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.92);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-dropdown);
  color: var(--color-text-primary);
  z-index: 10;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.carousel-btn:hover {
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.carousel-btn-prev { left: var(--space-12); }
.carousel-btn-next { right: var(--space-12); }

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: var(--space-12);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-8);
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-round);
  background-color: rgba(255,255,255,0.55);
  transition: background-color 0.2s, width 0.2s;
  padding: 0;
  border: none;
}

.carousel-dot.active {
  background-color: #fff;
  width: 24px;
  border-radius: var(--radius-sm);
}


/* =============================================================
   8. SECTION SHARED STYLES
   ============================================================= */

/* Shared product image style – object-fit: contain, no distortion */
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.2s ease;
}

.product-card:hover .product-img,
.deal-card:hover .product-img {
  transform: scale(1.04);
}


/* =============================================================
   9. PRODUCT CARDS
   ============================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-card {
  background-color: var(--color-bg);
  border-right: var(--border-default);
  border-bottom: var(--border-default);
  transition: box-shadow 0.2s, z-index 0s;
  position: relative;
}

.product-card:nth-child(5n) { border-right: none; }
.product-card:nth-last-child(-n+5) { border-bottom: none; }

.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  z-index: 2;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  padding: var(--space-12);
  color: var(--color-text-primary);
  height: 100%;
  gap: var(--space-8);
}

/* Consistent image container */
.product-image-wrapper {
  width: 100%;
  height: var(--product-img-height);
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.product-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 36px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.rating-badge {
  background-color: var(--color-success);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.rating-count {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.product-pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.product-mrp {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
}

.product-discount {
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--color-action);
}


/* =============================================================
   10. BRAND SECTION
   ============================================================= */
.brand-section { padding-bottom: var(--space-24); }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-16);
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-16) var(--space-12);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  background-color: var(--color-bg);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.brand-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

/* Fixed-size logo container – keeps all logos same size */
.brand-logo-wrap {
  width: 100px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}


/* =============================================================
   11. DEALS & OFFERS
   ============================================================= */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-16);
}

.deal-card {
  border: var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-bg);
  transition: box-shadow 0.2s;
}

.deal-card:hover { box-shadow: var(--shadow-card-hover); }

.deal-card-link {
  display: flex;
  flex-direction: column;
  padding: var(--space-12);
  color: var(--color-text-primary);
  gap: var(--space-8);
  height: 100%;
}

.deal-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-action);
  color: #fff;
  font-size: var(--text-caption);
  font-weight: 700;
  padding: 3px var(--space-8);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  align-self: flex-start;
}

.deal-image-wrapper {
  width: 100%;
  height: 180px;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.deal-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 36px;
}

.deal-pricing {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
}

.deal-discount-large {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-action);
}


/* =============================================================
   12. PROMOTIONAL BANNERS
   ============================================================= */
.promo-banners-section {
  padding: 0;
  background: transparent;
  margin-bottom: var(--space-8);
}

.promo-banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.promo-banner {
  display: flex;
  align-items: center;
  border-radius: var(--radius-md);
  padding: var(--space-24) var(--space-24);
  min-height: 130px;
  transition: opacity 0.15s, transform 0.15s;
  overflow: hidden;
}

.promo-banner:hover {
  opacity: 0.93;
  transform: translateY(-2px);
}

.promo-banner-primary   { background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%); }
.promo-banner-secondary { background: linear-gradient(135deg, #6a1b9a 0%, #8e24aa 100%); }
.promo-banner-tertiary  { background: linear-gradient(135deg, #bf360c 0%, #e64a19 100%); }

.promo-banner-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.promo-eyebrow {
  font-size: var(--text-body-sm);
  color: rgba(255,255,255,0.80);
  font-weight: 500;
}

.promo-heading {
  font-size: var(--text-heading-lg);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.promo-sub {
  font-size: var(--text-body-sm);
  color: rgba(255,255,255,0.72);
}


/* =============================================================
   13. PRODUCT CATEGORIES GRID
   ============================================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-12);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  text-align: center;
  color: var(--color-text-primary);
  padding: var(--space-16) var(--space-8);
  border-radius: var(--radius-lg);
  border: var(--border-default);
  background-color: var(--color-bg);
  transition: box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

/* Icon container with coloured background */
.category-card-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-electronics  { background-color: #e3f2fd; }
.category-fashion      { background-color: #fce4ec; }
.category-home         { background-color: #fff8e1; }
.category-appliances   { background-color: #e8f5e9; }
.category-grocery      { background-color: #f3e5f5; }
.category-toys         { background-color: #e0f7fa; }

.category-card-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
}


/* =============================================================
   14. CART SECTION
   ============================================================= */
.cart-section { padding: var(--space-24); }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-48) var(--space-16);
  text-align: center;
}

.cart-empty-text {
  font-size: var(--text-heading-md);
  color: var(--color-text-muted);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}


/* =============================================================
   15. ABOUT SECTION
   ============================================================= */
.about-section { padding: var(--space-32) var(--space-16); }

.about-inner { max-width: 860px; }

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
}

.about-text {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.about-stats {
  display: flex;
  gap: var(--space-32);
  flex-wrap: wrap;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stat-number {
  font-size: var(--text-display);
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
}


/* =============================================================
   16. FOOTER
   ============================================================= */
.site-footer {
  background-color: #172337;
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-8);
}

.footer-top {
  padding: var(--space-32) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-24);
}

.footer-col-heading {
  font-size: var(--text-body-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-12);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-link {
  font-size: var(--text-body-sm);
  color: rgba(255,255,255,0.68);
  transition: color 0.15s;
}

.footer-link:hover { color: #fff; }

.footer-bottom { padding: var(--space-16) 0; }

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.footer-logo-text {
  font-size: var(--text-heading-md);
  font-weight: 700;
  color: #fff;
}

.footer-logo-accent { color: var(--color-yellow); }

.footer-copy {
  font-size: var(--text-body-sm);
  color: rgba(255,255,255,0.5);
}

.footer-registered {
  font-size: var(--text-caption);
  color: rgba(255,255,255,0.32);
}


/* =============================================================
   17. BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 var(--space-24);
  border-radius: var(--radius-sm);
  font-size: var(--text-body);
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.90;
  box-shadow: var(--shadow-card);
}

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

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


/* =============================================================
   18. RESPONSIVE – LAPTOP (≤1024px)
   ============================================================= */
@media (max-width: 1024px) {
  :root {
    --product-img-height: 180px;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Reset nth-child borders for 4-col */
  .product-card:nth-child(5n) { border-right: var(--border-default); }
  .product-card:nth-child(4n) { border-right: none; }

  .brand-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .deals-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .header-action-text { display: none; }

  .carousel-slide-img-wrap { height: 300px; }
}


/* =============================================================
   19. RESPONSIVE – TABLET (≤768px)
   ============================================================= */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
    --category-nav-height: 52px;
    --product-img-height: 160px;
  }

  .header-inner { gap: var(--space-8); }

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

  .product-card:nth-child(4n) { border-right: var(--border-default); }
  .product-card:nth-child(3n) { border-right: none; }

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

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

  .promo-banners-grid {
    grid-template-columns: 1fr;
  }

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

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

  .about-stats { gap: var(--space-24); }

  .carousel-slide-img-wrap { height: 240px; }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}


/* =============================================================
   20. RESPONSIVE – MOBILE (≤480px)
   ============================================================= */
@media (max-width: 480px) {
  :root {
    --product-img-height: 140px;
    --content-gutter: 10px;
  }

  .logo-tagline { display: none; }

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

  .product-card:nth-child(3n) { border-right: var(--border-default); }
  .product-card:nth-child(2n) { border-right: none; }

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

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

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

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

  .carousel-slide-img-wrap { height: 190px; }

  .category-link { padding: 0 var(--space-8); }
}


/* =============================================================
   21. RESPONSIVE – SMALL MOBILE (≤375px)
   ============================================================= */
@media (max-width: 375px) {
  :root {
    --product-img-height: 120px;
    --content-gutter: 8px;
  }

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

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

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

  .header-inner { gap: var(--space-4); }

  .carousel-slide-img-wrap { height: 160px; }
}
