/* ============================================================
   ShopKart - Professional E-Commerce Stylesheet
   Font: Nunito | Accent: Coral/Pink inspired by Meesho
   ============================================================ */

:root {
  --primary: #f43397;
  --primary-dk: #d01e7b;
  --secondary: #2d2d2d;
  --accent: #ff6b35;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --light-bg: #fafafa;
  --border: #f0f0f0;
  --text: #1f1f1f;
  --text-muted: #6b7280;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  --radius: 10px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--light-bg);
}

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

/* ---- TOP BAR ---- */
.top-bar {
  background: #1f1f1f;
  color: #fff;
  padding: 6px 0;
  font-size: 12.5px;
}

.top-bar a {
  color: #ddd;
}

/* ---- NAVBAR ---- */
.main-navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  padding: 0;
  z-index: 1050;
}

.main-navbar>.container {
  display: flex;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: nowrap;
}

@media (min-width: 992px) {
  .main-navbar>.container {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin-right: 0;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .navbar-brand {
    margin-left: 100px;
  }

  .nav-icons {
    margin-right: 100px;
  }

  .category-nav {
    justify-content: flex-start;
    margin-left: 100px;
  }
}

.brand-logo {
  font-size: 26px;
  color: var(--primary);
  line-height: 1;
}

.brand-text {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* Search */
.search-bar {
  max-width: 500px;
}

.search-input {
  border-radius: 24px 0 0 24px;
  border: 2px solid var(--primary);
  border-right: none;
  padding: 8px 16px;
  font-size: 14px;
  transition: box-shadow .2s;
}

.search-input:focus {
  box-shadow: 0 0 0 3px rgba(244, 51, 151, .15);
  outline: none;
  border-color: var(--primary);
}

.search-btn {
  border-radius: 0 24px 24px 0;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  padding: 8px 18px;
}

.search-btn:hover {
  background: var(--primary-dk);
  border-color: var(--primary-dk);
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  z-index: 200;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}

.search-dropdown.show {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  text-decoration: none;
}

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

/* Nav Icons */
.icon-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}

.icon-btn:hover {
  background: #fef0f7;
  color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  /* Hover zoom for main product image */
  #mainProductImg {
      transition: transform .3s ease;
  }
  #mainProductImg:hover {
      transform: scale(1.2);
      cursor: zoom-in;
  }
  .product-gallery .main-img {
      overflow: hidden;
  }
}

/* Hover zoom for main product image */
#mainProductImg {
    transition: transform .3s ease;
}
#mainProductImg:hover {
    transform: scale(1.2);
    cursor: zoom-in;
}
.product-gallery .main-img {
    overflow: hidden;
}

.nav-icons {
  position: relative;
}

/* Category Nav Scroll Arrows (mobile only) */
.cat-nav-wrapper {
  overflow: hidden;
}

.cat-nav-arrow {
  display: none; /* shown via JS when needed */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background .15s, color .15s, opacity .2s;
  padding: 0;
}

.cat-nav-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cat-nav-arrow.visible {
  display: flex;
}

.cat-nav-arrow-left {
  left: 0;
}

.cat-nav-arrow-right {
  right: 0;
}

/* Fade edges so items slide under the arrows smoothly */
@media (max-width: 991px) {
  .cat-nav-wrapper.has-left::before,
  .cat-nav-wrapper.has-right::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    z-index: 10;
    pointer-events: none;
  }
  .cat-nav-wrapper.has-left::before {
    left: 0;
    background: linear-gradient(to right, #fff 60%, transparent);
  }
  .cat-nav-wrapper.has-right::after {
    right: 0;
    background: linear-gradient(to left, #fff 60%, transparent);
  }
}

/* Category Nav */
.category-nav {
  padding-bottom: 4px;
  gap: 2px;
  flex-wrap: nowrap;
  scrollbar-width: none;
  position: relative;
}

@media (max-width: 991px) {
  .navbar-nav.category-nav {
    overflow-x: auto !important;
    overflow-y: visible !important;
    flex-direction: row !important;
    position: static !important;
  }

  .navbar-nav.category-nav .nav-item {
    position: static !important;
    flex-shrink: 0 !important;
  }

  .navbar-nav.category-nav .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    border-top: 1px solid var(--border) !important;
    z-index: 1050 !important;
  }
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav .nav-item {
  position: relative;
}

.category-nav .nav-item.dropdown.show {
  z-index: 1100;
}

.category-nav .nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px 6px 0 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}

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

