/* style.css - Hair Heaven */
:root {
  --accent1: #dc2626;
  --accent2: #FDE0CE;
  /* off-white peach for softer gradients */
  /* Light theme palette aligned with peach navbar/footer */
  --bg: #FFF4EB;
  /* page base */
  --card: #ffffff;
  /* card surfaces */
  --muted: #6b7280;
  --primary: #dc2626;
  --secondary: #ef4444;
  --success: #16a34a;
  --warning: #f59e0b;
  --gradient-start: #FDE0CE;
  --gradient-end: #FAD5C3;
  --text-primary: #000000;
  /* default text on light bg - changed to black */
  --text-secondary: #000000;
  /* secondary text - changed to black */
  --border-color: #e5e7eb;
  /* light borders */
  --banner-offset: 0px;
  --header-offset: 96px;
  /* space for fixed header */
}

/* =========================================
   Admin Dashboard New Layout (Image Match)
   ========================================= */

.admin-dashboard-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
}

.admin-hero h1 {
  font-size: 2.5rem;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.admin-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .admin-grid-layout {
    grid-template-columns: 1fr;
  }
}

.admin-col-left,
.admin-col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Card Common Styles */
.admin-card {
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  background: #fff;
}

.admin-card:hover {
  transform: translateY(-5px);
}

/* --- New Orders Card (Blue) --- */
.orders-card {
  background: linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 100%);
  border: 1px solid #BAE6FD;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title-blue {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title-blue h3 {
  color: #0369A1;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-box {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-weight: 600;
  color: #0c4a6e;
}

.bell-icon {
  font-size: 1.2rem;
}

/* --- Manage Products Card (Orange/Peach) --- */
.manage-card {
  background: linear-gradient(180deg, #FFEDD5 0%, #FFF7ED 100%);
  border: 1px solid #FED7AA;
}

.card-header-orange h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: #F97316;
  padding: 8px 16px;
  border-radius: 12px 12px 12px 0;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.action-sq-btn {
  background: linear-gradient(180deg, #EF4444 0%, #DC2626 100%);
  border-radius: 16px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  text-align: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  transition: all 0.2s ease;
  aspect-ratio: 1/1;
}

.action-sq-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.btn-icon-circle,
.btn-icon-rect {
  font-size: 24px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-rect {
  border-radius: 8px;
}

.action-sq-btn span {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.admin-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.admin-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #4B5563;
  font-size: 0.95rem;
}

.check-green {
  color: #10B981;
  font-weight: bold;
}

.history-link-btn {
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  transition: background 0.2s;
}

.history-link-btn:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* --- Order History Card (Beige/Paper) --- */
.history-card {
  background: #FFFBEB;
  border: 1px solid #FEF3C7;
}

.card-header-plain {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header-plain h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #78350F;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.order-history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-item-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px dashed #E5E7EB;
}

.order-item-row:last-child {
  border-bottom: none;
}

.user-avatar-placeholder {
  width: 40px;
  height: 40px;
  background: #D1D5DB;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-info-col {
  flex: 1;
}

.order-top-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.user-name {
  font-weight: 700;
  color: #1F2937;
}

.order-id {
  font-weight: 600;
  color: #6B7280;
  font-size: 0.9rem;
}

.order-btm-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #4B5563;
}

.order-price {
  font-weight: 700;
  color: #1F2937;
}

.view-all-pill {
  display: block;
  width: fit-content;
  margin: 16px auto 0;
  background: #FEF3C7;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  color: #92400E;
  font-weight: 600;
  font-size: 0.9rem;
}

.view-all-pill-small {
  background: #FEF3C7;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  color: #92400E;
  font-weight: 600;
  font-size: 0.8rem;
}

/* --- Product List Cards --- */
.product-card-small,
.product-card-large {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
}

.product-list-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #F9FAFB;
  border-radius: 12px;
  position: relative;
}

.prod-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #eee;
}

.prod-info {
  flex: 1;
}

.prod-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111;
  margin-bottom: 2px;
}

.prod-meta {
  font-size: 0.85rem;
  color: #6B7280;
}

.prod-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-edit,
.btn-delete,
.btn-delete-light {
  padding: 4px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn-edit {
  background: #DC2626;
  color: white;
}

.btn-delete {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
}

.btn-delete-light {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

/* Large bottom section */
.admin-bottom-section {
  margin-top: 24px;
}

.decorative-leaves-left,
.decorative-leaves-right {
  position: absolute;
  bottom: 10px;
  font-size: 24px;
  opacity: 0.6;
}

.decorative-leaves-left {
  left: 20px;
}

.decorative-leaves-right {
  right: 20px;
}

.low-stock-alert {
  background: #FEF2F2;
  color: #DC2626;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #FECACA;
}


/* Utility Classes */
.hidden {
  display: none !important;
}

/* Header Section */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

html,
body {
  height: 100%;
}

body {
  background: #F4F0DB;
  background-color: #F4F0DB;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: var(--header-offset);
}

/* Header */
.header {
  background: #FDE0CE;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  color: #000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
  border-bottom: 1px solid var(--border-color);
}

.header.hidden {
  transform: translateY(-100%);
}

/* used by JS on scroll */
.header.visible {
  transform: translateY(0);
}

/* used by JS on scroll */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  border: 2px solid #000;
  background: #000;
  border-radius: 10px
}

.brand:hover .brand-logo {
  opacity: 0.95
}

/* Header social icons in place of logo */
.header-socials {
  display: inline-flex;
  align-items: center;
  gap: 10px
}

.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(22px, 6vw, 32px);
  height: clamp(22px, 6vw, 32px);
  color: #000;
  text-decoration: none;
  transition: transform .2s ease, color .2s ease
}

.header-icon svg {
  width: 100%;
  height: 100%;
  display: block
}

/* Admin back button on header (mobile-friendly) */
.header-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border-color);
  color: #000;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 14px
}

.header-back-btn:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c
}

.header-back-btn svg {
  width: 18px;
  height: 18px
}

@media (max-width: 768px) {
  .header-back-btn span {
    display: none
  }
}

/* Hover effects: brand colors with enhanced visibility */
.header-icon.facebook:hover {
  color: #1877F2 !important;
  transform: scale(1.15);
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(24, 119, 242, 0.4));
}

.header-icon.whatsapp:hover {
  color: #25D366 !important;
  transform: scale(1.15);
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(37, 211, 102, 0.4));
}

/* Base logo sizing for desktop (consolidated above) */
/* Navigation Section */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin-left: auto;
  cursor: pointer
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  margin: 5px 0;
  transition: transform .3s, opacity .3s
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

.nav-close {
  display: none;
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  color: #000;
  font-size: 22px;
  padding: 6px;
  cursor: pointer;
  z-index: 1001
}

.nav a {
  color: #000;
  text-decoration: none;
  margin-left: 16px;
  font-weight: 600;
  padding: 6px 10px;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
  border-radius: 8px;
  background: transparent;
}

.nav-center-text {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
  color: var(--text-primary);
  margin: 6px 0 10px;
}

/* Center label in header bar without overlapping links */
.header-center-text {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  font-weight: 800;
  color: #000;
  pointer-events: none;
  text-align: center;
  font-size: 28px;
}

.header-center-text b,
.header-center-text p {
  color: #000 !important;
}

.header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 15px
}

.header-cart {
  color: #000;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.header-cart span {
  color: #000 !important;
  font-size: 18px;
  line-height: 1;
  display: inline-block;
}

.header-cart svg {
  width: 28px !important;
  height: 28px !important;
  transition: transform .2s ease;
  transform-origin: center;
  display: block;
  flex-shrink: 0
}

.header-cart svg,
.header-cart svg path {
  color: #000 !important;
  fill: #000 !important;
}

.header-cart:hover svg {
  transform: scale(1.12)
}

.header .nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  align-self: start;
  margin-top: 4px;
}

.nav a.nav-cart {
  display: none
}

/* Centered label inside the header bar */
/* Removed header-centered label to prevent overlap with nav links */
/* Nav header row for mobile/tablet overlay */
.nav-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  margin: 2px 0 8px;
  min-height: 40px;
}

