/* ==========================================================================
   BIXAO SHOP - LUXURY MODERN FASHION E-COMMERCE DESIGN SYSTEM
   Palette: #FFFFFF, #111111, #F5F5F5, #EAEAEA, #C9A227
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-color: #111111;
  --secondary-color: #2a2a2a;
  --accent-color: #C9A227;
  --accent-hover: #b38e1e;
  --accent-light: #fbf6e8;
  --bg-color: #FFFFFF;
  --bg-light: #F7F7F8;
  --bg-gray: #F0F0F2;
  --border-color: #EAEAEA;
  --border-dark: #D4D4D8;
  --text-main: #18181B;
  --text-muted: #71717A;
  --text-light: #A1A1AA;
  --danger-color: #EF4444;
  --success-color: #10B981;
  --font-heading: 'Outfit', 'Montserrat', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

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

.container-custom {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
  background-color: #0d0d0d;
  color: #d1d5db;
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-center, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.top-bar a:hover {
  color: var(--accent-color);
}

.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-socials a {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  font-size: 11px;
}

.top-bar-socials a:hover {
  background: var(--accent-color);
  color: #000;
}

/* ==========================================================================
   MAIN HEADER
   ========================================================================== */
.main-header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: var(--transition);
}

.main-header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.header-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  height: 48px;
  width: auto;
}

/* Search Box Large */
.header-search {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-form {
  display: flex;
  position: relative;
}

.search-input {
  width: 100%;
  height: 46px;
  padding: 0 50px 0 20px;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  font-size: 14px;
  background: #f8fafc;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--accent-color);
  color: #111;
}

/* Autocomplete Dropdown */
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: none;
  z-index: 1000;
  max-height: 450px;
  overflow-y: auto;
}

.search-autocomplete-dropdown.active {
  display: block;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.autocomplete-item:hover {
  background: var(--bg-light);
}

.autocomplete-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f1f1f1;
}

.autocomplete-info h5 {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text-main);
}

.autocomplete-info .price {
  font-size: 13px;
  font-weight: 700;
  color: var(--danger-color);
}

.autocomplete-footer {
  padding: 10px;
  text-align: center;
  background: var(--bg-light);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
}

.action-icon-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.action-item:hover .action-icon-wrap {
  background: var(--primary-color);
  color: #fff;
}

.action-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger-color);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.action-text {
  display: flex;
  flex-direction: column;
}

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

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* ==========================================================================
   NAVIGATION & MEGA MENU
   ========================================================================== */
.main-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Category Button Highlight */
.nav-category-dropdown {
  position: relative;
}

.nav-category-btn {
  background: #111111;
  color: #ffffff;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: var(--transition);
}

.nav-category-btn:hover {
  background: var(--accent-color);
  color: #111;
}

/* Mega Menu Popup */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 820px;
  background: #ffffff;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 25px;
  display: none;
  z-index: 990;
  grid-template-columns: repeat(3, 1fr) 220px;
  gap: 20px;
}

.nav-category-dropdown:hover .mega-menu {
  display: grid;
  animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mega-column h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

.mega-column ul {
  list-style: none;
}

.mega-column ul li {
  margin-bottom: 9px;
}

.mega-column ul li a {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-column ul li a:hover {
  color: var(--accent-hover);
  padding-left: 4px;
}

.mega-promo-box {
  background: #18181b;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.mega-promo-box h5 {
  color: var(--accent-color);
  font-size: 13px;
  margin-bottom: 6px;
}

.mega-promo-box h4 {
  font-size: 15px;
  margin-bottom: 12px;
}

.mega-promo-box a {
  background: var(--accent-color);
  color: #111;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  display: inline-block;
}

/* Nav Menu Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: #27272a;
  padding: 15px 0;
  display: inline-block;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: #000;
}

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

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

/* ==========================================================================
   HERO BANNER SLIDER
   ========================================================================== */
.hero-section {
  padding: 20px 0 30px;
}

.hero-slider-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  background: #f4f5f7;
  border: 1px solid #e5e7eb;
}

.hero-slider {
  position: relative;
  height: 480px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.02);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-content {
  padding: 0 80px;
  max-width: 620px;
  color: #111111;
  z-index: 3;
}

.hero-badge {
  display: inline-block;
  color: #555555;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
}

.hero-badge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 2px;
  background: var(--accent-color);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  color: #111111;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 16px;
  color: #555555;
  margin-bottom: 30px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111111;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 14px 34px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.18);
  transition: var(--transition);
}

