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

/* --- CSS Variables & Design System --- */
:root {
  --bg-primary: #FAF9F6;      /* Off-white Alabaster Cream */
  --bg-secondary: #FFFFFF;    /* Pure White */
  --bg-dark: #111111;         /* Deep Soft Charcoal */
  --text-primary: #111111;    /* Primary Text */
  --text-secondary: #555555;  /* Muted Text */
  --text-light: #EFEFEF;      /* Light Text on Dark background */
  
  --accent-gold: #C5A880;     /* Muted Premium Gold */
  --accent-gold-dark: #A3855E;
  
  --border-color: #E8E5DF;    /* Warm beige border */
  --border-dark: #333333;     /* Dark border */
  
  --shadow-sm: 0 2px 8px rgba(17, 17, 17, 0.03);
  --shadow-md: 0 8px 24px rgba(17, 17, 17, 0.05);
  --shadow-lg: 0 16px 48px rgba(17, 17, 17, 0.1);
  
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-normal: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Cinzel', serif;
}

/* --- Base Resets --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

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

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

button {
  font-family: var(--font-sans);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

input, select, textarea {
  font-family: var(--font-sans);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 14px;
  transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--text-primary);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--text-primary);
  margin: 15px auto 0;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* --- Utilities --- */
.container {
  max-width: 95%;
  margin: 0 auto;
  padding: 0 30px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.btn-solid {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 12px 28px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
  border: 1px solid var(--bg-dark);
}

.btn-solid:hover {
  background-color: transparent;
  color: var(--text-primary);
}

.btn-outline {
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  padding: 12px 28px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.btn-outline:hover {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* --- Header System --- */
.announcement-bar {
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 10px;
  font-weight: 400;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 249, 246, 0.85); /* Frosty cream blur */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--text-primary);
  padding: 10px 0;
  position: relative;
  white-space: nowrap;
}

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

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

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icon-btn {
  color: var(--text-primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
}

.header-icon-btn:hover {
  background-color: rgba(17, 17, 17, 0.05);
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.icon-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--accent-gold);
  color: var(--text-light);
  font-size: 9px;
  font-weight: bold;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search bar on Header */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 200px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 6px 30px 6px 0;
  font-size: 13px;
  border-radius: 0;
  transition: var(--transition-normal);
}

.search-input:focus {
  width: 280px;
  border-bottom-color: var(--text-primary);
}

.search-btn {
  position: absolute;
  right: 5px;
  color: var(--text-primary);
}

.search-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

#mobile-search-trigger {
  display: none;
}

/* Hamburger mobile menu button */
.mobile-menu-btn {
  display: none;
}

/* --- Hero Showcase --- */
.hero-section {
  position: relative;
  height: 560px;
  background-color: #ECEAE4;
  overflow: hidden;
  margin-bottom: 60px;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-size: cover;
  background-position: center;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 70%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 70%, rgba(0,0,0,0));
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--bg-primary) 40%, rgba(250, 249, 246, 0.2));
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 550px;
  padding-left: 20px;
}

.hero-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold-dark);
  font-weight: 600;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 400;
  text-transform: none;
}

.hero-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* --- Category Bar --- */
.category-navbar {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  overflow-x: auto;
  padding-bottom: 10px;
  white-space: nowrap;
}

.category-tab {
  padding: 10px 24px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 30px;
}

.category-tab:hover,
.category-tab.active {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--bg-dark);
}

/* --- Layout: Catalog & Sidebar --- */
.mobile-filter-bar {
  display: none;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  margin-bottom: 80px;
}

/* Sidebar & Filters */
.sidebar-filters {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 110px;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
}

.filter-group:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.filter-title {
  font-size: 13px;
  margin-bottom: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.filter-checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--text-primary);
  cursor: pointer;
}

/* Custom Price Slider styling */
.price-slider-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-range-inputs {
  width: 100%;
}

.price-slider {
  width: 100%;
  accent-color: var(--text-primary);
  height: 3px;
  background-color: var(--border-color);
  outline: none;
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.btn-clear-filters {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: underline;
  padding: 5px;
  text-align: center;
}

.btn-clear-filters:hover {
  color: var(--text-primary);
}

/* --- Catalog Grid --- */
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.results-count {
  font-size: 13px;
  color: var(--text-secondary);
  order: 1;
}

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 2;
}