.nav-title {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 800;
  color: #000;
  letter-spacing: 0.2px;
  padding: 8px 0;
}

.nav a:hover,
.nav a.active {
  color: #000;
  background: transparent;
  /* remove filled red background */
  transform: none;
  /* no lift effect on hover */
  box-shadow: none;
  /* remove hover shadow */
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 0;
  height: 2px;
  background: var(--accent1);
  transition: all 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
  transform: translateX(-50%) scaleX(1);
}

.header-user-wrap {
  position: relative;
  display: inline-block;
  margin-left: 8px
}

.header-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: #000;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer
}

.header-user-btn svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0
}

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 170px;
  z-index: 1100
}

.user-menu.hidden {
  display: none
}

.user-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  color: #000;
  cursor: pointer
}

.user-menu-item:hover {
  background: #f3f4f6
}

/* Layout & Container */
main.container {
  flex: 1;
}

.container {
  max-width: 1150px;
  margin: 24px auto 40px;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  width: 100%;
  max-width: 1150px;
  margin: 60px auto 20px;
  padding: 20px;
  text-align: center;
}

.hero h1 {
  font-size: 64px;
  color: #000000;
  margin-bottom: 18px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}



/* Unified heading font across the site */
h1,
h2 {
  font-weight: 700;
}

/* Ensure inline <i> inside headings inherits identical font and not italic */
h1 i,
h2 i {
  font-style: normal;
  font-weight: 700;
}

.hero p.small {
  text-align: center;
  margin-bottom: 12px;
  color: #000000;
}

/* Products Section */
.products-section {
  width: 100%;
  max-width: 1150px;
  margin: -10px auto 16px;
  /* Negative top margin to pull images up */
  padding: 0 20px;
  /* Reduced top padding */
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid transparent;
  padding-bottom: 16px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  margin-bottom: 24px;
}

.products {
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin-top: 8px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  margin-bottom: 40px;
  /* Add bottom margin to prevent collapse with next section */
}

/* Other Products Grid */
.other-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .other-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .other-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Card Styles */
.card {
  background: transparent;
  /* remove white container box */
  padding: 28px 8px;
  /* tighter sides, original top/bottom */
  border-radius: 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: none;
  /* remove side edge shadow */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* remove all borders for clean edge-less sides */
  border: none;
  color: var(--text-primary);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: none;
  /* keep no side edge shadow on hover */
  /* keep borderless sides on hover */
  border: none;
}

/* Flip animation removed */

.card img {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 6px auto 14px;
  display: block;
  transition: transform 0.3s ease;
  border: none;
  border-radius: 12px;
  box-shadow: none;
  /* remove image edge shadow */
}

.card h3 {
  color: #000000;
  /* changed to black */
  margin: 12px 0 6px 0;
  text-align: left;
  padding: 0 8px;
  transition: transform 0.3s ease;
}

/* Stock badges on product cards */
/* Product Badges & Controls */
.stock-badge {
  display: inline-block;
  margin: 8px 0;
  /* add vertical spacing above and below */
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.stock-in {
  background: #e6ffed;
  color: #08660f;
}

.stock-out {
  background: #ffeded;
  color: #b00020;
}

/* Clickable area for product image/title */
.product-click {
  cursor: pointer;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit
}

.product-click:hover {
  text-decoration: none
}

.product-click:visited {
  color: inherit
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px
}

@media (max-width:768px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .product-image-section,
  .product-info-section {
    width: 100%
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px
  }

  .quantity-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%
  }

  .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px
  }

  .action-buttons .add-btn {
    width: 100%
  }

  .quantity-wrapper {
    width: 100%
  }
}

/* Modal product image styling */
.product-detail-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto 12px;
  display: block;
}

/* Add-to-cart icon overlay behavior */
.product-image-wrap {
  position: relative;
}

.product-detail-image-wrap {
  position: relative;
  display: inline-block;
}

/* 3D Product Image Interactions */
.product-image-wrap img,
.product-detail-image-wrap img,
#mainImage,
.product-card img,
.card img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

.product-image-wrap:hover img,
.product-detail-image-wrap:hover img,
#mainImage:hover,
.product-card img:hover,
.card img:hover {
  transform: perspective(1000px) scale(1.04) rotateX(4deg) rotateY(-4deg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.product-image-wrap .add-icon,
.product-detail-image-wrap .add-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--accent1);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  opacity: 0;
  /* hidden by default on large screens */
  pointer-events: none;
}

.product-image-wrap:hover .add-icon,
.product-detail-image-wrap:hover .add-icon {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background: #f8f8f8;
}

/* Mobile: icon always visible at bottom-right */
@media (max-width: 480px) {

  .product-image-wrap .add-icon,
  .product-detail-image-wrap .add-icon {
    opacity: 1;
    pointer-events: auto;
    right: 8px;
    bottom: 8px;
    width: 34px;
    height: 34px;
  }
}

.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 14px 28px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff !important;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid var(--primary);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
  width: 100%;
  /* Default to full width for grid cards */
}

.add-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff !important;
}

.add-btn:active {
  transform: translateY(0) scale(0.98);
}

.add-btn:disabled {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #9ca3af !important;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Product info container */
.product-info {
  padding: 0 8px;
  text-align: left;
}

.quantity-column {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.action-buttons {
  display: flex;
  gap: 12px
}

.product-info-section .actions {
  margin-bottom: 36px
}

.howto-section {
  margin-top: 80px !important
}

.video-embed {
  margin-top: 28px
}

/* Indent product title and price slightly to the right */
.card .product-title,
.card .price-tag {
  margin-left: 40px;
}

/* Consistent price tag styling */
.price-tag {
  display: block;
  margin: 4px 0 8px 0;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  color: #000000;
  /* changed to black */
  font-weight: 700;
  font-size: 1.1em;
  text-align: left;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* 3D hover effects for left-aligned layout */
.card:hover .price-tag {
  transform: translateX(4px) scale(1.05);
  color: #dc2626;
}

/* 
  NEW GALLERY STYLES 
  Unique namespace: 'pgal-'
*/
.pgal-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.pgal-radio {
  display: none;
}

.pgal-main-stage {
  width: 100%;
  max-width: 450px;
  /* Restrict max width */
  margin: 0 auto;
  /* Center alignment */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #fff;
  aspect-ratio: 1/1;
  /* Ensure consistent height */
  position: relative;
}

.pgal-main-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  animation: pgal-fade 0.2s ease-in-out;
}

@keyframes pgal-fade {
  from {
    opacity: 0.9;
  }

  to {
    opacity: 1;
  }
}

.pgal-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  /* Center thumbnails */
}

.pgal-thumb-item {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.8;
  transition: all 0.2s;
  background: #fff;
}

.pgal-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgal-thumb-item:hover {
  opacity: 1;
}

/* Switch Logic */
#pgal-r1:checked~.pgal-main-stage .pgal-img-1,
#pgal-r2:checked~.pgal-main-stage .pgal-img-2,
#pgal-r3:checked~.pgal-main-stage .pgal-img-3,
#pgal-r4:checked~.pgal-main-stage .pgal-img-4 {
  display: block;
}

/* Active Thumbnail Highlight */
#pgal-r1:checked~.pgal-thumbs label[for="pgal-r1"],
#pgal-r2:checked~.pgal-thumbs label[for="pgal-r2"],
#pgal-r3:checked~.pgal-thumbs label[for="pgal-r3"],
#pgal-r4:checked~.pgal-thumbs label[for="pgal-r4"] {
  border-color: #dc2626;
  /* Accent color */
  opacity: 1;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.card:hover .product-title {
  transform: translateX(2px);
}

/* Product title styling - make it black */
.product-title {
  color: #000000;
  font-weight: 600;
  margin: 8px 0 4px 0;
  font-size: 1.1em;
}

/* Make all text on home page black */
body {
  color: #000000;
}

/* Comprehensive rule to ensure all text elements on home page are black */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p,
body span,
body div,
body li,
body a,
body .header-center-text,
body .header-center-text p,
body .hero p.small,
body .howto-title,
body .video-section h2,
body .footer h2,
body .footer h3,
body .footer p,
body .footer-text,
body .footer a,
body .card h3,
body .price-tag,
body .product-title {
  color: #000000 !important;
}