.hero-btn:hover {
  background: var(--accent-color);
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.35);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.hero-arrow:hover {
  background: #111111;
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

.hero-dots {
  position: absolute;
  bottom: 25px;
  left: 80px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  width: 26px;
  border-radius: 10px;
  background: #111111;
}

/* ==========================================================================
   CATEGORY HORIZONTAL CARDS (MATCHING REFERENCE IMAGE)
   ========================================================================== */
.category-section {
  padding: 20px 0 35px;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 15px;
}

.category-card {
  background: #ffffff;
  border: 1px solid #f0f0f2;
  border-radius: var(--radius-md);
  padding: 16px 10px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  position: relative;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: #e2e8f0;
  box-shadow: var(--shadow-md);
}

.cat-thumb-box {
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8fafc;
}

.cat-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .cat-thumb-box img {
  transform: scale(1.08);
}

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

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

/* ==========================================================================
   FLASH SALE & SIDE BANNERS ROW (MATCHING REFERENCE IMAGE)
   ========================================================================== */
.flash-sale-section {
  padding: 20px 0 40px;
}

.sale-layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 20px;
}

/* Flash Sale Main Box */
.flash-sale-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.flash-sale-header {
  background: #111111;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.flash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flash-badge-icon {
  color: #ef4444;
  font-size: 26px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.flash-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
}

.flash-title-wrap p {
  font-size: 12px;
  color: #a1a1aa;
}

/* Countdown Block */
.flash-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-label {
  font-size: 12px;
  color: #d4d4d8;
  font-weight: 600;
  margin-right: 4px;
}

.time-box {
  background: #d32f2f;
  color: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
  min-width: 44px;
  text-align: center;
}

.time-box .num {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.time-box .unit {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.flash-sale-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #e4e4e7;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.flash-sale-link:hover {
  background: #fff;
  color: #111;
}

/* Flash Sale Products Grid (5 items/row in box) */
.flash-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  padding: 20px;
}

/* ==========================================================================
   PRODUCT CARD (FASHION LUXURY CARD)
   ========================================================================== */
.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #f1f1f3;
  padding: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Badges */
.badge-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.badge-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.badge-new { background: #10b981; color: #fff; }
.badge-hot { background: #f97316; color: #fff; }
.badge-sale { background: #ef4444; color: #fff; }

/* Quick Actions Overlay */
.card-actions-hover {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 4;
}

.btn-card-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-card-action:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.btn-card-action.active {
  color: #ef4444;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.product-name a:hover {
  color: var(--accent-hover);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: #eab308;
  margin-bottom: 6px;
}

.product-rating .count {
  color: var(--text-muted);
}

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

.current-price {
  font-size: 15px;
  font-weight: 800;
  color: #d32f2f;
}

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

/* Flash Sale Progress Bar */
.sale-progress-box {
  margin-top: auto;
}

.sale-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #f1f1f3;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f97316);
  border-radius: 4px;
}

/* ==========================================================================
   SIDE BANNERS (3 STACKED BANNERS MATCHING REFERENCE)
   ========================================================================== */
.side-banners-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-banner-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 138px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.side-banner-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.side-banner-content {
  position: relative;
  z-index: 2;
  max-width: 160px;
}

.side-banner-content h4 {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 900;
  color: #111111;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.side-banner-content p {
  font-size: 11px;
  color: #555555;
  margin-bottom: 10px;
}

.side-banner-btn {
  display: inline-block;
  background: #111111;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.side-banner-item:hover .side-banner-btn {
  background: var(--accent-color);
  color: #111111;
}

/* ==========================================================================
   FEATURED PRODUCTS (GRID 6 COLUMNS MATCHING REFERENCE)
   ========================================================================== */
.featured-section {
  padding: 20px 0 40px;
}

.product-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

/* ==========================================================================
   COLLECTION / PROMO BANNER SECTION
   ========================================================================== */
.promo-strip-section {
  padding: 10px 0 35px;
}

.promo-strip-box {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  color: #fff;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.promo-strip-box::after {
  content: 'BIXAO';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 140px;
  font-weight: 900;
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.03);
  pointer-events: none;
}

.promo-text h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.promo-text p {
  color: #a1a1aa;
  font-size: 15px;
}

.promo-btn {
  background: var(--accent-color);
  color: #111;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 30px;
  border-radius: 30px;
  transition: var(--transition);
}

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

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.blog-section {
  padding: 20px 0 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

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

.blog-thumb {
  height: 190px;
  overflow: hidden;
  background: #f1f1f1;
}

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

.blog-card:hover .blog-thumb img {
  transform: scale(1.05);
}

.blog-body {
  padding: 18px;
}

.blog-date {
  font-size: 12px;
  color: var(--accent-hover);
  font-weight: 600;
  margin-bottom: 6px;
}

.blog-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text-main);
}

