
html, body {
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden !important;
}

img,
video,
iframe {
  max-width: 100%;
}

/* Center empty state card only when the empty-state element is present */
#cart-grid > .empty-state-box:only-child,
#cart-grid > .empty-state-box:only-of-type {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  width: 100%;
}
#wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
  box-shadow: none;
  transition: none;
  margin: 0;
}

#wishlist-grid .product-card {
  width: auto;
  max-width: none;
  margin: 0;
  cursor: default;
}

#wishlist-grid .product-card img {
  cursor: pointer;
}

@media (max-width: 1200px) {
  #wishlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  #wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  #wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.btn-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #1a8cff 60%, #005fa3 100%);
  box-shadow: 0 2px 8px rgba(26,140,255,0.18);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-checkout:hover {
  background: linear-gradient(90deg, #005fa3 60%, #1a8cff 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,140,255,0.24);
}

.quantity-changer {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: max-content;
  min-width: max-content;
  border-radius: 6px;
  padding: 2px 8px;
  margin-left: auto;
}

.quantity-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.quantity-box button {
  width: 30px;
  height: 30px;
}

.items-per-page {
  justify-content: flex-start;
}

.qty-btn {
  background: linear-gradient(90deg, #1a8cff 60%, #005fa3 100%);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-weight: bold;
  box-shadow: 0 1px 4px rgba(26,140,255,0.08);
}

.qty-btn:hover {
  background: linear-gradient(90deg, #005fa3 60%, #1a8cff 100%);
  color: #fff;
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  background: var(--bg-dark-soft, #222b3a);
  border-radius: 6px;
  padding: 4px 8px;
  margin: 0 2px;
  display: inline-block;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.remove-cart-btn {
  width: 100%;
  background-color: #ffeaea;
  color: #e74c3c;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
  margin-top: 6px;
  opacity: 0;
  visibility: hidden;
}
.product-card:hover .remove-cart-btn {
  opacity: 1;
  visibility: visible;
}
.remove-cart-btn:hover {
  background-color: #ffd6d6;
  color: #b71c1c;
}
.remove-wishlist-btn {
  opacity: 0;
  visibility: hidden;
  /* ...existing styles... */
}
.product-card:hover .remove-wishlist-btn {
  opacity: 1;
  visibility: visible;
}
.remove-wishlist-btn {
  width: 100%;
  background-color: #ffeaea;
  color: #e74c3c;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
  margin-top: 6px;
}
.remove-wishlist-btn:hover {
  background-color: #ffd6d6;
  color: #b71c1c;
}

@media (max-width: 767.98px) {
  #cart-grid .remove-cart-btn,
  #wishlist-grid .remove-wishlist-btn {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

.review-delete-btn {
  margin-left: auto;
  background: #ffeaea;
  color: #b71c1c;
  border: 1px solid #ffc4c4;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.review-delete-btn:hover {
  background: #ffd6d6;
}

.admin-page-save-discard {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.admin-save-page-btn,
.admin-discard-page-btn {
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.admin-save-page-btn {
  background: var(--bg-dark-soft);
  color: #fff;
}

.admin-save-page-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

.admin-discard-page-btn {
  background: #ffeaea;
  color: #b71c1c;
}

#inventory-notice-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1300;
  width: min(420px, calc(100vw - 24px));
  pointer-events: none;
}

.inventory-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid #d7dee3;
  background: #fff;
  color: var(--bg-dark);
  box-shadow: 0 12px 35px rgba(14, 42, 54, 0.2);
  padding: 12px 14px;
  pointer-events: auto;
}

.inventory-notice i {
  font-size: 18px;
}

.inventory-notice-success {
  border-left: 4px solid var(--accent-gold);
}

.inventory-notice-success i {
  color: var(--accent-gold-dark);
}

.inventory-notice-create {
  border-left: 4px solid #27ae60;
}

.inventory-notice-create i {
  color: #27ae60;
}

.inventory-notice-update {
  border-left: 4px solid var(--accent-gold);
}

.inventory-notice-update i {
  color: var(--accent-gold-dark);
}

.inventory-notice-warning {
  border-left: 4px solid #f39c12;
}

.inventory-notice-warning i {
  color: #f39c12;
}

.inventory-notice-delete {
  border-left: 4px solid #e74c3c;
}

.inventory-notice-delete i {
  color: #e74c3c;
}

.inventory-notice-error {
  border-left: 4px solid var(--bg-dark-soft);
}

.inventory-notice-error i {
  color: var(--bg-dark-soft);
}

.inventory-notice-info {
  border-left: 4px solid var(--accent-gold-soft);
}

.inventory-notice-text {
  flex: 1 1 auto;
  font-weight: 600;
}

.inventory-notice-close {
  border: 1px solid #d7dee3;
  background: #fff;
  color: var(--bg-dark-soft);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  line-height: 1;
  font-size: 18px;
}

.inventory-notice-close:hover {
  border-color: var(--accent-gold);
  color: var(--bg-dark);
}

@media (max-width: 720px) {
  #inventory-notice-stack {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

.admin-discard-page-btn:hover {
  background: #ffd6d6;
}

/* ===============================
   ACCOUNT AUTH GRID (LOGIN/SIGNUP)
/* ============================== */

/* Redesigned Account Auth Grid */
.account-auth-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  margin: 56px auto 40px auto;
  max-width: 880px;
  background: linear-gradient(120deg, #f8fafc 60%, #e6ecf5 100%);
  border-radius: 24px;
  box-shadow: 0 6px 32px 0 rgba(60,80,120,0.10);
  overflow: visible;
  padding: 24px;
}
.account-auth-grid .auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(60,80,120,0.08);
  padding: 44px 36px 36px 36px;
  flex: 1 1 340px;
  min-width: 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: none;
}
.account-auth-grid .auth-card:last-child {
  border: none;
}
.account-auth-grid .auth-card h2 {
  transition: border 0.2s;
}
.form-stack input:focus {
  border: 1.5px solid var(--primary-blue);
  outline: none;
}
.auth-btn {
  background: var(--accent-gold);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  padding: 13px 0;
  font-size: 1.13rem;
  font-weight: 700;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-top: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  text-decoration: none;
}
.auth-btn:hover {
  background: var(--primary-blue);
  color: #fff;
}

@media (max-width: 768px) {
  .account-auth-grid {
    flex-wrap: wrap;
    gap: 20px;
    margin: 24px auto 20px auto;
    padding: 16px;
    border-radius: 16px;
  }

  .account-auth-grid .auth-card {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    padding: 22px 18px;
  }
}

@media (max-width: 576px) {
  .account-auth-grid {
    margin: 16px auto;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(60, 80, 120, 0.08);
  }

  .account-auth-grid .auth-card {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .account-auth-grid .auth-card h2 {
    font-size: 1.15rem;
  }
}

/* ===============================
   EMPTY STATE STYLING
/* Wishlist and Cart Card Styles - Modern Layout */
.wishlist-card .price, .cart-card .price {
  font-size: 1.13rem;
  font-weight: 700;
  color: #1a8cff;
  margin-bottom: 0.2rem;
  margin-right: auto;
}
.wishlist-card .remove-cart-btn, .cart-card .remove-cart-btn {
  background: #fff0f0;
  color: #e74c3c;
  border: none;
  border-radius: 7px;
  padding: 0.52rem 1.2rem;
  font-size: 1.01rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.2rem;
}
.wishlist-card .remove-cart-btn:hover, .cart-card .remove-cart-btn:hover {
  background: #ffeaea;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0E2A36;
  --bg-dark-soft: #163C4D;
  --primary-blue: #3B6FD8;
  --primary-blue-light: #6FA8FF;
  --accent-gold: #F2C230;
  --accent-gold-soft: #F7D97B;
  --accent-gold-dark: #C89A1C;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: white;
  color: var(--bg-dark);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.sidebar-toggle {
  display: none;
}

/* ===============================
   TOP BAR STYLING
================================ */
.top-bar {
  background-color: white;
  font-size: 14px;
  padding: 7px 20px !important;
  line-height: 1.4;
  display: none;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  min-height: 34px;
  border-bottom: 1px solid var(--bg-dark);
  position: relative;
}

.top-bar a {
  display: inline-flex;
  align-items: center;
  color: var(--bg-dark);
  text-decoration: none;
  margin: 0 !important;
  padding: 2px 6px !important;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}

.top-bar a i {
  margin-right: 10px; 
  color: var(--bg-dark); /* makes the pin icon the same color as text */
}

.top-bar a:hover {
  color: #F2C230 !important;
}

.top-bar a:focus,
.top-bar a:focus-visible,
.top-bar a:active {
  color: #F2C230 !important;
}

.top-bar a:hover i,
.top-bar a:focus i,
.top-bar a:focus-visible i,
.top-bar a:active i {
  color: #F2C230 !important;
}

.top-bar span {
  margin: 0 5px !important;
  color: var(--bg-dark);
}

/* Hide on desktop by default */
.mobile-sidebar-toggle {
  display: none;
}

.mobile-sidebar-panel {
  display: none;
}

.mobile-sidebar-backdrop {
  display: none;
}

/* Mobile Quick Actions - hidden on desktop */
.mobile-quick-actions {
  display: none;
}

/* ===== LEFT: Category dropdown ===== */
/* Container */
.category-dropdown {
  position: relative;
  display: inline-block;
  z-index: 2100;
}

/* Button */
.category-btn {
  padding: 10px 14px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Top-level menu */
.category-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  padding: 8px 0;
  z-index: 2200;
  overflow: visible;
}

/* Show top-level on hover */
.category-dropdown:hover .dropdown-menu {
  display: block;
}

/* Show dropdown menu when active (clicked) */
.category-dropdown .dropdown-menu.active {
  display: block;
}

/* Top-level group label */
.dropdown-group {
  position: relative; /* for sub-menu */
}

.group-label {
  padding: 8px 14px;
  font-weight: bold;
  cursor: pointer;
  display: block;
  color: var(--bg-dark);
  text-decoration: none;
}

.group-label:hover {
  background-color: #f5f5f5;
  color: var(--accent-gold);
}

/* Sub-menu hidden by default */
.sub-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%; /* to the right of parent */
  width: 200px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  padding: 8px 0;
  z-index: 2300;
}

/* Show sub-menu on hover */
.dropdown-group:hover > .sub-menu {
  display: block;
}

/* list items */
.category-dropdown li {
  list-style: none;
}

/* Sub-menu links */
.sub-menu li a {
  display: block;
  padding: 6px 14px;
  text-decoration: none;
  color: var(--bg-dark);
  font-weight: normal;
}

.sub-menu li a:hover {
  color: var(--accent-gold);
  background-color: #f5f5f5;
}

/* Single items in top-level */
.dropdown-menu > li > a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--bg-dark);
}

.dropdown-menu > li > a:hover {
  color: var(--accent-gold);
  background-color: #f5f5f5;
}

/* Add arrow to group label if it has sub-menu */
.dropdown-group > .group-label::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  float: right;            /* push it to the right */
  font-size: 12px;         /* smaller than text */
  margin-left: 5px;        /* spacing from label text */
  transition: transform 0.3s; /* optional for rotation */
}

/* Optional: rotate arrow when hovering to indicate open menu */
.dropdown-group:hover > .group-label::after {
  transform: rotate(45deg);
}

/* Search Suggestions Dropdown */
.search-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 0;
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  color: var(--bg-dark);
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: #f8f8f8;
  color: var(--primary-blue);
}

/* ===============================
   MAIN
================================ */
.hero-slider {
  position: relative;
  width: 85%;
  height: auto;
  margin: 20px auto 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  touch-action: pan-y;
}

.hero-slider .slides {
  width: 100%;
  position: relative;
  aspect-ratio: 1920 / 700;
  height: auto;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-slider .slides .swiper-slide,
.hero-slider .slides .owl-item,
.hero-slider .slides .slider-item {
  height: 100%;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-slider .slides {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

@media (min-width: 769px) {
  .hero-slider {
    width: 78%;
    max-width: 1120px;
  }
}

@supports not (aspect-ratio: 1 / 1) {
  .hero-slider .slides {
    padding-bottom: 36.4583%;
  }

  @media (max-width: 768px) {
    .hero-slider .slides {
      padding-bottom: 56.25%;
    }
  }
}

.hero-slider + .hot-deals {
  padding-top: 0;
}

.hero-slider + .hot-deals .section-header {
  margin-top: 0;
}

.hero-slider .slides img {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transform: scale(1.035);
  filter: saturate(0.92) contrast(0.96);
  transform-origin: center center;
  will-change: opacity, transform, filter;
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.9s ease;
}

@media (max-width: 768px) {
  .hero-slider .slides img {
    object-fit: contain;
  }
}

@media (min-width: 769px) {
  .hero-slider .slides img {
    width: 100%;
  }
}

.hero-slider .slides img.active {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1) contrast(1);
}

.hero-slider .slides img.active-next {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1) contrast(1);
}

.hero-slider .slides img.slide-out {
  opacity: 0;
  transform: scale(0.985);
  filter: saturate(0.95) contrast(0.98);
}

.hero-slider.hero-slider--slide-mode .slides img {
  left: 0;
  opacity: 1;
  filter: none;
  transform: translateX(var(--hero-shift, 100%));
  transition: transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-slider.hero-slider--slide-mode .slides img.active,
.hero-slider.hero-slider--slide-mode .slides img.active-next,
.hero-slider.hero-slider--slide-mode .slides img.slide-out {
  opacity: 1;
  filter: none;
  transform: translateX(var(--hero-shift, 100%));
}

/* Hero Slider Dots */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 100;
}

.hero-dots span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  border: 2px solid white;
  opacity: 1;
}

.hero-dots span.active {
  background: white;
  border-color: white;
  transform: scale(1.15);
  opacity: 1;
}

.hero-dots span:hover {
  opacity: 1;
}

@media (max-width: 992px) {
  .hero-dots {
    bottom: 16px;
    gap: 10px;
  }

  .hero-dots span {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 576px) {
  .hero-dots {
    bottom: 10px;
    gap: 8px;
  }

  .hero-dots span {
    width: 11px;
    height: 11px;
    border-width: 1.5px;
  }
}

.admin-hero-edit-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 120;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(14, 42, 54, 0.92);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-hero-edit-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

.admin-hero-edit-form {
  gap: 12px;
}

.admin-hero-images-grid {
  display: grid;
  gap: 10px;
}

.admin-hero-image-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 8px;
  align-items: center;
}

.admin-hero-image-row label {
  font-size: 13px;
  color: #374151;
}

.admin-hero-image-row .admin-upload-logo-btn {
  width: auto;
  margin-top: 0;
  padding: 8px 10px;
}

/* ===============================
   PRODUCT DETAIL PAGE
================================ */
.product-page {
  padding-bottom: 0;
}

.product-detail {
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 7.5%;
  display: block;
}
.product-top-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.product-main-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-self: start;
  width: 100%;
  min-width: 0;
}

.product-side-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

.product-side-column > * {
  width: 100%;
}

@media (min-width: 993px) {
  .product-top-layout {
    align-items: start;
  }

  .product-main-column,
  .product-side-column {
    align-self: start;
    margin-top: 0;
    padding-top: 0;
  }

  .product-detail-container,
  .related-images-panel,
  .related-images {
    margin-top: 0;
  }
}

.product-detail-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 14px;
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.detail-gallery {
  position: static;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.detail-gallery img {
  width: 100%;
  max-width: 420px;
  max-height: 320px;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.detail-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.detail-info .category {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-info h1 {
  font-size: 15px;
  margin: 5px 0 10px;
  color: var(--bg-dark-soft);
  line-height: 1.2;
}

.detail-info .product-description {
  font-size: 13px;
  color: #666;
  margin: 0 0 10px;
  line-height: 1.35;
  max-width: 100%;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-actions {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-price-row {
  display: contents;
}

.detail-price-row .price {
  grid-column: 1 / -1;
  justify-self: start;
  margin-bottom: 2px;
  padding: 0;
  margin: 0;
  border-top: none;
  border-bottom: none;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: bold;
  color: black;
}

.detail-price-row .cart-btn {
  grid-column: 2;
  grid-row: 2;
  background-color: var(--bg-dark-soft);
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
  width: 100%;
}

.detail-price-row .cart-btn:hover {
  color: var(--accent-gold);
}

.detail-price-row .cart-btn.added {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  transform: scale(1.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.detail-price-row .cart-btn.added i {
  animation: cart-pop 0.35s ease;
}

.detail-price-row .cart-btn::after {
  content: "Add to Cart";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-dark-soft);
  color: white;
  padding: 12px 10px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
}

.detail-price-row .cart-btn::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--bg-dark-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
}

.detail-price-row .cart-btn:hover::after,
.detail-price-row .cart-btn:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.detail-price-row .cart-btn.admin-detail-edit::after,
.detail-price-row .cart-btn.admin-detail-edit::before {
  content: none;
  display: none;
}

.detail-price-row .cart-btn.admin-detail-edit {
  min-width: 0;
  color: white;
}

.detail-price-row .cart-btn.admin-detail-edit:hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.detail-actions .wishlist-btn.admin-detail-remove {
  background-color: #ffeaea;
  color: #e74c3c;
  transition: background-color 0.3s, color 0.3s;
}

.detail-actions .wishlist-btn.admin-detail-remove:hover {
  background-color: #ffd6d6;
  color: #b71c1c;
}

.detail-actions .wishlist-btn {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  background-color: var(--bg-dark-soft);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
  position: relative;
}

.detail-actions .wishlist-btn:hover {
  background-color: var(--bg-dark-soft);
  color: var(--accent-gold);
}

.detail-actions .wishlist-btn::after {
  content: none;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-dark-soft);
  color: white;
  padding: 12px 10px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
}

.detail-actions .wishlist-btn::before {
  content: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--bg-dark-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
}

.detail-actions .wishlist-btn:hover::after,
.detail-actions .wishlist-btn:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.detail-actions .wishlist-btn.admin-detail-remove::after,
.detail-actions .wishlist-btn.admin-detail-remove::before {
  content: none;
  display: none;
}

.detail-specs {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-top: 10px;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.detail-specs h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0 0 12px 0;
}

.detail-specs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-specs li {
  padding: 8px 0;
  color: #555;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-specs li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-blue);
  font-size: 16px;
}

.related-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.related-images-panel {
  width: 100%;
}

.related-images {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
}

.add-review-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .product-top-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .product-detail {
    margin: 20px auto;
    padding: 0 7.5%;
  }

  .product-top-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .product-main-column,
  .product-side-column {
    display: contents;
    gap: 16px;
  }

  .product-detail-container {
    order: 1;
  }

  .related-images-panel {
    order: 2;
  }

  .add-review-card {
    order: 3;
  }

  .product-reviews.product-reviews-card {
    order: 4;
  }

  .detail-gallery,
  .detail-gallery img,
  .detail-actions,
  .detail-info,
  .detail-specs {
    max-width: 100%;
  }

  .related-images-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .product-detail {
    padding: 0 7.5%;
  }

  .product-detail-container,
  .related-images,
  .add-review-card,
  .product-reviews.product-reviews-card {
    border-radius: 8px;
  }

  .detail-info h1 {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .detail-specs {
    padding: 12px;
  }

  .detail-specs li {
    font-size: 13px;
    gap: 8px;
  }

  .related-images-grid {
    grid-template-columns: 1fr;
  }
}

.add-review-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--bg-dark);
}

.add-review-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.add-review-card .review-form-group {
  margin-bottom: 0;
}

.add-review-card select,
.add-review-card input[type="text"],
.add-review-card textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #d0d0d0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.add-review-card .submit-review-btn {
  align-self: center;
}

.product-reviews.product-reviews-card {
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.product-reviews.product-reviews-card .reviews-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.product-reviews.product-reviews-card .reviews-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.product-reviews.product-reviews-card .reviews-list {
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
  overflow-y: auto;
}

.product-reviews.product-reviews-card .review-item {
  padding: 12px;
  margin-bottom: 10px;
}

.related-images h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--bg-dark);
  text-align: center;
}

.related-images-panel .related-images-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-image-link {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.related-image-item {
  width: 100%;
  height: 74px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: transparent;
}

.related-image-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-related-actions {
  display: flex;
  gap: 6px;
}

.admin-related-actions .admin-edit-btn,
.admin-related-actions .admin-delete-btn {
  flex: 1;
  padding: 4px 8px;
  font-size: 12px;
}

.related-image-add-card {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.related-image-add-card:hover {
  background: #eef2f7;
}







/* ===============================
   CHECKOUT PAGE
================================ */
.checkout-page {
  padding-bottom: 20px;
}

.checkout-container {
  max-width: none;
  width: 100%;
  margin: 24px 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.order-summary {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.checkout-container > .order-summary {
  grid-column: 1 / -1;
}

.checkout-container > #place-order-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.shipping-info h2,
.payment-method h2,
.place-order h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #eee;
}

.order-summary > h1,
.shipping-info h2,
.payment-method h2,
.place-order h2 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.order-summary > h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--bg-dark);
  display: inline-block;
  width: fit-content;
  border-bottom: 3px solid var(--accent-gold);
  padding-bottom: 2px;
  margin: 0 0 20px;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.checkout-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.ci-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-dark);
  margin: 0 0 6px 0;
}

.checkout-item .item-info {
  min-width: 0;
  width: 100%;
  display: block;
}

.checkout-item .item-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-dark);
  margin: 0 0 6px 0;
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item .item-info p {
  white-space: nowrap;
  margin: 0;
}

.ci-info p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.ci-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
}

.checkout-totals {
  background-color: white;
  border: 2px solid var(--bg-dark-soft);
  border-radius: 6px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.checkout-totals div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.checkout-totals div strong {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 18px;
}

.shipping-info,
.payment-method,
.place-order {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-row label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.form-row input,
.form-row select {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #111827;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.form-row input:hover,
.form-row select:hover {
  border-color: #d1d5db;
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  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='%236b728099' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

form::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

form {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

form::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.form-row input:focus {
  background: #ffffff;
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.15), inset 0 1px 2px rgba(0,0,0,0.04);
  outline: none;
}

.form-row select:focus {
  background: #ffffff;
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.15), inset 0 1px 2px rgba(0,0,0,0.04);
  outline: none;
}

.form-row input.invalid {
  border-color: #d9534f;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.1);
}

.form-row input.invalid:focus {
  border-color: #d9534f;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.1);
}

.form-row .location-select:disabled {
  background-color: #eef2f7;
  border-color: #d7deea;
  color: #7b879a;
  cursor: not-allowed;
  opacity: 1;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select .select-trigger {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 0 44px 0 16px;
  font-size: 14px;
  color: #111827;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.custom-select .select-trigger.is-placeholder {
  color: #9ca3af;
}

.custom-select .select-trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center;
  opacity: 0.6;
}

.custom-select .select-trigger:hover {
  border-color: #d1d5db;
}

.custom-select .select-trigger:focus,
.custom-select.open .select-trigger {
  background: #ffffff;
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.04);
  outline: none;
}

.custom-select .select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.custom-select.open .select-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select .select-dropdown .option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease, transform 0.12s ease;
}

.custom-select .select-dropdown .option:active {
  transform: scale(0.97);
}

.custom-select .select-dropdown .option:hover,
.custom-select .select-dropdown .option:focus {
  background: #f3f4f6;
  outline: none;
}

.custom-select .select-dropdown .option.selected {
  background: rgba(250, 204, 21, 0.2);
  font-weight: 500;
}

.custom-select .select-dropdown .option.selected::after {
  content: "✓";
  color: #6b7280;
  font-size: 12px;
}

.custom-select.is-disabled .select-trigger {
  background: #eef2f7;
  border-color: #d7deea;
  color: #7b879a;
  cursor: not-allowed;
}

.custom-select.is-disabled .select-trigger::after {
  opacity: 0.35;
}

.form-row select option {
  line-height: 1.45;
  padding: 10px 12px;
  cursor: pointer;
}

.form-row select option:hover,
.form-row select option:focus {
  background-color: #f3f4f6;
}

.error-msg {
  font-size: 12px;
  color: #d9534f;
  display: none;
  margin-top: 4px;
  font-weight: 500;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--bg-dark);
}

.payment-options input {
  cursor: pointer;
  width: 12px;
  height: 12px;
}

.place-order {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.place-order-btn {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s, transform 0.2s;
  width: 100%;
}

.place-order-btn:hover {
  background-color: #d4af37;
  transform: translateY(-2px);
}

.place-order-btn:active {
  transform: translateY(0);
}

.order-note {
  color: #666;
  font-size: 13px;
  margin: 0;
}

/* Sticky checkout footer button consistency */
.checkout-footer .checkout-btn {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  text-decoration: none;
  padding: 12px 40px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.checkout-footer .checkout-btn:hover {
  background-color: #d4af37;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .checkout-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .checkout-container > #place-order-form {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .checkout-container > .order-summary,
  .checkout-container > #place-order-form,
  .shipping-info,
  .payment-method,
  .place-order {
    grid-column: 1 / -1;
  }
}



/* ===============================
   CONFIRMATION PAGE
================================ */
.confirmation-page {
  padding-bottom: 20px;
}

.confirmation-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.confirmation-header {
  text-align: center;
  padding: 40px 0;
  border-bottom: 2px solid #eee;
  margin-bottom: 40px;
}

.success-icon {
  font-size: 80px;
  color: #28a745;
  margin-bottom: 20px;
  animation: success-bounce 0.6s ease;
}

@keyframes success-bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.confirmation-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0 0 8px 0;
}

.confirmation-header .subtitle {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.confirmation-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.order-details {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: var(--bg-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 14px;
}

.shipping-details {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.shipping-details h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0 0 12px 0;
}

.shipping-display {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.shipping-display p {
  margin: 4px 0;
}

.order-summary {
  grid-column: 1 / -1;
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.order-summary h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0 0 12px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.conf-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.conf-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 6px;
  font-size: 13px;
}

.ci-name {
  font-weight: 600;
  color: var(--bg-dark);
}

.ci-qty {
  color: #666;
}

.ci-price {
  font-weight: 700;
  color: var(--accent-gold);
}

.conf-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 2px solid var(--bg-dark);
  font-size: 18px;
  font-weight: 700;
}

.conf-total strong {
  color: var(--accent-gold);
}

.confirmation-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-primary, .btn-secondary {
  flex: 1;
  padding: 14px 20px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 14px;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: #d4af37;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-dark);
  color: white;
  border: 2px solid var(--bg-dark);
}

.btn-secondary:hover {
  background-color: var(--bg-dark-soft);
  transform: translateY(-2px);
}



/* ===============================
   PRODUCT REVIEWS SECTION
================================ */
.product-reviews {
  max-width: 1150px;
  margin: 60px auto;
  padding: 0 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}

.reviews-container {
  padding: 40px;
}

.reviews-header {
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
  padding-bottom: 20px;
}

.reviews-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0 0 12px 0;
}

.reviews-rating {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: #ffc107;
  font-size: 16px;
  letter-spacing: 2px;
}

#avg-rating {
  font-weight: 700;
  color: var(--accent-gold);
}

.reviews-list {
  margin-bottom: 40px;
}

.review-item {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
}

.review-item:last-child {
  border-bottom: none;
}

.review-author {
  font-weight: 600;
  color: var(--bg-dark);
  font-size: 14px;
}

.review-stars {
  color: #ffc107;
  font-size: 14px;
  margin: 6px 0;
  letter-spacing: 1px;
}

.review-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.review-text {
  color: #555;
  line-height: 1.6;
  margin: 12px 0;
  font-size: 14px;
}

.review-helpful {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.write-review {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #eee;
  margin-top: 20px;
}

.write-review h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0 0 20px 0;
}

.review-form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.review-form-group label {
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 8px;
  font-size: 14px;
}

.rating-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-input input[type="radio"] {
  cursor: pointer;
}

.rating-input label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.review-form-group input[type="text"],
.review-form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid #d0d0d0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.review-form-group input[type="text"]:focus,
.review-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 111, 216, 0.1);
}

