:root {
  --bg: #ffffff;
  --blue: #000000;
  --gold: #e30613;
  --text: #1a1a1a;
  --muted: #6b7280;
  --panel: rgba(0, 0, 0, .03);
  --panel2: rgba(0, 0, 0, .06);
  --border: rgba(0, 0, 0, .12);
  --shadow: 0 4px 24px rgba(0, 0, 0, .06);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100vw; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

.container {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header Modern Design */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.header-topbar {
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-topbar-inner {
  display: flex;
  justify-content: flex-end;
  padding: 10px 0;
}
.header-inner {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}
.brand-logo {
  height: 65px; /* Un poco mÃ¡s grande para que se aprecie mejor el logo */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.brand:hover .brand-logo { transform: scale(1.05); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -1px;
  color: #ffffff;
}
.brand-tagline {
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 2px;
}

.nav {
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  border-radius: 50px;
}
.nav-link {
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.nav-link i { font-size: 14px; opacity: 0.7; }
.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
.nav-link.is-active {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 10px rgba(227, 6, 19, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-header .search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 50px;
  padding: 5px 15px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
  transition: all 0.3s ease;
  flex: 1;
  max-width: none;
  min-width: 0;
}
.site-header .search-box:focus-within {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(14, 23, 29, 0.12), 0 12px 24px rgba(0, 0, 0, 0.12);
}
.site-header .search-box input {
  border: none;
  background: none;
  padding: 8px 5px;
  font-size: 14px;
  outline: none;
  width: 100%;
  flex: 1;
  min-width: 0;
  color: #0d0d0d;
  font-weight: 700;
}
.site-header .search-box input::placeholder {
  color: rgba(13, 13, 13, 0.55);
}
.site-header .search-box button {
  background: var(--blue);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 999px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  color: #ffffff;
  position: relative;
  transition: all 0.3s ease;
}
.icon-btn:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Common Components: Buttons */
.section-header {
  margin-bottom: 40px;
}
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(14, 23, 29, 0.1);
  color: var(--blue);
  border-radius: 50px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.btn i{font-size:13px}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(14, 23, 29, 0.22);
}
.btn-primary:hover {
  background: #0a1016;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(14, 23, 29, 0.28);
  color: #fff;
}
#confirmOrderBtn.btn-primary{
  background: #e30613;
  box-shadow: 0 10px 22px rgba(227, 6, 19, 0.22);
}
#confirmOrderBtn.btn-primary:hover{
  background: #c40510;
  box-shadow: 0 14px 26px rgba(227, 6, 19, 0.28);
}
#checkoutNextBtn.btn-primary{
  background: #e30613;
  box-shadow: 0 10px 22px rgba(227, 6, 19, 0.22);
}
#checkoutNextBtn.btn-primary:hover{
  background: #c40510;
  box-shadow: 0 14px 26px rgba(227, 6, 19, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-whatsapp {
  background: #25D366 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28);
}
.btn-whatsapp:hover {
  background: #1fb85a !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(37, 211, 102, 0.34);
  color: #fff !important;
}
.btn-contrast{
  background: var(--gold);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.28);
}
.btn-contrast:hover{
  background: #da8b22;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.36);
  color: #fff;
}
.btn-ghost:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-3px);
}
.btn-ghost:focus,
.btn-ghost:focus-visible,
.btn-ghost:active {
  background: var(--blue);
  color: #fff;
}

