/* ========================================
   SCENT - Perfume Shop CSS
   ======================================== */

/* CSS Variables */
:root {
  --primary: #66023c;
  --primary-dark: #4a0129;
  --secondary: #4a0129;
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --nav-bg: #f8f9fa;
  --hero-bg: #f0f2f5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Every direct section/page content should grow to fill space */
body > .page-wrapper,
body > main,
body > section:not(.footer):not(.nav-wrapper) {
  flex: 1;
}

.site-main {
  flex: 1;
}


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

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

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

ul, ol {
  list-style: none;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  box-shadow: var(--shadow);
}

.nav-top {
  background: var(--nav-bg);
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-circle {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.nav-search {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 0.5rem 1rem;
  width: 350px;
}

.nav-search:focus-within {
  border-color: var(--primary);
}

.search-input-field {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
  background: transparent;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  display: flex;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-phone {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.nav-phone:hover {
  color: var(--primary);
}

.nav-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 0.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-btn:hover {
  color: var(--primary);
}

.cart-count, .favorites-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Bottom Navigation */
.nav-bottom {
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
}

.nav-bottom .nav-menu {
  display: flex;
  gap: 2rem;
  padding: 0.75rem 0;
}

.nav-bottom .nav-link {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

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

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

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

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1.25rem;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-login-btn:hover {
  background: var(--primary-dark);
  color: white;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 200;
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: var(--hero-bg);
  padding: 0;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  min-height: 400px;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-tagline .highlight {
  color: var(--primary);
  font-weight: 600;
}

.hero-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  width: fit-content;
}

.hero-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.hero-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 450px;
}

/* ========================================
   Section Titles
   ======================================== */
.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
}

/* ========================================
   Categories
   ======================================== */
.categories {
  background: white;
  padding: 80px 0;
}

.categories-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover {
  transform: scale(1.05);
}

.category-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

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

.category-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-name {
  margin-top: 0.75rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* ========================================
   Products Section
   ======================================== */
.products-section {
  padding: 80px 0;
  background: var(--bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  background: #f9fafb;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
}

.product-badge.best-seller {
  background: #10b981;
}

.product-badge.iconic {
  background: #8b5cf6;
}

.product-gender {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0,0,0,0.7);
  color: white;
}

.product-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-actions {
  opacity: 1;
}

.product-action-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.product-action-btn.add-cart {
  background: var(--primary);
  color: white;
}

.product-action-btn.add-cart:hover {
  background: var(--primary-dark);
}

.product-action-btn.whatsapp {
  background: #25d366;
  color: white;
}

.product-action-btn.whatsapp:hover {
  background: #128c7e;
}

.product-action-btn.favorite {
  background: white;
  color: var(--text-muted);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-action-btn.favorite.active {
  color: var(--primary);
}

.product-action-btn.favorite.active svg {
  fill: var(--primary);
}

.product-info {
  padding: 1rem;
}

.product-brand {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.note-pill {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: #f3f4f6;
  color: var(--text-muted);
  border-radius: 4px;
}

.product-sizes {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.size-pill {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: #f3f4f6;
  color: var(--text-muted);
  border-radius: 4px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-current {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.price-original {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ========================================
   Brands Section
   ======================================== */
.brands-section {
  padding: 80px 0;
  background: white;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.brand-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.brand-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.brand-card-name {
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
  padding: 80px 0;
  background: var(--bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: #1f2937;
  color: white;
  padding: 4rem 0 0;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: #9ca3af;
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  border-top: 1px solid #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: #9ca3af;
  font-size: 0.85rem;
}

.footer-payments {
  display: flex;
  gap: 1rem;
}

.payment-icon {
  color: #9ca3af;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #9ca3af;
  transition: var(--transition);
}

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

/* Footer collapsible body — always visible on desktop */
.footer-collapse-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact .footer-collapse-body {
  display: block;
}

/* The collapsible row wrapper is transparent on desktop */
.footer-collapsible-row {
  display: contents; /* behaves as if the children are direct grid children */
}
/* ========================================
   Search Modal (full-screen)
   ======================================== */
.search-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  backdrop-filter: blur(4px);
}

.search-modal-overlay.active {
  display: flex;
}

.search-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 680px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: searchModalIn 0.18s ease;
}

@keyframes searchModalIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.search-modal-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  transition: border-color 0.2s;
}

.search-modal-input-wrap:focus-within {
  border-color: var(--primary);
  background: #fff;
}

.search-modal-input-wrap svg { color: #9ca3af; flex-shrink: 0; }

.search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: #111827;
}

.search-modal-input::placeholder { color: #9ca3af; }

.search-modal-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #e5e7eb;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #6b7280;
  flex-shrink: 0;
  transition: background 0.15s;
}

.search-modal-clear:hover { background: #d1d5db; }

.search-modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s;
}

.search-modal-close-btn:hover { color: #111827; }

.search-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.search-modal-hint {
  color: #9ca3af;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.search-modal-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.search-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-tag {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
}

.search-tag:hover {
  background: #f5e6f0;
  border-color: var(--primary);
  color: var(--primary);
}

.search-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

.search-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #f3f4f6;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-result-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.search-result-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-color: #e5e7eb;
}

.search-result-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f9fafb;
}

.search-result-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.search-result-card:hover .search-result-img img {
  transform: scale(1.04);
}

.search-result-info {
  padding: 0.6rem 0.75rem;
}

.search-result-brand {
  font-size: 0.72rem;
  color: #9ca3af;
  margin: 0 0 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-result-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.3rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.search-modal-view-all {
  text-align: center;
  padding-top: 0.5rem;
}

.search-modal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  color: #9ca3af;
  text-align: center;
}

.search-modal-empty svg { color: #d1d5db; }
.search-modal-empty p { font-size: 0.95rem; margin: 0; }

/* Nav search bar — now just a clickable trigger */
.nav-search-placeholder {
  flex: 1;
  color: #9ca3af;
  font-size: 0.9rem;
  pointer-events: none;
}

@media (max-width: 640px) {
  .search-modal-overlay { padding-top: 0; align-items: flex-end; }
  .search-modal-box { width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; max-height: 90vh; }
  .search-results-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   Cart Sidebar
   ======================================== */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 150;
  backdrop-filter: blur(2px);
}

.cart-overlay.active { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100vw;
  height: 100%;
  background: #fff;
  z-index: 151;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}

.cart-sidebar.active { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
}

.cart-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.cs-header-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 0.3rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
}

.cart-close:hover { background: #f3f4f6; color: #111827; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.25rem;
}

/* ── Sidebar item ─────────────────────────────────────────────── */
.cs-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.cs-item-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
}

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

.cs-item-body {
  flex: 1;
  min-width: 0;
}

.cs-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-item-size {
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 0 0 0.3rem;
}

.cs-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.cs-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cs-qty-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.2rem 0.4rem;
}

.cs-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #374151;
  font-size: 1rem;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s;
}

.cs-qty-btn:hover { background: #e5e7eb; }

.cs-qty-val {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  color: #111827;
}

.cs-remove-form { margin: 0; }

.cs-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
}

.cs-remove-btn:hover { color: #66023c; background: #f5e6f0; }

/* ── Empty state ──────────────────────────────────────────────── */
.cs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  text-align: center;
  color: #9ca3af;
}

.cs-empty p { font-size: 0.95rem; margin: 0; }

.cs-shop-link {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.25rem;
  transition: background 0.15s;
}

.cs-shop-link:hover { background: var(--primary-dark); }

/* ── Footer ───────────────────────────────────────────────────── */
.cart-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}

.cs-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.cs-subtotal-row span:first-child { color: #6b7280; font-weight: 500; }

#cs-total-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.cs-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.cs-view-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.cs-view-cart-btn:hover { border-color: #9ca3af; background: #f9fafb; }

.cs-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.cs-checkout-btn:hover { background: var(--primary-dark); }

.cs-trust {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ── Old cart classes kept for compatibility ──────────────────── */
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cart-total-label { font-weight: 600; }
.cart-total-value { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.cart-checkout-btn {
  width: 100%; padding: 1rem; background: var(--primary); color: white;
  border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer;
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.cart-checkout-btn:hover { background: var(--primary-dark); }


/* ========================================
   Favorites Sidebar
   ======================================== */
.favorites-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 150;
}

.favorites-overlay.active {
  display: block;
}

.favorites-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 100%;
  height: 100%;
  background: white;
  z-index: 151;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.favorites-sidebar.active {
  right: 0;
}

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

.favorites-header h3 {
  font-size: 1.25rem;
}

.favorites-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
}

.favorites-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.favorites-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

/* ── Favorites sidebar items (DB-backed) ─────────────────────── */
.fav-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0f0f0;
  transition: opacity 0.2s;
}

.fav-sidebar-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.fav-sidebar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fav-sidebar-info {
  flex: 1;
  min-width: 0;
}

.fav-sidebar-brand {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0 0 0.15rem;
}

.fav-sidebar-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-sidebar-name:hover { color: #66023c; }

.fav-sidebar-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: #66023c;
  margin: 0.2rem 0 0;
}

.fav-sidebar-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.fav-sidebar-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

.favorites-footer {
  padding: 1rem;
  border-top: 1px solid #f0f0f0;
}

.favorite-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.favorite-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.favorite-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-item-details {
  flex: 1;
}

.favorite-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.favorite-item-brand {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.favorite-item-price {
  font-weight: 600;
  color: var(--primary);
}

.favorite-item-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.favorite-item-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.favorite-item-btn.add-cart {
  background: var(--primary);
  color: white;
}

.favorite-item-btn.remove {
  background: #f3f4f6;
  color: var(--text-muted);
}

/* ========================================
   Product Modal
   ======================================== */
.product-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 200;
}

.product-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-modal {
  background: white;
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.product-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.product-modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

.product-modal-image img {
  width: 100%;
  border-radius: var(--radius);
}

.product-modal-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-modal-brand {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-modal-brand a {
  color: var(--primary);
}

.product-modal-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.product-modal-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
}

.product-modal-gender {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f3f4f6;
  color: var(--text-muted);
}

.product-modal-size-selector {
  margin-bottom: 1.5rem;
}

.product-modal-size-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-modal-sizes {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-modal-size {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.product-modal-size.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.product-modal-size-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.product-modal-size-price {
  font-size: 0.8rem;
  opacity: 0.8;
}

.product-modal-price {
  margin-bottom: 1.5rem;
}

.product-modal-price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.product-modal-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-add-cart-modal {
  flex: 1;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-cart-modal:hover {
  background: var(--primary-dark);
}

.btn-whatsapp-modal {
  padding: 1rem 1.5rem;
  background: #25d366;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

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

.btn-favorite-modal {
  padding: 1rem;
  background: #f3f4f6;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-favorite-modal.active {
  background: var(--primary);
  color: white;
}

.product-modal-description {
  margin-bottom: 1.5rem;
}

.product-modal-description h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.product-modal-description p {
  color: var(--text-muted);
  line-height: 1.7;
}

.product-modal-notes {
  margin-bottom: 1.5rem;
}

.product-modal-notes h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.product-modal-notes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-modal-note {
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================
   Floating Buttons
   ======================================== */
.floating-buttons {
  position: fixed;
  /* Sit above Tawk.to widget (~70px) + original 2rem gap */
  bottom: calc(70px + 2rem);
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 50;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn.whatsapp {
  background: #25d366;
  color: white;
}

.floating-btn.phone {
  background: var(--primary);
  color: white;
}

/* ========================================
   Toast Notification
   ======================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2937;
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.toast.success {
  background: #10b981;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
  }
  
  .hero-content {
    padding: 2rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-btn {
    margin: 0 auto;
  }
  
  .hero-image {
    height: 300px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .product-modal-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-search {
    display: none;
  }
  
  .nav-phone {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-bottom {
    display: none;
  }
  
  .hero-title {
    /* handled in hero mobile block */
  }
  
  .hero-tagline {
    /* handled in hero mobile block */
  }
  
  .categories-grid {
    gap: 1rem;
  }
  
  .category-circle {
    width: 90px;
    height: 90px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* ── Mobile product card: compact 2-col layout ── */
  .product-info {
    padding: 0.6rem 0.6rem 0.5rem;
  }

  .product-brand {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
  }

  .product-name {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    line-height: 1.25;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-notes {
    display: none; /* hide fragrance notes on mobile to save space */
  }

  .product-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-bottom: 0.3rem;
  }

  .variant-pill {
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
  }

  .price-current {
    font-size: 0.85rem;
  }

  .price-variants-count {
    font-size: 0.7rem;
  }

  .product-card-actions {
    margin-top: 0.4rem;
    gap: 0.3rem;
  }

  .card-size-select {
    font-size: 0.72rem !important;
    padding: 0.3rem 0.4rem !important;
    margin-bottom: 0.3rem !important;
  }

  .product-card-add-btn {
    font-size: 0.72rem;
    padding: 0.45rem 0.4rem;
    gap: 0.25rem;
    border-radius: 6px;
  }

  .product-card-add-btn svg {
    width: 12px;
    height: 12px;
  }

  .product-card-fav-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
  }

  .product-card-fav-btn svg {
    width: 13px;
    height: 13px;
  }

  /* ── Mobile footer: full-width collapsible accordion ── */
  .footer-grid {
    display: block;
    padding: 0;
  }

  /* Brand section stays full-width at top */
  .footer-brand {
    padding: 1.5rem 1rem 1.25rem;
    border-bottom: 1px solid #374151;
  }

  /* The 2-col wrapper becomes a normal block on mobile */
  .footer-collapsible-row {
    display: block;
  }

  /* Each section is full-width */
  .footer-links,
  .footer-contact {
    border: none;
    gap: 0;
    border-bottom: 1px solid #374151;
  }

  /* Accordion toggle header — full width row with chevron */
  .footer-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .footer-title::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-top: -4px;
  }

  .footer-title.open::after {
    transform: rotate(-135deg);
    margin-top: 4px;
  }

  /* Collapsible body — hidden by default on mobile */
  .footer-collapse-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    gap: 0;
  }

  .footer-collapse-body.open {
    max-height: 500px;
  }

  .footer-links .footer-collapse-body {
    padding: 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }

  .footer-contact .footer-collapse-body {
    padding: 0 1rem 1rem;
    display: block;
  }

  .footer-contact .footer-collapse-body p {
    margin-bottom: 0.6rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .floating-buttons {
    /* On mobile Tawk widget is taller (~80px) */
    bottom: calc(80px + 1rem);
    right: 1rem;
  }
  
  .floating-btn {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cart-sidebar,
  .favorites-sidebar {
    width: 100%;
    right: -100%;
  }
}

/* ========================================
   Product Detail Page
   ======================================== */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-detail-image {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-detail-info h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-brand-link {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-brand-link a {
  color: var(--primary);
}

.product-detail-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.detail-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
}

.detail-badge.best-seller {
  background: #10b981;
}

.detail-badge.iconic {
  background: #8b5cf6;
}

.detail-gender {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f3f4f6;
  color: var(--text-muted);
}

.size-selector-detail {
  margin-bottom: 1.5rem;
}

.size-selector-detail h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.size-options-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.size-option-detail {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.size-option-detail.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.size-option-detail .size-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.size-option-detail .size-price {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.product-detail-price {
  margin-bottom: 1.5rem;
}

.product-detail-price .current-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.product-detail-price .original-price {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 0.75rem;
}

.product-detail-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-add-to-cart {
  flex: 1;
  min-width: 150px;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-to-cart:hover {
  background: var(--primary-dark);
}

.btn-whatsapp-order {
  padding: 1rem 1.5rem;
  background: #25d366;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

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

.btn-favorite-detail {
  width: 50px;
  height: 50px;
  background: #f3f4f6;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-favorite-detail.active {
  background: var(--primary);
  color: white;
}

.product-description-detail {
  margin-bottom: 1.5rem;
}

.product-description-detail h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.product-description-detail p {
  color: var(--text-muted);
  line-height: 1.7;
}

.product-notes-detail h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.notes-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.note-tag {
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================
   Login Page
   ======================================== */
.login-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}

.login-container {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.login-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group .forgot-password {
  font-size: 0.85rem;
  color: var(--primary);
  text-align: right;
  margin-top: 0.25rem;
}

.btn-login {
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.btn-login:hover {
  background: var(--primary-dark);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-divider span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.btn-whatsapp-login {
  padding: 1rem;
  background: #25d366;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

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

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--primary);
  font-weight: 500;
}

/* ========================================
   Dashboard Page
   ======================================== */
.dashboard-page {
  padding: 3rem 0;
  background: var(--bg);
  min-height: calc(100vh - 200px);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

.dashboard-sidebar {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  height: fit-content;
}

.dashboard-user {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.dashboard-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.dashboard-user h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.dashboard-user p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.dashboard-nav-item:hover,
.dashboard-nav-item.active {
  background: #f3f4f6;
  color: var(--primary);
}

.dashboard-nav-item svg {
  width: 20px;
  height: 20px;
}

.dashboard-content {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.dashboard-section {
  display: none;
}

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

.dashboard-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.order-id {
  font-weight: 600;
}

.order-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.order-status.pending {
  background: #fef3c7;
  color: #d97706;
}

.order-status.processing {
  background: #dbeafe;
  color: #2563eb;
}

.order-status.completed {
  background: #d1fae5;
  color: #059669;
}

.order-items-list {
  margin-bottom: 1rem;
}

.order-item {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.order-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.order-item-details h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.order-item-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-sidebar {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .dashboard-nav-item {
    white-space: nowrap;
    margin-bottom: 0;
  }
}

/* ========================================
   Checkout Page
   ======================================== */
.checkout-page {
  padding: 3rem 0;
  background: var(--bg);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
}

.checkout-form {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.checkout-form h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkout-section {
  margin-bottom: 2rem;
}

.checkout-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkout-section h3 svg {
  color: var(--primary);
}

.checkout-summary {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.checkout-summary h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.checkout-items {
  margin-bottom: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.checkout-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.checkout-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

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

.checkout-item-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.checkout-item-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.checkout-item-price {
  font-weight: 600;
  color: var(--primary);
}

.checkout-totals {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.checkout-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.checkout-row.total span:last-child {
  color: var(--primary);
}

.btn-place-order {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: var(--transition);
}

.btn-place-order:hover {
  background: var(--primary-dark);
}

@media (max-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  
  .checkout-summary {
    position: static;
  }
}

/* ========================================
   Size Selection Modal
   ======================================== */
.size-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.size-modal {
  background: white;
  border-radius: var(--radius);
  width: 90%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}

.size-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem;
  color: var(--text-muted);
}

.size-modal-close:hover {
  color: var(--text);
}

.size-modal-content {
  display: flex;
  flex-direction: column;
}

.size-modal-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.size-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.size-modal-info {
  padding: 1.5rem;
}

.size-modal-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.size-modal-brand {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.size-modal-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.size-modal-option {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  flex: 1;
  min-width: 80px;
}

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

.size-modal-option.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.size-modal-size-name {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
}

.size-modal-size-price {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.size-modal-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.size-modal .btn-add-to-cart {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.size-modal .btn-add-to-cart:hover {
  background: var(--primary-dark);
}

/* ========================================
   Auth Pages (Login / Register)
   ======================================== */
.auth-page {
  padding: 4rem 1rem;
  background: var(--bg);
  min-height: calc(100vh - 280px);
  display: flex;
  align-items: center;
}

.auth-page .container {
  display: flex;
  justify-content: center;
}

.auth-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  padding: 2.5rem 3rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.btn-auth {
  width: 100%;
  padding: 0.9rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.btn-auth:hover {
  background: var(--primary-dark);
}

.auth-footer {
  text-align: center;
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

.form-error {
  color: #dc2626;
  font-size: 0.825rem;
  margin-top: 0.15rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
}

/* ========================================
   Checkout Page
   ======================================== */
.checkout-page {
  padding: 2rem 1rem 4rem;
  background: var(--bg);
  min-height: calc(100vh - 280px);
}

.checkout-breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.checkout-breadcrumb a {
  color: var(--text-muted);
}

.checkout-breadcrumb a:hover {
  color: var(--primary);
}

.checkout-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.checkout-empty {
  text-align: center;
  padding: 4rem 1rem;
  background: white;
  border-radius: var(--radius);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  align-items: start;
}

.checkout-section {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.checkout-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkout-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
}

.checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.payment-option {
  display: block;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.payment-option:hover {
  border-color: var(--primary);
}

.payment-option.active {
  border-color: var(--primary);
  background: #f5e6f0;
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-option-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.payment-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.mpesa-icon {
  background: #00a651;
  color: white;
}

.cod-icon {
  background: #f3f4f6;
  color: var(--text);
}

.payment-option-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.payment-option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mpesa-box, .cod-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1rem;
}

.mpesa-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.mpesa-steps {
  list-style: decimal;
  padding-left: 1.25rem;
  line-height: 1.7;
  font-size: 0.9rem;
}

.mpesa-steps li {
  margin-bottom: 0.35rem;
}

.cod-box {
  background: #fef3c7;
  border-color: #fde047;
  font-size: 0.9rem;
  line-height: 1.6;
}

.order-summary {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 1rem;
}

.order-items {
  margin-bottom: 1.5rem;
}

.order-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.order-item-img {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.order-item-qty {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

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

.order-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.order-item-size {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.order-item-price {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.order-totals {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.order-grand-total {
  font-size: 1.1rem;
  font-weight: 700;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.order-grand-total span:last-child {
  color: var(--primary);
  font-size: 1.25rem;
}

.text-green {
  color: #10b981;
}

.btn-place-order {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-place-order:hover {
  background: var(--primary-dark);
}

.order-secure {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Order Confirmation */
.confirmation-card {
  max-width: 600px;
  margin: 3rem auto;
  background: white;
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.confirmation-icon svg {
  color: #10b981;
}

.confirmation-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.confirmation-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.confirmation-details {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.confirmation-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.confirmation-items {
  text-align: left;
  margin-bottom: 2rem;
}

.confirmation-items h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.confirmation-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 600px) {
  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .confirmation-card {
    padding: 2rem 1.5rem;
  }
}

/* ========================================
   Policy Pages (Delivery, Privacy)
   ======================================== */
.policy-hero {
  background: var(--hero-bg);
  padding: 3rem 1rem;
  border-bottom: 1px solid var(--border);
}

.policy-breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.policy-breadcrumb a {
  color: var(--text-muted);
}

.policy-breadcrumb a:hover {
  color: var(--primary);
}

.policy-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.policy-hero p {
  color: var(--text-muted);
}

.policy-body {
  padding: 3rem 0 5rem;
}

.policy-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.policy-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.policy-section {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.policy-icon {
  width: 52px;
  height: 52px;
  background: #f5e6f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.policy-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.policy-section p {
  color: var(--text-muted);
  line-height: 1.75;
}

.policy-list {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.policy-list li {
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}

.policy-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Delivery table */
.delivery-table {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.delivery-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

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

.delivery-row.header {
  background: #f9fafb;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.delivery-row:not(.header):hover {
  background: #f5e6f0;
}

.free-tag {
  color: #10b981;
  font-weight: 600;
}

/* Contact cards */
.policy-contact-cards {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.policy-contact-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
  text-decoration: none;
}

.policy-contact-card:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.policy-contact-card.whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: white;
}

.policy-contact-card.whatsapp:hover {
  background: #128c7e;
  border-color: #128c7e;
  color: white;
}

/* Sidebar */
.policy-sidebar {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.policy-sidebar-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.policy-sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.policy-summary-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.policy-summary-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
}

.policy-summary-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

.policy-toc {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.policy-toc a {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  display: block;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.policy-toc a:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.contact-form-group label .required {
  color: var(--primary);
}

.contact-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.contact-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102,2,60,0.08);
}

.contact-input.is-error {
  border-color: #66023c;
}

.contact-input::placeholder {
  color: #9ca3af;
}

textarea.contact-input {
  resize: vertical;
  min-height: 130px;
}

select.contact-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.contact-error {
  font-size: 0.8rem;
  color: #66023c;
  margin: 0;
}

.contact-success {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.contact-submit {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #374151;
}

.contact-info-list a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info-list a:hover {
  text-decoration: underline;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #f5e6f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

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

@media (max-width: 640px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
  .contact-submit {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   Blog Page
   ======================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.blog-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.blog-card:hover .blog-image img {
  transform: scale(1.04);
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-category {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: #f5e6f0;
  color: var(--primary);
  border-radius: 20px;
}

.blog-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: #f3f4f6;
  color: var(--text-muted);
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .policy-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .delivery-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .delivery-row.header {
    display: none;
  }

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


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

/* Admin body */
.admin-body {
  background: #f9fafb;
}

/* Admin layout */
.admin-layout {
  display: flex;
  overflow-x: hidden; /* prevent sidebar from causing page-level horizontal scroll */
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.admin-sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 110;
  transition: transform 0.3s ease;
}

.admin-sidebar-logo {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-sidebar-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem;
}

.admin-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
}

.admin-nav-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.25rem;
  text-decoration: none;
}

.admin-nav-item:hover {
  background: #f9fafb;
  color: #111827;
}

.admin-nav-item.active {
  background: #f5e6f0;
  color: #66023c;
}

.admin-nav-item svg {
  flex-shrink: 0;
}

.admin-nav-badge {
  margin-left: auto;
  background: #66023c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

/* Collapsible nav */
.admin-nav-collapsible {
  flex-direction: column;
  align-items: stretch;
}

.admin-nav-item-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.admin-nav-chevron {
  margin-left: auto;
  transition: transform 0.2s;
}

.admin-nav-collapsible.open .admin-nav-chevron {
  transform: rotate(180deg);
}

.admin-nav-sub {
  display: none;
  flex-direction: column;
  margin-top: 0.25rem;
  padding-left: 2.25rem;
}

.admin-nav-collapsible.open .admin-nav-sub {
  display: flex;
}

.admin-nav-sub-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #6b7280;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.admin-nav-sub-item:hover {
  background: #f9fafb;
  color: #111827;
}

.admin-nav-sub-item.active {
  color: #66023c;
  font-weight: 600;
}

/* Sidebar footer */
.admin-sidebar-footer {
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem;
}

.admin-sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.admin-sidebar-footer-link:hover {
  background: #f9fafb;
  color: #111827;
}

.admin-logout-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

/* ── Main area ──────────────────────────────────────────────── */
.admin-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-topbar-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem;
}

.admin-topbar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-topbar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.admin-topbar-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  width: 200px;
}

.admin-topbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #66023c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-topbar-username {
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
}

/* ── Content ────────────────────────────────────────────────── */
.admin-content {
  flex: 1;
  padding: 1.5rem;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
}

/* ── Cards ──────────────────────────────────────────────────── */
.admin-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.admin-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-count-badge {
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.admin-card-body {
  padding: 1.5rem;
}

.admin-card-link {
  font-size: 0.9rem;
  color: #66023c;
  font-weight: 500;
  text-decoration: none;
}

.admin-card-link:hover {
  text-decoration: underline;
}

/* ── Stats ──────────────────────────────────────────────────── */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.admin-stat-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-info {
  flex: 1;
}

.admin-stat-label {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.admin-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
}

/* ── Two column layout ──────────────────────────────────────── */
.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ── Quick actions ──────────────────────────────────────────── */
.admin-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.admin-quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: #111827;
  font-weight: 500;
  font-size: 0.9rem;
}

.admin-quick-action-btn:hover {
  border-color: #66023c;
  box-shadow: 0 2px 8px rgba(102,2,60,0.1);
}

.admin-quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.admin-table thead {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
  text-align: left;
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
  color: #374151;
}

.admin-table tbody tr:hover {
  background: #fafafa;
}

.admin-table-empty {
  text-align: center;
  padding: 3rem 1rem !important;
  color: #9ca3af;
}

.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-product-thumb {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-product-name {
  font-weight: 500;
  color: #111827;
}

.admin-price {
  color: #66023c;
  font-weight: 600;
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #66023c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── Badges ─────────────────────────────────────────────────── */
.admin-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-badge-pending {
  background: #fef3c7;
  color: #d97706;
}

.admin-badge-processing {
  background: #dbeafe;
  color: #2563eb;
}

.admin-badge-completed {
  background: #d1fae5;
  color: #059669;
}

.admin-badge-cancelled {
  background: #fee2e2;
  color: #dc2626;
}

/* Order status badge aliases */
.admin-badge-pending       { background: #fef3c7; color: #d97706; }
.admin-badge-confirmed     { background: #d1fae5; color: #059669; }
.admin-badge-processing    { background: #dbeafe; color: #2563eb; }
.admin-badge-ready_shipped { background: #ede9fe; color: #7c3aed; }
.admin-badge-delivered     { background: #d1fae5; color: #065f46; }
.admin-badge-completed     { background: #d1fae5; color: #059669; }
.admin-badge-cancelled     { background: #fee2e2; color: #dc2626; }

/* Order status radio option styles */
.order-status-confirmed     { color: #059669; }
.order-status-ready_shipped { color: #7c3aed; }
.order-status-delivered     { color: #065f46; }

/* ── Admin tab count pill ───────────────────────────────────── */
.admin-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  background: rgba(0,0,0,0.08);
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 4px;
}
.admin-tab.active .admin-tab-count {
  background: rgba(255,255,255,0.25);
}

/* ── Order detail modal layout ──────────────────────────────── */
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}


.order-detail-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-info-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
}

.order-info-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0 0 0.75rem;
}

.order-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.order-info-row > span:first-child {
  color: #6b7280;
  flex-shrink: 0;
}

.order-info-row > span:last-child {
  text-align: right;
  word-break: break-word;
}

@media (max-width: 700px) {
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
  .admin-modal-lg {
    max-width: 100%;
    max-height: 90vh;
    margin: 0.5rem;
  }
  .admin-modal-body {
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
  }
  .order-detail-grid {
    gap: 1rem;
  }
  .order-info-card {
    padding: 0.85rem;
  }
  .order-info-card h3 {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  .order-info-row {
    font-size: 0.8rem;
    padding: 0.25rem 0;
  }
  .order-detail-main table {
    font-size: 0.8rem;
  }
  .order-detail-main th,
  .order-detail-main td {
    padding: 0.4rem 0.5rem;
  }
  .admin-modal-footer {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .admin-modal-footer .admin-btn {
    flex: 1;
    min-width: 100px;
    text-align: center;
  }
  .admin-modal-header {
    padding: 1rem;
  }
  .admin-modal-title {
    font-size: 1.1rem;
  }
}

/* ── Order status radio grid ────────────────────────────────── */
.order-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.order-status-option {
  cursor: pointer;
}

.order-status-option input[type="radio"] {
  display: none;
}

.order-status-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.order-status-option input:checked + .order-status-label {
  border-color: currentColor;
  background: rgba(0,0,0,0.04);
}

.order-status-pending    { color: #d97706; }
.order-status-processing { color: #2563eb; }
.order-status-completed  { color: #059669; }
.order-status-cancelled  { color: #dc2626; }


.admin-badge-info {
  background: #e0e7ff;
  color: #4f46e5;
}

/* ── Action buttons ─────────────────────────────────────────── */
.admin-action-btns {
  display: flex;
  gap: 0.5rem;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
}

.admin-action-btn:hover {
  background: #f9fafb;
}

.admin-action-edit:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.admin-action-delete:hover {
  border-color: #dc2626;
  color: #dc2626;
}

/* ── Buttons ────────────────────────────────────────────────── */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.admin-btn-primary {
  background: #66023c;
  color: #fff;
}

.admin-btn-primary:hover {
  background: #4a0129;
}

.admin-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.admin-btn-secondary:hover {
  background: #e5e7eb;
}

.admin-btn-ghost {
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.admin-btn-ghost:hover {
  background: #f9fafb;
}

.admin-btn-danger {
  background: #dc2626;
  color: #fff;
}

.admin-btn-danger:hover {
  background: #b91c1c;
}

/* ── Modals ─────────────────────────────────────────────────── */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-modal-overlay.active {
  display: flex;
}

.admin-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.admin-modal-sm {
  max-width: 450px;
}

.admin-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.admin-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem;
  transition: color 0.2s;
}

.admin-modal-close:hover {
  color: #111827;
}

.admin-modal-body {
  padding: 1.5rem;
}

.admin-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ── Forms ──────────────────────────────────────────────────── */
.admin-form-group {
  margin-bottom: 1rem;
}

.admin-form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.admin-form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.admin-form-input:focus {
  outline: none;
  border-color: #66023c;
  box-shadow: 0 0 0 3px rgba(102,2,60,0.1);
}

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

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-form-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 400;
}

.admin-form-hint-text {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0.5rem 0 0.25rem;
}

.required {
  color: #dc2626;
}

.admin-current-image {
  margin-bottom: 0.75rem;
}

/* ── Delete modal ───────────────────────────────────────────── */
.admin-delete-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.admin-delete-text {
  text-align: center;
  color: #6b7280;
  line-height: 1.6;
}

/* ── Filters ────────────────────────────────────────────────── */
.admin-filters {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}

.admin-filter-input {
  flex: 1;
  min-width: 200px;
}

.admin-filter-select {
  min-width: 150px;
}

/* ── Tabs ───────────────────────────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  background: #fff;
  padding: 0.75rem;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-tab {
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s;
}

.admin-tab:hover {
  background: #f9fafb;
  color: #111827;
}

.admin-tab.active {
  background: #66023c;
  color: #fff;
}

/* ── Brands grid ────────────────────────────────────────────── */
.admin-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.admin-brand-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
}

.admin-brand-card:hover {
  border-color: #66023c;
  box-shadow: 0 2px 8px rgba(102,2,60,0.1);
}

.admin-brand-logo {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.admin-brand-initial {
  font-size: 2rem;
  font-weight: 700;
  color: #66023c;
}

.admin-brand-info {
  text-align: center;
}

.admin-brand-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.admin-brand-count {
  font-size: 0.85rem;
  color: #6b7280;
}

/* ── Empty state ────────────────────────────────────────────── */
.admin-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
}

.admin-empty-state svg {
  margin-bottom: 1rem;
}

.admin-link {
  color: #66023c;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #d9a0c4;
}

/* ── Toast ──────────────────────────────────────────────────── */
.admin-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #111827;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
  z-index: 300;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
}

.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast-success {
  background: #059669;
}

.admin-toast-error {
  background: #dc2626;
}

/* ── Sidebar overlay (mobile) ───────────────────────────────── */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 105;
}

.admin-sidebar-overlay.active {
  display: block;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-sidebar-close {
    display: block;
  }
  .admin-main {
    margin-left: 0;
    overflow-x: hidden;
  }
  
  .admin-main .admin-content {
    overflow-x: auto;
  }
  .admin-topbar-hamburger {
    display: block;
  }
  .admin-two-col {
    grid-template-columns: 1fr;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Collapse topbar to left + right only — hide center search column */
  .admin-topbar {
    grid-template-columns: auto auto;
  }

  .admin-topbar-center {
    display: none;
  }

  .admin-topbar-search {
    display: none;
  }
  .admin-topbar-username {
    display: none;
  }
  .admin-form-row {
    grid-template-columns: 1fr;
  }
  .admin-quick-actions {
    grid-template-columns: 1fr;
  }
  .admin-brands-grid {
    grid-template-columns: 1fr;
  }

  /* ── Admin content padding ── */
  .admin-content {
    padding: 1rem 0.75rem;
  }

  .admin-page-title {
    font-size: 1.35rem;
  }

  /* ── Scrollable tabs on mobile ── */
  .admin-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding: 0.6rem 0.75rem;
    gap: 0.4rem;
    scrollbar-width: none;
    /* Constrain to viewport so it scrolls internally, not the page */
    max-width: 100%;
    box-sizing: border-box;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }

  .admin-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  /* ── Orders table → horizontal scroll on mobile ── */
  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.75rem;
    padding: 0 0.75rem;
  }

  .admin-table {
    min-width: 700px;
  }

  /* Filter bar stacks on mobile */
  .pf-bar {
    padding: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pf-search-wrap {
    min-width: 0;
    flex: 1;
  }

  .pf-select-wrap {
    width: 100%;
  }

  .pf-select {
    width: 100%;
  }

  .pf-search-btn {
    flex: 1;
    min-width: 100px;
  }

  /* Stats grid */
  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .admin-stat-card {
    padding: 1rem;
  }

  .admin-stat-value {
    font-size: 1.4rem;
  }
}


/* ========================================
   PRODUCTS PAGE — FILTER BAR
   ======================================== */

.pf-bar {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.pf-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Search */
.pf-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.pf-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.pf-search-input {
  width: 100%;
  padding: 0.6rem 2.25rem 0.6rem 2.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  background: #f9fafb;
}

.pf-search-input:focus {
  outline: none;
  border-color: #66023c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102,2,60,0.08);
}

.pf-clear-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0.2rem;
  display: flex;
  align-items: center;
}

.pf-clear-btn:hover { color: #374151; }

/* Selects */
.pf-select-wrap {
  position: relative;
  flex-shrink: 0;
}

.pf-select {
  appearance: none;
  padding: 0.6rem 2rem 0.6rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.875rem;
  background: #f9fafb;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 130px;
}

.pf-select:focus {
  outline: none;
  border-color: #66023c;
  background: #fff;
}

.pf-select-chevron {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9ca3af;
}

.pf-search-btn {
  flex-shrink: 0;
  padding: 0.6rem 1.1rem;
}

.pf-reset-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.pf-reset-link:hover { background: #f3f4f6; color: #374151; }

/* Active filter chips */
.pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f5e6f0;
  color: #4a0129;
  border: 1px solid #d9a0c4;
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.pf-chip-remove {
  color: #4a0129;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}

.pf-chip-remove:hover { opacity: 1; }

/* Gender / misc badges */
.pf-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pf-badge-women  { background: #fce7f3; color: #be185d; }
.pf-badge-men    { background: #dbeafe; color: #1d4ed8; }
.pf-badge-unisex { background: #d1fae5; color: #065f46; }
.pf-badge-purple { background: #ede9fe; color: #6d28d9; }

/* ========================================
   BULK TOOLBAR
   ======================================== */

.bulk-toolbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  color: #fff;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
  animation: slideDown 0.2s ease;
}

.bulk-toolbar.visible {
  display: flex;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bulk-toolbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bulk-count {
  font-weight: 600;
  font-size: 0.9rem;
}

.bulk-deselect {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.bulk-deselect:hover { border-color: #fff; color: #fff; }

.bulk-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bulk-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.bulk-btn-success { background: #059669; color: #fff; }
.bulk-btn-success:hover { background: #047857; }

.bulk-btn-warning { background: #d97706; color: #fff; }
.bulk-btn-warning:hover { background: #b45309; }

.bulk-btn-info { background: #2563eb; color: #fff; }
.bulk-btn-info:hover { background: #1d4ed8; }

.bulk-btn-danger { background: #dc2626; color: #fff; }
.bulk-btn-danger:hover { background: #b91c1c; }

/* ========================================
   TABLE — CHECKBOX COLUMN
   ======================================== */

.col-check  { width: 44px; }
.col-product{ min-width: 220px; }
.col-brand  { min-width: 110px; }
.col-cat    { min-width: 110px; }
.col-gender { width: 90px; }
.col-price  { width: 110px; }
.col-status { width: 90px; }
.col-actions{ width: 180px; }

/* Custom checkbox */
.admin-checkbox-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.admin-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.admin-checkbox-label input:checked + .admin-checkbox-custom {
  background: #66023c;
  border-color: #66023c;
}

.admin-checkbox-label input:checked + .admin-checkbox-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

.admin-checkbox-label input:indeterminate + .admin-checkbox-custom {
  background: #66023c;
  border-color: #66023c;
}

.admin-checkbox-label input:indeterminate + .admin-checkbox-custom::after {
  content: '';
  width: 8px;
  height: 2px;
  background: #fff;
  display: block;
}

/* Row selected highlight */
.product-row.row-selected {
  background: #f5e6f0 !important;
}

/* Duplicate action button */
.admin-action-duplicate:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* ========================================
   CHUNKED IMAGE UPLOADER
   ======================================== */

.img-uploader {
  width: 100%;
}

.img-uploader-dropzone {
  border: 2px dashed #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-uploader-dropzone.drag-over {
  border-color: #66023c;
  background: #f5e6f0;
}

.img-uploader-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.img-uploader-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  pointer-events: none;
}

.img-uploader-hint {
  font-size: 0.875rem;
  color: #6b7280;
}

.img-uploader-hint-small {
  font-size: 0.75rem;
  color: #9ca3af;
}

.img-uploader-browse-btn {
  pointer-events: all;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
  position: relative;
}

.img-uploader-browse-btn:hover {
  border-color: #66023c;
  color: #66023c;
}

/* Preview */
.img-uploader-preview {
  position: relative;
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-uploader-preview img {
  max-height: 120px;
  max-width: 100%;
  border-radius: 6px;
  object-fit: contain;
}

.img-uploader-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s;
}

.img-uploader-remove:hover { background: #dc2626; }

/* Progress */
.img-uploader-progress-wrap {
  margin-top: 0.75rem;
}

.img-uploader-progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.img-uploader-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #66023c, #f43f5e);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.img-uploader-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.35rem;
}

/* Status messages */
.img-uploader-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.uploader-success { color: #059669; font-weight: 500; }
.uploader-error   { color: #dc2626; font-weight: 500; }

/* Existing image preview (edit mode) */
.uploader-current-preview {
  margin-bottom: 0.75rem;
}

.uploader-existing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.uploader-existing img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.uploader-existing span {
  font-size: 0.82rem;
  color: #6b7280;
}

/* ========================================
   ADMIN MODAL — LARGE SIZE
   ======================================== */

.admin-modal-lg {
  max-width: 720px;
}

/* ========================================
   PAGINATION
   ======================================== */

.admin-pagination {
  padding: 1rem 1.5rem;
  border-top: 1px solid #f3f4f6;
}

.admin-pagination nav {
  display: flex;
  justify-content: center;
}

/* Custom admin pagination */
.admin-pag-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.admin-pag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
  line-height: 1;
}

.admin-pag-btn:hover:not(.admin-pag-disabled):not(.admin-pag-active) {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
}

.admin-pag-active {
  background: #111827;
  border-color: #111827;
  color: #fff;
  cursor: default;
}

.admin-pag-disabled {
  color: #d1d5db;
  cursor: not-allowed;
  background: #f9fafb;
}

.admin-pag-dots {
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: default;
}


/* ========================================
   VARIANT BUILDER (Admin Product Modal)
   ======================================== */

.variant-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.variant-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.variant-add-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.variant-builder {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.variant-builder-thead {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 40px;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.variant-builder-body {
  display: flex;
  flex-direction: column;
}

.variant-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 40px;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
}

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

.variant-size-input,
.variant-price-input,
.variant-sku-input {
  padding: 0.5rem 0.65rem !important;
  font-size: 0.875rem !important;
  margin: 0 !important;
}

.variant-remove-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  border: 1px solid #d9a0c4;
  border-radius: 6px;
  color: #dc2626;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.variant-remove-btn:hover {
  background: #d9a0c4;
  border-color: #fca5a5;
}

@media (max-width: 768px) {
  .variant-builder-thead,
  .variant-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .variant-builder-thead span:last-child {
    display: none;
  }
  .variant-remove-btn {
    grid-column: 1;
    width: 100%;
  }
}


/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */

/* Breadcrumb */
.pd-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.pd-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.pd-breadcrumb-list a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.pd-breadcrumb-list a:hover { color: var(--primary); }

.pd-breadcrumb-list svg { color: #d1d5db; }

.pd-breadcrumb-current { color: var(--primary); font-weight: 500; }

/* Section */
.pd-section {
  padding: 2.5rem 0 4rem;
}

/* Grid */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── Image column ── */
.pd-image-col {
  position: sticky;
  top: 90px;
}

.pd-image-main {
  position: relative;
  background: #f9fafb;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.pd-image-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.4s ease;
}

.pd-image-main:hover img {
  transform: scale(1.04);
}

.pd-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}

.pd-badge-popular      { background: #fef3c7; color: #92400e; }
.pd-badge-best-seller  { background: #d1fae5; color: #065f46; }
.pd-badge-iconic       { background: #ede9fe; color: #5b21b6; }
.pd-badge-new          { background: #dbeafe; color: #1e40af; }
.pd-badge-limited      { background: #fee2e2; color: #991b1b; }

.pd-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pd-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  background: #f9fafb;
}

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

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

/* ── Info column ── */
.pd-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.pd-brand-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.pd-brand-link:hover { color: var(--primary); }

.pd-gender-pill {
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pd-gender-women  { background: #fce7f3; color: #be185d; }
.pd-gender-men    { background: #dbeafe; color: #1d4ed8; }
.pd-gender-unisex { background: #d1fae5; color: #065f46; }

.pd-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.pd-category {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Price */
.pd-price-wrap {
  margin-bottom: 1.5rem;
}

.pd-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  transition: all 0.2s;
}

/* Variants */
.pd-variants {
  margin-bottom: 1.5rem;
}

.pd-variants-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pd-selected-size-label {
  color: var(--primary);
  font-weight: 700;
}

.pd-variant-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pd-variant-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.65rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 90px;
  text-align: center;
}

.pd-variant-btn:hover {
  border-color: var(--primary);
  background: #f5e6f0;
}

.pd-variant-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.pd-variant-size {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
}

.pd-variant-price {
  font-size: 0.78rem;
  margin-top: 0.2rem;
  opacity: 0.85;
  display: block;
}

.pd-variant-btn.active .pd-variant-price {
  opacity: 0.9;
}

/* Actions */
.pd-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pd-btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  justify-content: center;
}

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

.pd-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pd-btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }

.pd-btn-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}

.pd-btn-fav:hover,
.pd-btn-fav.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #f5e6f0;
}

/* Divider */
.pd-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* Section blocks */
.pd-section-block {
  margin-bottom: 1.5rem;
}

.pd-section-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f3f4f6;
}

.pd-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Notes */
.pd-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pd-note-tag {
  padding: 0.35rem 0.85rem;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  border: 1px solid var(--border);
}

/* Details table */
.pd-details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pd-details-table tr {
  border-bottom: 1px solid #f3f4f6;
}

.pd-details-table td {
  padding: 0.6rem 0;
}

.pd-details-table td:first-child {
  color: var(--text-muted);
  width: 40%;
  font-weight: 500;
}

.pd-details-table td:last-child {
  color: var(--text);
  font-weight: 600;
}

/* Related */
.pd-related {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 900px) {
  .pd-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pd-image-col {
    position: static;
  }
  .pd-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .pd-actions {
    flex-direction: column;
  }
  .pd-btn-fav {
    width: 100%;
    height: 50px;
  }
  .pd-variant-grid {
    gap: 0.5rem;
  }
  .pd-variant-btn {
    min-width: 80px;
    padding: 0.5rem 0.75rem;
  }
}


/* ========================================
   PRODUCT CARD — VARIANT PILLS
   ======================================== */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-link {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.section-link:hover { opacity: 0.75; }

/* Variant pills on product card */
.product-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.variant-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #374151;
  cursor: default;
  transition: all 0.15s;
  white-space: nowrap;
}

.variant-pill:hover {
  background: #f5e6f0;
  border-color: var(--primary);
  color: var(--primary);
}

/* "From KSh" + sizes count */
.price-variants-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
  font-weight: 400;
}

/* Size modal — improved variant option */
.size-modal-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}

.size-modal-option:hover {
  border-color: var(--primary);
  background: #f5e6f0;
}

.size-modal-option.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.size-modal-size-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.size-modal-size-price {
  font-size: 0.9rem;
  font-weight: 700;
}


/* ========================================
   PRODUCT LISTING PAGE (PLP)
   ======================================== */

.page-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 3rem 1rem;
  text-align: center;
}

.page-header-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.page-header-sub {
  color: rgba(255,255,255,0.75);
  margin-top: 0.5rem;
  font-size: 1rem;
}

.plp-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.plp-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.plp-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.plp-filter-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.plp-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.plp-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
}

.plp-empty svg { margin: 0 auto 1rem; display: block; }
.plp-empty p   { font-size: 1.1rem; margin-bottom: 1rem; }

.plp-pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* Pagination styling */
.plp-pagination nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.plp-pagination .flex.gap-2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plp-pagination .inline-flex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: white;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.plp-pagination .inline-flex:hover {
  background: var(--bg);
  color: var(--primary);
  border-color: var(--primary);
}

.plp-pagination .inline-flex.bg-gray-200,
.plp-pagination .inline-flex[aria-current="page"] {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.plp-pagination .inline-flex.cursor-not-allowed {
  opacity: 0.5;
  cursor: not-allowed;
}

.plp-pagination .inline-flex.rounded-l-md {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.plp-pagination .inline-flex.rounded-r-md {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

.plp-pagination svg {
  width: 1.25rem;
  height: 1.25rem;
}

.plp-pagination .text-sm {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Mobile pagination */
@media (max-width: 640px) {
  .plp-pagination nav > div:first-child {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }
  
  .plp-pagination nav > div:last-child {
    display: none;
  }
}

/* ========================================
   PRODUCTS LAYOUT WITH SIDEBAR
   ======================================== */

.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Sidebar */
.products-sidebar {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 6rem;
}

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

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.sidebar-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.sidebar-toggle:hover {
  background: var(--bg);
  color: var(--text);
}

/* Filter Groups */
.filter-group {
  margin-bottom: 2rem;
}

.filter-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 0.875rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: var(--transition);
}

.filter-option:hover {
  background: var(--bg);
}

.filter-option input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--primary);
}

.filter-option span {
  font-size: 0.875rem;
  color: var(--text);
}

/* Price Range */
.price-range {
  margin-top: 0.5rem;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: var(--transition);
}

.price-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.price-separator {
  color: var(--text-muted);
  font-weight: 500;
}

/* Sort Select */
.sort-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
  transition: var(--transition);
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

/* Filter Actions */
.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.filter-btn-apply {
  background: var(--primary);
  color: white;
}

.filter-btn-apply:hover {
  background: var(--primary-dark);
}

.filter-btn-reset {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.filter-btn-reset:hover {
  background: var(--bg);
}

/* Main Content */
.products-main {
  min-height: 100vh;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.mobile-filter-toggle:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.mobile-filter-toggle svg {
  margin-bottom: 0.25rem;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 30;
  display: none;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
  }
  
  .products-sidebar {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .products-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .products-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 35;
    transition: left 0.3s ease;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
  }
  
  .products-sidebar.open {
    left: 0;
  }
  
  .sidebar-overlay {
    display: block;
  }
  
  .mobile-filter-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .mobile-only {
    display: block;
  }
  
  .products-main {
    margin-top: 1rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .products-sidebar {
    width: 100%;
    max-width: 320px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
  }
  
  .mobile-filter-toggle {
    bottom: 1rem;
    right: 1rem;
    padding: 0.875rem;
  }
}

/* ========================================
   PRODUCT CARD — ACTIONS (server-side cart)
   ======================================== */

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card-img-link {
  display: block;
  text-decoration: none;
}

.product-name-link {
  text-decoration: none;
  color: inherit;
}

.product-name-link:hover .product-name {
  color: var(--primary);
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.product-card-cart-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-size-select {
  width: 100%;
}

.product-card-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.product-card-add-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.product-card-fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.2s;
  text-decoration: none;
}

.product-card-fav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f5e6f0;
}


/* ========================================
   PRODUCT DETAIL — BUY NOW + FLASH
   ======================================== */

.pd-btn-buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex: 1;
}

.pd-btn-buy-now:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

/* Flash success bar */
.pd-flash-success {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.pd-flash-success svg {
  flex-shrink: 0;
  color: #059669;
}

.pd-flash-success a {
  margin-left: auto;
  color: #059669;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}


/* ========================================
   CART PAGE
   ======================================== */

.cart-page {
  padding: 2rem 0 4rem;
  background: var(--bg);
  min-height: 60vh;
}

.cart-page-header {
  margin-bottom: 1.75rem;
}

.cart-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-page-count {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  background: #f3f4f6;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

/* Layout */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

/* Column headers */
.cart-col-headers {
  display: grid;
  grid-template-columns: 1fr 110px 120px 110px 40px;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

/* Item row */
.cart-item-row {
  display: grid;
  grid-template-columns: 1fr 110px 120px 110px 40px;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.cart-item-row:hover {
  box-shadow: var(--shadow-lg);
}

/* Product cell */
.cart-item-product {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item-product img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f9fafb;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-size {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Price / total */
.cart-item-price,
.cart-item-total {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.cart-item-total {
  color: var(--primary);
}

/* Qty stepper */
.cart-item-qty-wrap {
  display: flex;
  align-items: center;
}

.cart-qty-form {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover { background: #f3f4f6; }

.cart-qty-val {
  width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 32px;
}

/* Remove button */
.cart-remove-btn {
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-remove-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Continue shopping */
.cart-continue {
  margin-top: 0.5rem;
}

.cart-continue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.cart-continue-link:hover { color: var(--primary); }

/* ── Summary card ── */
.cart-summary-col {
  position: sticky;
  top: 90px;
}

.cart-summary-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.cart-summary-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.cart-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cart-summary-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.cart-free-tag {
  color: #059669;
  font-weight: 600;
}

.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}

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

.cart-login-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Trust badges */
.cart-trust {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.cart-trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Empty state */
.cart-empty-state {
  text-align: center;
  padding: 5rem 1rem;
}

.cart-empty-icon {
  margin-bottom: 1.5rem;
}

.cart-empty-state h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cart-empty-state p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cart-shop-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.cart-shop-btn:hover { background: var(--primary-dark); }

/* Responsive */
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary-col {
    position: static;
  }
  .cart-col-headers {
    display: none;
  }
  .cart-item-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .cart-item-price::before  { content: 'Price: '; color: var(--text-muted); font-weight: 400; }
  .cart-item-total::before  { content: 'Total: '; color: var(--text-muted); font-weight: 400; }
  .cart-item-remove-wrap { display: flex; justify-content: flex-end; }
}

/* ========================================
   FLASH TOAST NOTIFICATIONS
   ======================================== */

#flash-toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.flash-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 380px;
  pointer-events: all;
  animation: toastSlideIn 0.3s ease;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(110%); }
  to   { opacity: 1; transform: translateX(0); }
}

.flash-toast-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.flash-toast-error {
  background: #f5e6f0;
  color: #991b1b;
  border: 1px solid #d9a0c4;
}

.flash-toast-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.flash-toast svg {
  flex-shrink: 0;
}

.flash-toast span {
  flex: 1;
}

.flash-toast-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: inherit;
  opacity: 0.6;
  padding: 0;
  flex-shrink: 0;
}

.flash-toast-close:hover { opacity: 1; }


/* ========================================
   AUTH PAGES — IMPROVED
   ======================================== */

.auth-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  padding: 3rem 1rem;
  background: var(--bg);
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-logo .logo-circle {
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Alert banners */
.auth-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.auth-alert-error {
  background: #f5e6f0;
  color: #991b1b;
  border: 1px solid #d9a0c4;
}

.auth-alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Input with icon */
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap svg {
  position: absolute;
  left: 0.85rem;
  color: #9ca3af;
  pointer-events: none;
  flex-shrink: 0;
}

.auth-input-wrap input {
  width: 100%;
  padding: 0.75rem 0.85rem 0.75rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.auth-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102,2,60,0.1);
}

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.auth-label-row label { margin-bottom: 0; }

/* Remember me */
.auth-remember {
  margin-bottom: 1.25rem;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Submit button */
.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-auth:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: #d1d5db;
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-divider span { color: var(--text-muted); }

/* Footer */
.auth-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }


/* ========================================
   HERO SLIDER
   ======================================== */

.hero-single,
.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  background-size: cover;
  background-position: center;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,0.35); }

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

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.hero-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* ── Mobile hero: let height grow to fit content ── */
@media (max-width: 768px) {
  .hero-single,
  .hero-slider {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  /* Slides stack; only the active one is shown */
  .hero-slide {
    position: relative;
    inset: auto;
    opacity: 0;
    /* keep height:0 when hidden so they don't stack visually */
    height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.7s ease;
  }

  .hero-slide.active {
    opacity: 1;
    height: auto;
    overflow: visible;
    pointer-events: auto;
  }

  /* Single-slide hero */
  .hero-single .hero-slide,
  .hero-single > .hero-overlay {
    position: relative;
    inset: auto;
  }

  /* Overlay must still cover the slide on mobile */
  .hero-overlay {
    position: absolute;
    inset: 0;
  }

  /* Ensure the slide itself is the positioning context */
  .hero-slide,
  .hero-single {
    position: relative;
  }

  /* Content padding & font sizes */
  .hero-container {
    min-height: 0;
    padding: 0;
  }

  .hero-content {
    padding: 2.5rem 1.25rem 3rem;
    text-align: center;
    align-items: center;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 0.6rem;
  }

  .hero-tagline {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }

  .hero-btn {
    margin: 0 auto;
  }

  /* Dots sit below content, not absolute */
  .hero-dots {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    justify-content: center;
    padding: 0.75rem 0 1rem;
    background: transparent;
  }

  /* Prev/next arrows: smaller, stay vertically centred on the slide */
  .hero-prev,
  .hero-next {
    top: auto;
    bottom: 1rem;
    transform: none;
    width: 36px;
    height: 36px;
  }

  .hero-prev { left: 1rem; }
  .hero-next { right: 1rem; }
}

/* ========================================
   NAV — CENTERED SEARCH
   ======================================== */

.nav-search-center {
  flex: 1;
  max-width: 480px;
  margin: 0 1.5rem;
  position: relative;
}

.nav-search-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-search-inner:hover {
  background: #fff;
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav-search-inner svg { color: #9ca3af; flex-shrink: 0; }

/* Search dropdown */
.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  display: none;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}

.nav-search-dropdown.open { display: block; }

.nsd-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
  border-bottom: 1px solid #f3f4f6;
}

.nsd-item:last-child { border-bottom: none; }
.nsd-item:hover { background: #f5e6f0; }

.nsd-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f9fafb;
}

.nsd-info { flex: 1; min-width: 0; }
.nsd-name  { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nsd-brand { font-size: 0.8rem; color: var(--text-muted); }
.nsd-price { font-weight: 700; color: var(--primary); font-size: 0.85rem; white-space: nowrap; }
.nsd-empty { padding: 1.25rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 900px) {
  .nav-search-center { display: none; }
}

/* ========================================
   ADMIN TOPBAR — CENTERED SEARCH + PROFILE
   ======================================== */

.admin-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.admin-topbar-center {
  display: flex;
  justify-content: center;
}

.admin-topbar-search {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.admin-topbar-search-input {
  width: 100%;
}

/* Admin search results */
.admin-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 300;
  display: none;
  overflow: hidden;
  max-height: 380px;
  overflow-y: auto;
}

.admin-search-results.open { display: block; }

.asr-group-label {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  background: #f9fafb;
}

.asr-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
  border-bottom: 1px solid #f3f4f6;
}

.asr-item:hover { background: #f5e6f0; }

.asr-item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.asr-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.asr-name { font-weight: 600; font-size: 0.875rem; }
.asr-sub  { font-size: 0.78rem; color: var(--text-muted); }
.asr-empty { padding: 1rem; text-align: center; color: var(--text-muted); font-size: 0.875rem; }

/* ── Profile dropdown ── */
.admin-profile-wrap {
  position: relative;
}

.admin-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}

.admin-profile-btn:hover { background: #f9fafb; }

.admin-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 220px;
  z-index: 300;
  display: none;
  overflow: hidden;
}

.admin-profile-dropdown.open { display: block; }

.admin-profile-dropdown-header {
  padding: 1rem;
  background: #f9fafb;
}

.admin-profile-dropdown-name  { font-weight: 700; font-size: 0.95rem; }
.admin-profile-dropdown-email { font-size: 0.8rem; color: var(--text-muted); margin: 0.2rem 0 0.5rem; }

.admin-profile-dropdown-divider {
  height: 1px;
  background: #e5e7eb;
}

.admin-profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.admin-profile-dropdown-item:hover { background: #f9fafb; }

.admin-profile-logout {
  color: #dc2626;
}

/* ── Sidebar collapse (desktop) ── */
.admin-sidebar.collapsed {
  width: 64px;
  overflow: hidden;
}

.admin-sidebar.collapsed .logo-text,
.admin-sidebar.collapsed .admin-nav-section-label,
.admin-sidebar.collapsed .admin-nav-item span,
.admin-sidebar.collapsed .admin-nav-chevron,
.admin-sidebar.collapsed .admin-nav-badge,
.admin-sidebar.collapsed .admin-sidebar-footer-link span,
.admin-sidebar.collapsed .admin-nav-sub {
  display: none !important;
}

.admin-sidebar.collapsed .admin-nav-item {
  justify-content: center;
  padding: 0.65rem;
}

.admin-sidebar.collapsed .admin-nav-item-inner {
  justify-content: center;
}

.admin-main.sidebar-collapsed {
  margin-left: 64px;
}

/* ========================================
   ADMIN TOPBAR — HAMBURGER ALWAYS VISIBLE
   ======================================== */

.admin-topbar-hamburger {
  display: flex !important;
}

/* ========================================
   SETTINGS PAGE
   ======================================== */

.settings-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: #fff;
  padding: 0.75rem;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  flex-wrap: wrap;
}

.settings-tab {
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-tab:hover { background: #f9fafb; color: #111827; }
.settings-tab.active { background: var(--primary); color: #fff; }

.settings-panel { display: none; }
.settings-panel.active { display: block; }

/* ========================================
   HERO SLIDES ADMIN
   ======================================== */

.slide-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  background: #fff;
  transition: box-shadow 0.2s;
}

.slide-row:hover { box-shadow: var(--shadow-lg); }

.slide-drag-handle {
  color: #9ca3af;
  cursor: grab;
  flex-shrink: 0;
}

.slide-preview {
  width: 100px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
}

.slide-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

.slide-info { flex: 1; min-width: 0; }
.slide-title    { font-weight: 600; font-size: 0.95rem; }
.slide-subtitle { font-size: 0.82rem; color: #6b7280; margin-top: 0.2rem; }
.slide-btn-preview { font-size: 0.78rem; color: var(--primary); }

.slide-status { flex-shrink: 0; }

/* ========================================
   IMPERSONATION BANNER
   ======================================== */

.impersonate-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.impersonate-stop {
  margin-left: auto;
  background: #d97706;
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s;
}

.impersonate-stop:hover { background: #b45309; }


/* ========================================
   STATIC PAGE VIEW
   ======================================== */

.static-page-section {
  padding: 3rem 0 5rem;
  background: var(--bg);
  min-height: 60vh;
}

.static-page-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow);
}

.static-page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
}

.static-page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

.static-page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.static-page-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.static-page-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.25rem 0 0.4rem;
}

.static-page-content p {
  margin-bottom: 1rem;
}

.static-page-content ul,
.static-page-content ol {
  margin: 0.75rem 0 1rem 1.5rem;
  list-style: revert;
}

.static-page-content li {
  margin-bottom: 0.4rem;
}

.static-page-content a {
  color: var(--primary);
  text-decoration: underline;
}

.static-page-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1.25rem;
  background: #f5e6f0;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
  color: #6b7280;
  font-style: italic;
}

.static-page-content strong { font-weight: 700; }
.static-page-content em     { font-style: italic; }

@media (max-width: 768px) {
  .static-page-wrap {
    padding: 1.5rem;
    border-radius: 0;
  }
}

/* ========================================
   RICH TEXT EDITOR (Admin Pages)
   ======================================== */

.page-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.page-editor-toolbar button {
  padding: 0.3rem 0.6rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #374151;
  transition: all 0.15s;
  min-width: 28px;
}

.page-editor-toolbar button:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.toolbar-select {
  padding: 0.3rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 0.82rem;
  background: #fff;
  cursor: pointer;
}

.page-editor {
  min-height: 280px;
  max-height: 480px;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #374151;
  outline: none;
}

.page-editor:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102,2,60,0.08);
}

.page-editor h2 { font-size: 1.4rem; font-weight: 700; margin: 1rem 0 0.5rem; }
.page-editor h3 { font-size: 1.15rem; font-weight: 700; margin: 0.75rem 0 0.4rem; }
.page-editor p  { margin-bottom: 0.75rem; }
.page-editor ul, .page-editor ol { margin: 0.5rem 0 0.75rem 1.5rem; list-style: revert; }
.page-editor blockquote { border-left: 3px solid var(--primary); padding: 0.5rem 1rem; background: #f5e6f0; margin: 0.75rem 0; }

/* ========================================
   ADMIN MODAL — XL SIZE
   ======================================== */

.admin-modal-xl {
  max-width: 860px;
}

/* ========================================
   FOOTER LOGO LINK
   ======================================== */

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 1rem;
}


/* ========================================
   PRODUCT CARD — HOVER OVERLAY ACTIONS
   ======================================== */

/* Remove old bottom-of-card action area */
.product-card-actions,
.product-card-cart-form,
.card-size-select,
.product-card-add-btn,
.product-card-fav-btn {
  display: none !important;
}

/* Hover overlay on the image */
.product-card-hover-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.65rem;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 3;
}

.product-card:hover .product-card-hover-actions {
  opacity: 1;
}

/* Base pill button */
.pcha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  transition: transform 0.15s, filter 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.pcha-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* "Add to Cart" — red, takes most space */
.pcha-cart {
  flex: 1;
  padding: 0.5rem 0.6rem;
  background: var(--primary);
  color: #fff;
}

/* WhatsApp — green square */
.pcha-whatsapp {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: #25d366;
  color: #fff;
  border-radius: 8px;
}

/* Favourite — white square */
.pcha-fav {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.92);
  color: #6b7280;
  border-radius: 8px;
}

.pcha-fav.active,
.pcha-fav:hover {
  color: var(--primary);
  background: #fff;
}

/* ========================================
   CART / SIZE-SELECTION MODAL
   ======================================== */

.cart-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cart-modal-overlay.active {
  display: flex;
}

.cart-modal {
  position: relative;
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: cartModalIn 0.25s ease;
}

@keyframes cartModalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Close button */
.cart-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 10;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
  transition: background 0.15s;
  backdrop-filter: blur(4px);
}

.cart-modal-close:hover { background: #fff; }

/* Product image — top half */
.cart-modal-img-wrap {
  width: 100%;
  height: 220px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

/* Body */
.cart-modal-body {
  padding: 1.25rem 1.5rem 1.75rem;
}

.cart-modal-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.2rem;
}

.cart-modal-brand {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* Size pills */
.cart-modal-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.cart-modal-size-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.18s;
  min-width: 90px;
}

.cart-modal-size-pill:hover {
  border-color: var(--primary);
  background: #f5e6f0;
}

.cart-modal-size-pill.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.cms-size {
  font-weight: 700;
  font-size: 0.95rem;
}

.cms-price {
  font-size: 0.78rem;
  margin-top: 0.15rem;
  opacity: 0.85;
}

/* Selected price */
.cart-modal-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.1rem;
}

/* Add to Cart button */
.cart-modal-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.cart-modal-add-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 520px) {
  .cart-modal-img-wrap { height: 180px; }
  .cart-modal-body { padding: 1rem 1.1rem 1.5rem; }
  .cart-modal-name { font-size: 1.05rem; }
}

/* ========================================
   LOAD MORE BUTTON
   ======================================== */

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2.25rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.load-more-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.load-more-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.lm-spinner {
  animation: lmSpin 0.8s linear infinite;
}

@keyframes lmSpin {
  to { transform: rotate(360deg); }
}

/* ========================================
   CUSTOMER REVIEWS SECTION
   ======================================== */

.reviews-section {
  padding: 4rem 0;
  background: #fafafa;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.review-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s;
}

.review-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.review-stars {
  display: flex;
  gap: 0.2rem;
  color: #f59e0b;
}

.review-quote {
  font-size: 1rem;
  line-height: 1.65;
  color: #374151;
  font-style: italic;
  flex: 1;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* ========================================
   HERO — FALLBACK (no image)
   ======================================== */

.hero-fallback {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-fallback .hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