.sort-select-wrapper label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.sort-select {
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 6px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 18px;
}
@media (max-width: 1300px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* No results state */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.no-results svg {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  stroke: var(--border-color);
}

/* --- Product Cards --- */
.product-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.product-image-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  cursor: pointer;
}

.product-image {
  max-height: 85%;
  max-width: 85%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

/* Card buttons overlays */
.wishlist-btn-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.wishlist-btn-toggle:hover {
  color: #E03E3E;
  background-color: var(--bg-primary);
}

.wishlist-btn-toggle.active {
  color: #E03E3E;
  fill: #E03E3E;
  border-color: #E03E3E;
}

.wishlist-btn-toggle svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.quick-view-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(17, 17, 17, 0.95);
  color: var(--text-light);
  text-align: center;
  padding: 12px 0;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.product-image-container:hover .quick-view-overlay {
  transform: translateY(0);
}

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

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.product-card-title {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
  height: 42px; /* standard height */
  overflow: hidden;
  text-transform: none;
}

.product-card-tagline {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating-container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
  font-size: 11px;
  color: var(--text-secondary);
}

.rating-stars {
  color: var(--accent-gold);
  display: flex;
  gap: 1px;
}

.rating-stars svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.product-card-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 15px;
}

.product-card-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.product-card-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.btn-card-add {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: 1px solid var(--bg-dark);
  padding: 10px 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-add:hover {
  background-color: transparent;
  color: var(--text-primary);
}

.btn-card-order-now {
  background-color: var(--accent-gold);
  color: #FFF;
  border: 1px solid var(--accent-gold);
  padding: 10px 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-order-now:hover {
  background-color: transparent;
  color: var(--accent-gold-dark);
  border-color: var(--accent-gold-dark);
}

.btn-card-out-of-stock {
  grid-column: span 2;
  background-color: #EEE;
  color: #999;
  border: 1px solid #DDD;
  padding: 10px 4px;
  text-align: center;
  cursor: not-allowed;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: bold;
  width: 100%;
}

/* --- Drawers: Cart Slide-out --- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 100vw;
  height: 100%;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.drawer-backdrop.active .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.drawer-header h3 {
  font-size: 16px;
  margin: 0;
}

.drawer-close-btn {
  color: var(--text-primary);
  padding: 5px;
}

.drawer-close-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.drawer-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

/* Cart Items List */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 15px;
  position: relative;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-family: var(--font-serif);
  font-size: 13px;
  text-transform: none;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.cart-item-tagline {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.qty-btn {
  padding: 4px 10px;
  font-size: 14px;
  color: var(--text-primary);
}

.qty-val {
  padding: 0 10px;
  font-size: 12px;
  font-weight: bold;
}

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

.cart-item-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--text-secondary);
  padding: 5px;
}

.cart-item-remove:hover {
  color: #E03E3E;
}

.cart-item-remove svg {
  width: 14px;
  height: 14px;
}

/* Empty cart state */
.cart-empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--text-secondary);
}

.cart-empty-state svg {
  width: 48px;
  height: 48px;
  stroke: var(--border-color);
  margin-bottom: 15px;
}

/* Cart Footer Calculations */
.drawer-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 25px 30px;
}

.promo-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.promo-input {
  flex-grow: 1;
  font-size: 12px;
  text-transform: uppercase;
}

.btn-promo-apply {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 20px;
}

.promo-status-msg {
  font-size: 11px;
  margin-top: 5px;
}

.promo-success { color: #2E7D32; }
.promo-error { color: #C62828; }

.totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.totals-row.discount-row {
  color: #2E7D32;
  font-weight: 500;
}

.totals-row.grand-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
  margin-top: 12px;
  margin-bottom: 20px;
}

.btn-checkout-start {
  width: 100%;
  display: block;
  text-align: center;
}

/* --- Modals: Details, Checkout, Success, Wishlist --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1010;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.modal-close-btn:hover {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.modal-body {
  padding: 40px;
  overflow-y: auto;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .modal-body {
    padding: 25px;
  }
}

/* --- Modal: Product Details layout --- */
.details-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .details-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.details-image-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 20px;
}

