/* ============= ShopNest Premium Stylesheet (styles.css) ============= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300..800&display=swap');

:root {
  /* WorldFoodCart Logo theme: Navy Blue & Fresh Green */
  --primary: #0d558a;
  /* Navy Blue */
  --primary-light: #166ba8;
  /* Lighter Navy Blue */
  --accent: #4ba347;
  /* Fresh Green */
  --accent-hover: #3d8c39;
  /* Darker Green */
  --accent2: #f29c12;
  /* Amber Orange */
  --gold: #f29c12;
  /* Amber Orange */
  --bg: #faf9f6;
  /* Warm Cream White */
  --surface: #ffffff;
  /* Pure white */
  --surface-hover: #f5f4f0;
  /* Soft cream surface hover */
  --text: #0b253a;
  /* Dark Navy Text */
  --text-muted: #5a6e7c;
  /* Slate/Navy Muted Text */
  --border: #e2e8f0;
  /* Light border */
  --success: #4ba347;
  /* Fresh Green */
  --warning: #f29c12;
  /* Amber Orange */
  --danger: #d90429;
  /* Cherry red */
  --info: #0d558a;
  /* Navy Blue */
  --sidebar-w: 260px;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(13, 85, 138, 0.04);
  --shadow: 0 8px 30px rgba(13, 85, 138, 0.06);
  --shadow-hover: 0 16px 40px rgba(13, 85, 138, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Open Sans', sans-serif;
  background: radial-gradient(at 0% 0%, rgba(75, 163, 71, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(13, 85, 138, 0.05) 0px, transparent 50%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
  font-family: 'Open Sans', sans-serif;
}

/* =========== CORE COMPONENT UTILITIES =========== */

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* Button systems */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(75, 163, 71, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(75, 163, 71, 0.4);
}

.btn-secondary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(13, 85, 138, 0.2);
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 85, 138, 0.3);
}

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

.btn-outline:hover {
  background: var(--border);
  border-color: var(--text-muted);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Input design system */
.input-field {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
  background: white;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(75, 163, 71, 0.1);
}

/* ================= STOREFRONT SPECIFIC STYLES ================= */

#store-page {
  animation: fadeIn 0.4s ease;
}

/* Navigation bar */
.store-nav {
  background: #ffffff;
  backdrop-filter: blur(10px);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  cursor: pointer;
}

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

.nav-links {
  display: flex;
  gap: 25.2px;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: clamp(10.8px, 0.8vw + 8px, 11.59px);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Nav Dropdown Submenu */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  margin-left: 2px;
}

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

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(8px);
  min-width: 220px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(13, 85, 138, 0.12), 0 4px 12px rgba(13, 85, 138, 0.06);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 200;
}

.nav-dropdown:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: clamp(10.08px, 0.7vw + 7.5px, 10.76px);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.nav-submenu a::after {
  display: none;
}

.nav-submenu a i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.nav-submenu a:hover {
  background: rgba(75, 163, 71, 0.06);
  color: var(--accent);
  padding-left: 24px;
}

.nav-submenu a:hover i {
  transform: scale(1.15);
}

.nav-submenu-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 16px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14.4px;
}

.nav-search {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 18px;
  color: var(--text);
  font-family: inherit;
  font-size: clamp(10.08px, 0.8vw + 8px, 11.59px);
  width: 220px;
  transition: var(--transition);
}

.nav-search::placeholder {
  color: var(--text-muted);
}

.nav-search:focus {
  outline: none;
  background: white;
  width: 280px;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 92, 0, 0.05);
}

.cart-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 8px 20px;
  font-family: inherit;
  font-size: clamp(9.94px, 0.8vw + 8px, 11.59px);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(230, 92, 0, 0.2);
}

.cart-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cart-badge {
  background: var(--accent2);
  color: var(--primary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.admin-link-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 30px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: clamp(9.36px, 0.7vw + 7.5px, 10.76px);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.admin-link-btn:hover {
  background: var(--surface-hover);
  color: var(--primary);
  border-color: var(--text-muted);
}

.request-product-btn {
  font-size: clamp(9.94px, 0.9vw + 8.5px, 12.88px) !important;
  padding: 8px 16px !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #08283d 100%);
  padding: 100px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 163, 71, 0.25) 0%, rgba(75, 163, 71, 0.1) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: heroRippleOut 6s ease-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 163, 71, 0.18) 0%, rgba(75, 163, 71, 0.06) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: heroRippleOut 6s 3s ease-out infinite;
}

@keyframes heroRippleOut {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
  }

  60% {
    opacity: 0.4;
  }

  100% {
    width: 180vmax;
    height: 180vmax;
    opacity: 0;
  }
}