/* Discount Display Styling */
.discount-display {
  animation: fadeIn 0.3s ease-in-out;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  backdrop-filter: blur(10px);
}

.discount-display #discountText {
  color: #ffc107;
  font-weight: 600;
  font-size: 0.9em;
  line-height: 1.4;
}

/* Quantity Selector Styling */
.quantity-wrapper {
  display: flex;
  align-items: center;
  border: none !important;
  border-radius: 8px;
  background: var(--accent2);
  /* Uniform background color */
  width: fit-content;
  overflow: hidden;
  box-shadow: none !important;
}

.qty-btn {
  background: transparent;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qty-btn:focus,
.qty-btn:active {
  border: none !important;
  outline: none !important;
}

.qty-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
  color: #000;
}

#quantitySelect {
  width: 40px;
  text-align: center;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  padding: 0;
  height: 36px;
  -moz-appearance: textfield;
}

#quantitySelect:focus {
  outline: none;
}

/* Remove up/down arrows from number input */
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* =========================================
   Modern Auth Pages (Login & Sign Up)
   ========================================= */

.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--header-offset) - 70px);
  padding: 20px 20px;

  margin-top: 50px;
}

.auth-container {
  background: var(--card);
  width: 100%;
  max-width: 440px;
  padding: 32px 32px 20px 32px;
  /* Reduced bottom padding */
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.03);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-title {
  text-align: center;
  margin-bottom: 24px;
  /* Reduced from 32px */
  font-size: 1.75rem;
  /* Reduced font size slightly */
  font-weight: 800;
  color: #000;
  letter-spacing: -0.5px;
}

.auth-form .form-group {
  margin-bottom: 16px;
  /* Reduced from 24px */
}

.auth-form label {
  display: block;
  margin-bottom: 6px;
  /* Reduced from 8px */
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.9rem;
  /* Slightly smaller font */
}

.auth-form input {
  width: 100%;
  padding: 12px 14px;
  /* Reduced padding from 14px 16px */
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  /* Slightly smaller font */
  color: #000;
  background: #f9fafb;
  transition: all 0.2s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.auth-btn {
  width: 100%;
  margin-top: 8px;
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  background: #FDE0CE;
  color: #000;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
  background: #FDE0CE;
}

.auth-footer {
  text-align: center;
  margin-top: 16px;
  /* Reduced from 20px */
  font-size: 0.9rem;
  /* Slightly smaller font */
  color: var(--muted);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-footer a:hover {
  color: #991b1b;
  text-decoration: underline;
}

/* Mobile Responsiveness for Auth */
@media (max-width: 480px) {
  .auth-container {
    padding: 32px 24px;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .auth-wrapper {
    align-items: flex-start;
    padding-top: 20px;
  }
}


#quantitySelect:hover {
  border-color: #ffc107;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

#quantitySelect:focus {
  outline: none;
  border-color: #ffc107;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover overlay add-to-cart button on product cards */

/* Hover overlay add-to-cart button on product cards (bottom centered) */
.card-hover-add {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 18px;
  border-radius: 12px;
  background: #FDE0CE;
  color: #000;
  font-weight: 600;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover .card-hover-add {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.card-hover-add:hover {
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6);
}

.card-hover-add:disabled {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  cursor: not-allowed;
  box-shadow: none;
}

/* Product description spacing for tidy layout */
.product-desc {
  margin: 6px 0 6px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.icon {
  font-size: 32px;
  margin-top: 14px;
  color: var(--accent1);
}

/* Socials Section */
.socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.socials .dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.6), rgba(220, 38, 38, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Footer New Layout (3-Column) */
.footer {
  padding: 60px 0 20px;
  background: #FFEDE1;
  /* Keep theme */
  margin-top: 60px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -4px 20px rgba(220, 38, 38, 0.1);
  border-top: 1px solid var(--border-color);
  color: #000;
}

.footer-brand {
  text-align: center;
  margin-bottom: 50px;
}

.footer-logo {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: #000 !important;
}

.footer-tagline {
  font-size: 1.1rem;
  color: #555 !important;
  font-weight: 500;
  letter-spacing: 1px;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-column h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000 !important;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333 !important;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-divider {
  width: 40px;
  height: 2px;
  background: #000;
  margin: 0 auto 24px;
}

.footer-divider-light {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 16px 0;
}

/* Contact List */
.contact-list {
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 320px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #000 !important;
}

.contact-list li span,
.contact-list li a {
  text-align: left;
  color: #000 !important;
}

.contact-list a {
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-list a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Connect Section */
.connect-subheading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000 !important;
}

.social-icons-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.social-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.social-icon-circle:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.social-icon-circle.whatsapp:hover {
  background: #25D366;
  color: #fff;
}

.social-icon-circle.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}

.social-icon-circle.facebook:hover {
  background: #1877F2;
  color: #fff;
}

.social-icon-circle.youtube:hover {
  background: #FF0000;
  color: #fff;
}

.social-icon-circle.tiktok:hover {
  background: #000000;
  color: #fff;
}

/* Policy Links */
.policy-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.policy-links a {
  text-decoration: none;
  color: #000 !important;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  transition: all 0.2s;
}

.policy-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #000;
  transition: width 0.3s ease;
}

.policy-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  color: #555 !important;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-column:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer {
    background: #FBE9E7;
  }

  .footer-brand {
    text-align: center;
    padding: 16px 0 8px;
  }

  .footer-logo {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .footer-tagline {
    color: #4a3b32;
    font-size: 14px;
  }

  .footer-content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .footer-column {
    padding: 16px 12px;
  }

  .footer-column h3 {
    font-size: 1rem !important;
    color: #3d2f28 !important;
    margin-bottom: 8px;
    font-weight: 700;
  }

  .footer-desc {
    color: #5d4037;
    font-size: 14px;
  }

  .footer-divider,
  .footer-divider-light {
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    margin: 12px 0;
  }

  .footer-column:nth-child(1) {
    order: 1;
    width: 50%;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }

  .footer-column:nth-child(3) {
    order: 2;
    width: 50%;
  }

  .footer-column:nth-child(2) {
    order: 3;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .connect-subheading {
    font-size: 0;
    width: 42px;
    height: 2px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 2px;
    margin: 12px auto 16px;
  }

  .social-icons-grid {
    justify-content: center;
    gap: 10px;
  }

  .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 6px 0;
  }

  .policy-links {
    display: block;
    list-style: disc;
    padding-left: 20px;
    gap: 0;
  }

  .policy-links li {
    border: none;
    margin: 6px 0;
  }

  .policy-links a {
    display: inline;
    padding: 0;
    color: #333 !important;
    font-weight: 500;
  }

  .policy-links a::before,
  .policy-links a::after {
    display: none !important;
    content: none !important;
  }

  .footer-bottom {
    text-align: center;
    padding: 12px 0 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #5d4037;
  }
}

/* Slider Section */
.carousel {
  position: relative;
}

/* Slider Styles */
.slider-container {
  position: relative;
  width: 100%;
  height: 500px;
  /* fixed height for consistent layout */
  margin: 0 auto 40px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}

.slider {
  display: flex;
  width: 100%;
  height: 100%;
  /* match container */
  transition: transform 0.5s ease-in-out;
}

/* Each slide occupies full viewport width in the flex track */
.slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  /* original full-frame appearance */
  object-position: center;
  /* original centering */
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FDE0CE;
  border: 2px solid var(--primary);
  color: #000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
  padding: 0;
  line-height: 1;
}

.slider-btn:hover,
.video-nav-btn:hover {
  background: #FDE0CE;
  border-color: #b91c1c;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background: white;
}

/* Promotional banner below slider */
.promo-banner {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto 20px;
  padding: 0 20px;
  display: flex;
  justify-content: center
}

.promo-banner img {
  width: auto;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15)
}

.slider:hover {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .slider-container {
    width: 100%;
    /* Remove fixed aspect ratio to prevent letterboxing */
    height: auto;
    aspect-ratio: auto;
    max-height: none;
  }

  .slider {
    /* Flex container needs to adapt to slide height */
    height: auto;
    align-items: flex-start;
  }

  .slide {
    width: 100%;
    /* Let image height dictate container height */
    height: auto;
    object-fit: contain;
    display: block;
  }
}

/* Video Section */
.video-container {
  position: relative;
  width: 100%;
  height: 600px;
  /* Restored to original fixed height */
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.2);
  background: #000;
  /* Dark background for video letterboxing */
}

