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

:root {
  --color-primary: #f08228;
  --color-primary-dark: #d4701f;
  --color-bg: #f2ede5;
  --color-border: #ede1cf;
  --color-white: #fff;
  --color-dark: #212529;
  --color-text: #4a4a4a;
  --color-muted: #7a7a7a;
  --font-family: 'DM Sans', sans-serif;
  --border-radius: 20px;
  --border-radius-sm: 10px;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

/* ===================== HEADER ===================== */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-top {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 6px 0;
  font-size: 13px;
  color: var(--color-muted);
}

.header-top a {
  color: var(--color-muted);
  text-decoration: none;
  margin-left: 20px;
}

.header-top a:hover { color: var(--color-primary); }

.header-main {
  padding: 15px 0;
}

.site-header .header-main .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 24px;
  min-width: 0;
}

.site-header .logo {
  margin-left: 3%;
  flex: 1 1 auto;
  min-width: 0;
}

.logo img {
  height: 66px;
  max-width: 100%;
  width: auto;
}

.logo span {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
}

.logo span em {
  color: var(--color-primary);
  font-style: normal;
}

@media (max-width: 991px) {
  .site-header .header-main .container {
    padding-left: 12px;
    padding-right: 12px;
    gap: 10px !important;
  }

  .site-header .logo {
    margin-left: 0;
  }

  .logo img {
    height: 50px;
    max-width: min(52vw, 220px);
    object-fit: contain;
  }
}

/* Navigation */
.main-nav .nav-link {
  font-weight: 500;
  color: var(--color-dark) !important;
  padding: 8px 15px !important;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s;
}

.main-nav button.nav-link {
  border: 0;
  background: transparent;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--color-primary) !important;
  background: var(--color-bg);
}

.main-nav .dropdown-item {
  font-weight: 400;
  color: var(--color-dark);
  padding: 8px 20px;
}

.main-nav .dropdown-item:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

@media (min-width: 992px) {
  .main-nav .dropdown {
    position: relative;
  }

  .main-nav .dropdown-toggle::after {
    transition: transform 0.18s ease;
  }

  .main-nav .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    margin-top: 0;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .main-nav .dropdown:hover .dropdown-menu,
  .main-nav .dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav .dropdown:hover .dropdown-toggle::after,
  .main-nav .dropdown:focus-within .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

/* Cart icon */
.cart-btn {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 8px 18px;
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.cart-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.header-search-trigger {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(125, 96, 67, 0.18);
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #fbf7f1 100%);
  color: #2b211b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(36, 24, 15, 0.08);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.header-search-trigger:hover,
.header-search-trigger[aria-expanded="true"] {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #fff7ef 0%, #f6eadc 100%);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 14px 30px rgba(36, 24, 15, 0.12);
}

.header-search-collapse {
  border-top: 1px solid rgba(223, 210, 196, 0.88);
  background:
    radial-gradient(circle at top right, rgba(240, 130, 40, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f1ea 0%, rgba(255, 255, 255, 0.98) 78%);
}

.mobile-nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #fff 0%, #fbf7f1 100%);
  border: 1px solid rgba(125, 96, 67, 0.18) !important;
  box-shadow: 0 10px 24px rgba(36, 24, 15, 0.08);
  flex-shrink: 0;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle[aria-expanded="true"] {
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  background: linear-gradient(180deg, #fff7ef 0%, #f6eadc 100%);
}

.mobile-nav-collapse {
  border-top: 1px solid rgba(223, 210, 196, 0.88);
  background:
    radial-gradient(circle at top right, rgba(240, 130, 40, 0.1), transparent 28%),
    linear-gradient(180deg, #f7f1ea 0%, rgba(255, 255, 255, 0.98) 78%);
}

.mobile-nav-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(202, 183, 164, 0.48);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 54px rgba(33, 22, 14, 0.12);
  backdrop-filter: blur(10px);
}

.mobile-nav-section-title {
  margin-bottom: 12px;
  color: #8c623c;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-nav-links {
  display: grid;
  gap: 10px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(220, 205, 190, 0.92);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fffcf8 100%);
  color: #2f241d;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(41, 26, 14, 0.05);
  transition: all 0.2s ease;
}

.mobile-nav-link i {
  color: var(--color-primary);
  font-size: 0.95rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-primary);
  border-color: rgba(240, 130, 40, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(41, 26, 14, 0.08);
}

.mobile-nav-divider {
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, rgba(221, 208, 189, 0), rgba(221, 208, 189, 1), rgba(221, 208, 189, 0));
}

.mobile-nav-links-categories {
  gap: 8px;
}

.mobile-nav-link-category {
  min-height: 48px;
  padding: 12px 14px;
  font-weight: 500;
}

.header-search-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(202, 183, 164, 0.48);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 54px rgba(33, 22, 14, 0.12);
  backdrop-filter: blur(10px);
}

.header-search-panel-copy {
  margin-bottom: 14px;
}

.header-search-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f8efe5;
  color: #8c623c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-search-panel-copy p {
  margin: 10px 0 0;
  max-width: 560px;
  color: #6f5d4f;
  font-size: 0.95rem;
  line-height: 1.6;
}

.header-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.header-search-input-wrap {
  position: relative;
  display: block;
}

.header-search-input-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 0.95rem;
  pointer-events: none;
}