.review-form-group input.invalid {
  border-color: #d9534f;
}

.submit-review-btn {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 14px;
  align-self: flex-start;
}

.submit-review-btn:hover {
  background-color: #d4af37;
  transform: translateY(-2px);
}



/* Fade Out Animation */
@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ===============================
   HOT DEALS
================================ */
.hot-deals, .lovingcool, .twolf, .latest-products {
  padding: 40px 7.5%;
  background: #fff;
}

/* Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 0 0;
  border-bottom: 1px solid #eee;
}

.section-header h2,
.category-header h1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 22px;
  font-weight: 700;
  border-bottom: 3px solid var(--accent-gold);
  color: var(--bg-dark);
  padding-bottom: 2px;
  margin-bottom: -2px;
}

.category-header h1 {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}

.section-header h2 {
  padding-bottom: 7px;
}

.arrows button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  margin-left: 10px;
}

.arrows button:hover {
  color: var(--accent-gold);
}

/* Slider */
.slider-wrapper {
  overflow: hidden;
  touch-action: pan-y;
}

.product-slider {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  transition: transform 0.4s ease;
}

.product-slider .product-card {
  flex: 0 0 calc((100% - 60px) / 4);
  max-width: calc((100% - 60px) / 4);
}

/* Tablet: 2 cards per view */
/* Hide product slider dots on tablet and mobile */