.account-wrap{
  border-radius:24px;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  padding:28px;
  box-shadow: 0 18px 44px rgba(0,0,0,.06);
}
.account-head{margin-bottom:18px}
.account-title{
  margin:0;
  font-size:28px;
  font-weight:900;
  letter-spacing:-.5px;
  color:var(--text);
}
.account-subtitle{
  margin:6px 0 0 0;
  color:rgba(26,26,26,.66);
  font-size:14px;
}
.account-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
.account-card{
  border-radius:20px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(0,0,0,.01);
  padding:18px;
}
.account-card h2{
  margin:0 0 12px 0;
  font-size:16px;
  font-weight:900;
  color:rgba(26,26,26,.92);
}
.account-form{display:flex; flex-direction:column; gap:12px}
.account-form-row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.account-field{display:flex; flex-direction:column; gap:6px}
.account-field label{
  font-size:12px;
  font-weight:900;
  color:rgba(26,26,26,.70);
  letter-spacing:.6px;
  text-transform:uppercase;
}
.account-field input{
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  padding:12px 14px;
  font-size:14px;
  outline:none;
}
.account-field input:focus{border-color:rgba(227,6,19,.65); box-shadow:0 0 0 4px rgba(227,6,19,.14)}
.account-alert{
  border-radius:16px;
  padding:12px 14px;
  border:1px solid rgba(239,68,68,.25);
  background:rgba(239,68,68,.08);
  color:rgba(239,68,68,.92);
  font-weight:800;
  font-size:13px;
}
.account-panel{display:flex; flex-direction:column; gap:18px}
.account-user{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px;
  border-radius:20px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(0,0,0,.01);
}
.account-user-avatar{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  display:grid;
  place-items:center;
  color:rgba(26,26,26,.70);
  flex:0 0 auto;
}
.account-user-meta{display:flex; flex-direction:column; gap:2px; flex:1}
.account-user-name{font-weight:900; color:rgba(26,26,26,.92)}
.account-user-email{font-size:13px; color:rgba(26,26,26,.62)}
.account-logout{border:1px solid rgba(0,0,0,.10)}
.account-section{
  border-radius:20px;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  padding:18px;
}
.account-section h2{
  margin:0 0 12px 0;
  font-size:16px;
  font-weight:900;
}
.account-orders{display:flex; flex-direction:column; gap:10px}
.account-order{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(0,0,0,.02);
  padding:14px 16px;
}
.account-order-title{font-weight:900; color:rgba(26,26,26,.92)}
.account-order-meta{font-size:13px; color:rgba(26,26,26,.62); margin-top:2px}
.account-order-right{text-align:right}
.account-order-status{font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.8px; color:rgba(26,26,26,.66)}
.account-order-total{font-weight:900; color:rgba(26,26,26,.92); margin-top:2px}

@media (max-width: 920px){
  .account-grid{grid-template-columns:1fr}
  .account-form-row{grid-template-columns:1fr}
  .account-user{flex-wrap:wrap}
}

/* WhatsApp Floating Button */
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1) rotate(10deg);
  background: #20ba5a;
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}
.wa-float i {
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
}

/* Footer Improvements */
.footer {
  background: #000000;
  color: #ffffff;
  padding: 56px 0 0;
  border-top: 4px solid var(--blue);
}
.footer-top{
  display:grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr 1.25fr;
  gap:56px;
  padding-bottom: 34px;
  align-items:start;
}
.footer-col-brand{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.footer-brand-link{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}
.footer-brand-meta{display:flex; flex-direction:column; gap:2px}
.footer-brand-name{
  color:#fff;
  font-size:18px;
  font-weight:900;
  letter-spacing:.2px;
}
.footer-brand-tagline{
  color:rgba(255,255,255,0.62);
  font-size:12px;
  font-weight:700;
  letter-spacing:.6px;
  text-transform:uppercase;
}
.footer-brand-desc{
  margin:0;
  color:rgba(255,255,255,0.55);
  font-size:13px;
  line-height:1.7;
  max-width: 420px;
}
.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}
.footer h4 {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.1px;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin:0;
}
.footer-list li { margin-bottom: 12px; }
.footer-list a {
  color: rgba(255,255,255,0.68);
  transition: color .18s ease, transform .18s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
}
.footer-list a:hover {
  color: var(--gold);
  transform: translateX(4px);
}
.social-links { display: flex; gap: 15px; }
.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}
.social-links a:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-5px) rotate(8deg);
}
.footer-contact{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.footer-contact-item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:rgba(255,255,255,0.62);
  font-size:13px;
  line-height:1.45;
}
.footer-contact-item i{
  color:rgba(255,255,255,0.82);
  font-size:14px;
  margin-top:2px;
  width:18px;
  text-align:center;
}