.header-search-form input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  border: 1px solid #dbcab7;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #fffcf8 100%);
  color: var(--color-dark);
  padding: 15px 20px 15px 50px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 22px rgba(34, 23, 14, 0.06);
}

.header-search-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(240, 130, 40, 0.12), 0 14px 28px rgba(34, 23, 14, 0.08);
}

.header-search-form input::placeholder {
  color: #998574;
}

.header-search-submit {
  min-width: 132px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px !important;
  font-size: 0.95rem;
  box-shadow: 0 14px 28px rgba(240, 130, 40, 0.22);
}

@media (max-width: 575.98px) {
  .site-header .header-main .container {
    gap: 8px !important;
  }

  .logo img {
    height: 42px;
    max-width: min(50vw, 180px);
  }

  .cart-btn {
    padding: 8px 12px;
    gap: 6px;
  }

  .cart-btn span:first-of-type {
    display: none;
  }

  .header-search-trigger,
  .mobile-nav-toggle {
    width: 40px;
    height: 40px;
  }

  .header-search-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .mobile-nav-panel {
    padding: 14px;
    border-radius: 20px;
  }

  .mobile-nav-link {
    min-height: 50px;
    padding: 12px 14px;
  }

  .header-search-form {
    grid-template-columns: 1fr;
  }

  .header-search-panel-copy p {
    font-size: 0.9rem;
  }

  .header-search-submit {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .logo img {
    max-width: min(46vw, 150px);
  }

  .cart-btn {
    padding: 8px 10px;
  }
}

.cart-badge {
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: white !important;
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(240,130,40,0.35);
}

.btn-outline-primary {
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-outline-primary:hover {
  background: var(--color-primary) !important;
  color: white !important;
}

.btn-secondary {
  background: var(--color-bg) !important;
  border-color: var(--color-border) !important;
  color: var(--color-dark) !important;
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--color-border) !important;
}

/* ===================== HERO ===================== */
.hero-section {
  background: linear-gradient(135deg, #3a2e26 0%, #5a4e46 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.2;
}

.hero-section .container { position: relative; }

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-section h1 span { color: var(--color-primary); }

.hero-section p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 30px;
}

/* ===================== CATEGORIES GRID ===================== */
.categories-section {
  padding: 60px 0;
  background: var(--color-bg);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--color-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.category-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--color-dark);
  display: block;
  transition: all 0.3s;
  height: 100%;
}

.category-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  color: var(--color-primary);
}

.category-card .icon {
  width: 60px;
  height: 60px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
  transition: all 0.3s;
}

.category-card:hover .icon {
  background: var(--color-primary);
  color: white;
}

.category-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* ===================== PRODUCT CARD ===================== */
.products-section { padding: 60px 0; }

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.product-card .product-image {
  background: #fff;
  padding: 20px;
  text-align: center;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .product-image img {
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
}

.product-card .product-body {
  padding: 15px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-category {
  font-size: 11px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.product-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-dark);
  flex: 1;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card h3 a:hover { color: var(--color-primary); }

.product-card .product-code {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 8px;
}

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

.product-price .price-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-muted);
  display: block;
}

.product-card .product-footer {
  padding: 12px 18px;
  background: var(--color-bg);
}

