/* ============================================================
   HALI SANATI — MODERN & AKIŞKAN STİL DOSYASI (CSS)
   ============================================================ */

/* ── 1. CORE DESIGN SYSTEM & VARIABLES ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: hsl(355, 80%, 45%);       /* Canlı Crimson Kırmızı */
  --primary-hover: hsl(355, 85%, 38%);
  --primary-light: hsl(355, 100%, 96%); /* Çok açık kırmızı arka plan */
  --primary-dark: hsl(355, 50%, 15%);  /* Derin bordo/siyah tonu */
  --text: hsl(0, 5%, 15%);
  --text-muted: hsl(0, 5%, 45%);
  --bg: hsl(0, 0%, 100%);
  --bg-alt: hsl(0, 5%, 98%);
  --border: hsl(0, 5%, 90%);
  --white: #ffffff;
  --dark: #121212;
  --success: #2e7d32;
  
  --font: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow: 0 10px 40px -15px rgba(211, 47, 47, 0.08);
  --shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.85);
  --glass-dark: rgba(18, 18, 18, 0.85);
  --container: 1280px;
}

/* ── 2. GENERAL RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

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

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

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

ul {
  list-style: none;
}

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

/* ── 3. HEADER & NAVBAR ── */
.top-bar {
  background-color: var(--primary-dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.top-bar-inner a {
  opacity: 0.8;
  letter-spacing: 0.5px;
}

.top-bar-inner a:hover {
  opacity: 1;
  color: var(--primary-light);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 6px 0;
  box-shadow: var(--shadow);
  background-color: rgba(255, 255, 255, 0.95);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  transition: var(--transition-smooth);
}

.navbar.scrolled .navbar-inner {
  height: 64px;
}

/* Logo */
.navbar-logo img {
  height: 50px;
  width: auto;
  transition: var(--transition-smooth);
}

.navbar.scrolled .navbar-logo img {
  height: 40px;
}

/* Desktop Nav */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.3px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: var(--transition-fast);
}

.nav-dropdown:hover .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 12px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  background-color: transparent;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background-color: var(--bg-alt);
  color: var(--primary);
}

.btn-icon svg {
  width: 22px;
  height: 22px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 30px;
  justify-content: center;
  padding: 0;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Search Bar (Slide Open) */
.search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px 0;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.search-bar.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.search-bar-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  position: relative;
}

.search-bar-inner input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  background-color: var(--bg-alt);
}

.search-bar-inner input:focus {
  border-color: var(--primary);
  background-color: var(--white);
}

.search-results {
  max-width: 600px;
  margin: 12px auto 0 auto;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--primary-light);
}

.search-result-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.search-result-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.search-result-num {
  font-size: 12px;
  color: var(--text-muted);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: var(--white);
  z-index: 99;
  padding: 24px;
  transform: translateX(100%);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

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

.mobile-link {
  display: block;
  font-size: 20px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-accordion-btn {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-accordion-btn svg {
  width: 20px;
  height: 20px;
  transition: var(--transition-fast);
}

.mobile-accordion-btn.open svg {
  transform: rotate(180deg);
}

.mobile-accordion-menu {
  display: none;
  padding-left: 16px;
  background-color: var(--bg-alt);
  border-radius: var(--radius-md);
  margin-top: 8px;
}

.mobile-accordion-menu.open {
  display: block;
}

.mobile-sub-link {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-sub-link:last-child {
  border-bottom: none;
}

/* ── 4. HERO SECTION ── */
/* ── 4. HERO SECTION ── */
.hero {
  position: relative;
  height: 80vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  background-color: var(--dark);
}

.hero-slider-container {
  padding: 0;
  display: block;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  z-index: 1;
  transform: scale(1.04);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 2;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 24px;
}

/* Slider transition-based text animations */
.hero-slide .hero-eyebrow,
.hero-slide .hero-title,
.hero-slide .hero-sub,
.hero-slide .hero-cta {
  opacity: 0;
  transform: translateY(24px);
  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);
}

.hero-slide.active .hero-eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.hero-slide.active .hero-sub {
  opacity: 0.9;
  transform: translateY(0);
  transition-delay: 0.7s;
}

.hero-slide.active .hero-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}

.hero-sub {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Slider Controls */
.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
}

.hero-slider-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.hero-slider-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.4);
}

.hero-slider-btn.prev {
  left: 32px;
}
.hero-slider-btn.next {
  right: 32px;
}