.video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Maintain aspect ratio */
  border-radius: 12px;
}

.video-section {
  width: 100%;
  max-width: 1250px;
  /* Increased to allow for side padding */
  margin: 0 auto;
  position: relative;
  overflow: visible;
  padding: 0 50px;
  /* Space for buttons */
}

/* YouTube Style Grid - Converted to Horizontal Scroll */
.yt-video-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 10px 0;
  width: 100%;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.yt-video-grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.yt-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  transition: transform 0.2s;
  flex: 0 0 320px;
  /* Fixed width for scrolling */
  max-width: 320px;
}

.yt-card:hover {
  transform: none;
  /* No lift for YT style usually, or subtle */
}

.yt-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-bottom: 12px;
}

.yt-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  opacity: 0.9;
}

.yt-card:hover .yt-thumbnail img {
  transform: scale(1.05);
  opacity: 1;
}

.yt-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  font-family: Roboto, Arial, sans-serif;
}

.yt-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(2px);
}

.yt-card:hover .yt-play-icon {
  background: #f00;
  transform: translate(-50%, -50%) scale(1.1);
}

.yt-play-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 2px;
  display: block;
}

.yt-details {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.yt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
}

.yt-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-text {
  display: flex;
  flex-direction: column;
}

.yt-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f0f0f !important;
  line-height: 1.4;
  margin: 0 0 6px 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left !important;
}

.yt-meta {
  font-size: 14px;
  color: #606060 !important;
  line-height: 1.4;
  display: block;
  text-align: left;
}

.yt-meta span {
  color: #606060 !important;
}

.yt-meta:hover {
  color: #0f0f0f !important;
}

.video-section {
  margin: -20px auto 40px;
  /* Negative margin to pull section further up */
  padding: 20px;
  overflow: hidden;
  position: relative;
  border-top: 1px solid transparent;
  padding-top: 0;
}

.video-section h2 {
  font-size: 64px;
  color: #000000;
  margin-bottom: 18px;
  text-align: center;
  padding-top: 0;
  /* No extra top padding */
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Ensure section headings do not render italic and use exact font stack */
.video-section h2 i,
.howto-title i {
  font-style: normal;
  font-weight: 700;
}

/* Horizontal scroll layout for videos */
.video-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 10px 0;
  margin-bottom: 30px;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.video-grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

/* How to Use Section */
.howto-section {
  width: 100%;
  max-width: 1150px;
  margin: -40px auto 40px !important;
  padding: 0 10px
}

.howto-title {
  font-size: 64px;
  color: #000000;
  margin-bottom: 18px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.howto-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center
}

.howto-image {
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 1080/500;
  height: auto;
  object-fit: cover;
  border-radius: 12px
}

.howto-card {
  background: transparent;
  border: none;
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  color: var(--text-primary);
  flex: 0 1 calc(33.333% - 12px)
}

.howto-card img {
  width: 100%;
  height: auto;
  border: none;
  border-radius: 12px;
  box-shadow: none
}

.howto-card .small {
  margin-top: 8px;
  color: #ffffff !important
}

@media (max-width: 992px) {
  .howto-card {
    flex: 0 1 calc(33.333% - 12px)
  }
}

@media (max-width: 768px) {
  .howto-section {
    margin: -40px auto 30px !important
  }

  .howto-card {
    flex: 0 1 48%
  }
}

@media (max-width: 480px) {
  .howto-card {
    flex: 0 1 100%
  }
}

.video-card {
  flex: 0 0 auto;
  /* Don't shrink, don't grow */
  width: 340px;
  /* Slightly larger for better visibility */
  max-width: 340px;
}

/* Navigation buttons for horizontal scroll */
/* Consolidated Video Navigation styling */
.video-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FDE0CE;
  border: 2px solid var(--primary);
  color: #000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  z-index: 100;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.video-nav-btn:hover {
  background: #FDE0CE;
  border-color: #b91c1c;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.video-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.video-nav-btn.vprev {
  left: 0;
}

.video-nav-btn.vnext {
  right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-card {
    width: 100%;
    max-width: none;
    flex: 0 0 100%;
    /* show exactly one video per viewport */
  }

  .video-nav-btn {
    padding: 10px 12px;
    font-size: 18px;
  }

  .video-nav-btn.vprev {
    left: 8px;
  }

  .video-nav-btn.vnext {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .video-card {
    width: 100%;
    max-width: none;
    flex: 0 0 100%;
    /* keep single-card view on small phones */
  }

  .video-grid {
    gap: 18px;
  }
}

/* Modals & Forms Section */
/* ---------- Centered Modal ---------- */
.hh-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 220ms ease
}

.hh-modal-backdrop.show {
  display: flex;
  opacity: 1
}

.hh-modal-open {
  overflow: hidden
}

.mobile-sticky-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: var(--card);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, .12);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom)
}

.mobile-sticky-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 12px;
  flex: 1
}

.mobile-sticky-nav a .msn-icon {
  width: 22px;
  height: 22px
}

.mobile-sticky-nav a.active {
  color: var(--accent1)
}

/* Global Count Badges (Header & Mobile Nav) */
.mobile-sticky-nav .cart-count,
.mobile-sticky-nav .wishlist-count,
.header-cart .count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: white !important;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  padding: 0 2px;
  line-height: 1;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Specific adjustment for desktop header badges to look slightly larger/positioned better */
.header-cart .count-badge {
  top: 0;
  right: -2px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
}


/* Hide badge if count is 0 if desired, but for now we keep it visible like desktop.
   Actually, usually it's better to show it only if > 0.
   But let's stick to consistent behavior. */

@media(min-width:769px) {
  .mobile-sticky-nav {
    display: none
  }
}

@media(max-width:768px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom))
  }
}

@media(max-width:768px) {

  body.admin-page,
  body.admin-login-page {
    padding-bottom: 0 !important
  }
}

.hh-modal {
  background: var(--card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  max-width: 820px;
  width: 92%;
  padding: 20px;
  max-height: 92vh;
  overflow: auto;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease
}

.hh-modal-backdrop.show .hh-modal {
  transform: translateY(0) scale(1);
  opacity: 1
}

/* Fullscreen modal variant */
.hh-modal.hh-modal-full {
  position: fixed;
  inset: 0;
  max-width: none;
  width: 100%;
  height: 100vh;
  max-height: none;
  border-radius: 0;
  padding: 24px;
}

.hh-modal.hh-modal-full .hh-modal-body {
  overflow-y: auto;
}

/* Header layout with close icon */
.hh-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

.hh-modal-close {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px
}

.hh-modal-close:hover {
  color: #b91c1c;
  background: #fee2e2
}

/* Success popup embellishments */
.success-popup {
  text-align: center
}

.success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #22c55e, #16a34a)
}

.success-icon svg {
  width: 36px;
  height: 36px
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  margin: 12px 0 6px;
  color: var(--accent1)
}

.success-sub {
  font-size: 14px;
  color: var(--text-secondary)
}

.success-order {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  color: #2f855a;
  font-weight: 700
}

/* Address table styling for checkout modal */
.address-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden
}

.address-table th,
.address-table td {
  padding: 10px 12px;
  vertical-align: middle
}

.address-table th {
  text-align: left;
  width: 180px;
  color: #000;
  background: #f8f9fa;
  border-right: 1px solid var(--border-color)
}

.address-table td {
  color: #000;
  background: #f8f9fa
}

.address-table tr+tr th,
.address-table tr+tr td {
  border-top: 1px solid var(--border-color)
}

.hh-modal-header {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent1);
  margin-bottom: 10px
}

.hh-modal-body {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.5
}

.hh-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end
}

.hh-btn,
.hh-btn-primary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  background: #FDE0CE;
  color: #000;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.hh-btn:hover,