.hero-text {
  max-width: 580px;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  background: rgba(230, 57, 70, 0.15);
  color: var(--accent);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero h1 {
  color: white;
  font-size: 58px;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--accent2);
}

.hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 50px;
}

.stat-num {
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
}

.stat-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-visual {
  display: flex;
  gap: 24px;
  align-items: center;
  z-index: 2;
  animation: fadeIn 1s ease 0.2s both;
}

/* Hero Slider Container */
.hero-slider-container {
  width: 480px;
  height: 380px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: flex-end;
  transform-style: preserve-3d;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transform: translateZ(-20px) scale(1.1);
  /* Layered behind in 3D */
}

/* Slide Overlay Card */
.slide-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(11, 37, 58, 0.9) 0%, rgba(11, 37, 58, 0.4) 60%, transparent 100%);
  width: 100%;
  padding: 40px 30px 30px;
  color: rgb(255, 255, 255);
  transform-style: preserve-3d;
  transform: translateZ(30px);
  /* Lifted off the image card */
}

.slide-overlay .slide-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent2);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.slide-overlay h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 26px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

/* Navigation Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 85, 138, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(13, 85, 138, 0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 3;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.slider-arrow.prev {
  left: 16px;
}

.slider-arrow.next {
  right: 16px;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  right: 30px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(13, 85, 138, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--accent2);
  width: 24px;
  border-radius: 4px;
}

/* Sections styling */
.section {
  padding: 80px 40px;
}

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

.section-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
}

.section-title span {
  color: var(--accent);
}

.view-all {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  padding-bottom: 2px;
}

.view-all:hover {
  border-color: var(--accent);
  padding-right: 4px;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.cat-icon {
  font-size: 42px;
  margin-bottom: 14px;
}

.cat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.cat-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(13, 27, 42, 0.05);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  color: white;
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-badge.new {
  background: var(--success);
}

.product-badge.hot {
  background: var(--accent);
}

.product-badge.ws {
  background: var(--info);
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  transition: var(--transition);
}

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

.product-body {
  padding: 20px;
  position: relative;
  background: white;
  z-index: 2;
}

.product-category {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
  height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
  height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.stars {
  color: var(--gold);
  font-size: 14px;
}

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

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.price {
  font-family: 'Open Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.price-old {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-save {
  font-size: 12px;
  color: var(--success);
  font-weight: 700;
}

.ws-price {
  font-size: 12px;
  background: rgba(0, 119, 182, 0.08);
  color: var(--info);
  border: 1px solid rgba(0, 119, 182, 0.15);
  border-radius: 6px;
  padding: 4px 10px;
  font-weight: 700;
  display: inline-block;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.btn-cart {
  flex: 1;
  background: var(--primary);
  color: white;
}

.btn-cart.added {
  background: var(--success);
}

.btn-buy {
  flex: 1;
  background: var(--accent);
  color: white;
}

.btn-ws {
  width: 100%;
  background: transparent;
  color: var(--info);
  border: 1.5px solid rgba(0, 119, 182, 0.3);
  margin-top: 10px;
  font-size: 12px;
  padding: 8px;
}

.btn-ws:hover {
  background: rgba(0, 119, 182, 0.05);
  border-color: var(--info);
}

/* ================= CART DRAWER STYLES ================= */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cart-drawer {
  position: fixed;
  right: -450px;
  top: 0;
  bottom: 0;
  width: 450px;
  background: var(--surface);
  z-index: 201;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(13, 27, 42, 0.15);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-size: 24px;
  font-weight: 800;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--text);
  background: var(--border);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.cart-empty .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeInUp 0.3s ease;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary);
}

.cart-item-price {
  font-size: 15px;
  color: var(--accent);
  font-weight: 700;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--border);
}