.footer-mid{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding: 18px 0 22px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-mid-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}
.footer-mid-links a{
  color:rgba(255,255,255,0.70);
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  transition:color .18s ease;
}
.footer-mid-links a:hover{color:#fff}
.footer-mid-right{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.footer-payments{
  display:flex;
  align-items:center;
  gap:12px;
}
.footer-payments-title{
  color:rgba(255,255,255,0.55);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1px;
}
.footer-payments-icons{
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(255,255,255,0.72);
  font-size:22px;
}
.pay-pill{
  font-size:12px;
  font-weight:900;
  color:rgba(255,255,255,0.82);
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.04);
  padding:6px 10px;
  border-radius:999px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 18px 0;
  color: rgba(255,255,255,0.4);
  background: #000000;
}
.footer-bottom-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  font-size: 13px;
}
.footer-bottom-inner p{margin:0}
.footer-tech a{
  color:rgba(255,255,255,0.70);
  text-decoration:none;
  font-weight:900;
}
.footer-tech a:hover{color:#fff}
.footer-bottom-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.footer-admin-btn{
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  box-shadow: 0 10px 22px rgba(14, 23, 29, 0.25);
  font-size:12px;
  padding:10px 16px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.footer-admin-btn:hover{
  background:#0a1016;
  border-color:#0a1016;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(14, 23, 29, 0.30);
}

@media (max-width: 992px){
  .footer-top{
    grid-template-columns: 1fr 1fr;
    gap:34px;
  }
}

@media (max-width: 720px){
  .footer{padding-top:42px}
  .footer-top{
    grid-template-columns: 1fr;
    gap:26px;
  }
  .footer-mid{
    flex-direction:column;
    align-items:flex-start;
  }
  .footer-mid-right{
    justify-content:flex-start;
  }
  .social-links a{
    width:42px;
    height:42px;
  }
}

/* Reveal Animation */
.section {
  padding: 72px 0;
  position: relative;
}

@media (max-width: 720px){
  .section{padding:56px 0}
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Cart Sidebar
   ======================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-sidebar.is-open {
  transform: translateX(0);
}

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.cart-sidebar-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.cart-sidebar-header h3 i {
  color: var(--blue);
}
.cart-close-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--muted);
  transition: all 0.2s ease;
}
.cart-close-btn:hover {
  background: #e74c3c;
  color: #fff;
  transform: rotate(90deg);
}

.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}

/* Empty State */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  text-align: center;
}
.cart-empty i {
  font-size: 56px;
  color: #e0e0e0;
}
.cart-empty p {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

/* Cart Items */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: #f9f9fb;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  transition: all 0.2s ease;
  position: relative;
}
.cart-item:hover {
  border-color: rgba(14, 23, 29, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #eee;
}
.cart-item-img img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.cart-item-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--blue);
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 2px;
}
.cart-item-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}
.cart-item-qty button:first-child {
  border-radius: 6px 0 0 6px;
}
.cart-item-qty button:last-child {
  border-radius: 0 6px 6px 0;
}
.cart-item-qty button:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.cart-item-qty span {
  width: 32px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  background: #fafafa;
}
.cart-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #ccc;
  font-size: 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.cart-item-remove:hover {
  background: #fee2e2;
  color: #e74c3c;
}

/* Footer */
.cart-sidebar-footer {
  padding: 20px 28px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #e30613;
}
.cart-subtotal-value {
  font-size: 22px;
  font-weight: 900;
  color: #e30613;
}
.cart-checkout-btn {
  width: 100%;
  font-size: 13px;
  padding: 14px;
  gap: 8px;
}
.cart-checkout-btn i {
  font-size: 18px;
}
.cart-clear-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cart-clear-btn:hover {
  color: #e74c3c;
}

/* Hide footer when cart is empty */
.cart-sidebar-footer.is-hidden {
  display: none;
}

/* Payment Methods Panel */
.cart-payment-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: panelSlideDown 0.3s ease;
}
.cart-payment-panel.is-open {
  display: flex;
}
@keyframes panelSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.payment-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.payment-panel-title i {
  color: var(--blue);
}
.payment-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.payment-method:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}
.payment-method.is-selected{
  background: #1f4f99;
  border-color: #1f4f99;
  box-shadow: 0 0 0 3px rgba(14, 23, 29, 0.12), 0 12px 24px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}