.blog-summary {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   FEATURE SERVICES (4 ITEMS AT BOTTOM MATCHING REFERENCE)
   ========================================================================== */
.service-features-section {
  padding: 30px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.feature-text h5 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: #111111;
  color: #a1a1aa;
  padding: 60px 0 25px;
  font-size: 13.5px;
}

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

.footer-col h4 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.footer-about p {
  line-height: 1.6;
  margin-bottom: 16px;
}

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

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

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

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #27272a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-socials a:hover {
  background: var(--accent-color);
  color: #111;
}

.footer-bottom {
  border-top: 1px solid #27272a;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12.5px;
}

/* ==========================================================================
   CART DRAWER (SLIDE-OVER FROM RIGHT)
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: #ffffff;
  z-index: 2001;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.cart-drawer-header h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
}

.btn-close-drawer {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px 20px;
}

.drawer-item {
  display: flex;
  gap: 12px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.drawer-item-thumb {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  background: #f1f1f1;
  object-fit: cover;
}

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

.drawer-item-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.drawer-item-variant {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.qty-btn {
  background: none;
  border: none;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 13px;
}

.qty-input {
  width: 32px;
  text-align: center;
  border: none;
  font-size: 12px;
  font-weight: 600;
}

.drawer-item-remove {
  color: var(--text-light);
  cursor: pointer;
  font-size: 14px;
}

.drawer-item-remove:hover {
  color: var(--danger-color);
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: #fbfbfb;
}

.drawer-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 15px;
}

.drawer-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-drawer-cart {
  text-align: center;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  padding: 11px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 13.5px;
}

.btn-drawer-checkout {
  text-align: center;
  background: var(--primary-color);
  color: #fff;
  padding: 11px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 13.5px;
}

.btn-drawer-checkout:hover {
  background: var(--accent-color);
  color: #111;
}

/* ==========================================================================
   QUICK VIEW MODAL
   ========================================================================== */
.quickview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quickview-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quickview-modal {
  background: #ffffff;
  width: 850px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  padding: 30px;
}

.btn-close-quickview {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f1f1f1;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 280px;
  max-width: 360px;
  background: #18181b;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left: 4px solid var(--success-color); }
.toast.error { border-left: 4px solid var(--danger-color); }
.toast.info { border-left: 4px solid var(--accent-color); }

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION (REQ 56)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 8px 10px;
  z-index: 990;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.mobile-bottom-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--text-muted);
  position: relative;
}

.mobile-nav-item i {
  font-size: 18px;
}