.product-card-stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg, #e8f5e9);
  color: var(--badge-color, #2e7d32);
  border: 1px solid var(--badge-border, #c8e6c9);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-stock-badge i {
  font-size: 0.72rem;
  flex: 0 0 auto;
}

.product-card-action {
  min-height: 46px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

/* ===================== SHOP PAGE ===================== */
.shop-sidebar {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid var(--color-border);
}

.product-grid-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.product-grid-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 20px;
  text-align: center;
  height: auto;
  overflow: hidden;
}

.product-grid-image img {
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
}

.product-grid-body {
  padding: 15px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-grid-category {
  font-size: 11px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.product-grid-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark);
  margin: 0;
  flex: 1;
}

.product-grid-meta {
  font-size: 12px;
  color: var(--color-muted);
}

.product-card-color-dots {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  min-height:24px;
  margin:2px 0 8px;
}

.product-card-color-dot {
  width:18px;
  height:18px;
  border-radius:50%;
  flex:0 0 18px;
  background:#e8dfd4;
  background-size:cover;
  background-position:center;
  border:1px solid rgba(34,23,14,.16);
  box-shadow:inset 0 1px 2px rgba(255,255,255,.55), 0 3px 8px rgba(33,23,15,.1);
}

.product-card-color-dots--large {
  gap:10px;
  min-height:40px;
  margin:4px 0 10px;
}

.product-card-color-dots--large .product-card-color-dot {
  width:36px;
  height:36px;
  flex-basis:36px;
  border-width:1px;
  box-shadow:inset 0 1px 2px rgba(255,255,255,.55), 0 5px 12px rgba(33,23,15,.14);
}

.product-card-color-more {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  background:#f7efe7;
  color:var(--color-primary);
  font-size:0.7rem;
  font-weight:800;
  line-height:1;
}

.product-card-color-dots--large .product-card-color-more {
  min-width:36px;
  height:28px;
  padding:0 10px;
  font-size:0.82rem;
}

.product-grid-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-primary);
}

.product-grid-price .text-muted {
  font-size: 0.75rem !important;
}

.product-grid-price strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.product-grid-footer {
  padding: 12px 18px;
  background: var(--color-bg);
}

.product-grid-footer .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.2rem;
}

@media (max-width: 575.98px) {
  .listing-card-col {
    width: 100%;
  }

  .product-card {
    border-radius: 24px;
    box-shadow: 0 14px 32px rgba(41, 28, 16, 0.08);
  }

  .product-card:hover {
    transform: none;
  }

  .product-card .product-image {
    height: 220px;
    padding: 26px 22px 18px;
  }

  .product-card .product-image img {
    max-height: 172px;
  }

  .product-card .product-body {
    padding: 18px 20px 16px;
    gap: 6px;
  }

  .product-card .product-category {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    margin-bottom: 0;
  }

  .product-card h3 {
    font-size: 1.45rem;
    line-height: 1.08;
    margin-bottom: 2px;
  }

  .product-price {
    font-size: 1.9rem;
    line-height: 1.05;
  }

  .product-card .product-footer {
    padding: 14px 20px 18px;
  }

  .product-card-action {
    min-height: 52px;
    font-size: 1.14rem;
  }

  .product-card-stock-badge {
    top: 14px;
    right: 14px;
    max-width: calc(100% - 28px);
    font-size: 0.82rem;
    padding: 7px 12px;
  }

  .product-grid-card {
    border-radius: 24px;
    box-shadow: 0 14px 32px rgba(41, 28, 16, 0.08);
  }

  .product-grid-card:hover {
    transform: none;
  }

  .product-grid-image {
    height: 220px;
    padding: 26px 22px 18px;
  }

  .product-grid-image img {
    max-height: 172px;
  }

  .product-grid-body {
    padding: 18px 20px 16px;
    gap: 6px;
  }

  .product-grid-category {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
  }

  .product-grid-title {
    font-size: 1.15rem;
    line-height: 1.15;
  }

  .product-card-color-dots {
    gap:5px;
  }

  .product-card-color-dot {
    width:16px;
    height:16px;
    flex-basis:16px;
  }

  .product-card-color-dots--large {
    gap:8px;
    min-height:34px;
  }

  .product-card-color-dots--large .product-card-color-dot {
    width:32px;
    height:32px;
    flex-basis:32px;
  }

  .product-card-color-dots--large .product-card-color-more {
    min-width:32px;
    height:24px;
    padding:0 8px;
    font-size:0.76rem;
  }

  .product-grid-price {
    gap: 10px;
  }

  .product-grid-price strong {
    font-size: 1.55rem;
    line-height: 1.05;
  }

  .product-grid-footer {
    padding: 14px 20px 18px;
  }

  .product-grid-footer .btn {
    min-height: 52px;
    font-size: 1.14rem;
  }
}