.payment-method.is-selected .payment-method-name{
  color:#fff;
}
.payment-method.is-selected .payment-method-value{
  color:#fff;
}
.payment-method.is-selected .copy-btn{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  color:#fff;
}
.payment-method.is-selected .copy-btn:hover{
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.34);
  color:#fff;
}

.checkout-layout{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:18px;
  align-items:start;
}
.checkout-card{
  border-radius:24px;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  box-shadow: 0 18px 44px rgba(0,0,0,.06);
  padding:18px;
}
.checkout-card-head{margin-bottom:12px}
.checkout-title{margin:0; font-size:26px; font-weight:900; letter-spacing:-.4px}
.checkout-subtitle{margin:6px 0 0 0; color:rgba(26,26,26,.66); font-size:14px; line-height:1.6}
.checkout-steps{
  display:flex;
  gap:10px;
  margin:14px 0 12px 0;
}
.checkout-step{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.02);
  font-weight:900;
  cursor:pointer;
}
.checkout-step[disabled]{opacity:.55; cursor:not-allowed}
.checkout-step.is-active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}
.checkout-step-num{
  width:26px;
  height:26px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.14);
}
.checkout-step.is-active .checkout-step-num{background:rgba(255,255,255,.18)}
.checkout-panel{padding-top:4px}

.checkout-form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:8px;
}
.checkout-field{display:flex; flex-direction:column; gap:6px}
.checkout-field-full{grid-column:1 / -1}
.checkout-field label{
  font-size:12px;
  font-weight:900;
  color:rgba(26,26,26,.70);
  letter-spacing:.6px;
  text-transform:uppercase;
}
.checkout-field input,
.checkout-field select{
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  padding:12px 14px;
  font-size:14px;
  outline:none;
  font-family: inherit;
}
.checkout-field input:focus,
.checkout-field select:focus{
  border-color:rgba(0,0,0,.35);
  box-shadow:0 0 0 4px rgba(0,0,0,.08);
}
.checkout-hint{color:rgba(26,26,26,.62); font-size:12px}
.checkout-yape-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:10px;
  margin-top:8px;
}
@media (max-width: 720px){
  .checkout-yape-grid{grid-template-columns:1fr}
}

.checkout-totals{
  margin-top:14px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(0,0,0,.02);
  border-radius:18px;
  padding:12px 14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.checkout-total-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:800;
  color:rgba(26,26,26,.78);
}
.checkout-total-row strong{color:rgba(26,26,26,.92)}
.checkout-total-row.is-subtotal{
  color:#e30613;
}
.checkout-total-row.is-subtotal strong{
  color:#e30613;
}
.checkout-total-row.is-grand{
  padding-top:8px;
  border-top:1px solid rgba(0,0,0,.08);
  font-weight:900;
  color:rgba(26,26,26,.92);
}
.checkout-note{
  margin-top:10px;
  color:rgba(26,26,26,.66);
  font-size:13px;
  line-height:1.6;
}
.checkout-summary-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.checkout-summary-head h2{margin:0; font-size:16px; font-weight:900}
.checkout-edit{text-decoration:none; font-weight:900; color:var(--blue); font-size:13px}
.checkout-items{display:flex; flex-direction:column; gap:10px; margin-top:8px}
.checkout-item{
  border-radius:16px;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  padding:12px 14px;
}
.checkout-item-name{font-weight:900}
.checkout-item-meta{margin-top:4px; color:rgba(26,26,26,.62); font-size:13px; font-weight:700}
.checkout-summary-footer{margin-top:12px}
.checkout-empty{color:rgba(26,26,26,.66); font-weight:800}
.checkout-empty a{color:var(--blue); font-weight:900; text-decoration:underline}

@media (max-width: 992px){
  .checkout-layout{grid-template-columns:1fr}
}
@media (max-width: 520px){
  .checkout-form-grid{grid-template-columns:1fr}
  .checkout-card{padding:14px; overflow:hidden}
  .checkout-layout{gap:14px}
  .checkout-field input,
  .checkout-field select{
    width:100%;
    max-width:100%;
    padding:11px 12px;
  }
  .checkout-field input[type="file"]{
    width:100%;
    max-width:100%;
  }
  .checkout-totals{padding:10px 12px}
  .checkout-total-row{gap:8px}
}