.category-nav .dropdown-toggle::after {
  vertical-align: 1px;
}

.category-nav .dropdown-menu {
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  border-radius: var(--radius);
  min-width: 200px;
  margin-top: 0;
}

.category-nav .dropdown-item {
  font-size: 13.5px;
  padding: 8px 16px;
}

.category-nav .dropdown-item:hover {
  background: #fef0f7;
  color: var(--primary);
}

/* Subcategory Hover Flyout (Layer 3 Product Categories) */
.category-nav .dropdown-submenu {
  position: relative;
}

@media (min-width: 992px) {
  .category-nav .dropdown-submenu .submenu-flyout {
    top: -4px;
    left: 100%;
    margin-left: 0;
    display: none;
    position: absolute;
    min-width: 210px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1060;
    padding: 6px 0;
  }

  .category-nav .dropdown-submenu:hover>.submenu-flyout {
    display: block;
  }

  .category-nav .dropdown-submenu:hover>.dropdown-item {
    background: #fef0f7;
    color: var(--primary);
  }
}

@media (max-width: 991px) {
  .category-nav .dropdown-submenu .submenu-flyout {
    position: static !important;
    display: block !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 2px solid var(--primary) !important;
    margin: 2px 0 6px 16px !important;
    padding: 2px 0 2px 8px !important;
    background: transparent !important;
    width: auto !important;
  }

  .category-nav .dropdown-submenu .submenu-flyout .dropdown-item {
    font-size: 12.5px;
    padding: 3px 8px;
  }
}

/* ---- HERO SLIDER ---- */
.hero-slider {
  background: #fff;
}

.swiper-hero .swiper-slide img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0;
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
}

/* ---- SECTION TITLES ---- */
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

.view-all {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 20px;
  padding: 5px 16px;
  transition: all .2s;
}

.view-all:hover {
  background: var(--primary);
  color: #fff;
}

/* ---- CATEGORY CHIPS ---- */
.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}

.category-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(244, 51, 151, .15);
}

.category-chip .icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde8f5, #fecfe6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}

.category-chip .label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

/* ---- PRODUCT CARD ---- */
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.product-card .img-wrap {
  position: relative;
  overflow: hidden;
  background: #f8f8f8;
  aspect-ratio: 3/4;
}

.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

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

.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

.badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--success);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