.hero-slider-btn.prev:hover svg {
  transform: translateX(-2px);
}
.hero-slider-btn.next:hover svg {
  transform: translateX(2px);
}

.hero-slider-dots {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.hero-dot:hover {
  background-color: rgba(255, 255, 255, 0.55);
}

.hero-dot.active {
  background-color: var(--primary);
  width: 30px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(211, 47, 47, 0.6);
}

@media (max-width: 768px) {
  .hero-slider-btn {
    display: none;
  }
  .hero {
    height: 70vh;
    min-height: 480px;
  }
  .hero-slider-dots {
    bottom: 25px;
  }
  .hero-dot {
    width: 10px;
    height: 10px;
  }
  .hero-dot.active {
    width: 24px;
  }
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 10px 20px -5px rgba(211, 47, 47, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -5px rgba(211, 47, 47, 0.5);
}

.btn-ghost {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

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

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--primary);
  animation: scrollDown 2s infinite ease-in-out;
}

/* ── 5. MINI FEATURES ── */
.mini-features {
  padding: 60px 0;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px -15px rgba(211, 47, 47, 0.12);
  border-color: rgba(211, 47, 47, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-icon path, .feature-icon rect {
  stroke: var(--primary) !important;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── 6. COLLECTIONS / CATEGORIES SECTIONS ── */
.categories-section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-link {
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
  border-bottom: 1px solid transparent;
}

.section-link:hover {
  border-bottom-color: var(--primary);
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.category-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.category-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

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

.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(18, 18, 18, 0.9) 0%, rgba(0,0,0,0.2) 65%, rgba(0,0,0,0) 100%);
}

.category-info {
  position: relative;
  z-index: 3;
}

.category-name {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.category-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  display: inline-block;
  color: var(--primary-light);
  border-bottom: 1.5px solid var(--primary-light);
  padding-bottom: 4px;
  transition: var(--transition-fast);
}

.category-card:hover .category-cta {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── 7. SLIDERS & PRODUCT CARDS ── */
.featured-section {
  padding: 80px 0;
}

.featured-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.slider-wrapper {
  position: relative;
  margin: 0 -12px;
}

.products-slider {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  scroll-snap-type: x mandatory;
  padding: 12px;
  scrollbar-width: none; /* Firefox */
}

.products-slider::-webkit-scrollbar {
  display: none; /* Safari & Chrome */
}

/* Product Card */
.product-card {
  min-width: 280px;
  width: 280px;
  scroll-snap-align: start;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 45px -10px rgba(211, 47, 47, 0.1);
  border-color: rgba(211, 47, 47, 0.15);
}

.product-img-wrap {
  position: relative;
  padding-top: 100%; /* Square ratio */
  overflow: hidden;
  background-color: var(--bg-alt);
}

.product-img-primary, .product-img-secondary {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.product-img-secondary {
  opacity: 0;
}

.product-card:hover .product-img-secondary {
  opacity: 1;
}

.product-card:hover .product-img-primary {
  transform: scale(1.05);
}

.product-card:hover .product-img-secondary {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary);
  color: var(--white);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-num {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-fast);
}

.slider-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.slider-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.slider-prev {
  left: -24px;
}

.slider-next {
  right: -24px;
}

/* ── 8. LISTING PAGE WITH FILTERS ── */
.listing-hero {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.listing-hero h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.listing-grid-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 60px 0;
}

/* Filter Sidebar */
.filter-sidebar {
  position: sticky;
  top: 110px;
  height: fit-content;
}

.filter-widget {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.filter-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--primary-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Filter Checkboxes */
.filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.filter-label:hover {
  color: var(--primary);
}

.filter-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--bg-alt);
  transition: var(--transition-fast);
}

.filter-label input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.filter-label input[type="checkbox"]:checked::after {
  content: '\2713';
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

/* Listing controls */
.listing-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.listing-count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.listing-sort select {
  padding: 10px 24px 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.products-grid .product-card {
  width: 100%;
  min-width: 0;
}

.empty-state {
  text-align: center;
  padding: 60px 0;
  grid-column: 1 / -1;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
}

/* Active filter chips */
.active-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-chip {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-chip button {
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}

/* ── 9. PRODUCT DETAIL PAGE ── */
.detail-section {
  padding: 60px 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}

/* Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-main {
  background-color: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  padding-top: 100%; /* Square */
}

.gallery-main img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background-color: var(--bg-alt);
}

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

.gallery-thumb.active {
  border-color: var(--primary);
}

/* Detail Info */
.product-detail-info {
  display: flex;
  flex-direction: column;
}

.detail-eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.detail-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.detail-num {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}

.detail-divider {
  height: 1px;
  background-color: var(--border);
  margin: 24px 0;
}

.detail-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.detail-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text);
}

/* Sizes selector */
.sizes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.size-btn {
  padding: 12px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.size-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.size-btn.active {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2);
}

/* WhatsApp Order Button */
.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover:not(:disabled) {
  background-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -5px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:disabled {
  background-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-whatsapp svg {
  width: 24px;
  height: 24px;
}

.product-meta-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-item {
  display: flex;
  font-size: 14px;
}

.spec-name {
  width: 120px;
  color: var(--text-muted);
  font-weight: 500;
}

.spec-value {
  color: var(--text);
  font-weight: 600;
}

/* ── 10. INFORMATION / POLICY PAGES ── */
.info-section {
  padding: 80px 0;
}

.info-content-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.info-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
  text-align: center;
}

.info-text-block h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
}

.info-text-block p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.info-text-block ul {
  padding-left: 20px;
  margin-bottom: 24px;
  list-style-type: disc;
}

.info-text-block li {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 8px;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.contact-info-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 14px;
}

.contact-form-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg-alt);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  background-color: var(--white);
}