.details-image-panel img {
  max-height: 90%;
  object-fit: contain;
}

.details-info-panel {
  display: flex;
  flex-direction: column;
}

.details-category {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 10px;
}

.details-title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: none;
}

.details-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 15px;
}

.details-price-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.details-price {
  font-size: 22px;
  font-weight: 700;
}

.details-volume {
  font-size: 12px;
  background-color: var(--border-color);
  color: var(--text-primary);
  padding: 4px 10px;
  font-weight: 500;
}

.details-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.details-qty {
  width: 90px;
  border: 1px solid var(--border-color);
  text-align: center;
  font-weight: bold;
}

.details-add-btn {
  flex-grow: 1;
}

/* Tabs inside details modal */
.details-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.details-tab-btn {
  padding: 10px 15px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
}

.details-tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.details-tab-content {
  display: none;
  font-size: 13px;
  color: var(--text-secondary);
}

.details-tab-content.active {
  display: block;
  animation: fadeIn var(--transition-fast) forwards;
}

/* --- Modal: Checkout layout --- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

.checkout-title {
  font-size: 18px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.checkout-form-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Checkout Summary Section */
.checkout-summary-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 25px;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.checkout-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.checkout-item-name {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.checkout-item-qty {
  color: var(--text-secondary);
  font-size: 11px;
}

.checkout-item-price {
  font-weight: 600;
}

.btn-place-order {
  width: 100%;
  margin-top: 15px;
}

/* --- Modal: Success Screen --- */
.success-screen {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(46, 125, 50, 0.1);
  color: #2E7D32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.success-title {
  font-size: 22px;
  margin-bottom: 15px;
}

.success-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 450px;
  margin: 0 auto 30px;
}

.order-number-box {
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Tracking Bar */
.tracking-stepper {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.tracking-stepper::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border: 2px solid var(--bg-primary);
  transition: all var(--transition-normal);
}

.step-node.completed .step-circle {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.step-node.active .step-circle {
  background-color: var(--accent-gold);
  color: var(--text-light);
  box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.25);
}

.step-label {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.step-node.active .step-label {
  color: var(--text-primary);
}

/* --- Modal: Wishlist View --- */
.wishlist-modal-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.wishlist-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 15px 20px;
}

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

.wishlist-item-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background-color: var(--bg-primary);
}

.wishlist-item-name {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: bold;
  text-transform: none;
}

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

.wishlist-item-price {
  font-size: 14px;
  font-weight: 600;
}

.wishlist-item-remove-btn {
  color: var(--text-secondary);
}

.wishlist-item-remove-btn:hover {
  color: #E03E3E;
}

/* --- Modal: Order List Tracker View --- */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.order-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 15px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.order-status-badge {
  background-color: var(--accent-gold);
  color: var(--text-light);
  padding: 3px 10px;
  font-size: 10px;
  border-radius: 20px;
}

.order-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-card-items-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.btn-track-detail {
  padding: 6px 14px;
  font-size: 11px;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 12px 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight var(--transition-fast) forwards;
}

.toast.removing {
  animation: fadeOut var(--transition-fast) forwards;
}

.toast svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent-gold);
  stroke-width: 2.5;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.9); }
}

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

/* --- Footer Section --- */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 40px;
  margin-top: 80px;
  font-size: 13px;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

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

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

