:root {
  --bg-dark: #070d19;
  --bg-card: rgba(48, 48, 48, 0.4);
  --border-color: rgba(95, 88, 79, 0.2);
  --accent-color: #4f9cff;
  --accent-hover: #3278d4;
  --text-main: #f9f9f9;
  --text-muted: #B7B7B7;
  --text-dimmed: #909090;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, video, iframe { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(10, 26, 58, 0.95);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}
.header-container {
  max-width: 1200px;
  min-height: 70px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-logo img {
  width: 42px;
  height: 42px;
  padding: 5px;
  object-fit: contain;
  border: 1px solid rgba(107, 166, 255, .4);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 105, 205, .28), rgba(10, 26, 58, .55));
  box-shadow: 0 0 14px rgba(40, 105, 205, .18);
}
.logo-text { display: flex; flex-direction: column; }
.brand-name { font: 700 1.1rem 'Cardo', serif; letter-spacing: .5px; }
.brand-tagline { color: var(--text-dimmed); font-size: .7rem; }
.main-nav { display: flex; align-items: center; gap: 10px; }
.main-nav a { padding: 8px 10px; border-radius: 7px; color: var(--text-muted); font-size: .85rem; }
.main-nav .mobile-nav-break { display: none; }
.main-nav a:hover { color: var(--text-main); background: rgba(79, 156, 255, .15); }
.main-nav .store-link, .main-nav .cart-link {
  border: 1px solid rgba(79, 156, 255, .45);
  color: var(--text-main);
}
.main-nav .cart-link { background: var(--accent-color); }
.main-nav .cart-link:hover { background: var(--accent-hover); }
.main-nav .mobile-header-link { display: none; }