/* Mobile: 1 card per view */


/* ===== Product Card ===== */
.product-card {
  background: #fff;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.product-image-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category {
  font-size: 12px;
  color: #888;
  margin: 10px 0 5px;
}

.product-card .category {
  display: none !important;
}

.product-card .product-subtitle-display {
  display: -webkit-box;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card h3 {
  font-size: 15px;
  margin: 5px 0 10px;
  color: var(--bg-dark-soft);
  line-height: 1.2;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .product-description {
  font-size: 13px;
  color: #666;
  margin: 0 0 10px;
  line-height: 1.35;
  min-height: 34px;
  max-height: 38px;
  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Product Actions ===== */
.product-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Price + Cart Row */
.price-cart-row {
  display: flex;
  justify-content: flex-start;
  margin: 14px 10px 8px 10px;
  align-items: center;
  position: relative;
  gap: 10px;
}

.card-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 10px 14px 10px;
  white-space: pre-line;
  overflow-wrap: anywhere;
  width: calc(100% - 20px);
}

.price-cart-row .price {
  font-size: 16px;
  font-weight: bold;
  color: black;
}

.price-cart-row .out-of-stock-label {
  color: #e11d48;
  font-weight: 600;
  font-size: 12px;
  margin-left: auto;
}

.cart-grid .price-cart-row .out-of-stock-label {
  margin-right: 6px;
}

.cart-grid .price-cart-row .quantity-changer {
  margin-left: 0;
}

.card-action-row .cart-btn,
.card-action-row .wishlist-btn {
  background-color: var(--bg-dark-soft);
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  position: relative;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
  width: 100%;
}

.card-action-row .wishlist-btn {
  min-width: 36px;
  padding: 6px 8px;
}

.card-action-row .cart-btn:hover,
.card-action-row .wishlist-btn:hover {
  color: var(--accent-gold);
}

.card-action-row .cart-btn:disabled,
.card-action-row .cart-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  color: #e5e7eb;
  background-color: #6b7280;
}

.card-action-row .wishlist-btn.in-wishlist {
  color: var(--accent-gold);
}

.card-action-row .cart-btn:disabled:hover,
.card-action-row .cart-btn[aria-disabled="true"]:hover {
  color: #e5e7eb;
  transform: none;
}

.card-action-row .cart-btn.added {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  transform: scale(1.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.card-action-row .cart-btn.added i {
  animation: cart-pop 0.35s ease;
}

@keyframes cart-pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ===== Cart Button Tooltip with bottom arrow ===== */
.card-action-row .cart-btn {
  position: relative;
}

.card-action-row .wishlist-btn {
  position: relative;
}

/* Tooltip rectangle */
.card-action-row .cart-btn::after {
  content: "Add to Cart";
  position: absolute;
  bottom: 120%; /* place above the button */
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-dark-soft);
  color: white;
  padding: 12px 10px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
}

.card-action-row .wishlist-btn::after {
  content: "Add to Wishlist";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-dark-soft);
  color: white;
  padding: 12px 10px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
}

/* Arrow below the rectangle */
.card-action-row .cart-btn::before {
  content: "";
  position: absolute;
  bottom: 100%; /* arrow starts at bottom edge of tooltip rectangle */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--bg-dark-soft); /* arrow color same as rectangle */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
}