.footer-column h4 {
  font-size: 14px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.footer-column p {
  color: #BBBBBB;
  margin-bottom: 20px;
  line-height: 1.8;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column ul a {
  color: #BBBBBB;
}

.footer-column ul a:hover {
  color: #FFFFFF;
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
}

.newsletter-input {
  background-color: #222222;
  border: 1px solid #333333;
  color: #FFFFFF;
  padding: 10px 14px;
  flex-grow: 1;
}

.btn-newsletter-submit {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 10px 20px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: bold;
}

.btn-newsletter-submit:hover {
  background-color: var(--accent-gold);
  color: var(--text-light);
}

.footer-bottom {
  border-top: 1px solid #222222;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888888;
  font-size: 11px;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  
  .category-navbar {
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
    gap: 10px;
    margin-bottom: 30px;
  }
  
  .category-tab {
    padding: 8px 18px;
    font-size: 10px;
  }
  
  .sidebar-filters {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    z-index: 1200;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
  }
  
  .sidebar-filters.active {
    transform: translateX(0);
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .product-card {
    padding: 12px;
  }
  
  .product-card-title {
    font-size: 13px;
    height: 38px;
  }
  
  .product-card-tagline {
    font-size: 10px;
    margin-bottom: 8px;
  }
  
  .product-card-price {
    font-size: 14px;
  }
  
  .btn-card-add,
  .btn-card-order-now {
    font-size: 9px !important;
    padding: 7px 3px !important;
  }
  
  .product-card-footer {
    margin-top: 8px;
  }
  
  .mobile-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    margin-bottom: 25px;
  }
  
  .btn-mobile-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
  }
  
  .btn-mobile-filter svg {
    width: 14px;
    height: 14px;
  }
  
  .hero-bg {
    width: 100%;
    opacity: 0.3;
  }
  
  .hero-overlay {
    background: linear-gradient(to top, var(--bg-primary) 50%, rgba(250, 249, 246, 0.4));
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .product-card {
    padding: 8px;
  }
  
  .product-card-title {
    font-size: 11px;
    height: 32px;
    margin-bottom: 2px;
  }
  
  .product-card-tagline {
    font-size: 8px;
    margin-bottom: 4px;
  }
  
  .product-card-price {
    font-size: 12px;
  }
  
  .btn-card-add,
  .btn-card-order-now {
    font-size: 8px !important;
    padding: 6px 1px !important;
    letter-spacing: 0.01em;
  }
  
  .header-container {
    height: 70px;
  }
  
  .logo a {
    font-size: 16px;
    letter-spacing: 0.1em;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-section {
    height: 480px;
  }
  
  .hero-title {
    font-size: 28px;
  }
}

/* ==========================================================================
   NEW UPDATES: Payment Methods Selector, bKash & Nagad Gateways, Reviews
   ========================================================================== */

/* --- Payment Method Selection --- */
.payment-method-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.pay-method-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 4px;
}

.pay-method-btn:hover {
  background-color: var(--bg-primary);
  border-color: var(--text-primary);
}

.pay-method-btn.active {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--bg-dark);
}

/* Logo Dots for MFS */
.mfs-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.bkash-dot { background-color: #E2125D; }
.nogod-dot { background-color: #F26522; }

.pay-method-btn.active .bkash-dot,
.pay-method-btn.active .nogod-dot {
  background-color: #FFFFFF;
}

.payment-panel {
  display: none;
}

.payment-panel.active {
  display: block;
  animation: fadeIn var(--transition-fast) forwards;
}

.cod-panel-box {
  padding: 15px;
  background-color: #F3F1ED;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 12px;
}
.cod-panel-box strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.cod-panel-box p {
  color: var(--text-secondary);
}

/* --- MFS (bKash & Nagad) Checkout Portal --- */
.mfs-portal {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  background-color: #FFFFFF;
}

.mfs-portal-header {
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFFFF;
}

.bkash-header {
  background-color: #E2125D; /* bKash Signature Pink */
}

.nogod-header {
  background-color: #F26522; /* Nagad Signature Orange */
}

.mfs-brand-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  font-family: sans-serif;
}

.mfs-header-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0.9;
}

.mfs-portal-body {
  padding: 20px;
  background-color: #FCFBFA;
}

.mfs-amount-display {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.mfs-amount-display .mfs-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.mfs-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mfs-input {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.mfs-terms {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.mfs-terms input {
  width: 14px;
  height: 14px;
  accent-color: var(--text-primary);
}

.mfs-resend {
  font-size: 11px;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.mfs-resend a {
  text-decoration: underline;
  color: var(--text-primary);
}

.mfs-buttons {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.mfs-btn {
  padding: 10px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-align: center;
  border: none;
  cursor: pointer;
}

.bkash-portal .mfs-btn-next,
.bkash-portal .mfs-btn-confirm {
  background-color: #E2125D;
  color: #FFFFFF;
}

.bkash-portal .mfs-btn-next:hover,
.bkash-portal .mfs-btn-confirm:hover {
  background-color: #C00A4C;
}

.nogod-portal .mfs-btn-next,
.nogod-portal .mfs-btn-confirm {
  background-color: #F26522;
  color: #FFFFFF;
}

.nogod-portal .mfs-btn-next:hover,
.nogod-portal .mfs-btn-confirm:hover {
  background-color: #D64F10;
}

.mfs-btn-cancel {
  background-color: #E0E0E0;
  color: #555555;
}

.mfs-btn-cancel:hover {
  background-color: #CCCCCC;
}

.hidden {
  display: none !important;
}

/* --- Review & Rating System Styles --- */
.reviews-container {
  margin-top: 10px;
}

.reviews-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 5px;
}

.review-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 15px;
  border-radius: 4px;
}

.review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.review-author {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
}

.review-date {
  font-size: 11px;
  color: var(--text-secondary);
}

.review-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Review submission form */
.review-form-container {
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.review-form-title {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.interactive-stars {
  display: flex;
  gap: 4px;
  color: var(--border-color);
  margin-bottom: 5px;
}

.interactive-stars svg {
  width: 20px;
  height: 20px;
  cursor: pointer;
  fill: currentColor;
  transition: color var(--transition-fast);
}

.interactive-stars svg.hover,
.interactive-stars svg.selected {
  color: var(--accent-gold);
}

/* --- Additional Mobile Responsiveness Overrides --- */
.category-navbar::-webkit-scrollbar {
  display: none;
}
.category-navbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (max-width: 992px) {
  .nav-links {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
  }
  .header-icons {
    gap: 12px;
  }
  #mobile-search-trigger {
    display: flex !important;
  }
  .search-form {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
  }
  .search-form.active {
    display: flex !important;
  }
  .search-input {
    width: 100% !important;
    border: 1px solid var(--border-color) !important;
    background-color: var(--bg-primary) !important;
    padding: 8px 35px 8px 12px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
  }
  .search-btn {
    right: 30px !important;
  }
  .logo a {
    font-size: 14px !important;
    letter-spacing: 0.05em !important;
  }
  .payment-method-selector {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .logo a {
    font-size: 14px;
    letter-spacing: 0.05em;
  }
  .header-icons {
    gap: 6px;
  }
  .header-icon-btn {
    padding: 4px;
  }
  .header-icon-btn svg {
    width: 18px;
    height: 18px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .hero-section {
    height: 400px;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-description {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .mfs-buttons {
    grid-template-columns: 1fr;
  }
}

/* --- Refined Product Details Modal & Review Layout --- */
.details-main-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.reviews-tab-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 45px;
  margin-top: 20px;
}

.reviews-list-column {
  display: flex;
  flex-direction: column;
}

.reviews-list {
  max-height: 280px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .details-main-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .reviews-tab-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.hidden {
  display: none !important;
}

/* --- Admin Panel Helper & Responsive Styles --- */
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.inventory-table-container,
.orders-table-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .admin-grid-2, .admin-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  
  #admin-modal-backdrop .modal-container {
    width: 95% !important;
    max-width: 95% !important;
    max-height: 85vh !important;
    margin: auto !important;
  }

  #admin-modal-backdrop .modal-body {
    padding: 15px !important;
  }

  .admin-tabs {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
    width: 100% !important;
    border-bottom: 1px solid var(--border-color) !important;
    -webkit-overflow-scrolling: touch;
  }

  .admin-tabs button {
    width: auto !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 11px !important;
    padding: 6px 14px !important;
  }

  .inventory-table-container table,
  .orders-table-container table {
    min-width: 750px !important;
  }
}

/* --- Order Status Toast Notification --- */
.order-toast-notification {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10050;
  max-width: 320px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.order-toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-notif-icon {
  font-size: 24px;
}

.toast-notif-body {
  flex-grow: 1;
}

/* --- Mobile Navigation Hamburger & Slide-out Drawer --- */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}
.hamburger-menu svg {
  width: 22px;
  height: 22px;
}

#mobile-nav-backdrop {
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  justify-content: flex-start;
  padding: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-drawer {
  background-color: var(--bg-primary);
  width: 85%;
  max-width: 310px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px 0;
}
#mobile-nav-backdrop.active .mobile-nav-drawer {
  transform: translateX(0);
}
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 15px 20px;
  border-bottom: 1px solid var(--border-color);
}
.mobile-nav-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-primary);
  line-height: 1;
}

.mobile-nav-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}
.mobile-nav-btn {
  padding: 10px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.05em;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  font-family: inherit;
  transition: background-color 0.2s, border-color 0.2s;
}
.mobile-nav-btn.btn-login {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: none;
}
.mobile-nav-btn.btn-login:hover {
  opacity: 0.9;
}
.mobile-nav-btn.btn-register {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.mobile-nav-btn.btn-register:hover {
  border-color: var(--text-primary);
}

.mobile-nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.mobile-menu-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-top: 18px;
  margin-bottom: 8px;
  font-weight: bold;
}
.mobile-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mobile-menu-item:hover {
  color: var(--accent-gold);
}
.mobile-menu-item .chevron {
  width: 12px;
  height: 12px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }
  .nav-links {
    display: none !important;
  }
  .btn-mobile-filter-trigger {
    display: inline-flex !important;
  }
  .mobile-filter-header {
    display: flex !important;
  }
  .catalog-header {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 10px !important;
    align-items: center !important;
    margin-bottom: 20px !important;
  }
  .btn-mobile-filter-trigger {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    order: unset !important;
  }
  .sort-select-wrapper {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    margin-left: auto !important;
    order: unset !important;
  }
  .results-count {
    grid-column: 1 / span 2 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    font-size: 12px !important;
    color: var(--text-secondary) !important;
    font-weight: bold !important;
    order: unset !important;
  }
}