.ui-modal-overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  z-index: 1200;
}
.ui-modal{
  position:fixed;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 32px));
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  z-index: 1201;
  overflow:hidden;
}
.ui-modal-head{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.ui-modal-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:900;
  color:#fff;
  background:#111827;
  flex:0 0 auto;
}
.ui-modal-icon.is-ok{background:#16a34a}
.ui-modal-icon.is-err{background:#dc2626}
.ui-modal-icon.is-warn{background:#f59e0b}
.ui-modal-title{
  font-weight:900;
  font-size:16px;
  flex:1;
}
.ui-modal-close{
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.ui-modal-body{
  padding:14px 16px 0 16px;
  color:rgba(26,26,26,.74);
  font-weight:700;
  line-height:1.6;
  font-size:14px;
  white-space:pre-line;
}
.ui-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:14px 16px 16px 16px;
}
.payment-method-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.payment-method-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #fff;
}
.payment-method-icon.yape {
  background: #742284;
}
.payment-method-icon.plin {
  background: #00bcd4;
}
.payment-method-icon.bank {
  background: #0a6e2d;
}
.payment-method-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.payment-method-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  font-family: 'Courier New', monospace;
}
.copy-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e0e0e0;
  background: #f9f9f9;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--muted);
  transition: all 0.2s ease;
}
.copy-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.copy-btn.copied {
  background: #27ae60;
  color: #fff;
  border-color: #27ae60;
}
.payment-panel-note {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
  text-align: center;
  font-style: italic;
}

/* Allow footer to scroll when payment panel is open */
.cart-sidebar-footer.has-payment {
  overflow-y: auto;
  max-height: 70vh;
}

/* ========================================
   Login Button (Navbar)
   ======================================== */
.js-login-btn {
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.js-login-btn:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(14, 23, 29, 0.25);
}

/* ========================================
   Admin Profile (Navbar)
   ======================================== */
.admin-profile {
  position: relative;
}
.admin-avatar-btn {
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.16);
  background: #000;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
}
.admin-avatar-btn:hover {
  border-color: var(--gold);
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(14, 23, 29, 0.3);
}
.admin-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.admin-avatar-placeholder {
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-status-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.92);
  animation: pulse-dot 2s infinite;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}
.admin-status-dot::before{content:"✓"}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Admin Dropdown */
.admin-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1500;
  overflow: hidden;
}
.admin-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.admin-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(14, 23, 29, 0.05), rgba(8, 145, 178, 0.05));
}
.admin-dropdown-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.admin-dropdown-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-dropdown-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}
.admin-dropdown-role {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-dropdown-divider {
  height: 1px;
  background: #f0f0f0;
}
.admin-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.admin-dropdown-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: var(--muted);
  transition: color 0.2s ease;
}
.admin-dropdown-item:hover {
  background: rgba(14, 23, 29, 0.05);
  color: var(--blue);
}
.admin-dropdown-item:hover i {
  color: var(--blue);
}
.admin-logout-btn:hover {
  background: rgba(239, 68, 68, 0.05);
  color: #ef4444;
}
.admin-logout-btn:hover i {
  color: #ef4444;
}

/* ========================================
   Login Modal
   ======================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}
.login-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.login-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 420px;
  max-width: 90vw;
  background: #fff;
  border-radius: 24px;
  z-index: 3001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.login-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.login-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--muted);
  transition: all 0.2s ease;
  z-index: 10;
}
.login-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

.login-modal-header {
  text-align: center;
  padding: 40px 32px 24px;
  background: linear-gradient(135deg, rgba(14, 23, 29, 0.03), rgba(218, 161, 37, 0.03));
}
.login-modal-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--blue), #0891b2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(14, 23, 29, 0.2);
}
.login-modal-header h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 8px;
}
.login-modal-header p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.login-form {
  padding: 8px 32px 36px;
}
.login-field {
  margin-bottom: 20px;
}
.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.login-field label i {
  color: var(--blue);
  margin-right: 4px;
}
.login-field input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.3s ease;
  background: #f9fafb;
}
.login-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(14, 23, 29, 0.1);
  outline: none;
  background: #fff;
}
.password-wrapper {
  position: relative;
}
.password-wrapper input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  padding: 4px;
  transition: color 0.2s ease;
}
.password-toggle:hover {
  color: var(--blue);
}

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.login-submit {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  border-radius: 12px;
}
.login-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ========================================
   Submenu
   ======================================== */