.hh-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
  background: #FDE0CE;
  color: #000;
}

/* Danger hover for remove/clear actions */
button.hh-btn[onclick*="removeBankDetails"]:hover,
button[onclick^="clearAllOrders"]:hover,
button[onclick^="clearAllNotifications"]:hover {
  background: #FDE0CE;
  color: #b91c1c;
  border-color: #fecaca;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

/* Global Reset button styling - removed */
/* Site-wide default buttons themed, excluding product hover cart button */
button:not(.add-icon):not(.slider-btn):not(.video-nav-btn):not(.admin-menu-btn):not(.header-user-btn):not(.header-back-btn):not(.qty-btn) {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  background: #FDE0CE;
  color: #000;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

button:not(.add-icon):not(.slider-btn):not(.video-nav-btn):not(.admin-menu-btn):not(.header-user-btn):not(.header-back-btn):not(.qty-btn):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
  background: #FDE0CE;
  color: #000;
}

/* Ensure form labels are visible: white in modals, black in address form */
.hh-modal label {
  color: #fff;
  font-weight: 600
}

/* Responsive video embeds in modals to avoid scrollbars */
.hh-modal-body .hh-video-embed {
  aspect-ratio: 16/9;
  width: 100%;
}

.hh-modal-body .hh-video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  background: #000
}

.hh-modal video#hhFullscreenVideo {
  width: 100%;
  height: auto;
  max-height: 72vh;
  display: block;
  background: #000
}

.hh-modal video#hhCelebVideo {
  width: 100%;
  height: auto;
  max-height: 72vh;
  display: block;
  background: transparent
}

/* Expand video area in fullscreen modal */
.hh-modal.hh-modal-full video#hhFullscreenVideo,
.hh-modal.hh-modal-full video#hhCelebVideo {
  max-height: 92vh
}

@media (max-width:768px) {
  .hh-modal.hh-modal-full {
    padding: 0
  }

  .hh-modal.hh-modal-full .hh-modal-body {
    height: 100vh;
    padding: 0
  }

  .hh-modal.hh-modal-full .hh-video-embed {
    width: 100%;
    height: 100vh
  }

  .hh-modal.hh-modal-full .hh-video-embed iframe {
    width: 100%;
    height: 100vh
  }

  .hh-modal.hh-modal-full video#hhFullscreenVideo {
    width: 100%;
    height: 100vh;
    object-fit: contain
  }
}

/* Ensure dark text inside white list boxes in admin video modals */
.hh-modal-body #adminVideos>div,
.hh-modal-body #adminYouTubeVideos>div {
  color: #1a1a1a;
  /* high contrast on white background */
}

/* Hover styling for Delete buttons inside admin video modals */
/* Hover styling for Delete buttons inside admin video modals - removed to unify styles */

.video-card {
  position: relative
}

.yt-thumbnail {
  position: relative
}

/* Address Form Styles */
.address-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px
}

.address-form {
  background: #FDE0CE;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden
}

.address-form h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #000;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.span-2 {
  grid-column: span 2
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0
}

/* Removed bottom margin as grid gap handles it */
.address-form label {
  color: #000;
  font-weight: 600
}

.form-field input,
.form-field textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  max-width: 100%;
  display: block
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap
}

.save-btn,
.reset-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  background: #FDE0CE;
  color: #000;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.save-btn:hover,
.reset-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
  background: #FDE0CE;
  color: #000;
}

.hint {
  color: #666;
  font-size: 13px;
  margin-top: 8px
}

/* Mobile Sticky Action Bar */
.hh-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(var(--offset, 100%));
  opacity: 0;
  z-index: 999;
  display: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(120%) blur(6px);
  border-top: 1px solid var(--border-color);
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  padding: 3px 10px calc(env(safe-area-inset-bottom, 2px) + 3px);
  gap: 10px;
  justify-content: space-evenly;
}

.hh-mobile-bar.is-visible {
  opacity: 1;
  transition: transform .3s ease, opacity .3s ease;
}

.hh-mobile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  touch-action: manipulation;
  flex: 1 1 0;
  min-width: 0;
  padding: 1px 0;
}

.hh-mobile-btn:focus-visible {
  outline: 2px solid #b91c1c;
  outline-offset: 2px
}

.hh-mobile-btn .icon {
  width: 24px;
  height: 24px
}

/* Icon circle and label inside mobile bar */
.hh-mobile-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-color)
}

.hh-mobile-label {
  display: block;
  font-size: 10px;
  line-height: 1.1;
  color: #111;
  font-weight: 600
}

.hh-mobile-bar a {
  text-decoration: none !important
}

.hh-mobile-btn {
  text-decoration: none
}

/* Numeric badge overlay on top of icon */
.hh-mobile-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2)
}

.hh-mobile-badge[data-count="0"] {
  display: none
}

@media (max-width: 768px) {
  .hh-mobile-bar {
    display: inline-flex
  }
}

@media (min-width: 769px) {
  .hh-mobile-bar {
    display: none !important
  }
}