.card-action-row .wishlist-btn::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--bg-dark-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
}

/* Show tooltip and arrow on hover */
.card-action-row .cart-btn:hover::after,
.card-action-row .cart-btn:hover::before,
.card-action-row .wishlist-btn:hover::after,
.card-action-row .wishlist-btn:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px); /* slight upward movement */
}


/* Wishlist row (hidden until hover) */
.product-card .wishlist-row {
  display: none;
}

.product-card:hover .wishlist-row {
  display: none;
}

@media (max-width: 767.98px) {
  .product-card .wishlist-row {
    display: none !important;
  }

  .product-card .wishlist-row .wishlist-btn {
    display: none !important;
  }
}

.product-card .wishlist-row .wishlist-btn {
  width: auto;
  background-color: var(--bg-dark-soft);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.3s, color 0.3s;
}

.card-action-row .cart-btn > i,
.card-action-row .wishlist-btn > i,
.remove-cart-btn > i,
.remove-wishlist-btn > i,
.product-card .wishlist-row .wishlist-btn > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.product-card .wishlist-row .wishlist-btn:hover {
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .card-action-row .cart-btn,
  .card-action-row .wishlist-btn,
  .remove-cart-btn,
  .remove-wishlist-btn,
  .product-card .wishlist-row .wishlist-btn {
    display: inline-flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    white-space: nowrap;
  }

  /* Disable mobile hover-tooltips that appear as a floating box on tap */
  .card-action-row .cart-btn::after,
  .card-action-row .cart-btn::before,
  .card-action-row .wishlist-btn::after,
  .card-action-row .wishlist-btn::before {
    content: none !important;
    display: none !important;
  }
}

/* ===== DOTS (SLIDER PAGINATION) ===== */
.dots {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.dots span {
  width: 18px;
  height: 18px;
  background: #d6d6d6;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.dots span:hover {
  background: var(--accent-gold, gold);
  transform: scale(1.2);
}



.dots .active {
  width: 32px;
  height: 18px;
  border-radius: 20px;
  background: var(--accent-gold, gold);
}

.section-line {
    height: 0.5px;
    width: 60%;
    margin: 20px 20%;
    background: var(--bg-dark);
    border-radius: 2px;
}

/* ===============================
   FOOTER
================================ */
footer {
  background-color: var(--bg-dark-soft);
  padding: 20px 0;
}

/* Contact Section */
.brand-contact {
  display: flex;
  flex-direction: column;   /* stack vertically */
  align-items: center;      /* center everything */
  gap: 8px;
  text-align: center;
}

.contact-us {
    color: white;
}

/* Icons row */
.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.social-icons img,
.social-icons .footer-social-svg {
  height: 26px;
  width: 26px;
  border-radius: 6px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.social-icons a:hover .footer-social-svg,
.social-icons a:focus-visible .footer-social-svg,
.social-icons img:hover,
.social-icons a:focus-visible img {
  transform: scale(1.1);
}

.social-icons .footer-social-whatsapp {
  fill: #25d366;
}

.social-icons .footer-social-instagram {
  color: #e1306c;
}

.social-icons .footer-social-tiktok {
  fill: #ffffff;
}

.social-icons .footer-social-tiktok path {
  transform: scale(1.28);
  transform-origin: 12px 12px;
}

/* Copyright Section */
.brand-copy {
  text-align: center;
  color: white;
  margin-top: 15px;
}

.footer-about {
  max-width: 820px;
  margin: 0 auto 10px;
  padding: 0 16px;
  color: #dfeaf0;
  font-size: 14px;
  line-height: 1.5;
}

.footer-policy-links {
  margin-top: 8px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-policy-links a,
.footer-policy-links a:visited {
  color: white;
  text-decoration: none;
}

.footer-policy-links a:hover,
.footer-policy-links a:focus-visible {
  color: var(--accent-gold);
}

/* ===============================
   BACK TO TOP BUTTON
================================ */
#backToTop {
  display: none; /* hidden by default */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background-color: var(--accent-gold);
  border: none;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.3s;
}

#backToTop::before {
  content: "\f062";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 18px;
  color: white;
}

#backToTop:hover {
  background-color: var(--accent-gold-dark);
  transform: scale(1.1);
}