/* --- Premium Animation System --- */
@keyframes premiumFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes premiumScaleUp {
  0% {
    opacity: 0;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Staggered entrance for Hero content elements */
.hero-subtitle {
  opacity: 0;
  animation: premiumFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
  backface-visibility: hidden;
}
.hero-title {
  opacity: 0;
  animation: premiumFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.25s;
  backface-visibility: hidden;
}
.hero-description {
  opacity: 0;
  animation: premiumFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
  backface-visibility: hidden;
}
.hero-buttons {
  opacity: 0;
  animation: premiumFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.55s;
  backface-visibility: hidden;
}

/* Staggered card entrance list */
.product-card {
  opacity: 0;
  animation: premiumScaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backface-visibility: hidden;
}

/* Tactical tap/click feedback micro-animation */
button:active, .btn:active, .btn-outline:active, .category-tab:active, .btn-card-add:active, .btn-card-order-now:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

/* Sidebar & Header content entrance */
.catalog-sidebar {
  opacity: 0;
  animation: premiumFadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.15s;
  backface-visibility: hidden;
}
.catalog-header {
  opacity: 0;
  animation: premiumFadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.05s;
  backface-visibility: hidden;
}

/* --- Floating Action Buttons --- */
.floating-action-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--accent-gold);
  color: #FFF;
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-action-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  background-color: var(--accent-gold-dark);
}
.floating-action-btn.theme-btn {
  right: auto;
  left: 25px;
  width: 45px;
  height: 45px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

/* --- Theme Customizer Sidebar --- */
.customizer-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100%;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.customizer-panel.hidden {
  display: flex !important;
  transform: translateX(-100%);
}
.customizer-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.customizer-header h4 {
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin: 0;
}
.customizer-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
}
.customizer-content {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}
.customizer-section {
  margin-bottom: 24px;
}
.customizer-section .section-title {
  display: block;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.customizer-options-row {
  display: flex;
  gap: 8px;
}
.customizer-btn {
  flex: 1;
  padding: 8px;
  font-size: 11px;
  font-weight: bold;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 2px;
}
.customizer-btn.active {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #FFF;
}
.preset-colors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.preset-color-btn {
  height: 40px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.preset-color-btn.active {
  border-color: var(--text-primary);
  transform: scale(1.05);
}

/* --- Boxed Layout Rules --- */
body.boxed-layout {
  background-color: var(--bg-primary);
}
body.boxed-layout #app-wrapper-container {
  max-width: 100%;
  margin: 0;
  background-color: var(--bg-primary);
  box-shadow: none;
  border-left: none;
  border-right: none;
}

/* --- Flash Sale Countdown Banner --- */
.flash-sale-banner {
  background-color: var(--accent-gold-dark);
  color: #FFF;
  padding: 8px 15px;
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 99;
  position: relative;
  transition: all 0.3s ease;
}
.flash-sale-banner.hidden {
  display: none !important;
}
#flash-sale-timer {
  font-family: monospace;
  font-size: 12px;
  background: rgba(0,0,0,0.15);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* --- Skincare Advisor Quiz --- */
.skincare-quiz-container {
  position: relative;
  background-color: var(--bg-primary);
  width: 100%;
  max-width: 480px;
  height: 600px;
  margin: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
}
.quiz-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-secondary);
}
.quiz-header h3 {
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  font-size: 15px;
  margin: 0;
  color: var(--text-primary);
}
.quiz-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
}
.quiz-progress-bar {
  height: 4px;
  background-color: var(--border-color);
  width: 100%;
}
.quiz-progress {
  height: 100%;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}