.mobile-nav-item.active {
  color: var(--primary-color);
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (FOR ALL DEVICES: MOBILE, TABLET, LAPTOP, DESKTOP)
   ========================================================================== */

/* 1. Large Laptops & Desktops (max-width: 1200px) */
@media (max-width: 1200px) {
  .product-grid-6 { grid-template-columns: repeat(4, 1fr); }
  .category-grid { grid-template-columns: repeat(6, 1fr); }
  .flash-products-grid { grid-template-columns: repeat(3, 1fr); }
  .sale-layout-wrapper { grid-template-columns: 1fr; }
  .side-banners-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid-5 { grid-template-columns: repeat(4, 1fr) !important; }
}

/* 2. Tablets Landscape & Medium Screens (max-width: 1024px) */
@media (max-width: 1024px) {
  .container-custom { padding: 0 16px; }
  .product-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .product-grid-5 { grid-template-columns: repeat(3, 1fr) !important; }
  .collections-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
}

/* 3. Tablets Portrait & Mobile Devices (max-width: 992px) */
@media (max-width: 992px) {
  /* Header Layout Adaptation */
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .header-logo {
    order: 1;
  }
  .header-logo img {
    height: 42px;
  }
  .header-actions {
    order: 2;
    gap: 14px;
    margin-left: auto;
  }
  .header-actions .action-text {
    display: none;
  }
  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
    margin-top: 6px;
  }

  /* Navigation & Mobile Drawer */
  .main-nav {
    position: relative;
    z-index: 995;
  }
  .nav-inner {
    justify-content: space-between;
    padding: 6px 0;
  }
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
  }
  .mobile-nav-toggle:hover {
    background: var(--bg-light);
  }

  /* Nav Links Dropdown Drawer when active */
  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(0,0,0,0.14);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px 20px;
    gap: 0;
    z-index: 1000;
    animation: fadeIn 0.25s ease forwards;
  }
  .nav-links.active li {
    width: 100%;
    border-bottom: 1px solid #f4f4f5;
  }
  .nav-links.active li:last-child {
    border-bottom: none;
  }
  .nav-links.active li a {
    display: block;
    padding: 12px 0;
    font-size: 14.5px;
    font-weight: 600;
  }

  /* Mega Menu adaptation on Tablets */
  .mega-menu {
    position: absolute;
    width: min(94vw, 550px);
    left: 0;
    grid-template-columns: 1fr;
    max-height: 70vh;
    overflow-y: auto;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }
  .mega-promo-box {
    display: none;
  }

  /* Hero Slider */
  .hero-slider { height: 380px; }
  .hero-title { font-size: 28px; }
  .hero-content { padding: 0 35px; }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 65px !important; }

  /* Storefront Multi-Column Grids collapse to 1 column */
  main.site-main div[style*="grid-template-columns:260px 1fr"],
  main.site-main div[style*="grid-template-columns: 260px 1fr"],
  main.site-main div[style*="grid-template-columns:1fr 380px"],
  main.site-main div[style*="grid-template-columns: 1fr 380px"],
  main.site-main div[style*="grid-template-columns:1fr 480px"],
  main.site-main div[style*="grid-template-columns: 1fr 480px"],
  main.site-main div[style*="grid-template-columns:500px 1fr"],
  main.site-main div[style*="grid-template-columns: 500px 1fr"],
  main.site-main div[style*="grid-template-columns:1fr 1.2fr"],
  main.site-main div[style*="grid-template-columns: 1fr 1.2fr"],
  main.site-main div[style*="grid-template-columns:300px 1fr"],
  main.site-main div[style*="grid-template-columns: 300px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
}