#fixedWhatsApp {
  position: fixed;
  right: 30px;
  bottom: 88px;
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s, background-color 0.3s;
}

#fixedWhatsApp i {
  font-size: 26px;
  line-height: 1;
}

#fixedWhatsApp:hover {
  background-color: #1eb856;
  transform: scale(1.1);
}

/* ===============================
   PRODUCT PAGE REDESIGN ELEMENTS
================================ */

/* Breadcrumb Navigation */
.breadcrumb {
  font-size: 14px;
  color: var(--bg-dark);
  margin: 20px 7.5% 10px;
  padding: 10px 0;
}

.main-brands {
  padding: 0 7.5% 40px;
}

.breadcrumb a {
  color: var(--bg-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.breadcrumb a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s;
}

/* Hide product slider dots on tablet and mobile */


.breadcrumb a:hover {
  color: var(--accent-gold);
}

.breadcrumb a:hover::after {
  width: 100%;
}

/* Page Description */
.page-description {
  font-size: 14px;
  color: var(--bg-dark);
  margin: 0 7.5% 15px;
  line-height: 1.6;
}

.breadcrumb {
  margin: 0;
  padding: 12px 7.5% 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  background: var(--bg-dark-soft);
  color: #dfeaf0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb a {
  color: #ffffff;
}

.breadcrumb a:hover {
  color: var(--accent-gold);
}

.breadcrumb a::after {
  bottom: -3px;
}

.breadcrumb span {
  color: #dfeaf0;
}

.breadcrumb > * + *::before {
  content: "/";
  color: rgba(223, 234, 240, 0.88);
  margin: 0 0.55rem 0 0.2rem;
}

.page-description {
  margin: 0;
  padding: 10px 7.5% 16px;
  background: var(--bg-dark-soft);
  color: #dfeaf0;
  font-size: 14px;
  line-height: 1.55;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Category Header with Item Count */
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0 0;
  border-bottom: 1px solid #eee;
}

.category-header > h1 {
  min-width: 0;
}


.item-count {
  font-size: 14px;
  color: #888;
  font-weight: normal;
}

.admin-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.admin-quick-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--bg-dark-soft);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.admin-quick-nav-link:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #fff;
}

.admin-quick-nav-link.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* Sorting Bar */
.sorting-bar {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background-color: var(--bg-dark-soft);
  border-radius: 10px;
  padding: 15px 30px;
  flex-wrap: nowrap;
}

.sorting-bar.sorting-bar--simple {
  justify-content: flex-start;
}

.sorting-bar > div {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

.sorting-bar label {
  font-size: 18px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
}

.sorting-bar select {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  width: fit-content;
  max-width: 180px;
  min-width: unset;
  min-height: 44px;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.sorting-bar select:hover {
  border-color: var(--accent-gold);
}

.sorting-bar select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 5px rgba(244, 180, 0, 0.3);
}

/* Items Per Page Selector */
.items-per-page {
  display: flex;
  align-items: center;
  gap: 10px;
}

.items-per-page label {
  font-size: 18px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
}

.items-per-page select {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  min-height: 44px;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.items-per-page select:hover {
  border-color: var(--accent-gold);
}

.items-per-page select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 5px rgba(244, 180, 0, 0.3);
}

/* Pagination Controls */
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.pagination-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-dark);
  white-space: nowrap;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  width: auto;
  min-width: 50px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  cursor: default;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pagination-info:hover {
  border-color: var(--accent-gold);
}

.pagination-info:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 5px rgba(244, 180, 0, 0.3);
}

.pagination-arrow {
  background-color: white;
  border: 1px solid #ccc;
  color: var(--bg-dark);
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.pagination-arrow:hover:not(:disabled) {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.pagination-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Product Grid */
.category-section {
  padding: 20px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
}

/* Wishlist CTA tweaks */
.wishlist-btn {
  text-decoration: none;
}

.search-btn {
  position: relative;
}

.search-btn::after {
  content: "Explore";
  position: absolute;
  bottom: 120%; /* place above the button */
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-dark-soft);
  color: white;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
}

.search-btn::before {
  content: "";
  position: absolute;
  bottom: 100%; /* arrow starts at bottom edge of tooltip rectangle */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--bg-dark-soft); /* arrow color same as rectangle */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
}

.search-btn:hover::after,
.search-btn:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px); /* slight upward movement */
}

.inner-section-line {
    height: 0.5px;
    margin: 0 7.5%;
    background: var(--bg-dark);
    border-radius: 2px;
}

/* Category footer (aligns with sorting bar width) */
.category-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 7.5% 15px 7.5%;
  gap: 20px;
}

.category-footer.footer-tight {
  justify-content: flex-end;
}

.category-footer.footer-tight > .item-count {
  display: none;
}

/* ===============================
   PAGINATION CIRCLES STYLING
================================ */
.pagination-circles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.page-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  background-color: white;
  color: var(--bg-dark);
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-circle:hover {
  background-color: var(--accent-gold);
  color: white;
}

.page-circle.active {
  background-color: var(--accent-gold);
  color: white;
}

.pagination-dots {
  color: var(--bg-dark);
  font-size: 20px;
  font-weight: bold;
  margin: 0 5px;
}

@media (max-width: 569px) {
  .category-footer {
    gap: 10px;
  }

  .category-footer .pagination-circles {
    gap: 8px;
    margin-top: 14px;
  }

  .category-footer .page-circle {
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-width: 1px;
  }

  .category-footer .pagination-dots {
    font-size: 16px;
    margin: 0 2px;
  }
}

@media (max-width: 460px) {
  .category-footer .pagination-circles {
    justify-content: flex-end;
  }
}

/* Simple form stack for account/auth cards */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.form-stack label {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-dark);
}

.form-stack input {
  padding: 10px;
  border: 1px solid #dce0e5;
  border-radius: 6px;
  font-size: 14px;
}

.form-stack input:focus {
  outline: 2px solid var(--primary-blue-light);
}

/* Reusable compact list styling used on account/wishlist/cart summaries */
.account-links {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.account-links li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.account-links i {
  color: var(--primary-blue);
}

/* ===============================
   MOBILE MENU
================================ */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
  color: var(--accent-gold);
}

/* ===============================
   PRODUCT FILTERS
================================ */
.store-with-filters {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

.filters-sidebar {
  background: rgba(13, 71, 161, 0.05);
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 20px;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--accent-gold);
}

.filters-header h3 {
  margin: 0;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 600;
}

.filters-header h3 i {
  color: var(--accent-gold);
  margin-right: 8px;
}

.filters-clear {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 13px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.filters-clear:hover {
  background: rgba(255, 193, 7, 0.1);
}

.filter-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.filter-title {
  margin: 0 0 15px 0;
  color: var(--text-color);
  font-size: 15px;
  font-weight: 600;
}

/* Price Filter */
.price-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-inputs input {
  flex: 1;
  padding: 8px 10px;
  background: var(--bg-dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-color);
  font-size: 14px;
}

.price-inputs input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.price-inputs span {
  color: var(--text-muted);
}

.price-apply-btn {
  padding: 8px 16px;
  background: var(--accent-gold);
  border: none;
  border-radius: 4px;
  color: var(--bg-dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.price-apply-btn:hover {
  background: #ffc107;
  transform: translateY(-1px);
}

/* Filter Checkboxes */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.filter-checkbox:hover {
  background: rgba(255, 193, 7, 0.05);
}

.filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-gold);
}

.filter-checkbox span {
  color: var(--text-color);
  font-size: 14px;
}

/* ===============================
   WISHLIST PAGE SPECIFIC STYLES
================================ */

/* Wishlist empty card label */
.wishlist-label {
  font-size: 12px;
  color: #888;
  margin: 10px 0 5px;
}

/* Wishlist empty title */
.product-card h3 {
  font-size: 15px;
  margin: 5px 0 10px;
  color: var(--bg-dark-soft);
  line-height: 1.2;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Message + Search row (similar to price-cart-row but for wishlist) */
.message-search-row {
  display: flex;
  justify-content: space-between;
  margin: 0 10px;
  align-items: center;
  position: relative;
}

#wishlist-grid .price-cart-row {
  margin: 14px 10px 8px 10px;
  justify-content: flex-start;
}

#wishlist-grid .price-cart-row .price {
  margin-right: auto;
}