.quiz-steps-container {
  padding: 20px;
  flex-grow: 1;
  overflow-y: auto;
}
.quiz-step {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: premiumFadeInUp 0.4s ease forwards;
}
.quiz-step.hidden {
  display: none !important;
}
.quiz-question {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
}
.quiz-option-btn strong {
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.quiz-option-btn span {
  font-size: 10px;
  color: var(--text-secondary);
}
.quiz-option-btn:hover {
  border-color: var(--accent-gold);
  background-color: var(--bg-primary);
}
.quiz-option-btn.selected {
  border-color: var(--accent-gold);
  background-color: rgba(217, 184, 122, 0.08);
  box-shadow: 0 0 0 1px var(--accent-gold);
}
.quiz-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
}
.recommended-product-card {
  display: flex;
  gap: 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  align-items: center;
}
.recommended-product-card img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  background-color: #FFF;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
.recommended-product-info {
  flex-grow: 1;
}
.recommended-product-info h5 {
  font-size: 12px;
  margin: 0 0 2px 0;
  color: var(--text-primary);
}
.recommended-product-info p {
  font-size: 9px;
  color: var(--text-secondary);
  margin: 0 0 4px 0;
}
.recommended-product-price {
  font-size: 11px;
  font-weight: bold;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .skincare-quiz-container {
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
  }
  #skincare-quiz-modal {
    padding: 0 !important;
  }
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  padding: 15px;
}
.modal-backdrop.hidden {
  display: none !important;
}