/* Tablet and below */
@media (max-width: 992px) {
  :root {
    --header-offset: 112px;
  }

  .header {
    padding: 12px 12px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    align-items: center;
  }

  /* Explicit grid placement to keep positions fixed */
  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start
  }

  .header-center-text {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    font-size: 28px;
    line-height: 1.1
  }

  .header-cart {
    grid-column: 3;
    grid-row: 1;
    justify-self: end
  }

  .header-cart {
    display: inline-flex
  }

  .header-center-text {
    display: block
  }

  .nav a.nav-cart {
    display: none
  }

  .brand-logo {
    height: 58px
  }

  .nav-toggle {
    display: block;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin-top: 6px;
    margin-left: 0;
  }

  .header .nav {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 8px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FDE0CE;
    padding: 20px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.2);
    z-index: 1000;
    border: 1px solid var(--border-color);
    border-top: none;
    flex-direction: column;
  }

  .nav a {
    display: block;
    margin: 8px 0;
    padding: 8px 12px;
    color: #000 !important;
    border-radius: 6px;
    transition: all 0.3s ease;
  }

  .nav a:hover {
    color: #000 !important;
    background: transparent;
    transform: translateX(4px);
  }

  .nav-open .nav {
    display: flex;
  }

  #nav-toggle-checkbox:checked~.nav {
    display: flex;
  }

  /* Fallback: also show when JS sets a direct class */
  .nav.is-open {
    display: flex;
  }

  .nav-header {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    margin: 2px 0 8px;
    min-height: 40px;
  }

  .nav-close {
    display: block;
  }

  h1 {
    font-size: 42px;
  }

  .slider-container {
    height: 380px;
  }

  .video-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scroll-behavior: smooth
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Improve section spacing on tablets */
  .products-section {
    margin: 24px auto;
    padding: 10px;
  }

  .video-section {
    margin: 40px auto 30px;
  }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
  :root {
    --header-offset: 104px;
  }

  .header-cart {
    display: none !important;
  }

  .trusted-heading {
    font-size: clamp(1.4em, 5vw, 2em) !important;
    /* Scale down smoothly */
    margin: 0.2em 0 0.4em !important;
  }

  .hero {
    margin: 20px auto 10px !important;
    padding: 10px 0 !important;
  }

  .promo-banner {
    margin-bottom: 10px !important;
  }

  .header {
    padding: 10px 12px;
  }

  .header-center-text {
    font-size: 24px
  }

  .brand-logo {
    height: 52px
  }

  /* Keep "Featured Products" on a single line */
  .hero h1 {
    white-space: nowrap;
    font-size: clamp(39px, 7vw, 36px);
    line-height: 1.1
  }

  /* Keep "Celebrities Endorsement" on one line, slightly shifted left */
  .video-section h2 {
    white-space: nowrap;
    font-size: clamp(20px, 5.5vw, 36px);
    line-height: 1.1;
    text-align: center;
    padding-left: 0px;
    padding-right: 25px;
    /* Unequal padding shifts center point left */
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
  }

  /* Apply identical mobile sizing to How to Use heading */
  .howto-title {
    white-space: nowrap;
    font-size: clamp(39px, 7vw, 36px);
    line-height: 1.1
  }

  /* Ensure hamburger sits directly below the logo on small widths */
  .nav-toggle {
    margin-left: 0;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin-top: 6px;
  }

  .container {
    margin: 16px auto 28px;
    padding: 0 14px;
  }

  h1 {
    font-size: 34px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 10px;
  }

  .card {
    padding: 18px 8px;
  }

  .card img {
    max-width: 160px;
    margin: 4px auto 10px;
  }

  /* Optimized Product Typography */
  .card .product-title {
    font-size: 0.95rem;
    line-height: 1.4;
    height: 2.8em;
    /* Force 2 lines height (1.4 * 2) */
    margin: 8px 0;
    margin-left: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
    white-space: normal;
    word-break: break-word;
    /* Prevent long words from breaking layout */
  }

  .card .price-tag {
    font-size: 1rem;
    margin-left: 0;
    padding: 0 4px;
  }

  .slider-btn {
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }

  .video-container {
    height: 300px;
  }

  /* Restored to original height for mobile */
  .video-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scroll-behavior: smooth
  }

  /* Improve spacing on mobile */
  .products-section {
    margin: -20px auto 0 !important;
    /* Force pull up with negative margin */
    padding: 0 5px !important;
  }

  .video-embed {
    margin-bottom: 30px !important;
  }

  .video-section {
    margin: 20px auto 20px !important;
    /* Corrected spacing to prevent overlap */
    padding-top: 0 !important;
  }

  .hero {
    padding: 40px 0;
    margin-bottom: 20px;
  }

  /* Address form: stack fields for phones and phablets */
  .address-container {
    max-width: 100%;
    padding: 0 14px;
  }

  .address-form {
    padding: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .button-group {
    gap: 12px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  :root {
    --header-offset: 92px;
  }

  .header {
    padding: 8px 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    align-items: center;
    gap: 14px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin: 0 6px 0 0
  }

  /* Hide header social icons on mobile */
  .header-socials {
    display: none !important
  }

  /* Keep center text in the middle column like desktop */
  .header-center-text {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    text-align: center !important;
    font-size: 20px;
    line-height: 1.1;
    width: auto
  }

  /* Keep cart at far right like desktop */
  .header-cart {
    display: none !important;
  }

  .brand-logo {
    height: clamp(32px, 8vw, 44px);
    width: auto;
    max-width: 100%
  }

  /* Move hamburger to the social icons' position (top-left) */
  .nav-toggle {
    padding: 6px;
    margin-left: 0;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-top: 0;
  }

  /* Drop-down menu appears below header (not covering the logo) */
  .header .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 8px;
  }

  .nav {
    width: 100%;
    position: static;
    transform: none;
  }

  .nav a {
    font-size: 14px;
    margin: 6px 0;
    padding: 8px 4px;
  }

  .container {
    margin: 12px auto 20px;
    padding: 0 12px;
  }

  h1 {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
  }

  .header-cart span {
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0
  }

  .header-cart svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0
  }

  /* Tighten product card spacing for balance on small screens */
  .products {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center
  }

  .card h3 {
    margin: 10px 0 4px 0;
    text-align: left;
    padding: 0 6px
  }

  .price-tag {
    margin: 4px 0 8px 0;
    text-align: left;
    padding: 0 6px
  }

  .card {
    padding: 16px 6px;
    border-radius: 10px;
  }

  .card img {
    max-width: 140px;
  }

  .slider-container {
    /* Allow even smaller screens to just respect the content */
    height: auto;
    aspect-ratio: auto;
    margin-bottom: 20px;
  }

  .video-container {
    height: auto;
    aspect-ratio: 16/9;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Improve spacing on small mobile */
  .products-section {
    margin: 20px auto;
    padding: 5px;
  }

  .video-section {
    margin: 24px auto 16px;
  }

  /* Address form: stack fields and improve spacing */
  .address-container {
    max-width: 100%;
    padding: 0 12px;
  }

  .address-form {
    padding: 14px;
    border-radius: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .button-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Footer tweaks for small screens */
  .footer-social {
    gap: 10px;
  }

  .footer-social a {
    padding: 6px 8px;
    font-size: 14px;
  }

  .footer-text {
    display: none;
  }

  /* icons only on very small screens */
  .footer-icon {
    width: 18px;
    height: 18px;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .header {
    padding: 6px 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .header-center-text {
    font-size: 18px
  }

  .brand-logo {
    height: clamp(30px, 10vw, 40px);
    width: auto;
    max-width: 100%
  }

  .container {
    padding: 0 10px;
  }

  h1 {
    font-size: 24px;
  }

  .card {
    padding: 8px 4px;
  }

  .card img {
    max-width: 100px;
  }

  .card h3 {
    margin: 2px 0 0 0;
    text-align: center;
    padding: 0 2px;
    font-size: 12px;
  }

  .price-tag {
    margin: 0 0 2px 0;
    text-align: center;
    padding: 0 2px;
    font-size: 12px;
  }

  .rating-line {
    margin-top: 2px;
  }

  .rating-line span.small {
    font-size: 10px;
    margin-left: 4px;
  }

  .slider-container {
    height: 180px;
  }

  .video-container {
    height: auto;
    aspect-ratio: 16/9;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

/* Ensure proper mobile viewport */
@media screen and (max-width: 768px) {
  .nav-center-text {
    display: block;
  }

  .container {
    width: 100%;
    max-width: 100%;
    margin: 16px auto 28px;
    padding: 0 14px;
  }

  .products-grid {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }

  .card {
    width: 100%;
    max-width: 100%;
  }

  /* Address form tweaks for tablets */
  .address-container {
    max-width: 100%;
    padding: 0 14px;
  }

  .address-form {
    padding: 16px;
  }

  .form-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto
  }

  .button-group {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  /* Mobile navigation collapses below header, shown only when open */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FDE0CE;
    /* Theme color */
    padding: 20px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.2);
    z-index: 1000;
    transform: none;
    transition: none;
    border: 1px solid var(--border-color);
    border-top: none;
    display: none;
    flex-direction: column;
  }

  #nav-toggle-checkbox:checked~.nav {
    display: flex;
  }

  .nav-open .nav {
    display: flex;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-header {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    margin: 2px 0 8px;
    min-height: 40px;
  }
}

/* Footer alignment: left-align content with a tighter left offset */
.footer .container {
  text-align: left !important;
  padding-left: 6px;
}

@media (max-width: 480px) {
  .footer .container {
    padding-left: 4px;
  }

  .address-container {
    padding: 10px
  }

  .address-form {
    padding: 14px
  }
}

/* Ensure contact and social blocks are not centered by auto margins */
.footer .footer-contact {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.footer .footer-social {
  display: flex;
  justify-content: flex-start !important;
}

/* Customer Services section */
.footer-services {
  max-width: 900px;
  margin: 10px 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.footer-services h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.footer-services p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-services a {
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
}

.footer-services a:hover {
  color: var(--accent1);
}

.footer-services a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent1);
  transition: width .25s ease;
}

.footer-services a:hover::after {
  width: 100%;
}

@media (max-width: 480px) {
  .footer-services {
    padding: 10px 10px;
  }
}

/* Centered brand label in header grid */
.header-center-text {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  font-weight: 800;
  color: var(--text-primary);
  pointer-events: none;
  text-align: center;
  font-size: 28px;
}

/* Ensure subtitle is visible on all screens */
.header-center-text p {
  font-size: 11px !important;
  /* Override inline 0.3em */
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* Hide hamburger menu specifically on admin login page */
.admin-login-page .nav-toggle {
  display: none !important;
}

/* Header cart icon/link on the right */
.header-cart {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.header-cart svg {
  width: 22px;
  height: 22px;
  transition: transform .2s ease;
  transform-origin: center
}

.header-cart:hover svg {
  transform: scale(1.12)
}

/* Video Slider */
.video-slider {
  position: relative;
  width: 100%;
  max-width: 1150px;
  margin: 60px auto 40px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
  background: transparent;
  /* remove black surround */
  height: 260px;
  /* compact default height */
}

.video-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  /* slight inset for card shadow */
  box-sizing: border-box;
}

.video-card {
  width: 100%;
  height: auto;
  max-width: 220px;
  /* cap card width for a smaller visual */
  margin: 0 auto;
  /* center within grid cell */
  background: transparent;
  border: none;
  border-radius: 14px;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  /* tighter padding for compact look */
}

.video-thumb {
  position: relative;
  width: 100%;
  max-width: none;
  /* allow full width */
  height: auto;
  /* size via aspect-ratio */
  aspect-ratio: 4/3;
  /* taller frame to avoid tight crop */
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: none;
}

.video-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  /* fill container height set by aspect-ratio */
  object-fit: cover;
  /* fill frame for a tighter look */
  background: transparent;
  /* remove black surround */
}

/* Remove special image override; allow defaults from markup/styles */
.video-thumb .play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 28px;
  /* smaller play icon for smaller cards */
  opacity: 0;
  transition: opacity .25s ease;
}

.video-thumb:hover .play-overlay {
  opacity: 1;
}

.video-slider .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(220, 38, 38, 0.7);
  color: white;
  border: none;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-size: 1.1rem;
  border-radius: 50%;
  transition: background-color 0.3s;
  z-index: 10;
}

.video-slider .prev {
  left: 20px;
}

.video-slider .next {
  right: 20px;
}

@media (max-width: 768px) {
  .video-slider {
    margin: 40px auto 30px;
    height: 200px;
  }
}

/* Keep video slider arrows visible on small phones */
@media (max-width: 480px) {
  .video-slider .slider-btn {
    display: block;
  }

  .video-slider {
    height: 160px;
  }
}

/* Top scrolling banner */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: #FDE0CE;
  border-bottom: 1px solid var(--border-color);
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden
}