.header-submenu {
  background-color: #1a1a1a;
  border-bottom: 1px solid #333;
}
.submenu-inner {
  min-height: 48px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 5px 0;
}
.submenu-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Reducido un poco para que quepan mejor */
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap; /* Cambiado de nowrap a wrap para evitar scroll horizontal que corta los dropdowns */
  overflow: visible; /* Cambiado de overflow-x: auto para que se vean los dropdowns */
  width: 100%;
}
.submenu-list.submenu-main-links a {
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
}
.submenu-list.submenu-main-links {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.submenu-list.submenu-main-links i{
  font-size: 12px;
  opacity: .85;
}
.submenu-list.submenu-main-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.submenu-list.submenu-main-links a.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.submenu-list::-webkit-scrollbar {
  display: none;
}
.submenu-list > li {
  flex-shrink: 0;
  position: relative;
  height: 100%; /* Asegura que el li ocupe toda la altura para que el hover sea continuo hacia el dropdown */
  display: flex;
  align-items: center;
}
.submenu-list > li > a {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
  white-space: nowrap;
  padding: 0; /* Eliminamos el padding vertical para que la altura la controle el flexbox del li */
  height: 100%;
}
.submenu-list > li > a:hover {
  color: #fff;
}
.submenu-list.submenu-main-links > li > a:hover {
  color: #fff;
}
.submenu-icon {
  font-size: 10px;
  color: #888;
  transition: color 0.2s ease, transform 0.2s ease;
}
.submenu-list > li > a:hover .submenu-icon {
  color: #fff;
}
.has-dropdown:hover .submenu-icon {
  transform: rotate(180deg);
}

/* Submenu Dropdown */
.submenu-dropdown {
  position: absolute;
  top: 100%;
  left: -10px;
  background-color: #1a1a1a;
  min-width: 220px;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2000;
  border: 1px solid #333;
  border-top: 2px solid var(--blue);
}
/* Puente para evitar que el dropdown se cierre al mover el mouse */
.submenu-dropdown::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}
.has-dropdown:hover .submenu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu-dropdown li {
  width: 100%;
}
.submenu-dropdown a {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #bbb;
  display: block;
  transition: all 0.2s ease;
  text-decoration: none;
}
.submenu-dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding-left: 25px;
}

/* ========================================
   Responsive Design
   ======================================== */