/* 4. Large Phones & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  /* Topbar simplification */
  .top-bar-center, .top-bar-right { display: none; }
  .top-bar-inner { justify-content: center; text-align: center; font-size: 11.5px; }

  /* Product Grids: 2 Columns on mobile devices (e-commerce standard) */
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .cat-thumb-box { width: 70px; height: 70px; }
  .flash-products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
  .product-grid-6 { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
  .product-grid-5 { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
  .collections-grid { grid-template-columns: 1fr !important; }
  .side-banners-stack { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }

  /* Service Features Grid */
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature-item { padding: 14px; }

  /* Hero Slider */
  .hero-slider { height: 280px; }
  .hero-title { font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
  .hero-content p { font-size: 13px; margin-bottom: 15px; }
  .hero-content { padding: 0 20px; }
  .hero-arrow { width: 34px; height: 34px; font-size: 14px; }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }

  /* Promo Strip Banner */
  .promo-strip-box {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 24px 18px;
  }

  /* Information Tabs on Product Page */
  div[style*="display:flex;gap:20px;border-bottom:2px solid"] {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    gap: 12px !important;
    padding-bottom: 6px;
  }
  .tab-btn {
    flex-shrink: 0;
    font-size: 13px !important;
    padding-bottom: 8px !important;
  }

  /* Cart Table responsive horizontal scroll */
  div[style*="background:#fff;border-radius:var(--radius-md);border:1px solid var(--border-color);overflow:hidden;"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  div[style*="background:#fff;border-radius:var(--radius-md);border:1px solid var(--border-color);overflow:hidden;"] table {
    min-width: 520px;
  }

  /* Order success layout */
  div[style*="grid-template-columns:220px 1fr"] {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  /* Universal repeat 4/5 col inline grids fallback to 2 columns */
  main.site-main div[style*="repeat(4, 1fr)"],
  main.site-main div[style*="repeat(4,1fr)"],
  main.site-main div[style*="repeat(5, 1fr)"],
  main.site-main div[style*="repeat(5,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* 5. Mobile Phones (max-width: 576px) */
@media (max-width: 576px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-thumb-box { width: 60px; height: 60px; }
  .category-item span { font-size: 12px; }

  .hero-slider { height: 230px; }
  .hero-title { font-size: 19px; }
  .hero-badge { font-size: 10px; padding: 3px 8px; }
  .btn-hero { padding: 8px 18px; font-size: 12.5px; }

  .features-grid { grid-template-columns: 1fr; gap: 10px; }

  /* Product Card adjustments on small screen */
  .product-card { border-radius: 10px; }
  .product-thumb-wrap { aspect-ratio: 1/1; }
  .product-title { font-size: 13px; min-height: 36px; }
  .current-price { font-size: 14.5px; }
  .old-price { font-size: 11.5px; }
  .btn-quick-add { font-size: 12px; padding: 8px 12px; }

  /* Checkout form fields */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns:repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Account Dashboard */
  div[style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Small screen card padding */
  div[style*="padding:30px"],
  div[style*="padding: 30px"],
  div[style*="padding:35px"],
  div[style*="padding: 35px"] {
    padding: 16px 14px !important;
  }

  /* Product Action Buttons stacking on mobile */
  div[style*="display:flex;gap:14px;align-items:center;"] {
    flex-wrap: wrap;
    gap: 10px !important;
  }
  div[style*="display:flex;gap:14px;align-items:center;"] button:not(.btn-wishlist) {
    min-width: 100% !important;
  }
  div[style*="display:flex;gap:14px;align-items:center;"] .btn-wishlist {
    width: 100% !important;
    border-radius: 8px !important;
  }

  /* Assurance items on small phone */
  div[style*="grid-template-columns:1fr 1fr;gap:12px"] {
    grid-template-columns: 1fr !important;
  }

  /* Footer Bottom */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Safe area padding for modern iPhones */
  body {
    padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .mobile-bottom-nav {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
}

/* 6. Extra Small Phones (max-width: 380px) */
@media (max-width: 380px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .header-logo img { height: 32px; }
  .header-actions { gap: 8px; }
  .hero-slider { height: 200px; }
  .hero-title { font-size: 17px; }
  .hero-content p { display: none; }
  .current-price { font-size: 13.5px; }
  .btn-quick-add { padding: 6px 10px; font-size: 11px; }
}

/* ==========================================================================
   ENHANCED COMPONENTS & ACCESSIBILITY
   ========================================================================== */
.badge-best { background: linear-gradient(135deg, #C9A227 0%, #9E7B15 100%); color: #fff; }
.badge-out { background: #6b7280; color: #fff; }

.btn-wish-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: var(--text-muted);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.btn-wish-corner:hover {
  color: #ef4444;
  transform: scale(1.1);
}
.btn-wish-corner.active {
  color: #ef4444;
  background: #fee2e2;
}

/* Star Ratings */
.product-rating .stars {
  color: #f59e0b;
  font-size: 11px;
  margin-right: 4px;
}
.product-rating .stars.muted {
  color: #d1d5db;
}
.product-rating .rating-num {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-main);
  margin-right: 2px;
}

/* Load More Button */
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-load-more:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Collection Showcase Card Hover */
.collection-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Breadcrumb */
.breadcrumb-wrap {
  background: #ffffff;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 25px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--primary-color);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: #d1d5db;
}
.breadcrumb li.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* ==========================================================================
   AUTH PAGES (LOGIN & REGISTER) - MODERN LUXURY FASHION UI
   ========================================================================== */
.auth-page-wrapper {
  padding: 60px 0 100px;
  background: linear-gradient(180deg, #fbfbfb 0%, #f4f5f7 100%);
  min-height: calc(100vh - 350px);
  display: flex;
  align-items: center;
}
.auth-card-container {
  max-width: 1040px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}
@media (max-width: 860px) {
  .auth-card-container {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .auth-banner-side {
    display: none !important;
  }
}
.auth-banner-side {
  background: linear-gradient(145deg, #18181b 0%, #09090b 100%);
  color: #ffffff;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-banner-side::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.25) 0%, rgba(201, 162, 39, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}
.auth-banner-side::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, rgba(201, 162, 39, 0) 70%);
  filter: blur(35px);
  pointer-events: none;
}
.auth-banner-brand {
  position: relative;
  z-index: 2;
}
.auth-banner-brand .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 8px;
}
.auth-banner-brand .brand-logo span {
  color: var(--accent-color);
}
.auth-banner-brand p {
  color: #a1a1aa;
  font-size: 13.5px;
  line-height: 1.6;
}
.auth-benefits-list {
  position: relative;
  z-index: 2;
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.auth-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.auth-benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 16px;
  flex-shrink: 0;
}
.auth-benefit-text h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #f4f4f5;
  margin-bottom: 2px;
}
.auth-benefit-text p {
  font-size: 12.5px;
  color: #a1a1aa;
  line-height: 1.45;
}
.auth-banner-footer {
  position: relative;
  z-index: 2;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #71717a;
}
.auth-banner-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d4d4d8;
}
.auth-form-side {
  padding: 48px 45px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 540px) {
  .auth-form-side {
    padding: 35px 22px;
  }
}
.auth-tab-nav {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: #f4f4f5;
  border-radius: 12px;
  margin-bottom: 30px;
}
.auth-tab-link {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  color: #71717a;
  transition: var(--transition);
}
.auth-tab-link.active {
  background: #ffffff;
  color: #111111;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.auth-tab-link:hover:not(.active) {
  color: #111111;
}
.auth-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: #111111;
  margin-bottom: 8px;
}
.auth-desc {
  font-size: 13.5px;
  color: #71717a;
  margin-bottom: 26px;
}
.auth-input-group {
  margin-bottom: 18px;
}
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 7px;
}
.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 15px;
  color: #9ca3af;
  font-size: 15px;
  pointer-events: none;
  transition: var(--transition);
}
.auth-input {
  width: 100%;
  padding: 13px 42px 13px 44px;
  background: #fafafa;
  border: 1.5px solid #e4e4e7;
  border-radius: 10px;
  font-size: 14px;
  color: #18181b;
  font-family: var(--font-body);
  transition: var(--transition);
}
.auth-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}
.auth-input:focus ~ .auth-input-icon {
  color: #111111;
}
.auth-toggle-pass {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  font-size: 15px;
  transition: var(--transition);
}
.auth-toggle-pass:hover {
  color: #111111;
}
.auth-btn-submit {
  width: 100%;
  padding: 14px 24px;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.auth-btn-submit:hover {
  background: #27272a;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}
.auth-btn-submit:active {
  transform: translateY(0);
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e4e4e7;
}
.auth-divider span {
  padding: 0 14px;
}
.auth-social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  background: #ffffff;
  border: 1.5px solid #e4e4e7;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #27272a;
  cursor: pointer;
  transition: var(--transition);
}
.auth-btn-social:hover {
  background: #f4f4f5;
  border-color: #d4d4d8;
  color: #111111;
}
.auth-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.25s ease;
}
.auth-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   INTERACTIVE COMPONENTS: AUTOCOMPLETE, TOASTS, CART DRAWER & QUICKVIEW
   ========================================================================== */

/* 1. AJAX Search Autocomplete Dropdown */
.header-search {
  position: relative;
}
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  z-index: 1050;
  display: none;
  max-height: 420px;
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}
.search-autocomplete-dropdown.active {
  display: block;
}
.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #f4f4f5;
  transition: var(--transition);
  text-decoration: none;
}
.autocomplete-item:hover {
  background: #fbfbfb;
}
.autocomplete-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: #f8fafc;
  flex-shrink: 0;
}
.autocomplete-info h5 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 3px;
  line-height: 1.3;
}
.autocomplete-info .price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--danger-color);
}
.autocomplete-footer {
  padding: 10px 16px;
  background: #fafafa;
  text-align: center;
}
.autocomplete-footer a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-hover);
}