/* Widescreen Dashboard Overrides */
#admin-modal-backdrop .modal-container {
  width: 95vw !important;
  max-width: 1300px !important;
  height: 90vh !important;
  max-height: 90vh !important;
  border-radius: 8px;
}
#admin-modal-backdrop .modal-body {
  padding: 30px !important;
  overflow-y: auto !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
#admin-modal-backdrop .admin-tab-content {
  flex-grow: 1 !important;
  overflow-y: auto !important;
  padding-right: 8px;
}

/* Layout Button Active Styles */
.admin-layout-btn.active {
  background-color: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
  color: #FFF !important;
}

/* --- AI Chatbot Styles --- */
.chat-msg-bot {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  align-self: flex-start;
  max-width: 85%;
  border-radius: 12px 12px 12px 2px;
  padding: 10px 14px;
  font-size: 11px;
  line-height: 1.5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  animation: premiumFadeInUp 0.3s ease forwards;
}
.chat-msg-user {
  background-color: var(--accent-gold);
  color: #FFF;
  align-self: flex-end;
  max-width: 85%;
  border-radius: 12px 12px 2px 12px;
  padding: 10px 14px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  animation: premiumFadeInUp 0.3s ease forwards;
}
.chat-msg-typing {
  color: var(--text-secondary);
  align-self: flex-start;
  font-size: 11px;
  font-style: italic;
  padding: 5px 10px;
}
.chat-msg-typing::after {
  content: " .";
  animation: chatDotBlink 1.4s infinite step-start;
}
@keyframes chatDotBlink {
  0% { content: " ."; }
  33% { content: " .."; }
  66% { content: " ..."; }
}
.quiz-chat-option-btn {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  width: 100%;
}
.quiz-chat-option-btn strong {
  font-size: 11px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.quiz-chat-option-btn span {
  font-size: 9px;
  color: var(--text-secondary);
}
.quiz-chat-option-btn:hover {
  border-color: var(--accent-gold);
  background-color: var(--bg-secondary);
}