.badge-free-ship {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(34, 197, 94, .9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all .2s;
  font-size: 15px;
  color: #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.wishlist-btn:hover,
.wishlist-btn.active {
  color: var(--primary);
  background: #fff;
}

.product-card .card-body {
  padding: 12px 12px 14px;
}

.product-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
  line-height: 1.4;
}

.price-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sale-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

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

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

.stars-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.stars {
  color: #f59e0b;
  font-size: 11px;
}

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

.add-cart-btn {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.add-cart-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.quick-view-btn {
  width: 100%;
  margin-top: 6px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.quick-view-btn:hover {
  background: #fef0f7;
}

/* ---- FILTER SIDEBAR ---- */
.filter-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 20px;
}

.filter-title {
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  margin-bottom: 8px;
  cursor: pointer;
}

/* Category Tree Professional Alignment */
.cat-tree-list { list-style: none; padding: 0; margin: 0; }
.cat-tree-item { margin-bottom: 2px; }
.cat-tree-link {
  display: flex; align-items: center; font-size: 14px;
  color: #333; text-decoration: none; padding: 6px 0;
  transition: all 0.2s; font-weight: 500;
}
.cat-tree-link:hover, .cat-tree-link.active { color: var(--primary); }
.cat-tree-link.active { font-weight: 800; }
.cat-tree-icon { margin-right: 8px; width: 16px; text-align: center; color: #888; }
.cat-tree-link.active .cat-tree-icon { color: var(--primary); }

.cat-tree-sub {
  list-style: none; padding-left: 22px; margin-top: 2px; margin-bottom: 8px;
  border-left: 1px dashed #dee2e6; margin-left: 7px;
}
.cat-tree-sub-item { position: relative; margin-bottom: 2px; }
.cat-tree-sub-item::before {
  content: ""; position: absolute; top: 15px; left: -22px; width: 14px;
  border-top: 1px dashed #dee2e6;
}
.cat-tree-sub-link {
  display: flex; align-items: center; font-size: 13px; color: #555;
  text-decoration: none; padding: 6px 0; transition: all 0.2s;
}
.cat-tree-sub-link:hover, .cat-tree-sub-link.active { color: var(--primary); }
.cat-tree-sub-link.active { font-weight: 700; }

.cat-tree-child {
  list-style: none; padding-left: 22px; margin-top: 2px;
  border-left: 1px dashed #dee2e6; margin-left: -1px;
}
.cat-tree-child-item { position: relative; }
.cat-tree-child-item::before {
  content: ""; position: absolute; top: 14px; left: -22px; width: 14px;
  border-top: 1px dashed #dee2e6;
}
.cat-tree-child-link {
  display: flex; align-items: center; font-size: 12.5px; color: #777;
  text-decoration: none; padding: 5px 0; transition: all 0.2s;
}
.cat-tree-child-link:hover, .cat-tree-child-link.active { color: var(--primary); }
.cat-tree-child-link.active { font-weight: 700; }

.filter-option input {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}

.price-range {
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  outline: none;
}

.price-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  font-size: 13px;
}

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

.breadcrumb-item.active {
  color: var(--text-muted);
}

/* ---- PRODUCT DETAIL ---- */
.product-gallery .main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  /*background: #f8f8f8;*/
}

.product-gallery .main-img img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  transition: transform .3s ease;
  display: block;
  cursor: zoom-in;
}

.product-gallery .main-img img:hover {
  transform: scale(1.12) !important;
}

.thumb-item img {
  cursor: pointer;
}

.product-gallery .main-img img:hover {
  transform: scale(1.12) !important;
  cursor: zoom-in;
}

.thumb-list {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.thumb-item {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}

.thumb-item.active,
.thumb-item:hover {
  border-color: var(--primary);
}

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

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-brand {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-price {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 4px;
}

.detail-orig {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-off {
  font-size: 15px;
  font-weight: 700;
  color: var(--success);
}

.size-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.size-btn:hover,
.size-btn.active,
.size-btn:has(input:checked) {
  border-color: var(--primary);
  color: var(--primary);
  background: #fef0f7;
}

.color-dot-wrapper {
  display: inline-block;
}

.color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 0 0 1.5px #d1d5db, 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all .2s ease-in-out;
  vertical-align: middle;
  margin: 0;
}

.color-dot:hover,
.color-dot.active,
.color-dot:has(input:checked) {
  transform: scale(1.15);
  box-shadow: 0 0 0 2.5px var(--primary), 0 4px 10px rgba(244, 51, 151, 0.25) !important;
}

.color-dot.border-dark-subtle {
  border-color: #e4e4e7 !important;
}

.qty-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

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

.qty-num {
  width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 5px;
}

.btn-cart-main {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.btn-cart-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 51, 151, .35);
}

.btn-buy-now {
  background: linear-gradient(135deg, var(--accent), #e55a2b);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, .35);
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.feature-tag i {
  color: var(--primary);
  font-size: 16px;
}

/* ---- CART ---- */
.cart-table th {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 16px;
  border-bottom: 2px solid var(--border);
}

.cart-table td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.cart-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-name {
  font-size: 14px;
  font-weight: 600;
}

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

.cart-qty {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
}

.order-summary-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 80px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.summary-row.total {
  font-size: 18px;
  font-weight: 800;
  border: none;
}

.coupon-input {
  border-radius: 8px 0 0 8px;
  border: 1.5px solid var(--border);
}

.btn-apply {
  border-radius: 0 8px 8px 0;
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
  font-weight: 700;
}

.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  transition: all .2s;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 51, 151, .35);
}

/* ---- ORDER TRACKING ---- */
.track-timeline {
  position: relative;
  padding: 10px 0;
}

.track-step {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}

.track-step::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 36px;
  bottom: -28px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

.track-step:last-child::before {
  display: none;
}

.step-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}