#wishlist-grid .wishlist-action-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#wishlist-grid .wishlist-action-row .remove-wishlist-btn,
#wishlist-grid .wishlist-action-row .cart-btn {
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  margin-top: 0;
  opacity: 1;
  visibility: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#wishlist-grid .wishlist-action-row .remove-wishlist-btn {
  background-color: #ffeaea;
  color: #e74c3c;
}

#wishlist-grid .wishlist-action-row .remove-wishlist-btn:hover {
  background-color: #ffd6d6;
  color: #b71c1c;
}

#wishlist-grid .wishlist-action-row .remove-wishlist-btn::after,
#wishlist-grid .wishlist-action-row .remove-wishlist-btn::before {
  content: none;
}

/* Wishlist search button */
.search-btn {
  background-color: var(--bg-dark-soft);
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-btn:hover {
  color: var(--accent-gold);
}

/* Remove from wishlist button */
.remove-btn {
  width: 100%;
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.3s;
}

.remove-btn:hover {
  background-color: #c82333;
}

/* Sticky Checkout Footer */
.checkout-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  border-top: 2px solid var(--accent-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.checkout-summary {
  display: flex;
  gap: 40px;
  align-items: center;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-label {
  font-weight: 600;
  color: var(--bg-dark);
}

.summary-value {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-gold);
}

.checkout-btn {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  border: none;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.checkout-btn:hover {
  background-color: #d4af37;
  transform: translateY(-2px);
}

.checkout-btn:active {
  transform: translateY(0);
}

/* Adjust body to account for sticky footer (cart page only) */
.cart-page {
  padding-bottom: 90px;
}

.cart-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

/* Table-based cart compatibility (if/when table markup is used) */
.cart-table {
  width: 100%;
  table-layout: fixed;
}

.cart-table th,
.cart-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-table td img {
  max-width: 60px;
  height: auto;
}

.cart-table td.product-name {
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 768px) {
  .cart-table th:nth-child(1),
  .cart-table td:nth-child(1) {
    width: 60px;
  }

  .cart-table th:nth-child(2),
  .cart-table td:nth-child(2) {
    width: auto;
  }

  .cart-table th,
  .cart-table td {
    font-size: 12px;
  }

  #cart-grid .cart-table-head,
  #cart-grid .cart-row-cell {
    font-size: 12px;
  }
}

/* Cart-only table layout (keeps wishlist card layout unchanged) */
#cart-grid {
  --cart-gap-image-name: 10px;
  --cart-gap-main: 14px;
  --cart-min-width: 880px;
  --cart-table-cols: 72px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(96px, 1fr);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: var(--cart-min-width);
  gap: 8px;
  overflow-x: visible;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
}

#cart-grid .cart-table-head {
  display: grid;
  grid-template-columns: var(--cart-table-cols);
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  column-gap: var(--cart-gap-main);
  row-gap: 8px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

#cart-grid .product-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
  margin: 0;
  display: grid;
  grid-template-columns: var(--cart-table-cols);
  align-items: center;
  overflow: visible;
  column-gap: var(--cart-gap-main);
  row-gap: 8px;
  padding: 12px 14px;
  text-align: left;
  transform: none;
  cursor: default;
}

#cart-grid .product-card:hover {
  transform: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

#cart-grid .cart-row-cell {
  min-width: 0;
}

#cart-grid .cart-head-image,
#cart-grid .cart-head-name,
#cart-grid .cart-head-price,
#cart-grid .cart-head-qty,
#cart-grid .cart-head-action,
#cart-grid .cart-cell-image,
#cart-grid .cart-cell-name,
#cart-grid .cart-cell-price,
#cart-grid .cart-cell-qty,
#cart-grid .cart-cell-action {
  text-align: center;
}

#cart-grid .cart-head-image,
#cart-grid .cart-head-name,
#cart-grid .cart-head-price,
#cart-grid .cart-head-qty,
#cart-grid .cart-head-action {
  justify-self: stretch;
}

#cart-grid .cart-head-name,
#cart-grid .cart-cell-name {
  text-align: left;
}

#cart-grid .cart-head-qty,
#cart-grid .cart-cell-qty {
  display: flex;
  align-items: center;
  justify-content: center;
}

#cart-grid .cart-cell-name {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#cart-grid .cart-head-image,
#cart-grid .cart-cell-image {
  margin-right: calc(var(--cart-gap-image-name) - var(--cart-gap-main));
}

#cart-grid .cart-item-image {
  width: 60px;
  max-width: 60px;
  height: 60px;
  object-fit: contain;
  border: none;
  border-radius: 8px;
  background: transparent;
  flex: 0 0 auto;
  cursor: pointer;
}

#cart-grid .cart-item-info {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  text-align: left;
  overflow: hidden;
}

#cart-grid .cart-item-info h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.25;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow: hidden;
  text-overflow: ellipsis;
}

#cart-grid .cart-cell-price,
#cart-grid .cart-cell-qty,
#cart-grid .cart-cell-action {
  justify-self: center;
  width: 100%;
}

#cart-grid .cart-cell-qty .quantity-changer {
  justify-content: center;
  margin: 0 auto;
}

#cart-grid .quantity-changer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  max-width: max-content;
  min-width: max-content;
}

#cart-grid .quantity-changer .qty-btn {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

#cart-grid .cart-item-subtitle {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#cart-grid .cart-item-description {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6b7280;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#cart-grid .cart-cell-price .price {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

#cart-grid .cart-cell-qty .quantity-changer {
  margin-left: 0;
}

#cart-grid .cart-cell-action .remove-cart-btn {
  margin-top: 0;
  opacity: 1;
  visibility: visible;
  min-height: 32px;
  width: 100%;
  padding: 6px 10px;
}

#cart-grid .cart-cell-action .remove-cart-btn::after,
#cart-grid .cart-cell-action .remove-cart-btn::before {
  content: none;
}

.cart-total-summary {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

@media (max-width: 900px) {
  #cart-grid {
    --cart-gap-main: 14px;
    --cart-gap-image-name: 10px;
    --cart-min-width: 820px;
    --cart-table-cols: 64px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(88px, 0.9fr);
  }
}

@media (max-width: 640px) {
  #cart-grid {
    --cart-gap-main: 10px;
    --cart-min-width: 720px;
    --cart-table-cols: 56px minmax(0, 2fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(82px, 0.8fr);
  }

  #cart-grid .cart-table-head,
  #cart-grid .product-card {
    padding-left: 10px;
    padding-right: 10px;
  }

  #cart-grid .cart-item-image {
    width: 52px;
    max-width: 52px;
    height: 52px;
  }
}

/* ===============================
   ACCOUNT/AUTH PAGE STYLING
================================ */
.auth-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.auth-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: start;
}

.auth-card {
  background: white;
  border-radius: 8px;
  padding: 40px 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}

.auth-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-dark);
}

.form-group input {
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-group input.invalid {
  border-color: #d9534f;
}

.form-error {
  font-size: 12px;
  color: #d9534f;
  display: none;
  margin-top: 4px;
  font-weight: 500;
  display: block;
}

.auth-btn {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 10px;
}

.auth-btn:hover {
  transform: translateY(-2px);
}

.auth-btn:active {
  transform: translateY(0);
}

/* Responsive */


/* ===== EMPTY STATE MESSAGES ===== */
.empty-state-box {
  text-align: center;
  padding: 80px 20px;
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  width: 100%;
  box-sizing: border-box;
}
/* Empty state action links row */
.empty-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 18px;
}

.empty-links .empty-cta {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.empty-links .empty-cta:hover {
  background-color: var(--accent-gold-dark);
  color: var(--bg-dark);
}

.empty-state-box i {
  font-size: 80px;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.empty-state-box h2 {
  font-size: 28px;
  color: var(--bg-dark);
  margin-bottom: 12px;
}

.empty-state-box p {
  font-size: 16px;
  margin-bottom: 30px;
}

.empty-state-box .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.2px;
  transition: all 0.3s;
  text-align: center;
}

.empty-state-box .btn-primary:hover {
  background-color: var(--accent-gold-dark);
  transform: translateY(-2px);
}

/* ===============================
   EXTRA SMALL MOBILE (Max 380px)
================================ */


/* ===============================
   ULTRA SMALL (Max 320px)
================================ */


/* Custom Choices.js Dropdown Styling */
.custom-choices .choices__list--dropdown {
  background: #fffbe9;
  border: 2px solid var(--accent-gold);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  color: var(--bg-dark-soft);
  font-size: 16px;
  padding: 0.5em 0;
}
.custom-choices .choices__item--selectable {
  padding: 10px 18px;
  transition: background 0.2s, color 0.2s;
}
.custom-choices .choices__item--selectable.is-highlighted,
.custom-choices .choices__item--selectable:hover {
  background: var(--accent-gold);
  color: var(--bg-dark-soft);
}
.custom-choices .choices__item--selectable.is-selected {
  background: #ffe9a7;
  color: var(--bg-dark);
}

body.admin-inline-mode .product-card {
  position: relative;
}

.admin-edit-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.admin-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 8px;
}