.btn-form-submit {
  background-color: var(--primary);
  color: var(--white);
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-form-submit:hover {
  background-color: var(--primary-hover);
}

/* ── 11. FOOTER ── */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo {
  height: 50px;
  width: auto;
  align-self: flex-start;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--white);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  color: var(--white);
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.payment-icons {
  display: flex;
  gap: 8px;
}

.payment-badge {
  background-color: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}

/* ── 12. WHATSAPP FLOAT & MODAL POPUP ── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #128c7e;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.popup-overlay.open {
  opacity: 1;
  visibility: visible;
}

.popup-modal {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  min-height: 400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.popup-overlay.open .popup-modal {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-fast);
}

.popup-close:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.popup-close svg {
  width: 18px;
  height: 18px;
}

.popup-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
}

.popup-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.popup-title em {
  font-style: normal;
  color: var(--primary);
}

.popup-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-whatsapp-popup {
  background-color: #25d366;
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-popup:hover {
  background-color: #128c7e;
}

.btn-whatsapp-popup svg {
  width: 20px;
  height: 20px;
}

.popup-subtext {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.popup-subtext svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.popup-image-side {
  background-image: url('assets/images/hero_bg.png');
  background-size: cover;
  background-position: center;
}

/* ── 13. ADMIN & LOGIN DASHBOARD ── */
.login-body {
  background-color: var(--bg-alt);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  height: 50px;
  margin: 0 auto 32px auto;
  display: block;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.alert-danger {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* Admin layout */
.admin-navbar {
  background-color: var(--dark);
  color: var(--white);
  padding: 16px 0;
  border-bottom: 2px solid var(--primary);
}

.admin-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-nav-logo {
  height: 40px;
  filter: brightness(0) invert(1);
}

.btn-admin-logout {
  background-color: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-admin-logout:hover {
  background-color: var(--primary-hover);
}

.admin-container {
  padding: 48px 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.admin-tab-btn {
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  color: var(--text-muted);
}

.admin-tab-btn.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* Grid boxes */
.admin-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.admin-box {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow);
}

.admin-box-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border);
}

/* Admin settings form */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin table */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-weight: 700;
  background-color: var(--bg-alt);
  font-size: 14px;
}

.admin-table td {
  font-size: 14px;
}

.admin-table tr:hover {
  background-color: var(--bg-alt);
}

.table-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.badge-featured {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.btn-action-edit {
  color: #1976d2;
  font-weight: 600;
  margin-right: 12px;
  cursor: pointer;
}

.btn-action-delete {
  color: #c62828;
  font-weight: 600;
  cursor: pointer;
}

/* Log list */
.log-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.log-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.log-date {
  color: var(--text-muted);
}

/* ── 14. ANIMATIONS ── */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollDown {
  0% {
    transform: translateY(-100%);
  }
  50% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-100%);
  }
}