.step-icon.done {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
}

.step-icon.active {
  background: var(--success);
  color: #fff;
  animation: pulse .8s infinite alternate;
}

.step-icon.pending {
  background: #f0f0f0;
  color: #aaa;
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .2);
  }
}

.step-info {
  padding-top: 6px;
}

.step-label {
  font-size: 14px;
  font-weight: 700;
}

.step-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.step-time {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ---- CHECKOUT ---- */
.checkout-step-header {
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fde8f5, #fff);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  margin-bottom: 16px;
}

.address-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 10px;
}

.address-card.selected,
.address-card:hover {
  border-color: var(--primary);
  background: #fef0f7;
}

/* ---- RATING STARS ---- */
.rating-star {
  font-size: 22px;
  cursor: pointer;
  color: #ddd;
  transition: color .15s;
}

.rating-star.selected,
.rating-star:hover {
  color: var(--warning);
}

/* ---- REVIEW CARD ---- */
.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
  margin-bottom: 14px;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

/* ---- ACCOUNT PAGE ---- */
.account-sidebar .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 4px;
}

.account-sidebar .menu-item:hover,
.account-sidebar .menu-item.active {
  background: #fef0f7;
  color: var(--primary);
}

/* ---- FORMS ---- */
.form-control,
.form-select {
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color .2s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 51, 151, .1);
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}

.btn-primary-sk {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.btn-primary-sk:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* ---- BADGES ---- */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
}

.badge-placed {
  background: #eff6ff;
  color: #2563eb;
}

.badge-confirmed {
  background: #f0fdf4;
  color: #16a34a;
}

.badge-processing {
  background: #fefce8;
  color: #ca8a04;
}

.badge-shipped {
  background: #f0f9ff;
  color: #0369a1;
}

.badge-out_for_delivery {
  background: #fdf4ff;
  color: #7e22ce;
}

.badge-delivered {
  background: #f0fdf4;
  color: #15803d;
}

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

.badge-returned {
  background: #fff7ed;
  color: #c2410c;
}

/* ---- FOOTER ---- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer-top {
  padding: 48px 0 32px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

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

.footer-links li {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color .15s;
}

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

.social-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 16px;
  margin-right: 6px;
  transition: all .2s;
}

.social-btn:hover {
  background: var(--primary);
  color: #fff;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  transition: all .2s;
  margin-right: 6px;
}

.app-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.footer-trust {
  background: #fafafa;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-item {
  padding: 10px;
}

.trust-item i {
  font-size: 24px;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.trust-item div {
  font-size: 13px;
  font-weight: 700;
}

.trust-item small {
  color: var(--text-muted);
}

.footer-bottom {
  padding: 14px 0;
  background: #f5f5f5;
}

.payment-icons span {
  background: #e5e7eb;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}

/* ---- SCROLL TOP ---- */
.scroll-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s;
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---- MISC ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 56px;
  color: #e5e7eb;
  display: block;
  margin-bottom: 16px;
}

.empty-state h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.spinner-pink {
  color: var(--primary);
}

.no-scroll {
  overflow: hidden;
}

.card-generic {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.section-pad {
  padding: 40px 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .section-title {
    font-size: 18px;
  }

  .product-title {
    font-size: 19px;
  }

  .detail-price {
    font-size: 22px;
  }

  .hero-slider img {
    max-height: 220px;
  }

  .category-chip {
    padding: 10px 6px;
  }

  .category-chip .icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* ---- LOGIN / REGISTER ---- */
.auth-card {
  max-width: 420px;
  margin: 60px auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .1);
  overflow: hidden;
}

.auth-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  padding: 28px 32px 20px;
  color: #fff;
}

.auth-header h4 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-bottom: 4px;
}

.auth-body {
  padding: 28px 32px 32px;
}

.divider-text {
  position: relative;
  text-align: center;
  margin: 16px 0;
}