.admin-manager-row {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.admin-delete-row {
  margin: 0;
}

.admin-delete-slot {
  width: 100%;
  display: flex;
  justify-content: center;
}

.admin-edit-btn,
.admin-delete-btn {
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.admin-edit-btn {
  background: var(--bg-dark);
  color: #fff;
  margin-top: 0;
  transition: background-color 0.3s, color 0.3s;
}

.admin-edit-btn:hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.admin-delete-btn {
  background-color: #ffeaea;
  color: #e74c3c;
  transition: background-color 0.3s, color 0.3s;
  margin-top: 0;
}

.admin-delete-btn:hover {
  background-color: #ffd6d6;
  color: #b71c1c;
}

.admin-add-product-card {
  position: relative;
  padding: 15px;
  cursor: pointer;
  border: 2px dashed var(--bg-dark-soft);
  min-height: 420px;
}

.admin-add-launch-btn {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: transform 0.2s ease;
}

.admin-add-launch-btn:hover {
  transform: scale(0.985);
}

.admin-add-launch-frame {
  width: 100%;
  min-height: 100%;
  border: 2px dashed var(--bg-dark-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background-color 0.3s;
}

.admin-add-product-card:hover .admin-add-launch-frame {
  border-color: var(--accent-gold);
  background: rgba(243, 192, 58, 0.06);
}

.admin-add-plus {
  font-size: 46px;
  line-height: 1;
  font-weight: 700;
  color: var(--bg-dark-soft);
}

.admin-add-category,
.admin-add-name,
.admin-add-description {
  margin: 2px 0;
  padding: 8px;
  border-radius: 6px;
}

.admin-add-name,
.admin-add-description,
.admin-add-category {
  outline: none;
}

.admin-add-product-card .admin-add-category,
.admin-add-product-card .admin-add-name,
.admin-add-product-card .admin-add-description {
  padding: 0;
}

.admin-add-product-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.admin-add-product-card .admin-add-plus {
  font-size: 46px;
}

.admin-add-category:focus,
.admin-add-name:focus,
.admin-add-description:focus {
  box-shadow: inset 0 0 0 2px var(--accent-gold);
}

.admin-add-image {
  width: 100%;
  height: 220px;
  border: 1px dashed var(--bg-dark-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.admin-add-image.has-image {
  border-style: solid;
}

.admin-create-btn {
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  background: var(--bg-dark-soft);
  color: #fff;
}

.admin-edit-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 42, 54, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  align-items: safe center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 9999;
}

@media (max-height: 780px) {
  .admin-edit-modal-backdrop {
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

.admin-edit-modal {
  width: min(650px, calc(100vw - 30px));
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin: 0;
  max-height: none;
  overflow-y: hidden;
  position: relative;
}

.admin-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(14, 42, 54, 0.18);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--bg-dark-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease;
}

.admin-modal-close-btn {
  font-size: 0 !important;
  line-height: 0 !important;
}

.admin-modal-close-btn::before {
  content: '×';
  display: block;
  font-size: 22px;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.admin-modal-close-btn:hover {
  border-color: var(--accent-gold);
  color: var(--bg-dark);
}

#admin-edit-modal-backdrop #admin-edit-close-btn.admin-modal-close-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

.admin-edit-modal h3 {
  margin: 0 0 12px;
  color: var(--bg-dark);
}

.admin-edit-form {
  display: block;
}

.admin-edit-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg-dark-soft);
  margin: 0;
}

@media (max-width: 768px) {
  .admin-edit-modal {
    width: 86%;
    max-width: 460px;
    padding: 16px;
    border-radius: 12px;
  }

  .admin-edit-modal h3 {
    font-size: 20px;
    margin-bottom: 10px;
    padding-right: 20px;
  }

  .admin-edit-grid-two {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-edit-actions {
    margin-top: 15px;
  }
}

.admin-edit-form input,
.admin-edit-form select,
.admin-edit-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

.admin-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.admin-modal-cancel,
.admin-modal-save {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.admin-modal-cancel {
  background: #e5e7eb;
  color: #111827;
}

.admin-modal-save {
  background: var(--bg-dark);
  color: #fff;
}

.admin-upload-status {
  min-height: 18px;
  font-size: 12px;
  color: #4b5563;
}

.admin-upload-logo-btn {
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  background: var(--bg-dark-soft);
  color: #fff;
  margin-top: 8px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.admin-upload-logo-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

.admin-upload-logo-btn:active {
  transform: translateY(1px);
}

.styled-confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.styled-confirm-modal {
  width: min(420px, calc(100vw - 30px));
  max-width: none;
  max-height: none;
  overflow-y: visible;
  background: #fff;
  border-left: 4px solid var(--accent-gold-soft);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

.styled-confirm-modal.styled-feedback-confirm {
  border-left-color: transparent;
}

.styled-confirm-modal.styled-feedback-info {
  border-left-color: var(--accent-gold-soft);
}

.styled-confirm-modal.styled-feedback-success,
.styled-confirm-modal.styled-feedback-create {
  border-left-color: #27ae60;
}

.styled-confirm-modal.styled-feedback-update {
  border-left-color: var(--accent-gold);
}

.styled-confirm-modal.styled-feedback-delete,
.styled-confirm-modal.styled-feedback-error {
  border-left-color: #e74c3c;
}

.styled-confirm-modal.styled-feedback-warning {
  border-left-color: #f39c12;
}

.styled-confirm-modal h3 {
  margin: 0 0 8px;
  color: var(--bg-dark);
  font-size: 1.25rem;
  text-align: left;
}

.styled-confirm-modal p {
  margin: 0 0 14px;
  color: #4b5563;
}

.styled-prompt-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 14px;
  margin: 0 0 14px;
}

.styled-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
}

#styled-delete-scope-backdrop .styled-confirm-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

#styled-delete-scope-backdrop .styled-confirm-actions .styled-confirm-cancel,
#styled-delete-scope-backdrop .styled-confirm-actions .styled-confirm-ok {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  flex: 1 1 150px;
}

@media (max-width: 480px) {
  #styled-delete-scope-backdrop .styled-confirm-actions .styled-confirm-cancel,
  #styled-delete-scope-backdrop .styled-confirm-actions .styled-confirm-ok {
    flex: 1 1 100%;
  }
}

.styled-confirm-cancel,
.styled-confirm-ok {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  width: auto;
  max-width: none;
  min-height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-weight: 600;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}

.styled-confirm-cancel {
  background: #e5e7eb;
  color: #111827;
}

.styled-confirm-ok {
  background: var(--bg-dark-soft);
  color: #fff;
}

.styled-confirm-modal.styled-feedback-success .styled-confirm-ok,
.styled-confirm-modal.styled-feedback-create .styled-confirm-ok {
  background: #27ae60;
}

.styled-confirm-modal.styled-feedback-update .styled-confirm-ok {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

.styled-confirm-modal.styled-feedback-delete .styled-confirm-ok,
.styled-confirm-modal.styled-feedback-error .styled-confirm-ok {
  background: #e74c3c;
}

.styled-confirm-modal.styled-feedback-warning .styled-confirm-ok {
  background: #f39c12;
}

.styled-confirm-modal.styled-feedback-info .styled-confirm-ok,
.styled-confirm-modal.styled-feedback-confirm .styled-confirm-ok {
  background: var(--bg-dark-soft);
}

.search-box {
  position: relative;
  overflow: visible;
}



.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 1200;
}

.search-suggestions::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.search-box > .search-suggestions {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
}

.search-box .search-suggestions .search-suggestion-item {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}

.search-box .search-suggestions .search-suggestion-item:last-child {
  border-bottom: 0;
}

.search-box .search-suggestions .search-suggestion-item:hover {
  background: #f8fafc;
}

.search-suggestion-image {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.search-suggestion-content {
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-suggestion-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-meta {
  font-size: 12px;
  color: #6b7280;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.search-suggestion-meta .search-suggestion-category {
  color: #6b7280;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-meta .search-suggestion-price {
  color: #111827;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}

.search-suggestion-desc {
  font-size: 12px;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 565px) {
  .search-box {
    position: relative;
    z-index: 12010;
  }

  .search-box .search-suggestions {
    z-index: 12020;
  }
}

.search-no-results {
  padding: 11px 12px;
  font-size: 13px;
  color: #6b7280;
}

/* ===============================
   RESPONSIVE (CONSOLIDATED)
================================ */

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-slider .product-card {
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
  }
}

/* 1) Mobile & Tablet (Smartphones & Tablets): up to 992px */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid .product-card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .product-slider .product-card {
    flex: 0 0 calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
    margin-left: 0;
    margin-right: 0;
  }

  /* Hamburger button - absolute positioning */
  .mobile-sidebar-toggle {
    display: flex;
    position: absolute;
    left: 15px;
    top: 15px;
    width: 30px;
    height: 22px;
    gap: 12px;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 18px;
  }

  .mobile-sidebar-toggle span {
    display: block;
    height: 4px;
    background: var(--bg-dark);
    border-radius: 3px;
  }

  .mobile-sidebar-toggle[aria-expanded="true"] {
    opacity: 0;
    pointer-events: none;
  }

  /* Sidebar slide-in from left */
  .mobile-sidebar-panel {
    display: block;
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #fff;
    transition: 0.3s;
    z-index: 9998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 2px 0 16px rgba(0,0,0,0.18);
    padding: 0;
    padding-bottom: 18px;
  }

  .mobile-sidebar-panel.open {
    left: 0;
  }

  .mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-bottom: 1px solid #eee;
  }

  .mobile-sidebar-close {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--bg-dark);
  }

  .mobile-sidebar-section {
    border-bottom: 1px solid #e2e8f0;
  }

  .mobile-sidebar-section > summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 8px;
    font-weight: 700;
    color: var(--bg-dark);
    position: relative;
  }

  .mobile-sidebar-section > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-sidebar-section > summary::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    transition: transform 0.2s ease;
  }

  .mobile-sidebar-section[open] > summary::after {
    transform: translateY(-50%) rotate(90deg);
  }

  .mobile-sidebar-group {
    border-bottom: 1px solid #eef2f7;
  }

  .mobile-sidebar-group summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 8px;
    font-weight: 600;
    color: var(--bg-dark);
    position: relative;
  }

  .mobile-sidebar-group summary::-webkit-details-marker {
    display: none;
  }

  .mobile-sidebar-group summary::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: transform 0.2s ease;
  }

  .mobile-sidebar-group[open] summary::after {
    transform: translateY(-50%) rotate(90deg);
  }

  .mobile-sidebar-panel a {
    display: block;
    padding: 10px 8px;
    text-decoration: none;
    color: var(--bg-dark);
    font-weight: 600;
    border-bottom: 1px solid #eef2f7;
  }

  .mobile-sidebar-sub a {
    padding-left: 20px;
    font-weight: 500;
    border-bottom: none;
    color: #334155;
  }

  /* Backdrop overlay */
  .mobile-sidebar-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    transition: opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
  }

  .mobile-sidebar-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