/* ── 15. RESPONSIVE DESIGN ── */
@media (max-width: 1024px) {
  .navbar-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (max-width: 768px) {
  .listing-grid-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .popup-modal {
    grid-template-columns: 1fr;
  }
  .popup-image-side {
    display: none;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .navbar-inner {
    padding: 0 16px;
  }
  .top-bar-links {
    display: none;
  }
  .top-bar-inner {
    justify-content: center;
  }
}

/* ── 16. E-COMMERCE CART & CHECKOUT STYLES ── */
.btn-cart {
  background-color: var(--primary);
  color: var(--white);
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 20px -5px rgba(211, 47, 47, 0.4);
}
.btn-cart:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -5px rgba(211, 47, 47, 0.5);
}
.btn-cart:disabled {
  background-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 992px) {
  #cartPageLayout, #checkoutPageLayout {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
}

/* ── 17. CUSTOM MESSAGEBOX NOTIFICATION ── */
.message-box {
  background-color: var(--white);
  border-left: 5px solid var(--primary);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  border-radius: var(--radius-sm);
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.3s forwards ease;
  transition: all 0.4s ease;
  pointer-events: auto;
}
.message-success {
  border-left-color: #2e7d32;
  background-color: #e8f5e9;
  color: #2e7d32;
}
.message-error {
  border-left-color: #c62828;
  background-color: #ffebee;
  color: #c62828;
}
.message-warning {
  border-left-color: #f57c00;
  background-color: #fff3e0;
  color: #f57c00;
}
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 17. MOBILE-FIRST RESPONSIVE OPTIMIZATIONS ── */

/* Deal Section Mobile-First Styles */
.deal-section {
  padding: 40px 0;
  background-color: var(--primary-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.deal-grid {
  display: flex;
  flex-direction: column-reverse; /* Put the image on top of the stack on mobile */
  gap: 28px;
}

.deal-content {
  display: flex;
  flex-direction: column;
}

.deal-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  height: 260px;
  width: 100%;
}

.deal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.deal-countdown {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.deal-countdown-box {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  flex: 1;
  min-width: 55px;
  box-shadow: var(--shadow);
}

.deal-countdown-box span.num {
  font-size: 18px;
  font-weight: 800;
  display: block;
  color: var(--primary);
}

.deal-countdown-box span.label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Add to Cart Desktop styles */
.btn-cart-wrapper {
  margin-top: 24px;
}

.mobile-price-info {
  display: none;
}

/* Responsive Overrides (Mobile-First refinement) */
@media (max-width: 768px) {
  /* Sticky Cart Bar on Mobile */
  .detail-section {
    padding-bottom: 110px !important; /* space for sticky bar */
  }

  .btn-cart-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    z-index: 999;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    animation: slideUpCartBar 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .mobile-price-info {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
  }

  .mobile-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
  }

  .mobile-selected-size {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
  }

  .mobile-selected-size.selected {
    color: var(--text);
  }

  .btn-cart-wrapper .btn-cart {
    flex-grow: 1;
    width: auto;
    padding: 14px 20px;
    font-size: 15px;
  }

  /* Two Column Product Grid on Mobile for cleaner browsing */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .products-grid .product-card .product-name {
    font-size: 13px !important;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  .products-grid .product-card .product-img-wrap {
    height: 160px !important;
  }
  
  .products-grid .product-card .product-price {
    font-size: 14px !important;
  }

  .products-grid .product-card .product-old-price {
    font-size: 11px !important;
  }

  .products-grid .product-card .btn-primary {
    font-size: 11px !important;
    padding: 8px !important;
  }

  /* Compact padding in section headers for mobile */
  .section-header {
    margin-bottom: 20px !important;
  }

  .section-title {
    font-size: clamp(20px, 5vw, 24px) !important;
  }
}

@keyframes slideUpCartBar {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Desktop Styles for Deal Section */
@media (min-width: 992px) {
  .deal-section {
    padding: 60px 0;
  }
  .deal-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
  }
  .deal-image-wrap {
    height: 400px;
  }
  .deal-badge {
    top: 20px;
    right: 20px;
    font-size: 12px;
    padding: 8px 16px;
  }
  .deal-countdown-box {
    padding: 10px 16px;
    min-width: 65px;
  }
  .deal-countdown-box span.num {
    font-size: 20px;
  }
  .deal-countdown-box span.label {
    font-size: 10px;
  }
}

/* ── 18. TOP BAR ANNOUNCEMENT SLIDER STYLES ── */
.top-bar-announcements {
  position: relative;
  overflow: hidden;
  height: 20px;
  flex-grow: 1;
  max-width: 550px;
  display: flex;
  align-items: center;
}

.top-bar-announcements .announcement-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.top-bar-announcements .announcement-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, visibility 0.5s;
  visibility: hidden;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-announcements .announcement-slide.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.top-bar-links {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}