.qty-num {
  font-size: 14px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.cart-item-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: var(--danger);
  transform: scale(1.1);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.coupon-section {
  margin-bottom: 20px;
}

.coupon-box {
  display: flex;
  gap: 8px;
}

.coupon-info {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

.coupon-success {
  color: var(--success);
}

.coupon-error {
  color: var(--danger);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cart-total-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.cart-total-val {
  font-family: 'Open Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.discount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--success);
  font-size: 14px;
  font-weight: 700;
}

.cart-total-items {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-checkout {
  width: 100%;
  background: var(--success);
  color: white;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(42, 157, 143, 0.3);
}

.btn-checkout:hover {
  background: #238478;
  transform: translateY(-2px);
}

/* ================= PROMO BANNER ================= */
.promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 50px 60px;
  margin: 0 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.banner-text {
  max-width: 60%;
}

.banner-tag {
  color: var(--accent2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.banner-h {
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
}

.banner-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 300;
}

.banner-action-box {
  text-align: right;
}

.banner-code {
  background: rgba(244, 162, 97, 0.15);
  border: 1.5px dashed var(--accent2);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  color: white;
  font-family: monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  display: inline-block;
  margin-bottom: 16px;
}

/* ================= STOREFOOTER ================= */
.store-footer {
  background: var(--primary);
  padding: 80px 40px 40px;
  margin-top: 80px;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 52px;
  object-fit: contain;
  display: block;
}

.footer-logo span {
  display: none;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent2);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.footer-links a:hover {
  color: white;
  padding-left: 4px;
}

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

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

/* ================= TOAST NOTIFICATION ================= */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: white;
  border-radius: 30px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(13, 27, 42, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ================= ADMIN DASHBOARD SPECIFIC STYLES ================= */

#admin-page {
  display: flex;
  min-height: 100vh;
  background: #f4f6f9;
}

.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--primary);
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 25px rgba(13, 27, 42, 0.15);
  z-index: 110;
}

.sidebar-logo {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-logo img {
  height: 38px;
  object-fit: contain;
  align-self: flex-start;
  display: block;
}

.sidebar-logo-sub {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  margin-top: 4px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

.sidebar-nav {
  flex: 1;
  padding: 24px 16px;
  overflow-y: auto;
}

.nav-section-label {
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 16px 12px 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  transition: var(--transition);
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.sidebar-item.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.25);
}

.sidebar-item .si-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.sidebar-item .si-badge {
  margin-left: auto;
  background: var(--accent2);
  color: var(--primary);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  background: var(--accent2);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.user-name {
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.user-role {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  margin-top: 1px;
}

/* Admin Main Layout */
.admin-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: white;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.topbar-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-search {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 14px;
  width: 240px;
  transition: var(--transition);
}

.topbar-search:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.05);
}

.admin-content {
  padding: 40px;
  flex: 1;
}

.admin-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.admin-section.active {
  display: block;
}

/* Metric Widgets */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 35px;
}

.metric-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

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

.metric-card::before {
  content: '';
  position: absolute;
  right: -24px;
  top: -24px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.metric-card.blue::before {
  background: var(--info);
}

.metric-card.green::before {
  background: var(--success);
}

.metric-card.orange::before {
  background: var(--accent2);
}

.metric-card.red::before {
  background: var(--danger);
}

.metric-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.metric-value {
  font-family: 'Open Sans', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
}

.metric-change {
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

.metric-change.up {
  color: var(--success);
}

.metric-change.down {
  color: var(--danger);
}

/* Chart Columns Layout */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 35px;
}

.chart-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.chart-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-container {
  height: 220px;
  background: linear-gradient(180deg, #f8fafc 0%, white 100%);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 20px 20px 30px;
  height: 100%;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(230, 57, 70, 0.4) 100%);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.chart-bar:hover {
  filter: brightness(1.1);
}

.chart-bar .bar-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.chart-bar:hover::after {
  content: attr(data-value);
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}

.donut-chart {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  display: block;
}

.donut-legend {
  list-style: none;
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Administrative Tables */
.table-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 35px;
}

.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.table-filters {
  display: flex;
  gap: 12px;
}

.filter-select {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

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

.data-table th {
  background: #f8fafc;
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--border);
}

.data-table td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.product-cell-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

.product-cell-sku {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: monospace;
}

/* Stock management indicators */
.stock-bar {
  width: 100px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  overflow: hidden;
  margin-left: 8px;
}

.stock-fill {
  height: 100%;
  border-radius: 4px;
}

.stock-fill.high {
  background: var(--success);
}

.stock-fill.med {
  background: var(--warning);
}

.stock-fill.low2 {
  background: var(--danger);
}

/* Badges styling */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.status-badge.active {
  background: rgba(42, 157, 143, 0.15);
  color: #1f7267;
}

.status-badge.low {
  background: rgba(233, 196, 106, 0.15);
  color: #8e6d1e;
}

.status-badge.out {
  background: rgba(230, 57, 70, 0.15);
  color: #b5222c;
}

.status-badge.draft {
  background: rgba(108, 117, 125, 0.15);
  color: #495057;
}

.status-badge.shipped {
  background: rgba(0, 119, 182, 0.15);
  color: #005f91;
}

.status-badge.processing {
  background: rgba(244, 162, 97, 0.15);
  color: #b06223;
}

.status-badge.delivered {
  background: rgba(42, 157, 143, 0.15);
  color: #1f7267;
}

.status-badge.approved {
  background: rgba(42, 157, 143, 0.15);
  color: #1f7267;
}

.status-badge.pending {
  background: rgba(233, 196, 106, 0.15);
  color: #8e6d1e;
}

.status-badge.rejected {
  background: rgba(230, 57, 70, 0.15);
  color: #b5222c;
}

.action-btns {
  display: flex;
  gap: 8px;
}

.act-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.act-btn.edit {
  background: rgba(0, 119, 182, 0.1);
  color: var(--info);
}

.act-btn.edit:hover {
  background: rgba(0, 119, 182, 0.2);
}

.act-btn.del {
  background: rgba(230, 57, 70, 0.1);
  color: var(--danger);
}

.act-btn.del:hover {
  background: rgba(230, 57, 70, 0.2);
}

.act-btn.view {
  background: rgba(42, 157, 143, 0.1);
  color: var(--success);
}

.act-btn.view:hover {
  background: rgba(42, 157, 143, 0.2);
}

/* Settings Screen Components */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.settings-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.settings-card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.settings-card-title .icon {
  font-size: 22px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f8fafc;
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.toggle {
  width: 46px;
  height: 26px;
  background: #cbd5e1;
  border-radius: 30px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.toggle.on {
  background: var(--success);
}

.toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.toggle.on::after {
  left: 23px;
}

/* Page Header component */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.page-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.page-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

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

/* Admin Tabs */
.tab-row {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  background: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
}

.tab {
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.tab.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab:hover:not(.active) {
  color: var(--primary);
}

/* Responsive chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip {
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
}

.chip.all {
  background: var(--primary);
  color: white;
}

.chip.cat {
  background: white;
  color: var(--text-muted);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.chip.cat:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ================= MODAL WINDOW DIALOGS ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal {
  background: white;
  border-radius: var(--radius);
  width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(13, 27, 42, 0.25);
  transform: translateY(30px);
  transition: var(--transition);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.modal-body {
  padding: 24px 30px;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* --- QUICK VIEW STYLES --- */
.quickview-container {
  display: flex;
  gap: 28px;
}

.quickview-gallery {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.gallery-main-container {
  position: relative;
  width: 100%;
  height: 280px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
}

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

.gallery-main-img div.img-icon-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: var(--bg);
  color: var(--text-muted);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.gallery-arrow:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.prev-arrow {
  left: 10px;
}

.next-arrow {
  right: 10px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.gallery-thumb-item {
  width: 62px;
  height: 62px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb-item.active,
.gallery-thumb-item:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

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

.quickview-info {
  flex: 1.2;
  display: flex;
  flex-direction: column;
}

.purchase-mode-card {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  background: white;
  display: block;
}

.purchase-mode-card.active {
  border-color: var(--accent);
  background: rgba(75, 163, 71, 0.04);
}

.purchase-mode-card .card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.purchase-mode-card .card-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.quickview-reviews-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

.quickview-reviews-list {
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}

.review-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

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

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

.review-author {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--primary);
}

.review-date {
  font-size: 11px;
  color: var(--text-muted);
}

.review-comment {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
}

/* Drag and Drop Zone styling */
.drag-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.drag-drop-zone:hover, .drag-drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(75, 163, 71, 0.04);
}

.drag-drop-zone .cloud-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 8px;
}

.drag-drop-zone .zone-text {
  font-size: 13px;
  color: var(--text-muted);
}

.drag-drop-zone .browse-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

.file-preview-box {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  display: none;
}



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

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

/* ================= ADVANCED SEARCH DROPDOWN ================= */
.search-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  width: 350px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  max-height: 380px;
  overflow-y: auto;
  z-index: 200;
  padding: 10px 0;
  animation: fadeInUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-dropdown-header {
  padding: 6px 16px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px dashed transparent;
}

.search-result-item:hover {
  background: var(--surface-hover);
}

.search-result-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-result-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  flex-shrink: 0;
}

/* ================= CONTACT PAGE STYLES ================= */
.contact-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #08283d 100%);
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 85, 138, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-hero h1 {
  color: white;
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 16px;
}

.contact-hero h1 span {
  color: var(--accent2);
}

.contact-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.6;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 50px;
  padding: 80px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-info-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-detail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.contact-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.contact-card-icon {
  background: rgba(75, 163, 71, 0.1);
  color: var(--accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-card-content h4 {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.contact-card-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-card-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-card-content a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.contact-map-container {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.contact-map-mock {
  flex: 1;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Beautiful custom stylized mock vector map graphics */
.contact-map-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(75, 163, 71, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(13, 85, 138, 0.1) 0%, transparent 50%);
  opacity: 0.8;
}

/* Mock map grid lines */
.map-grid-lines {
  position: absolute;
  inset: 0;
  background-size: 30px 30px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
}

/* Mock map roads */
.map-road-1 {
  position: absolute;
  top: 40%;
  left: 0;
  width: 100%;
  height: 16px;
  background: rgba(255, 255, 255, 0.8);
  transform: rotate(-10deg);
}

.map-road-2 {
  position: absolute;
  top: 0;
  left: 55%;
  width: 20px;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  transform: rotate(15deg);
}

.map-pin {
  position: relative;
  z-index: 10;
  width: 45px;
  height: 45px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) translateY(-10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -4px 8px 16px rgba(217, 93, 26, 0.4);
  animation: mapPinFloat 2s ease-in-out infinite;
}

.map-pin::after {
  content: '🏢';
  transform: rotate(45deg);
  font-size: 20px;
  display: block;
}

@keyframes mapPinFloat {

  0%,
  100% {
    transform: rotate(-45deg) translate(-10px, 0);
  }

  50% {
    transform: rotate(-45deg) translate(-10px, -8px);
  }
}

.map-pin-shadow {
  position: absolute;
  z-index: 9;
  width: 14px;
  height: 6px;
  background: rgba(13, 85, 138, 0.25);
  border-radius: 50%;
  top: 62%;
  left: 49%;
  transform: translate(-50%, -50%);
  animation: mapPinShadowScale 2s ease-in-out infinite;
}

@keyframes mapPinShadowScale {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.5;
  }
}

.map-card-label {
  padding: 12px 20px;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-card-label span {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

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

.contact-form-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-form-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.contact-form .form-group {
  margin-bottom: 22px;
}

.contact-form .form-textarea {
  min-height: 140px;
}

.btn-submit-contact {
  width: 100%;
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Custom responsiveness for contact page */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
  }
}

/* ================= ABOUT PAGE STYLES ================= */
.about-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #08283d 100%);
  padding: 100px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Floating decorative icons in Hero */
.floating-icon {
  position: absolute;
  font-size: 24px;
  opacity: 0.2;
  pointer-events: none;
  animation: floatAround 6s ease-in-out infinite alternate;
}

@keyframes floatAround {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(-20px) rotate(15deg);
  }
}

.about-hero h1 {
  color: white;
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 20px;
}

.about-hero h1 span {
  color: var(--accent2);
}

.about-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

/* Our Story split layout */
.story-section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.story-content h2 span {
  color: var(--accent);
}

.story-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.story-visual-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.story-visual-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-visual-container:hover img {
  transform: scale(1.04);
}

/* Milestones Timeline Section */
.timeline-section {
  background: var(--surface-hover);
  padding: 90px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline-header {
  text-align: center;
  margin-bottom: 60px;
}

.timeline-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}

.timeline-header h2 span {
  color: var(--accent);
}

.timeline-header p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 550px;
  margin: 0 auto;
}

.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Vertical track line */
.timeline-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-line-active {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  /* Grows to 100% on scroll */
  background: linear-gradient(to bottom, var(--accent2) 0%, var(--accent) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 40px 0;
  text-align: right;
  opacity: 0;
  /* Animated by GSAP */
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.right-aligned {
  left: 50%;
  padding: 0 0 40px 40px;
  text-align: left;
  transform: translateX(40px);
}

.timeline-item.in-view {
  opacity: 1;
  transform: translateX(0);
}

.timeline-badge {
  position: absolute;
  top: 0;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--border);
  z-index: 10;
  transition: all 0.4s ease;
}

.timeline-item.right-aligned .timeline-badge {
  left: -10px;
  right: auto;
}

.timeline-item.active-node .timeline-badge {
  border-color: var(--accent);
  background: var(--accent2);
  box-shadow: 0 0 0 6px rgba(217, 93, 26, 0.2);
  transform: scale(1.2);
}

.timeline-date {
  font-family: 'Open Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.timeline-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  text-align: left;
  max-width: 440px;
  transition: var(--transition);
}

.timeline-panel:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.timeline-panel h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-panel p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Values Grid Section */
.values-section {
  padding: 90px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.values-title {
  text-align: center;
  margin-bottom: 60px;
}

.values-title h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.values-title h2 span {
  color: var(--accent);
}

.values-title p {
  color: var(--text-muted);
  font-size: 15px;
}

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

.value-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent2);
}

.value-icon {
  background: rgba(244, 162, 97, 0.1);
  color: var(--accent);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.value-card:hover .value-icon {
  transform: rotate(360deg) scale(1.1);
  background: rgba(217, 93, 26, 0.15);
}

.value-card h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Team Grid Section */
.team-section {
  background: #fbf9f6;
  padding: 90px 40px;
  border-top: 1px solid var(--border);
}

.team-header {
  text-align: center;
  margin-bottom: 65px;
}

.team-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.team-header h2 span {
  color: var(--accent);
}

.team-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.team-img-box {
  width: 100%;
  height: 280px;
  background: var(--border);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
}

.team-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-img-box img {
  transform: scale(1.05);
}

.team-info {
  padding: 24px;
  text-align: center;
}

.team-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.team-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.team-socials a {
  color: var(--text-muted);
  font-size: 16px;
  text-decoration: none;
  transition: var(--transition);
}

.team-socials a:hover {
  color: var(--accent);
  transform: scale(1.2);
}

/* Responsive adjustments for About Us */
@media (max-width: 1024px) {
  .story-section {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

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

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

@media (max-width: 768px) {
  .timeline-track {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding: 0 0 30px 45px;
    text-align: left;
    transform: translateX(30px);
  }

  .timeline-item.right-aligned {
    left: 0;
    padding: 0 0 30px 45px;
    transform: translateX(30px);
  }

  .timeline-badge {
    left: 10px !important;
    right: auto !important;
  }

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

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .about-hero h1 {
    font-size: 42px;
  }
}

/* ============= HERO BOBBING FLOATING IMAGES ============= */
.hero-float-wrapper {
  position: absolute;
  z-index: 5;
  pointer-events: auto;
}

.hero-float-wrapper.pos-1 {
  top: 15%;
  left: 3%;
  animation: bobbingFloat 4.2s ease-in-out infinite alternate;
}

.hero-float-wrapper.pos-2 {
  bottom: 22%;
  left: 30%;
  animation: bobbingFloat 4.8s ease-in-out infinite alternate-reverse;
}

.hero-float-wrapper.pos-3 {
  top: 15%;
  right: 32%;
  animation: bobbingFloat 3.9s ease-in-out infinite alternate;
}

.hero-float-wrapper.pos-4 {
  bottom: 15%;
  right: 3%;
  animation: bobbingFloat 4.5s ease-in-out infinite alternate-reverse;
}

@keyframes bobbingFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  100% {
    transform: translateY(-15px) rotate(6deg);
  }
}

.hero-bob-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(13, 85, 138, 0.15);
  background: var(--primary-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.hero-bob-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-bob-img:hover {
  transform: scale(1.35) translateZ(40px);
  /* 3D pop on hover! */
  border-color: var(--accent2);
  box-shadow: 0 16px 36px rgba(13, 85, 138, 0.35);
}

.hero-bob-img:hover img {
  transform: scale(1.1);
}

/* Ensure mobile hides floating hero elements to avoid overcrowding text */
@media (max-width: 1024px) {
  .hero-float-wrapper {
    display: none;
  }
}

/* Hero Background Floating Icons */
.hero-bg-icon {
  position: absolute;
  font-size: 28px;
  color: var(--accent);
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.hero-bg-icon.pos-a {
  animation: driftFloat 8s ease-in-out infinite alternate;
}

.hero-bg-icon.pos-b {
  animation: driftFloat 10s ease-in-out infinite alternate-reverse;
}

.hero-bg-icon.pos-c {
  animation: driftFloat 9s ease-in-out infinite alternate;
}

.hero-bg-icon.pos-d {
  animation: driftFloat 11s ease-in-out infinite alternate-reverse;
}

.hero-bg-icon.pos-e {
  animation: driftFloat 7.5s ease-in-out infinite alternate;
}

.hero-bg-icon.pos-f {
  animation: driftFloat 9.5s ease-in-out infinite alternate-reverse;
}

@keyframes driftFloat {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.9);
  }

  100% {
    transform: translate(-20px, -20px) rotate(20deg) scale(1.15);
  }
}

/* ============= DEFAULT HIDDEN STATE FOR MOBILE TRIGGERS ============= */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  flex-shrink: 0;
}
.mobile-menu-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.admin-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 20px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
#mobile-nav-overlay {
  position: fixed;
  inset: 75px 0 0 0;
  background: rgba(13, 85, 138, 0.4);
  backdrop-filter: blur(2px);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}
#mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#admin-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 85, 138, 0.4);
  backdrop-filter: blur(2px);
  z-index: 109;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}
#admin-sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

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

/* ---------- LARGE TABLETS & SMALL DESKTOPS ---------- */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 48px;
  }
  .about-hero h1 {
    font-size: 48px;
  }
  .hero-slider-container {
    width: 420px;
    height: 340px;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .section {
    padding: 60px 30px;
  }
}

/* ---------- TABLETS & SMALL LAPTOPS ---------- */
@media (max-width: 1024px) {
  /* Show hamburger, hide desktop nav links */
  .mobile-menu-btn {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    width: 280px;
    height: calc(100vh - 65px);
    background: var(--surface);
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 10px 0 40px rgba(13, 85, 138, 0.1);
    border-right: 1px solid var(--border);
    z-index: 99;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
  }
  .nav-links.active {
    display: flex;
    animation: slideInMenu 0.3s ease forwards;
  }
  #mobile-nav-overlay {
    inset: 65px 0 0 0;
  }
  
  @keyframes slideInMenu {
    from {
      transform: translateX(-100%);
    }
    to {
      transform: translateX(0);
    }
  }
  
  .nav-links > a,
  .nav-links .nav-dropdown {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    padding: 16px 24px;
    font-size: clamp(11px, 2.5vw + 8px, 12.42px);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .nav-links a:hover {
    background: var(--surface-hover);
  }
  .nav-links a::after {
    display: none;
  }

  /* Dropdown and submenu accordion adjustments on mobile */
  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    display: flex;
  }
  
  .nav-dropdown-toggle {
    justify-content: flex-start !important;
  }
  .nav-dropdown-toggle .nav-dropdown-arrow {
    margin-left: auto;
  }
  
  .nav-submenu {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    min-width: 100%;
    width: 100%;
    background: rgba(13, 85, 138, 0.03);
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 1;
    display: flex;
    flex-direction: column;
  }
  
  .nav-dropdown.active .nav-submenu {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
  }
  
  .nav-submenu a {
    padding: 12px 24px 12px 40px !important;
    font-size: clamp(10px, 2vw + 8px, 11.59px);
    background: transparent;
  }
  
  .nav-submenu a:hover {
    background: rgba(75, 163, 71, 0.08) !important;
  }
  
  .nav-submenu a:hover i {
    transform: none;
  }
  
  /* Overrides to disable desktop hover styles on mobile viewports */
  .nav-dropdown:hover .nav-submenu {
    opacity: 0;
    visibility: hidden;
    transform: none;
  }
  
  .nav-dropdown.active:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-dropdown.active .nav-dropdown-arrow {
    transform: rotate(180deg);
  }
  
  .nav-dropdown:hover .nav-dropdown-arrow {
    transform: none;
  }
  
  .nav-dropdown.active:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
  }

  /* Store nav adjustments */
  .store-nav {
    padding: 0 16px;
    height: 65px;
  }
  .nav-right {
    gap: 10px;
  }
  .nav-search {
    width: 140px;
    padding: 6px 14px;
    font-size: clamp(9px, 1.8vw + 7px, 10.76px);
  }
  .nav-search:focus {
    width: 160px;
  }

  /* Hero Section - stack vertically */
  .hero {
    flex-direction: column;
    padding: 60px 24px;
    gap: 40px;
    text-align: center;
  }
  .hero-text {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero p {
    font-size: 16px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
  }
  .hero-slider-container {
    width: 100%;
    max-width: 480px;
    height: 320px;
  }

  /* Section padding */
  .section {
    padding: 50px 20px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section-title {
    font-size: 30px;
  }

  /* Category Grid - 3 columns */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .cat-card {
    padding: 20px 14px;
  }
  .cat-icon {
    font-size: 34px;
    margin-bottom: 10px;
  }

  /* Products Grid - 2 columns */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  /* Promo Banner */
  .promo-banner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 36px 24px;
    margin: 0;
  }
  .banner-text {
    max-width: 100%;
  }
  .banner-h {
    font-size: 28px;
  }
  .banner-action-box {
    text-align: center;
    width: 100%;
  }

  /* Footer Grid - 2 columns */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .footer-desc {
    max-width: 100%;
  }
  .store-footer {
    padding: 50px 24px 30px;
    margin-top: 50px;
  }

  /* Admin Layout */
  .admin-hamburger {
    display: inline-flex;
  }
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .admin-topbar {
    padding: 0 16px;
  }
  .admin-content {
    padding: 20px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .charts-row {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }

  /* Tables - scrollable */
  .table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .data-table {
    min-width: 700px;
  }

  /* Page headers */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .page-header h2 {
    font-size: 26px;
  }
}

/* ---------- SMALL TABLETS & LARGE PHONES ---------- */
@media (max-width: 768px) {
  /* Hide search on smaller screens */
  .nav-search {
    display: none;
  }
  .search-dropdown {
    display: none !important;
  }
  .request-product-btn .btn-text {
    display: none;
  }
  .request-product-btn {
    padding: 8px 10px !important;
    font-size: clamp(8.5px, 1.8vw + 7px, 9.94px) !important;
    margin-right: 4px !important;
  }

  /* Hero */
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-slider-container {
    height: 280px;
  }
  .stat-num {
    font-size: 26px;
  }

  /* Modals */
  .modal-overlay {
    align-items: flex-end;
  }
  .modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 85vh;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    margin-bottom: 0 !important;
    transform: translateY(100%);
    box-shadow: 0 -10px 40px rgba(13, 27, 42, 0.15);
  }
  .modal-overlay.open .modal {
    transform: translateY(0);
  }
  .modal-header {
    padding: 16px 20px;
  }
  .modal-body {
    padding: 16px 20px;
  }
  .modal-footer {
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
  }
  .modal-footer .btn {
    width: 100%;
  }

  /* Form rows stack */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Contact page */
  .contact-hero h1 {
    font-size: 36px;
  }
  .contact-hero {
    padding: 60px 20px 40px;
  }

  /* Responsive Quick View Popup Modal */
  .quickview-container {
    flex-direction: column;
    gap: 16px;
  }
  .quickview-gallery {
    width: 100%;
  }
  .quickview-info {
    width: 100%;
  }
  .gallery-main-container {
    height: 200px;
  }
}

/* ---------- MOBILE PHONES ---------- */
@media (max-width: 576px) {
  /* Navbar */
  .store-nav {
    height: 60px;
    padding: 0 12px;
  }
  .nav-logo {
    font-size: clamp(13px, 2.5vw + 9px, 16.56px);
  }
  .cart-btn {
    padding: 6px 12px;
    font-size: clamp(8.5px, 1.8vw + 7px, 9.94px);
  }
  .cart-badge {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  #mobile-nav-overlay {
    inset: 60px 0 0 0;
  }
  .nav-links {
    top: 60px;
    height: calc(100vh - 60px);
  }

  /* Hero */
  .hero {
    padding: 40px 16px;
    gap: 30px;
  }
  .hero h1 {
    font-size: 28px;
    line-height: 1.2;
  }
  .hero p {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .hero-tag {
    font-size: 10px;
    padding: 4px 12px;
    margin-bottom: 16px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 12px;
  }
  .stat {
    flex: 1 1 40%;
    text-align: center;
  }
  .stat-num {
    font-size: 22px;
  }
  .stat-label {
    font-size: 11px;
  }
  .hero-slider-container {
    height: 240px;
  }
  .slide-overlay h3 {
    font-size: 20px;
  }
  .slide-overlay .slide-cat {
    font-size: 9px;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  /* Section spacing */
  .section {
    padding: 40px 14px;
  }
  .section-title {
    font-size: 24px;
  }

  /* Category Grid - 2 columns */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cat-card {
    padding: 16px 10px;
  }
  .cat-icon {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .cat-name {
    font-size: 12px;
  }

  /* Products Grid - 1 column */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Product card adjustments */
  .product-img {
    height: 200px;
  }
  .product-body {
    padding: 16px;
  }
  .product-name {
    font-size: 15px;
    height: auto;
  }
  .product-desc {
    height: auto;
    white-space: normal;
  }

  /* Promo banner */
  .promo-banner {
    padding: 28px 16px;
  }
  .banner-h {
    font-size: 22px;
  }
  .banner-sub {
    font-size: 13px;
  }
  .banner-code {
    font-size: 16px;
    padding: 10px 18px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-desc {
    margin: 0 auto;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .store-footer {
    padding: 40px 16px 24px;
    margin-top: 40px;
  }

  /* Cart Drawer - full width */
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
  .cart-drawer.open {
    right: 0;
  }
  .cart-header {
    padding: 16px;
  }
  .cart-title {
    font-size: 20px;
  }
  .cart-items {
    padding: 16px;
  }
  .cart-footer {
    padding: 16px;
  }
  .cart-total-val {
    font-size: 22px;
  }

  /* Admin topbar stacking */
  .admin-topbar {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .admin-topbar > div:first-child {
    width: 100%;
    justify-content: space-between;
  }
  .topbar-title {
    font-size: 18px;
  }
  .topbar-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .topbar-search {
    width: 100% !important;
    border-radius: var(--radius-sm);
  }
  .topbar-actions .btn,
  .topbar-actions a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Admin metrics */
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .metric-value {
    font-size: 24px;
  }
  .admin-content {
    padding: 14px;
  }

  /* About page hero */
  .about-hero {
    padding: 60px 16px 50px;
  }
  .about-hero h1 {
    font-size: 32px;
  }
  .about-hero p {
    font-size: 14px;
  }

  /* Contact page */
  .contact-hero h1 {
    font-size: 28px;
  }
  .contact-layout {
    padding: 40px 16px;
    gap: 30px;
  }
  .contact-form-panel {
    padding: 24px;
  }

  /* Chips */
  .chips {
    gap: 6px;
  }
  .chip {
    padding: 5px 12px;
    font-size: 12px;
  }

  /* Toast */
  .toast {
    max-width: 90vw;
    font-size: 13px;
    padding: 10px 20px;
  }
}