.divider-text::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.divider-text span {
  background: #fff;
  padding: 0 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  position: relative;
}

/* ---- DEAL OF THE DAY (FASHION & PROFESSIONAL) ---- */
.deal-nav-link {
  color: var(--primary) !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.deal-hero {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  color: #fff;
  padding: 64px 0 54px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle fashionable pattern overlay */
.deal-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px);
  background-size: 30px 30px;
  opacity: 0.8;
  z-index: 0;
}

.deal-hero .container {
  position: relative;
  z-index: 1;
}

.deal-hero-empty {
  padding: 100px 0;
}

.deal-hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
}

.deal-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.deal-hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

.deal-empty-icon {
  font-size: 72px;
  opacity: 0.3;
  color: var(--text-muted);
}

.deal-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin-top: -32px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(0,0,0,0.03);
}

.deal-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.deal-main-img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  padding: 16px;
  transition: transform 0.5s ease;
}
.deal-img-wrap:hover .deal-main-img {
  transform: scale(1.03);
}

.deal-flash-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.deal-wish-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  color: #000;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.deal-wish-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.deal-countdown-wrap {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 24px;
}

.deal-countdown-label {
  font-size: 12px;
  font-weight: 700;
  color: #6c757d;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.main-navbar>.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Fix offcanvas z-index to stay above the 1050 navbar */
.offcanvas-backdrop {
  z-index: 1060 !important;
}
.offcanvas {
  z-index: 1065 !important;
}

.deal-countdown {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.deal-countdown-sm {
  gap: 8px;
}

.deal-countdown-sm .countdown-unit {
  min-width: 52px;
  padding: 8px 6px;
}

.deal-countdown-sm .countdown-unit span {
  font-size: 20px;
}

.deal-countdown-sm .countdown-sep {
  font-size: 18px;
}

.countdown-unit {
  background: #fff;
  color: #000;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  min-width: 76px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.countdown-unit span {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  font-family: 'Playfair Display', serif;
  font-variant-numeric: tabular-nums;
}

.countdown-unit small {
  display: block;
  font-size: 11px;
  color: #6c757d;
  font-weight: 600;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-sep {
  font-size: 24px;
  font-weight: 400;
  color: #adb5bd;
  padding-bottom: 16px;
}

.deal-product-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.deal-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #6c757d;
}

.deal-variant-chip {
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

.deal-variant-chip input {
  display: none;
}

.deal-variant-chip span {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #ced4da;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  background: #fff;
  transition: all 0.2s ease;
}

.deal-variant-chip:hover span {
  border-color: #adb5bd;
  background: #f8f9fa;
}

.deal-variant-chip input:checked + span {
  background: #000;
  color: #fff;
  border-color: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.deal-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}

.deal-sale-price {
  font-size: 36px;
  font-weight: 800;
  color: #000;
  font-family: 'Playfair Display', serif;
}

.deal-orig-price {
  font-size: 20px;
  color: #adb5bd;
  text-decoration: line-through;
  font-weight: 500;
}

.deal-save-badge {
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.deal-stock {
  font-size: 14px;
  color: #495057;
  display: flex;
  align-items: center;
}

.deal-perk {
  font-size: 14px;
  color: #6c757d;
  padding-top: 16px;
  border-top: 1px solid #e9ecef;
  display: flex;
  align-items: center;
}

.deal-teaser {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
}

.deal-teaser-img-col {
  position: relative;
  min-height: 220px;
}

.deal-teaser-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.deal-teaser-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}

.deal-teaser-body {
  padding: 28px 32px;
}

.deal-teaser-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.deal-teaser-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  margin-bottom: 12px;
}

.deal-teaser-price .deal-sale-price {
  font-size: 26px;
}

.deal-teaser-price .deal-orig-price {
  font-size: 16px;
  opacity: .6;
}

@media (max-width: 768px) {
  .deal-card {
    padding: 20px;
    margin-top: 0;
  }

  .countdown-unit {
    min-width: 58px;
    padding: 10px 6px;
  }

  .countdown-unit span {
    font-size: 22px;
  }

  .deal-teaser-body {
    padding: 20px;
  }
}