.container { overflow-wrap: anywhere; }
.store-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(95, 150, 255, .2);
  border-radius: 18px;
  background-color: #06112b;
  background-image: linear-gradient(90deg, rgba(3, 9, 25, .9), rgba(3, 9, 25, .58)), url('../images/liquid-wallpaper.jpg');
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
.store-heading > * { position: relative; z-index: 1; }
.section-badge { color: #d8e8ff; border-color: rgba(80, 160, 255, .35); background: rgba(40, 105, 205, .2); }
.store-heading .section-title { max-width: 680px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; text-wrap: balance; }
.store-heading .section-desc { max-width: 620px; color: #d5dfef; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 48px 24px; flex: 1; }
.store-heading { margin-bottom: 32px; }
.section-badge {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 14px;
  border: 1px solid rgba(79, 156, 255, .3);
  border-radius: 20px;
  background: rgba(79, 156, 255, .15);
  color: var(--text-muted);
  font-size: .8rem;
}
.section-title { margin: 0 0 8px; font: 700 2.25rem 'Cardo', serif; }
.section-desc { margin: 0; color: var(--text-muted); font-size: 1rem; }
.store-controls { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.store-controls input, .store-controls select {
  min-width: 200px;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #0d1b2d;
  color: var(--text-main);
  font: inherit;
}
.store-controls input { flex: 1; }
.store-controls button, .add-btn {
  padding: 10px 16px;
  border: 1px solid rgba(79, 156, 255, .4);
  border-radius: 8px;
  background: rgba(79, 156, 255, .2);
  color: var(--text-main);
  font: 600 .85rem 'Inter', sans-serif;
  cursor: pointer;
}
.store-controls button:hover, .add-btn:hover { background: var(--accent-color); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card {
  min-width: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(20, 38, 68, .88), rgba(9, 19, 37, .9));
  transition: border-color .2s, background .2s;
}
.product-card:hover { border-color: rgba(75, 150, 255, .48); background: linear-gradient(155deg, rgba(25, 48, 83, .94), rgba(9, 19, 37, .96)); }
.product-img { width: 100%; height: 160px; margin-bottom: 14px; border-radius: 8px; background: rgba(12, 20, 35, .6); object-fit: contain; }
.product-title { margin-bottom: 8px; color: var(--text-main); font-size: 1rem; font-weight: 600; }
.product-sku { margin-bottom: 16px; color: var(--text-dimmed); font-size: .78rem; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-price { color: #7db8ff; font-size: 1.1rem; font-weight: 700; }
.empty-state { padding: 32px 0; color: var(--text-muted); }
.empty-state a { color: #9cc5ff; text-decoration: underline; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 32px; color: var(--text-muted); }
.pagination a { padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 8px; }
.pagination a:hover { border-color: var(--accent-color); color: var(--text-main); }
.account-container { max-width: 640px; }
.account-panel { padding: 28px; border: 1px solid rgba(95, 150, 255, .2); border-radius: 14px; background: linear-gradient(155deg, rgba(20, 38, 68, .9), rgba(9, 19, 37, .94)); }
.account-panel > p { color: var(--text-muted); }
.account-panel a:not(.checkout-btn) { color: #9cc5ff; text-decoration: underline; }
.account-form { display: grid; gap: 8px; margin: 20px 0; }
.account-form label { font-size: .9rem; font-weight: 600; }
.phone-input-row { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(0, 1.1fr); gap: 8px; }
.phone-input-row .checkout-field { min-width: 0; }
.country-code-select { cursor: pointer; }
.account-form .privacy-ack { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; color: var(--text-muted); font-size: .85rem; font-weight: 400; }
.privacy-ack input { flex: 0 0 auto; margin-top: 4px; }
.account-message { padding: 12px 14px; border-radius: 8px; }
.account-message-error { border: 1px solid rgba(225,29,72,.45); color: #fecdd3 !important; background: rgba(225,29,72,.12); }
.account-message-success { border: 1px solid rgba(34,197,94,.4); color: #bbf7d0 !important; background: rgba(34,197,94,.1); }
.account-action-link { margin: 18px 0; }
.secondary-button { width: 100%; padding: 11px 14px; border: 1px solid var(--border-color); border-radius: 8px; background: #0d1b2d; color: var(--text-main); font: 600 .9rem 'Inter',sans-serif; cursor: pointer; }

.cart-table { width: 100%; margin-bottom: 32px; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 16px; border-bottom: 1px solid var(--border-color); text-align: left; }
.cart-table th { color: var(--text-muted); font-size: .875rem; font-weight: 600; }
.quantity-input { width: 64px; padding: 8px; border: 1px solid var(--border-color); border-radius: 6px; background: #0d1b2d; color: var(--text-main); }
.remove-btn { border: 0; background: none; color: #e11d48; font: 600 .9rem 'Inter', sans-serif; cursor: pointer; }
.cart-summary { max-width: 400px; margin-left: auto; padding: 24px; border: 1px solid rgba(95, 150, 255, .2); border-radius: 12px; background: linear-gradient(155deg, rgba(20, 38, 68, .9), rgba(9, 19, 37, .94)); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 1.1rem; font-weight: 700; }
.checkout-field { width: 100%; margin: 6px 0 14px; padding: 11px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: #0d1b2d; color: var(--text-main); font: inherit; }
.checkout-error { color: #9cc5ff; font-size: .875rem; }
.checkout-btn { display: block; width: 100%; padding: 14px; border: 0; border-radius: 8px; background: var(--accent-color); color: white; text-align: center; font: 700 1rem 'Inter', sans-serif; cursor: pointer; }
.checkout-btn { text-decoration: none; }
.checkout-btn:hover { background: var(--accent-hover); }
.checkout-btn:disabled { opacity: .55; cursor: not-allowed; }
.checkout-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; cursor: not-allowed; }
.checkout-account-state { margin: 0 0 16px; padding: 12px 14px; border-left: 3px solid var(--accent-color); border-radius: 7px; background: rgba(40, 105, 205, .12); color: var(--text-muted); font-size: .88rem; }
.checkout-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checkout-email-btn { border: 1px solid rgba(107, 166, 255, .36); background: rgba(40, 105, 205, .18); }
.checkout-email-btn:hover { background: rgba(40, 105, 205, .32); }

:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }

.site-footer { margin-top: auto; border-top: 1px solid rgba(95, 150, 255, .2); background: linear-gradient(155deg, rgba(10, 26, 58, .96), #070d19); color: var(--text-main); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text-main); text-decoration: none; }
.footer-brand:hover, .footer-brand:focus-visible { color: #fff; text-decoration: none; }
.footer-brand img { width: 42px; height: 42px; padding: 5px; object-fit: contain; border: 1px solid rgba(107, 166, 255, .4); border-radius: 50%; background: radial-gradient(circle, rgba(40, 105, 205, .28), rgba(10, 26, 58, .55)); box-shadow: 0 0 14px rgba(40, 105, 205, .18); }
.footer-brand span { display: flex; flex-direction: column; }
.footer-brand strong { font: 700 1rem 'Cardo', serif; color: inherit; }
.footer-brand small, .copyright { color: var(--text-dimmed); font-size: .75rem; }
.footer-socials, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-socials a, .footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 11px; border: 1px solid rgba(107, 166, 255, .18); border-radius: 7px; color: var(--text-muted); font-size: .82rem; line-height: 1.35; text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
.footer-socials a { width: 36px; padding: 7px; }
.footer-socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-socials a:hover, .footer-links a:hover { border-color: rgba(107, 166, 255, .45); background: rgba(40, 105, 205, .14); color: var(--text-main); }
.footer-links .cookie-settings-trigger { min-height: 36px; padding: 7px 11px; border: 1px solid rgba(107, 166, 255, .18); border-radius: 7px; background: transparent; color: var(--text-muted); font: inherit; font-size: .82rem; line-height: 1.35; cursor: pointer; }
.footer-links .cookie-settings-trigger:hover { border-color: rgba(107, 166, 255, .45); background: rgba(40, 105, 205, .14); color: var(--text-main); }
.cookie-consent[hidden] { display: none; }
.cookie-consent { position: fixed; z-index: 1200; right: 16px; bottom: 16px; left: 16px; max-width: 760px; margin: 0 auto; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid rgba(107, 166, 255, .35); border-radius: 14px; background: #0b1730; box-shadow: 0 12px 36px rgba(0, 0, 0, .45); }
.cookie-consent h2 { margin: 0 0 4px; color: var(--text-main); font-size: 1rem; }
.cookie-consent p { margin: 0; color: var(--text-muted); font-size: .82rem; }
.cookie-consent p a { color: #93c5fd; text-decoration: underline; }
.cookie-consent .cookie-development-warning { margin-top: 8px; padding: 8px 10px; border-left: 3px solid #fbbf24; border-radius: 5px; background: rgba(251, 191, 36, .1); color: #fde68a; }
.cookie-consent .cookie-development-warning strong { color: #fcd34d; }
.cookie-consent-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
.cookie-consent-actions button { min-height: 40px; padding: 8px 12px; border: 1px solid rgba(107, 166, 255, .4); border-radius: 8px; background: rgba(40, 105, 205, .18); color: var(--text-main); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.cookie-consent-actions button:last-child { background: var(--accent-color); }
.cookie-consent-actions button:hover { background: var(--accent-hover); }
.copyright { width: 100%; margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float { position: fixed; right: 16px; bottom: 16px; z-index: 1000; display: flex; align-items: center; padding: 10px 16px 10px 11px; border-radius: 50px; background: #25d366; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); animation: whatsappPulse 2.2s infinite ease-in-out; transition: transform .2s, background .2s, opacity .2s; }
.whatsapp-float:hover { transform: scale(1.04); background: #20ba5a; animation: none; }
.whatsapp-float.is-footer-visible { visibility: hidden; opacity: 0; pointer-events: none; }
.whatsapp-pulse { position: absolute; inset: 0; z-index: -1; border-radius: inherit; }
.whatsapp-float a { display: flex; align-items: center; color: #fff; text-decoration: none; }
.whatsapp-float svg { width: 28px; height: 28px; flex: 0 0 auto; fill: currentColor; }
.whatsapp-float .w-label { margin-left: 8px; color: #fff; font-size: .9rem; font-weight: 600; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .whatsapp-float { animation: none; } }

@media (max-width: 960px) {
  .header-container { align-items: flex-start; flex-direction: column; gap: 8px; }
  .main-nav { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
  .main-nav a { padding: 7px 8px; }
  .container { padding-top: 24px; padding-bottom: 32px; }
  .store-heading {
    padding: 28px 20px;
    background-image: linear-gradient(90deg, rgba(3, 9, 25, .88), rgba(3, 9, 25, .46)), url('../images/liquid-wallpaper-mobile.jpg');
    background-position: center 45%;
  }
  .store-heading .section-title { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .store-controls { display: grid; grid-template-columns: 1fr; }
  .store-controls input, .store-controls select { width: 100%; min-width: 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .header-container, .container, .footer-inner { padding-right: 16px; padding-left: 16px; }
  .brand-tagline { max-width: 245px; }
  .main-nav { justify-content: space-between; }
  .main-nav .mobile-nav-break { display: block; flex: 0 0 100%; height: 0; }
  .section-title { font-size: 1.8rem; }
  .phone-input-row { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .product-card { padding: 14px; }
  .product-img { height: 125px; }
  .product-price-row { align-items: flex-start; flex-direction: column; }
  .cart-table th, .cart-table td { padding: 10px 6px; font-size: .78rem; }
  .footer-inner { gap: 16px; padding: 20px 16px; }
  .footer-top { align-items: flex-start; flex-wrap: wrap; }
  .footer-links { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links a { overflow-wrap: anywhere; text-align: center; }
  .footer-links .cookie-settings-trigger { width: 100%; }
  .cookie-consent { align-items: stretch; flex-direction: column; gap: 12px; padding: 16px; }
  .cookie-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-consent-actions button { padding: 8px 6px; }
  .checkout-actions { grid-template-columns: 1fr; }
  .whatsapp-float { right: 16px; bottom: 16px; padding: 10px; }
  .whatsapp-float .w-label { display: none; }
}