/* 2. Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #18181b;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  max-width: 380px;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast i {
  font-size: 16px;
}
.toast.success {
  border-left: 4px solid var(--success-color);
}
.toast.success i {
  color: var(--success-color);
}
.toast.error {
  border-left: 4px solid var(--danger-color);
}
.toast.error i {
  color: var(--danger-color);
}
.toast.info {
  border-left: 4px solid var(--accent-color);
}
.toast.info i {
  color: var(--accent-color);
}

/* 3. Slide-Over Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #ffffff;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  z-index: 2005;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.active {
  transform: translateX(0);
}
.cart-drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
}
.btn-close-drawer {
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.drawer-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f4f4f5;
  position: relative;
}
.drawer-item-thumb {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
  flex-shrink: 0;
}
.drawer-item-info {
  flex: 1;
  min-width: 0;
}
.drawer-item-title a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-item-variant {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.drawer-item-remove {
  cursor: pointer;
  color: #a1a1aa;
  padding: 4px;
  transition: var(--transition);
}
.drawer-item-remove:hover {
  color: var(--danger-color);
}
.cart-drawer-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--border-color);
  background: #fafafa;
}
.drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}
.drawer-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-drawer-cart, .btn-drawer-checkout {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.btn-drawer-cart {
  background: #f4f4f5;
  color: var(--text-main);
}
.btn-drawer-cart:hover {
  background: #e4e4e7;
}
.btn-drawer-checkout {
  background: #111111;
  color: #ffffff;
}
.btn-drawer-checkout:hover {
  background: #27272a;
}

/* 4. Quick View Modal */
.quickview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.quickview-overlay.active {
  opacity: 1;
  visibility: visible;
}
.quickview-modal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.quickview-overlay.active .quickview-modal {
  transform: translateY(0);
}
.btn-close-quickview {
  position: absolute;
  top: 14px;
  right: 18px;
  background: #f4f4f5;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  z-index: 10;
  transition: var(--transition);
}
.btn-close-quickview:hover {
  background: #e4e4e7;
}