.filter-title {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

.filter-item a {
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.filter-item a:hover,
.filter-item a.active { color: var(--color-primary); font-weight: 600; }

/* ===================== PRODUCT DETAIL ===================== */
.product-detail .product-image-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  background:
    radial-gradient(circle at top right, rgba(240,130,40,0.14), transparent 34%),
    linear-gradient(180deg, #fffefb 0%, #f8f3eb 100%);
  border-radius: 28px;
  padding: 28px;
  text-align: center;
  border: 1px solid var(--color-border);
  margin-bottom: 15px;
  box-shadow: 0 26px 60px rgba(27, 20, 13, 0.08);
  overflow: hidden;
}

.product-detail .product-image-main img {
  width: auto;
  height: auto;
  max-height: min(72vh, 640px);
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(33, 24, 17, 0.14));
}

.product-detail .product-info { padding-left: 20px; }

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

.product-detail .price-without-vat {
  font-size: 1rem;
  color: var(--color-muted);
}

.product-attrs {
  background: var(--color-bg);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--color-border);
}

.product-attrs table { width: 100%; }
.product-attrs td { padding: 6px 0; font-size: 0.9rem; }
.product-attrs td:first-child { color: var(--color-muted); width: 140px; }
.product-attrs td:last-child { font-weight: 500; }

/* ===================== CART ===================== */
.cart-table th {
  background: var(--color-bg);
  border-color: var(--color-border);
  font-weight: 600;
  color: var(--color-dark);
}

.cart-table td { vertical-align: middle; }

.cart-summary-box {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 25px;
  border: 1px solid var(--color-border);
}

/* ===================== CHECKOUT ===================== */
.checkout-form .form-label {
  font-weight: 500;
  color: var(--color-dark);
}

.checkout-form .form-control,
.checkout-form .form-select {
  border-color: var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 10px 15px;
}

.checkout-form .form-control:focus,
.checkout-form .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(240,130,40,0.25);
}

.order-summary-box {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 25px;
  border: 1px solid var(--color-border);
  position: sticky;
  top: 90px;
}

.payment-option, .shipping-option {
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
}

.payment-option:has(input:checked),
.shipping-option:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(240,130,40,0.05);
}

/* ===================== THANK YOU PAGE ===================== */
.thankyou-box {
  text-align: center;
  padding: 60px 30px;
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 40px;
}

/* ===================== ADMIN ===================== */
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: #2c2c2c;
  color: white;
  position: fixed;
  left: 0;
  top: 0;
  padding: 0;
  z-index: 200;
}

.admin-sidebar .sidebar-brand {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-sidebar .sidebar-brand span { color: var(--color-primary); }

.admin-sidebar .nav-link {
  color: rgba(255,255,255,0.7) !important;
  padding: 12px 20px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: white !important;
  background: rgba(255,255,255,0.1);
  border-left-color: var(--color-primary);
}

.admin-content {
  margin-left: 240px;
  padding: 30px;
  background: #f8f8f8;
  min-height: 100vh;
}

.admin-header {
  background: white;
  padding: 15px 30px;
  margin: -30px -30px 30px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card {
  background: white;
  border-radius: var(--border-radius-sm);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 3px;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

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

.admin-card-header {
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-table th {
  background: #f8f8f8;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--color-muted);
  border-bottom: 2px solid #e0e0e0;
}

.admin-table td { vertical-align: middle; }

/* Status badges */
.badge-new { background: #e3f2fd; color: #1565c0; }
.badge-confirmed { background: #e8f5e9; color: #2e7d32; }
.badge-processing { background: #fff3e0; color: #e65100; }
.badge-shipped { background: #f3e5f5; color: #6a1b9a; }
.badge-delivered { background: #e8f5e9; color: #1b5e20; }
.badge-cancelled { background: #ffebee; color: #b71c1c; }

/* ===================== FOOTER ===================== */
.site-footer {
  background: #18181b;
  color: rgba(255,255,255,0.65);
  padding: 55px 0 20px;
  border-top: 3px solid var(--color-primary);
}

.site-footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-footer a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.site-footer p { color: rgba(255,255,255,0.55); }

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 35px;
  padding-top: 20px;
  font-size: 0.85rem;
  text-align: center;
}

/* ===================== BREADCRUMB ===================== */
.breadcrumb-section {
  background: var(--color-bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb { margin: 0; font-size: 0.85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--color-muted); }
.breadcrumb-item a { color: var(--color-text); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--color-primary); }
.breadcrumb-item.active { color: var(--color-muted); }

/* ===================== ALERTS ===================== */
.alert { border-radius: var(--border-radius-sm); border: none; }
.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-danger { background: #ffebee; color: #c62828; }
.alert-info { background: #e3f2fd; color: #1565c0; }

/* ===================== PAGINATION ===================== */
.pagination .page-link {
  color: var(--color-dark);
  border-color: var(--color-border);
  border-radius: 8px;
  margin: 0 2px;
}

.pagination .page-item.active .page-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 2rem; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-content { margin-left: 0; padding: 20px; }
  .product-detail .product-info { padding-left: 0; margin-top: 20px; }
}