/* Cart Badge Color Overrides */
.cart-badge { background-color: #e30613 !important; }

/* Desktop-only hidden items */
.mobile-header-left, .mobile-menu-toggle, .mobile-search-toggle, .drawer-backdrop, .mobile-drawer {
  display: none;
}

@media (max-width: 991px) {
  /* Hide Desktop Submenu & Nav & Admin Profile in Header */
  .header-submenu, .header-topbar, .nav, .admin-profile { display: none; }

  /* Mobile Header - Dark Layout */
  .site-header { background-color: #000000; padding: 10px 0; border: none; }
  .header-inner { 
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-auto-rows: auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;
    height: auto;
    padding: 0;
  }
  
  .mobile-header-left {
    display: flex; align-items: center; gap: 15px;
    grid-column: 1;
    grid-row: 1;
  }
  .mobile-menu-toggle, .mobile-search-toggle {
    display: flex; background: none; border: none; font-size: 24px; color: #fff; cursor: pointer; padding: 5px;
  }
  .brand{position:static; transform:none}
  .brand-logo { height: 40px; }
  .brand{
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  
  .header-actions { 
    display: flex; align-items: center; gap: 10px; margin: 0;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .header-actions .icon-btn { color: #fff; padding: 10px; background: rgba(255, 255, 255, 0.1); }
  
  /* Collapsible Search */
  .site-header .search-box {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    position: relative;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  }
  .site-header .search-box input {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #111;
    background: #ffffff;
    padding: 12px 52px 12px 14px;
    font-size: 14px;
  }
  .site-header .search-box input::placeholder { color: rgba(17, 17, 17, 0.55); }
  .site-header .search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    margin-left: 0;
    padding: 0;
    background: var(--blue);
    color: #fff;
  }
  .site-header .search-box.show{
    display:flex;
  }

  /* Drawer Backdrop */
  .drawer-backdrop {
    display: block; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6); z-index: 2999; opacity: 0; visibility: hidden; transition: 0.3s;
  }
  .drawer-backdrop.is-open { opacity: 1; visibility: visible; }

  /* Mobile Drawer Sidebar */
  .mobile-drawer {
    display: flex; flex-direction: column; position: fixed; top: 0; left: -320px;
    width: 300px; height: 100vh; background: #000000; z-index: 3000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    overflow-y: auto; overflow-x: hidden;
    color: #fff;
  }
  .mobile-drawer.is-open { transform: translateX(320px); }
  
  .drawer-header {
    display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
  }
  .drawer-login-btn {
    background: none; border: none; font-size: 16px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 10px; cursor: pointer;
  }
  .drawer-login-btn i { font-size: 18px; color: var(--gold); }
  .drawer-close { background: none; border: none; font-size: 20px; color: #fff; cursor: pointer; padding: 5px; opacity: 0.7; }

  /* Drawer Menu Accordion */
  .drawer-menu-list { list-style: none; padding: 0; margin: 0; }
  .drawer-menu-item { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .drawer-menu-link {
    display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
    text-decoration: none; color: rgba(255, 255, 255, 0.9); font-weight: 600; font-size: 15px; cursor: pointer;
    transition: all 0.2s;
  }
  
  /* Icon Box */
  .drawer-caret {
    background: rgba(255, 255, 255, 0.08); border-radius: 4px; border: none; color: #fff; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer;
  }
  .drawer-menu-item.open .drawer-menu-link { color: var(--gold); background: rgba(255, 255, 255, 0.03); }
  .drawer-menu-item.open .drawer-caret { background: var(--gold); color: #fff; }
  .drawer-menu-item.open .drawer-caret i:before { content: "\f068"; } /* change to minus */
  
  .drawer-submenu-list {
    list-style: none; padding: 0; margin: 0; background: rgba(0, 0, 0, 0.2); display: none;
  }
  .drawer-menu-item.open .drawer-submenu-list { display: block; }
  .drawer-submenu-list li a {
    display: block; padding: 12px 20px 12px 40px; text-decoration: none; color: rgba(255, 255, 255, 0.7); font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
  }
  .drawer-submenu-list li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 45px;
  }
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; gap: 30px; }
  .footer-social { align-items: center; }
  .cart-sidebar { width: 100%; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

.product-detail{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:32px;
  align-items:start;
}
.product-gallery{
  display:grid;
  grid-template-columns: 86px 1fr;
  gap:12px;
  align-items:start;
}
.product-thumbs{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:560px;
  overflow:auto;
  padding-right:4px;
}
.product-thumbs::-webkit-scrollbar{width:6px}
.product-thumbs::-webkit-scrollbar-thumb{background:rgba(0,0,0,.12); border-radius:999px}
.product-thumbs::-webkit-scrollbar-track{background:transparent}
.product-thumb-btn{
  width:74px;
  height:74px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  overflow:hidden;
  cursor:pointer;
  display:grid;
  place-items:center;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.product-thumb-btn img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:10px;
}
.product-thumb-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(227,6,19,.55);
  box-shadow:0 10px 18px rgba(0,0,0,.10);
}
.product-thumb-btn.is-active{
  border-color:rgba(227,6,19,.85);
  box-shadow:0 0 0 4px rgba(227,6,19,.18);
}
.product-main{
  border-radius:20px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(0,0,0,.02);
  overflow:hidden;
  height:560px;
  display:grid;
  place-items:center;
  cursor:zoom-in;
}
.product-main-img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:18px;
  filter:drop-shadow(0 14px 22px rgba(0,0,0,.20));
  transition:transform .12s ease;
  will-change:transform;
}
@media (hover: hover) and (pointer: fine){
  .product-main.is-zoom{cursor:zoom-out}
  .product-main.is-zoom .product-main-img{
    transform:scale(1.8);
    transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  }
}
.product-info-panel{
  border-radius:20px;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  padding:22px;
}
.product-title{
  margin:0 0 10px 0;
  font-size:28px;
  font-weight:900;
  letter-spacing:-.4px;
  color:var(--text);
}
.product-price-row{
  display:flex;
  align-items:baseline;
  gap:12px;
  margin-bottom:12px;
}
.product-price-now{
  font-size:22px;
  font-weight:900;
  color:var(--gold);
}
.product-price-old{
  font-size:14px;
  color:rgba(26,26,26,.55);
  text-decoration:line-through;
}
.product-desc{
  margin:0 0 14px 0;
  color:rgba(26,26,26,.72);
  line-height:1.6;
}
.product-rating{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  color:rgba(26,26,26,.72);
  font-size:13px;
}

.breadcrumbs{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  font-size:13px;
  color:rgba(26,26,26,.62);
}
.breadcrumbs a{
  color:rgba(26,26,26,.76);
  text-decoration:none;
  font-weight:700;
  transition:color .18s ease;
}
.breadcrumbs a:hover{
  color:var(--gold);
}
.breadcrumb-sep{
  opacity:.55;
}
.breadcrumb-current{
  color:rgba(26,26,26,.92);
  font-weight:900;
}
.rating-value{
  font-weight:900;
  color:rgba(26,26,26,.92);
}
.rating-stars{
  display:inline-flex;
  gap:2px;
  color: var(--gold);
}
.rating-count{
  color:rgba(26,26,26,.62);
}

.product-variants{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin: 10px 0 14px 0;
}
.variant-group{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
.variant-label{
  width:72px;
  font-weight:900;
  letter-spacing:.6px;
  font-size:12px;
  text-transform:uppercase;
  color:rgba(26,26,26,.80);
}
.variant-options{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.variant-chip{
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  padding:10px 14px;
  font-weight:800;
  font-size:13px;
  color:rgba(26,26,26,.86);
  cursor:pointer;
  transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.variant-chip:hover{
  transform:translateY(-1px);
  border-color:rgba(227,6,19,.55);
  box-shadow:0 10px 22px rgba(0,0,0,.10);
}
.variant-chip.is-active{
  border-color:rgba(227,6,19,.85);
  box-shadow:0 0 0 4px rgba(227,6,19,.18);
}

.product-benefits{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  background:rgba(0,0,0,.02);
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  padding:12px;
}
.benefit-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  color:rgba(26,26,26,.72);
  font-size:12px;
  font-weight:800;
}
.benefit-item i{
  color: var(--gold);
}
.product-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.product-actions .btn{
  min-width:190px;
  justify-content:center;
}

.product-detail-sections{
  margin-top:24px;
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
.product-section{
  border-radius:20px;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  padding:18px;
}
.product-section h2{
  margin:0 0 10px 0;
  font-size:16px;
  font-weight:900;
  color:var(--text);
}
.product-section p{
  margin:0;
  color:rgba(26,26,26,.72);
  line-height:1.65;
}
.product-features{
  margin:0;
  padding-left:18px;
  color:rgba(26,26,26,.72);
  line-height:1.7;
}
.specs-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.spec-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(0,0,0,.02);
  font-size:14px;
  color:rgba(26,26,26,.74);
}
.spec-row strong{color:rgba(26,26,26,.92); font-weight:900}
.product-muted{color:rgba(26,26,26,.60); font-size:13px}

@media (max-width: 992px){
  .product-detail{grid-template-columns:1fr}
  .product-gallery{grid-template-columns:1fr}
  .product-thumbs{
    flex-direction:row;
    max-height:none;
    overflow:visible;
    padding-right:0;
    flex-wrap:wrap;
  }
  .product-main{height:420px}
  .product-actions .btn{min-width:0; width:100%}
  .product-benefits{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px){
  .product-main{height:340px}
  .product-title{font-size:24px}
  .product-benefits{grid-template-columns:1fr}
  .variant-chip{padding:9px 12px; font-size:12px}
}