.product-slider .product-card {
  flex: 0 0 calc((100% - 20px) / 2);
  max-width: calc((100% - 20px) / 2);
  margin-left: 0;
  margin-right: 0;
  }

  .sorting-bar {
    justify-content: center;
  }

  .sorting-bar.sorting-bar--simple {
    justify-content: flex-start;
  }

  .nav-menu {
    width: auto;
    max-width: none;
  }
}

@media (max-width: 850px) {
  .sorting-bar:not(.sorting-bar--simple) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "sort items"
      "pagination pagination";
    align-items: center;
    gap: 12px 16px;
    padding: 14px 18px;
  }

  .sorting-bar:not(.sorting-bar--simple) > div:first-child,
  .sorting-bar:not(.sorting-bar--simple) > .items-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: auto;
  }

  .sorting-bar:not(.sorting-bar--simple) > div:first-child {
    grid-area: sort;
    justify-self: start;
    justify-content: flex-start;
  }

  .sorting-bar:not(.sorting-bar--simple) > .items-per-page {
    grid-area: items;
    justify-self: end;
    justify-content: flex-end;
  }

  .sorting-bar label,
  .items-per-page label {
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
  }

  .sorting-bar:not(.sorting-bar--simple) > div:first-child select,
  .sorting-bar:not(.sorting-bar--simple) > .items-per-page select {
    width: auto;
    max-width: 170px;
    min-width: 120px;
  }

  .sorting-bar:not(.sorting-bar--simple) > .pagination-controls {
    grid-area: pagination;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    justify-content: stretch;
    margin-left: 0;
    padding-top: 4px;
    gap: 0;
  }

  .sorting-bar:not(.sorting-bar--simple) > .pagination-controls .pagination-arrow:first-child {
    justify-self: start;
  }

  .sorting-bar:not(.sorting-bar--simple) > .pagination-controls .pagination-info {
    justify-self: center;
  }

  .sorting-bar:not(.sorting-bar--simple) > .pagination-controls .pagination-arrow:last-child {
    justify-self: end;
  }
}

@media (max-width: 768px){

  .top-bar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1101;
  }

  .category-dropdown{
    display: none !important;
  }

}

@media (max-width: 605px) {
  .sorting-bar:not(.sorting-bar--simple) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sort"
      "items"
      "pagination";
    gap: 10px;
    padding: 10px 12px;
  }

  .sorting-bar:not(.sorting-bar--simple) > div:first-child,
  .sorting-bar:not(.sorting-bar--simple) > .items-per-page {
    width: 100%;
    justify-self: stretch;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }

  .sorting-bar:not(.sorting-bar--simple) > div:first-child select,
  .sorting-bar:not(.sorting-bar--simple) > .items-per-page select {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .sorting-bar:not(.sorting-bar--simple) > .pagination-controls {
    padding-top: 2px;
  }

  #sorting-bar > div {
    min-width: 0;
  }

  #sorting-bar #sort-select {
    width: 100%;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 0;
  }
}

@media (max-width: 605px) and (min-width: 481px) {
  #sorting-bar.sort-spacing-eligible > div {
    justify-content: flex-start;
    gap: 10px;
  }

  #sorting-bar.sort-spacing-eligible > div > label[for="sort-select"] {
    margin-right: 52px !important;
    flex: 0 0 auto;
  }
}

/* 2) Tablets: 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
.account-auth-grid {
    flex-direction: column;
    align-items: center;
    border-radius: 18px;
    box-shadow: 0 2px 12px 0 rgba(60,80,120,0.10);
  }
  .auth-card {
    max-width: 100%;
    width: 100%;
    border-right: none;
    border-bottom: 1.5px solid #e0e6ef;
    border-radius: 0;
  }
  .auth-card:last-child {
    border-bottom: none;
  }

.wishlist-card, .cart-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    padding: 1.1rem 0.7rem;
  }
  .wishlist-card img, .cart-card img {
    width: 100%;
    height: 110px;
    margin: 0 auto;
  }
  .wishlist-card .product-actions, .cart-card .product-actions {
    flex-direction: row;
    align-items: center;
    min-width: 0;
    margin-left: 0;
    width: 100%;
    gap: 0.7rem;
  }

.product-detail-container {
    gap: 18px;
    padding: 16px;
  }
  .detail-gallery {
    position: static;
  }
  .detail-gallery img,
  .detail-info {
    max-width: 100%;
  }
  .detail-info h1 {
    font-size: 24px;
  }
  .detail-price-row {
    margin: 12px 0;
  }

.product-top-layout {
    grid-template-columns: 1fr;
  }

  .product-main-column,
  .product-side-column {
    gap: 16px;
  }

  .add-review-card,
  .product-detail-container {
    max-width: 100%;
  }

  .related-images {
    margin-top: 10px;
  }

  .related-images-panel .related-images-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

.checkout-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

.checkout-container > #place-order-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }

.confirmation-header {
    padding: 30px 0;
    margin-bottom: 30px;
  }
  .confirmation-header h1 {
    font-size: 28px;
  }
  .success-icon {
    font-size: 60px;
  }
  .confirmation-content {
    grid-template-columns: 1fr;
  }
  .confirmation-actions {
    flex-direction: column;
  }

.reviews-container {
    padding: 20px;
  }
  .reviews-header h2 {
    font-size: 20px;
  }
  .write-review {
    padding: 20px;
  }

.dots {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .dots span {
    width: 14px;
    height: 14px;
  }

  .dots .active {
    width: 24px;
    height: 14px;
  }

.auth-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

}

@media (max-width: 480px){
  .category-header > .item-count {
    display: none !important;
  }

  .items-per-page{
    display: none !important;
  }
}
@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-slider .product-card {
    flex: 0 0 calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
  }

  .product-card {
    padding: 10px;
  }

  .product-card img {
    height: 148px;
  }

  .product-image-frame {
    min-height: 148px;
  }

  .product-card h3 {
    font-size: 13px;
    margin: 4px 0 8px;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-card .product-description {
    font-size: 12px;
    min-height: 28px;
    max-height: 30px;
  }
}

/* 4) Large Desktops (Widescreen): 1201px and above */
@media (min-width: 1201px) {
.admin-inline-mode .product-top-layout {
    align-items: start;
  }

  .admin-inline-mode .product-side-column {
    display: contents;
  }

  .admin-inline-mode .product-reviews.product-reviews-card {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 940px);
    margin-top: 0;
  }
}

@media (min-width: 769px) {
  .admin-inline-mode .product-top-layout {
    align-items: start;
  }

  .admin-inline-mode .product-side-column {
    display: contents;
  }

  .admin-inline-mode .product-detail-container,
  .admin-inline-mode .add-review-card {
    grid-column: 1;
  }

  .admin-inline-mode .related-images-panel {
    grid-column: 2;
  }

  .admin-inline-mode .product-reviews.product-reviews-card {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 940px);
    margin-top: 0;
  }
}

.mobile-sidebar-toggle{
z-index: 1000;
}

.mobile-sidebar-panel{
z-index: 2000;
}

.mobile-sidebar-toggle[aria-expanded="true"]{
opacity:0;
pointer-events:none;
}

