* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f6f8;
  color: #334155;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 56px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease;
  box-shadow: 0 0 0 0 transparent;
}

.sidebar:hover {
  width: 340px;
  box-shadow: 6px 0 30px rgba(0,0,0,0.08);
}

.sidebar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: transparent;
  transition: background 0.35s ease;
}

/* ── Logo / Brand ── */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  border-bottom: 1px solid #f1f5f9;
  min-height: 56px;
  white-space: nowrap;
}

.sidebar-logo .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #2563eb;
}

.sidebar-logo .text {
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
}

.sidebar:hover .sidebar-logo .text {
  opacity: 1;
  transform: translateX(0);
}

/* ── Nav Menu ── */
.sidebar-menu {
  list-style: none;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  border-radius: 0;
}

.sidebar-menu li a:hover {
  background: #eff6ff;
  color: #2563eb;
}

.sidebar-menu li a .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.sidebar-menu li a .text {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
}

.sidebar:hover .sidebar-menu li a .text {
  opacity: 1;
  transform: translateX(0);
}

/* ── PMT Section ── */
.sidebar-pmt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #fefce8;
  transition: background 0.35s ease;
}

.sidebar-pmt .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: #ca8a04;
}

.sidebar-pmt .text {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
  min-width: 0;
}

.sidebar:hover .sidebar-pmt .text {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-pmt strong {
  display: block;
  font-size: 13px;
  color: #854d0e;
  margin-bottom: 4px;
}

.sidebar-pmt p {
  font-size: 11px;
  color: #78716c;
  line-height: 1.5;
  margin-bottom: 6px;
}

.pmt-link {
  font-size: 11px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.pmt-link:hover {
  text-decoration: underline;
}

/* ── Contact ── */
.sidebar-contact {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.sidebar-contact a,
.sidebar-contact > span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar-contact a:hover {
  color: #2563eb;
}

.sidebar-contact .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.sidebar-contact .text {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
}

.sidebar:hover .sidebar-contact .text {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-contact > span {
  cursor: default;
}

/* ── Login ── */
.sidebar-login {
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.15s, gap 0.35s ease, padding 0.35s ease;
  white-space: nowrap;
}

.btn-login:hover {
  background: #1d4ed8;
}

.btn-login .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login .text {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.25s ease 0.05s, max-width 0.25s ease 0.05s;
}

.sidebar:hover .btn-login .text {
  opacity: 1;
  max-width: 200px;
}

/* ── Expand hint (little arrow on right edge) ── */
.sidebar::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 32px;
  background: #e2e8f0;
  border-radius: 0;
  transition: background 0.35s ease, height 0.35s ease;
}

.sidebar:hover::before {
  background: transparent;
  height: 0;
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
.main-content {
  margin-left: 56px;
  padding: 0;
  min-height: 100vh;
  transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Right panel adapts to sidebar open/closed state */
.sidebar:hover ~ .main-content {
  margin-left: 340px;
}

/* ═══════════════════════════════════════════
   MOBILE: keep sidebar always collapsed, tap to reveal
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar {
    width: 56px;
  }

  .sidebar:hover {
    width: 56px;
    box-shadow: none;
  }

  .sidebar.expanded-mobile {
    width: 85vw;
    max-width: 340px;
    box-shadow: 6px 0 30px rgba(0,0,0,0.15);
  }

  .sidebar.expanded-mobile .sidebar-logo .text,
  .sidebar.expanded-mobile .sidebar-menu li a .text,
  .sidebar.expanded-mobile .sidebar-pmt .text,
  .sidebar.expanded-mobile .sidebar-contact .text,
  .sidebar.expanded-mobile .btn-login .text {
    opacity: 1;
    transform: translateX(0);
    max-width: 200px;
  }

  .sidebar.expanded-mobile::before {
    background: transparent;
  }

  .main-content {
    margin-left: 56px;
    padding: 0;
  }

  .sidebar:hover ~ .main-content {
    margin-left: 56px;
  }
}

/* ═══════════════════════════════════════════
   INTERIOR — TOPBAR
   ═══════════════════════════════════════════ */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 12px 40px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 13px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s;
}

.topbar-item svg {
  color: #60a5fa;
  flex-shrink: 0;
}

a.topbar-item:hover {
  color: #fff;
}

/* ── Cart in searchbar ── */
.searchbar-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  width: 48px;
  height: 48px;
  background: #2563eb;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.searchbar-cart:hover {
  background: #1d4ed8;
  transform: scale(1.06);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #fbbf24;
  color: #172554;
  font-size: 11px;
  font-weight: 800;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Search bar ── */
.searchbar {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 40px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.search-form {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 720px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.search-form:focus-within {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #94a3b8;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 13px 8px 13px 0;
  font-size: 14px;
  color: #1e293b;
  font-family: inherit;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-btn {
  border: none;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
  padding: 0 24px;
  align-self: stretch;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0;
  transition: background 0.15s;
}

.search-btn:hover {
  background: #1d4ed8;
}

/* ── Banner ── */
.banner {
  position: relative;
  padding: 80px 40px;
  background: radial-gradient(120% 140% at 85% 15%, #3b82f6 0%, #1e40af 45%, #172554 100%);
  color: #fff;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(96,165,250,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(120deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 70%);
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dbeafe;
  margin-bottom: 22px;
}

.banner-tag svg {
  color: #fbbf24;
}

.banner h1 {
  font-size: 46px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.banner h1 span {
  background: linear-gradient(90deg, #fbbf24, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.banner p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  margin-bottom: 30px;
  max-width: 560px;
}

.banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn-primary {
  background: #fbbf24;
  color: #172554;
}

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

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.banner-features {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.banner-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-feature svg {
  flex-shrink: 0;
  color: #93c5fd;
}

.banner-feature strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.banner-feature span {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* ── Products ── */
.products {
  padding: 56px 40px 72px;
}

.products-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.products-head h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.products-all {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.products-all:hover {
  text-decoration: underline;
}

.products-count {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.filter-btn {
  padding: 10px 20px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.filter-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.1);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

/* ── Faceted filters ── */
.products-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: start;
}

.products-main {
  min-width: 0;
}

.facets-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid #2563eb;
  background: #fff;
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border-radius: 10px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  width: 100%;
}

.facets-toggle:hover {
  background: #eff6ff;
}

.facets-toggle svg {
  flex-shrink: 0;
}

.product-facets:empty {
  display: none;
}

.facet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.facet-head span {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.facet-clear {
  border: none;
  background: #fee2e2;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 5px 12px;
  border-radius: 6px;
  transition: background 0.15s;
}

.facet-clear:hover {
  background: #fecaca;
  text-decoration: none;
}

.facet-box {
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 16px 18px;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: box-shadow 0.2s ease;
}

.facet-box:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.facet-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.facet-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.facet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}

.facet-list::-webkit-scrollbar {
  width: 4px;
}

.facet-list::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.facet-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  margin: 1px 0;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s ease;
}

.facet-opt:hover {
  background: #f8fafc;
}

.facet-opt input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s ease;
}

.facet-opt input:hover {
  border-color: #2563eb;
}

.facet-opt input:checked {
  background: #2563eb;
  border-color: #2563eb;
}

.facet-opt input:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.facet-opt:hover .facet-name {
  color: #2563eb;
}

.facet-opt.on .facet-name {
  color: #0f172a;
  font-weight: 700;
}

.facet-name {
  flex: 1;
  line-height: 1.3;
}

.facet-count {
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.product-empty {
  padding: 40px 0;
  text-align: center;
  color: #64748b;
  font-size: 15px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
  border-color: #cbd5e1;
}

.product-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  background: #f8fafc;
  overflow: hidden;
  transition: background 0.25s ease;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 10px;
  background: rgba(15,23,42,0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
  transition: transform 0.35s ease;
}

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

.product-card:hover .product-media {
  background: #eff6ff;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.product-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: #eff6ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 12px;
}

.product-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.35;
}

.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 18px;
}

.product-stock::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

.product-stock.out {
  color: #94a3b8;
}

.product-stock.out::before {
  background: #cbd5e1;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.product-price {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.product-price .old {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: line-through;
}

.product-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #2563eb;
  color: #fff;
  transition: background 0.15s, transform 0.15s;
}

.product-card:hover .product-cart {
  background: #1d4ed8;
}

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

@media (max-width: 768px) {
  .topbar,
  .searchbar,
  .banner,
  .products {
    padding-left: 20px;
    padding-right: 20px;
  }

  .banner {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .banner h1 {
    font-size: 30px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
  }

  .products-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .facets-toggle {
    display: inline-flex;
  }

  .facets-toggle[hidden] {
    display: none;
  }

  .product-facets {
    display: none;
    margin-bottom: 18px;
  }

  .product-facets.open {
    display: block;
  }
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  margin-left: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 20px 40px;
  background: #0f172a;
  color: #94a3b8;
  font-size: 13px;
  transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover ~ .site-footer {
  margin-left: 340px;
}

.site-footer a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ═══════════════════════════════════════════ */
.product-page {
  padding: 32px 40px 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 28px;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #94a3b8;
}

.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.pd-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  min-height: 420px;
  padding: 32px;
}

.pd-gallery img {
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
}

.pd-info {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 32px;
}

.pd-info h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin-bottom: 14px;
}

.pd-brand {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 14px;
}

.pd-brand strong {
  color: #0f172a;
}

.pd-price {
  font-size: 34px;
  font-weight: 800;
  color: #2563eb;
  margin: 18px 0 20px;
}

.pd-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 26px;
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.pd-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
}

.pd-actions .btn-primary:hover {
  background: #1d4ed8;
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1e293b;
  cursor: pointer;
  border-radius: 0;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost-dark:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.pd-meta {
  list-style: none;
  border-top: 1px solid #f1f5f9;
}

.pd-meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.pd-meta span {
  color: #64748b;
}

.pd-meta strong {
  color: #0f172a;
}

.pd-related {
  margin-top: 48px;
}

.pd-related h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .site-footer {
    margin-left: 56px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .sidebar:hover ~ .site-footer {
    margin-left: 56px;
  }

  .product-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pd-grid {
    grid-template-columns: 1fr;
  }

  .pd-gallery {
    min-height: 300px;
  }
}

/* ═══════════════════════════════════════════
   CART OVERLAY
   ═══════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════
   CART PANEL (slide-in right)
   ═══════════════════════════════════════════ */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #fff;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -6px 0 30px rgba(15,23,42,0.12);
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.cart-panel-head h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.cart-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cart-panel-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}

.cart-panel-body::-webkit-scrollbar {
  width: 4px;
}

.cart-panel-body::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.cart-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
  padding: 40px 0;
}

.cart-panel-foot {
  border-top: 1px solid #e2e8f0;
  padding: 20px 24px;
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cart-total-row span {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

.cart-total-row strong {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, transform 0.15s;
}

.cart-checkout-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* ── Cart item ── */
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: flex-start;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  padding: 6px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 6px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.cart-item-qty span {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  min-width: 18px;
  text-align: center;
}

.cart-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cart-qty-btn:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.cart-item-sub {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}

.cart-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 4px;
  transition: color 0.15s;
}

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

/* ── Add-to-cart button on detail page ── */
.btn-add-to-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #fff;
  border: none;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-add-to-cart:hover {
  background: #1d4ed8;
}

/* ═══════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(15,23,42,0.25);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast svg {
  color: #4ade80;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   SIDEBAR CONTACT BUTTON
   ═══════════════════════════════════════════ */
.sidebar-contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin-top: 4px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sidebar-contact-btn:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #2563eb;
}

.sidebar-contact-btn .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.sidebar-contact-btn .text {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
}

.sidebar:hover .sidebar-contact-btn .text {
  opacity: 1;
  transform: translateX(0);
}

.sidebar.expanded-mobile .sidebar-contact-btn .text {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 2600;
  width: 480px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  background: #fff;
  box-shadow: 0 20px 60px rgba(15,23,42,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.modal-head h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

.modal-form {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.modal-form label span {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.modal-form input,
.modal-form textarea {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.modal-form input:focus,
.modal-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: #fff;
}

.modal-form textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-submit {
  align-self: flex-start;
}

.btn-quote-detail {
  font-family: inherit;
}