.top-banner .marquee {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  will-change: transform
}

.top-banner .marquee-content {
  display: inline-block;
  padding: 0 20px;
  font-weight: 700;
  color: #000;
  animation: banner-scroll 18s linear infinite
}

@keyframes banner-scroll {
  0% {
    transform: translateX(100%)
  }

  100% {
    transform: translateX(-100%)
  }
}

#reviewsList {
  color: #fff !important
}

#reviewsList .small {
  color: #fff !important
}

#reviewForm {
  color: #fff !important
}

#reviewForm h4 {
  color: #fff !important
}

#reviewForm label {
  color: #fff !important
}

#reviewForm select,
#reviewForm textarea {
  color: #fff !important;
  background: #111;
  border: 1px solid var(--border-color)
}

#reviewForm ::placeholder {
  color: rgba(255, 255, 255, 0.85) !important
}

#reviewsList .review-card,
#reviewsList .review-card * {
  color: #fff !important
}

#reviewsList .no-reviews {
  color: #000 !important
}

.product-detail-gallery {
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.product-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.product-thumb {
  width: 95px;
  height: 95px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer
}

@media (max-width: 480px) {
  .product-detail-gallery {
    gap: 8px
  }

  .product-thumb {
    width: 64px;
    height: 64px
  }
}

/* Special targeting for the TV Advertisements section to push it down */
#ytVideoSection {
  margin-top: 60px !important;
}

@media (max-width: 768px) {
  #ytVideoSection {
    margin-top: 60px !important;
  }
}

/* Cart Qty Buttons Hover Effect */
button[data-action="change-qty"]:hover {
  background: rgba(220, 38, 38, 0.1) !important;
  color: #b91c1c !important;
}

/* Mobile Cart Item Styling */
@media (max-width: 480px) {
  #cartItems>div {
    grid-template-columns: 80px 1fr !important;
    /* Stack controls below or adjust */
    grid-template-rows: auto auto;
    gap: 12px !important;
    padding: 12px !important;
  }

  /* Image stays left */
  #cartItems>div>img {
    grid-row: 1 / span 2;
    width: 80px !important;
    height: 80px !important;
  }

  /* Title and Details */
  #cartItems>div>div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  /* Controls (Qty + Remove) move to bottom right or full width row */
  #cartItems>div>div:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    flex-direction: row !important;
    /* Horizontal on mobile */
    justify-content: space-between;
    align-items: center !important;
    width: 100%;
  }
}

/* =========================================
   ADMIN DASHBOARD LAYOUT (New Implementation)
   ========================================= */

.admin-dashboard-container {
  max-width: 1200px;
  margin: 120px auto 40px;
  /* Top margin accounts for fixed header */
  padding: 0 20px;
}

.admin-hero {
  margin-bottom: 30px;
  text-align: center;
}

.admin-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 5px;
  color: #333;
}

/* Main Grid Layout */
.admin-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  /* Left column slightly narrower than right */
  gap: 25px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .admin-grid-layout {
    grid-template-columns: 1fr;
    /* Stack on smaller screens */
  }
}

/* Card General Styles */
.admin-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 25px;
  border: 1px solid #eee;
}

/* Card Headers */
.card-title-blue {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  padding: 15px 20px;
  border-bottom: 1px solid #e0f2fe;
}

.card-title-blue h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header-orange {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  padding: 15px 20px;
  border-bottom: 1px solid #ffedd5;
}

.card-header-orange h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #ea580c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header-plain {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header-plain h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Notification Box */
.notification-box {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
  padding: 15px;
  margin: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  transition: transform 0.2s;
}

.notification-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.bell-icon {
  font-size: 1.2rem;
}

.notification-meta {
  margin-left: auto;
  font-size: .8rem;
  color: #94a3b8;
  white-space: nowrap
}

/* Action Buttons Grid */
.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 20px;
}

.action-sq-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 15px 10px;
  text-decoration: none;
  color: #475569;
  transition: all 0.2s;
  text-align: center;
}

.action-sq-btn:hover {
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  color: #334155;
}

.btn-icon-circle,
.btn-icon-rect {
  font-size: 1.5rem;
  margin-bottom: 8px;
  background: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-icon-rect {
  border-radius: 8px;
  width: auto;
  padding: 0 10px;
}

/* Admin Checklist */
.admin-checklist {
  list-style: none;
  padding: 0 20px;
  margin: 0 0 20px 0;
}

.admin-checklist li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 0.95rem;
}

.check-green {
  color: #10b981;
  font-weight: bold;
}

/* History Link Button */
.history-link-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8fafc;
  border-top: 1px solid #eee;
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  transition: background 0.2s;
}

.history-link-btn:hover {
  background: #f1f5f9;
  color: #334155;
}

/* Recent Orders List */
.order-history-list {
  padding: 0;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.order-item-row:last-child {
  border-bottom: none;
}

.user-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
}

.order-info-col {
  flex: 1;
}

.order-top-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.user-name {
  font-weight: 600;
  color: #333;
}

.order-id {
  font-size: 0.8rem;
  color: #94a3b8;
}

.order-btm-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #64748b;
}

.order-price {
  font-weight: 600;
  color: #333;
}

/* View All Pill */
.view-all-pill-small {
  background: #f1f5f9;
  color: #64748b;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s;
}

.view-all-pill-small:hover {
  background: #e2e8f0;
  color: #334155;
}

.view-all-pill-small.btn-dispatch {
  background: #dbeafe;
  color: #1d4ed8
}

.view-all-pill-small.btn-dispatch:hover {
  background: #bfdbfe;
  color: #1e3a8a
}

.view-all-pill-small.btn-complete {
  background: #dcfce7;
  color: #166534
}

.view-all-pill-small.btn-complete:hover {
  background: #bbf7d0;
  color: #14532d
}

/* Product Table */
.product-list-table-container {
  overflow-x: auto;
  padding: 0;
}

.admin-product-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  /* Prevent squishing on small screens */
}

.admin-product-table th {
  background: #f8fafc;
  text-align: left;
  padding: 12px 20px;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}

.admin-product-table td {
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #333;
  font-size: 0.95rem;
}

.admin-product-table tr:last-child td {
  border-bottom: none;
}

.prod-thumb-small {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
}

/* Status Badges */
.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-instock {
  background: #dcfce7;
  color: #166534;
}

.status-low {
  background: #ffedd5;
  color: #9a3412;
}

.status-out {
  background: #fee2e2;
  color: #991b1b;
}

/* Action Buttons */
.table-actions {
  display: flex;
  gap: 8px;
}