/* ==========================================================================
   PERFECT CROSS-DEVICE RESPONSIVE ADAPTATIONS
   ========================================================================== */

/* Universal anti-overflow guards */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Tablet adjustments (768px - 992px) */
@media (max-width: 992px) {
  .quickview-modal {
    padding: 20px;
  }
  .quickview-modal div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* Mobile adjustments (<= 768px) */
@media (max-width: 768px) {
  .toast-container {
    left: 15px;
    right: 15px;
    bottom: 75px;
  }
  .toast {
    max-width: 100%;
    width: 100%;
  }
  .cart-drawer {
    width: 100vw;
  }
  .quickview-modal {
    padding: 16px;
    max-height: 85vh;
  }
}

/* Extra small mobile adjustments (<= 380px) */
@media (max-width: 380px) {
  .header-actions a[title*="Quản trị"],
  .header-actions a[title*="Backoffice"] {
    padding: 4px 6px !important;
  }
  .header-actions {
    gap: 6px !important;
  }
  .header-logo img {
    height: 30px !important;
  }
  .category-item span {
    font-size: 11px !important;
  }
}

/* ==========================================================================
   FLOATING CONTACT & BACK TO TOP WIDGETS
   ========================================================================== */
.site-floating-tools {
  position: fixed;
  right: 22px;
  bottom: 85px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 980;
}

.floating-tool-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  font-size: 17px;
  position: relative;
}

.floating-tool-btn.phone-btn {
  background: #10b981;
  animation: pulseGreen 2.5s infinite;
}

.floating-tool-btn.zalo-btn {
  background: #0068ff;
}

.floating-tool-btn.back-to-top-btn {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.floating-tool-btn.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-tool-btn:hover {
  transform: scale(1.12);
  color: #ffffff !important;
}

.floating-tooltip {
  position: absolute;
  right: 56px;
  background: #18181b;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-tool-btn:hover .floating-tooltip {
  opacity: 1;
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}

@media (max-width: 768px) {
  .site-floating-tools {
    right: 14px;
    bottom: 74px;
    gap: 8px;
  }
  .floating-tool-btn {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .floating-tooltip {
    display: none !important;
  }
}