.btn-icon-small {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1rem;
}

.btn-edit-light {
  background: #f0f9ff;
  color: #0284c7;
}

.btn-edit-light:hover {
  background: #e0f2fe;
}

.btn-delete-light {
  background: #fef2f2;
  color: #dc2626;
}

.btn-delete-light:hover {
  background: #fee2e2;
}

/* Reviews Section */
.reviews-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  padding: 20px;
}

/* Admin preview lists for videos/YouTube */
.admin-preview-list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px
}

.preview-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #eee
}

.preview-info {
  display: flex;
  flex-direction: column
}

.preview-info {
  flex: 1
}

.preview-title {
  font-weight: 700;
  font-size: .95rem;
  color: #111
}

.preview-meta {
  font-size: .85rem;
  color: #6B7280
}

.review-item {
  border-bottom: 1px solid #f1f5f9;
  padding: 15px 0;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.reviewer-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.review-date {
  font-size: 0.8rem;
  color: #94a3b8;
}

.review-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.review-text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}

#productReviewsToggle:not(:checked)~.review-list .review-item:nth-child(n+4) {
  display: none
}

#productReviewsToggle:checked~.review-list .review-item {
  display: block
}

#productReviewsToggle:checked~.show-all-label {
  display: none
}

#productReviewsToggle:not(:checked)~.show-less-label {
  display: none
}

/* Stock Select Dropdown */
.stock-select-wrapper {
  position: relative;
}

.stock-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 6px 24px 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.stock-select.instock {
  background-color: #dcfce7;
  color: #166534;
}

.stock-select.outstock {
  background-color: #fee2e2;
  color: #991b1b;
}

.stock-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

/* Admin mobile sidebar and toggles */
.admin-menu-btn {
  display: none;
  position: absolute;
  left: 12px;
  top: 8px;
  background: transparent;
  border: 0;
  padding: 8px;
  font-size: 22px;
  line-height: 1;
  color: #000
}

.admin-mobile-sidebar {
  position: fixed;
  top: var(--header-offset);
  left: 0;
  width: 280px;
  max-width: 80%;
  height: calc(100vh - var(--header-offset));
  background: #fff;
  border-right: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateX(-100%);
  transition: transform .3s ease;
  z-index: 1200
}

.admin-mobile-sidebar {
  will-change: transform;
  backface-visibility: hidden;
  contain: layout paint
}

.admin-mobile-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px
}

.admin-mobile-nav a {
  display: block;
  padding: 10px 12px;
  color: #000;
  text-decoration: none;
  border-radius: 8px
}

.admin-mobile-nav a:hover {
  background: #f3f4f6
}

.admin-mobile-close {
  display: block;
  margin-top: auto;
  padding: 10px 12px;
  background: #f3f4f6;
  border-radius: 8px;
  text-align: center;
  color: #000
}

.admin-overlay {
  position: fixed;
  top: var(--header-offset);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 1100
}

#adminMenuToggle:checked~.admin-mobile-sidebar {
  transform: translateX(0)
}

#adminMenuToggle:checked~.admin-overlay {
  display: block
}

.mobile-only {
  display: none
}

.desktop-only {
  display: inline-block
}

@media (max-width:768px) {
  .admin-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center
  }

  .mobile-only {
    display: inline-block
  }

  .desktop-only {
    display: none
  }

  #reviewsToggle:not(:checked)~.review-list .review-item:nth-child(n+4) {
    display: none
  }

  #reviewsToggle:checked~.review-list .review-item {
    display: block
  }

  html,
  body {
    overflow-x: hidden
  }

  body {
    overscroll-behavior-x: none
  }

  .admin-dashboard-container,
  .container {
    max-width: 100%;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px
  }

  .admin-grid-layout {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .admin-col-left,
  .admin-col-right {
    width: 100%
  }

  .admin-card {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden
  }

  .history-card,
  .manage-card,
  .reviews-section {
    max-width: 100%
  }

  .action-buttons-grid {
    grid-template-columns: 1fr;
    width: 100%
  }

  .action-sq-btn {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    box-sizing: border-box;
    padding: 16px 12px
  }

  .btn-icon-circle,
  .btn-icon-rect {
    flex-shrink: 0
  }

  .order-item-row {
    flex-direction: column;
    align-items: stretch
  }

  .order-top-row,
  .order-btm-row,
  .table-actions {
    flex-wrap: wrap
  }

  .product-list-rows,
  .product-row-item,
  .prod-actions,
  .prod-info {
    width: 100%;
    max-width: 100%
  }

  .product-list-table-container {
    overflow-x: hidden
  }

  .admin-product-table {
    min-width: 0
  }

  .admin-preview-list,
  .preview-item,
  .preview-info {
    width: 100%;
    max-width: 100%
  }

  .admin-hero {
    display: none
  }

  .orders-card {
    display: block
  }

  .manage-card {
    display: none
  }

  .history-card {
    display: none
  }

  .product-list-card,
  .reviews-section {
    display: block;
    width: 100%;
    max-width: 100%
  }

  /* Stack tables into cards */
  .stack-products {
    display: block;
    width: 100%
  }

  .stack-products thead {
    display: none
  }

  .stack-products tbody {
    display: block
  }

  .stack-products tr {
    display: block;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04)
  }

  .stack-products td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 16px;
    line-height: 1.4
  }

  .stack-products td:last-child {
    border-bottom: none
  }

  .stack-products td::before {
    content: "";
    font-weight: 600;
    color: #64748b;
    margin-right: 12px
  }

  .stack-products td:nth-child(1)::before {
    content: "Product"
  }

  .stack-products td:nth-child(2)::before {
    content: "Stock Status"
  }

  .stack-products td:nth-child(3)::before {
    content: "Price"
  }

  .stack-products td:nth-child(4)::before {
    content: "Actions"
  }

  .table-actions {
    gap: 10px
  }

  .btn-icon-small {
    width: 34px;
    height: 34px;
    font-size: 18px
  }

  .stack-reviews {
    display: block;
    width: 100%
  }

  .stack-reviews thead {
    display: none
  }

  .stack-reviews tbody {
    display: block
  }

  .stack-reviews tr {
    display: block;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04)
  }

  .stack-reviews td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 16px;
    line-height: 1.4
  }

  .stack-reviews td:last-child {
    border-bottom: none
  }

  .stack-reviews td::before {
    content: "";
    font-weight: 600;
    color: #64748b;
    margin-right: 12px
  }

  .stack-reviews td:nth-child(1)::before {
    content: "Reviewer"
  }

  .stack-reviews td:nth-child(2)::before {
    content: "Product"
  }

  .stack-reviews td:nth-child(3)::before {
    content: "Date"
  }

  .stack-reviews td:nth-child(4)::before {
    content: "Rating"
  }

  .stack-reviews td:nth-child(5)::before {
    content: "Review"
  }

  .stack-reviews td:nth-child(6)::before {
    content: "Actions"
  }

  /* Compact Add-to-Cart for Mobile */
  .add-btn {
    display: flex;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.75rem;
    border-radius: 8px;
    white-space: nowrap;
  }
}

/* Extra small screens (320px) */
@media (max-width: 360px) {
  .container {
    padding: 0 8px;
    margin: 12px auto 24px;
  }

  .slider-container {
    height: 160px;
    margin: 0 auto 20px;
    border-radius: 8px;
  }

  .products-grid {
    gap: 4px;
    padding: 0 4px;
  }

  .card {
    padding: 6px 3px;
  }

  .card img {
    max-width: 80px;
  }

  .card h3 {
    margin: 2px 0 0 0;
    font-size: 11px;
  }

  .price-tag {
    margin: 0 0 2px 0;
    font-size: 11px;
  }

  .add-btn {
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .hero {
    margin: 20px auto 20px;
  }

  .hero h1 {
    font-size: 20px;
  }

  .trusted-heading {
    font-size: 1.2em;
  }

  .promo-banner img {
    max-width: 100%;
    height: auto;
  }

  .video-section h2 {
    font-size: 20px;
  }

  .video-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .header {
    padding: 6px 8px;
  }

  .header-logo {
    height: 36px;
  }
}