/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== ROOT ===== */
:root {
  --bg: #08111f;
  --card: #ffffff;
  --text: #ffffff;
  --muted: #c9d4e7;
  --dark-text: #111827;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --gold: #fbbf24;
  --hot-bg: #f59e0b;
  --hot-text: #ffffff;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 12px 30px rgba(0,0,0,0.25);

  --cart-panel-bg: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  --cart-panel-border: rgba(15, 23, 42, 0.08);
  --cart-panel-shadow: -18px 0 60px rgba(2, 8, 23, 0.28);
  --cart-soft: #eef4ff;
  --cart-title: #0f172a;
  --cart-muted: #64748b;
  --cart-line: #e2e8f0;
  --floating-cart-start: #2563eb;
  --floating-cart-end: #1d4ed8;
  --floating-wa-start: #22c55e;
  --floating-wa-end: #16a34a;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top, #17346f 0%, #0c1830 35%, #08111f 100%);
  color: var(--text);
  line-height: 1.5;
}

body.cart-open {
  overflow: hidden;
}

a {
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

/* ===== HEADER STICKY FINAL ===== */
header {
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(16px);
  background: rgba(8, 17, 31, 0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s ease;
}

header.scrolled {
  background: rgba(8, 17, 31, 0.98);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand-static {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.logo {
  height: 55px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(1.35);
}

.brand-text h1 {
  font-size: 22px;
  letter-spacing: 1px;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 4px;
  transition: opacity 0.4s ease;
  opacity: 1;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav-row.main-row,
.nav-row.hot-row {
  justify-content: flex-start;
}

.nav-links a,
.cart-btn {
  color: #fff;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: 0.2s ease;
  flex: 0 0 auto;
}

.nav-links a:hover,
.cart-btn:hover {
  background: rgba(255,255,255,0.06);
}

.nav-links a.active {
  background: var(--primary);
  color: #fff;
  font-weight: bold;
}

.nav-links a.hot-link {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-weight: bold;
}

.nav-links a.hot-link:hover {
  background: var(--hot-bg);
  color: var(--hot-text);
  border-color: var(--hot-bg);
}

.cart-btn {
  display: none;
}

.cart-badge {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: bold;
  margin-left: 6px;
  padding: 0 6px;
}

/* ===== HOME ===== */
.page-home .hero {
  padding: 60px 0 30px;
}

.page-home .hero-box {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.page-home .hero-content {
  background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.page-home .badge {
  display: inline-block;
  background: rgba(251,191,36,0.14);
  color: var(--gold);
  border: 1px solid rgba(251,191,36,0.26);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 18px;
}

.page-home .hero h2 {
  font-size: 46px;
  line-height: 1.08;
  margin-bottom: 14px;
}

.page-home .hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
  margin-bottom: 22px;
}

.page-home .hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: bold;
  transition: 0.2s ease;
  border: 0;
  cursor: pointer;
}

.page-home .btn-primary {
  background: var(--accent);
  color: white;
}

.page-home .btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.page-home .btn-secondary {
  background: #1d4ed8;
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
}

.page-home .btn-secondary:hover {
  background: #1e40af;
}

.page-home .hero-points {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.page-home .hero-points-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.page-home .hero-points span {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

.page-home .hero-side {
  display: grid;
  gap: 16px;
}

.page-home .mini-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.page-home .mini-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.page-home .mini-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.page-home .mini-highlight {
  color: var(--gold);
  font-weight: bold;
  font-size: 14px;
}

.page-home .section {
  padding: 20px 0 20px;
}

.page-home .section-title {
  font-size: 30px;
  margin-bottom: 6px;
}

/* ===== PAGE HEAD ===== */
.page-catalog .page-head,
.page-all-products .page-head {
  padding: 24px 0 12px;
}

.page-catalog .page-head h2,
.page-all-products .page-head h2 {
  font-size: 34px;
  margin-bottom: 6px;
}

.page-catalog .page-head p,
.page-all-products .page-head p {
  color: var(--muted);
  font-size: 15px;
}

/* ===== FILTER ===== */
.page-all-products .filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 20px;
}

.page-all-products .filter-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: #fff;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s ease;
}

.page-all-products .filter-btn:hover {
  background: rgba(255,255,255,0.12);
}

.page-all-products .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===== PRODUCTS ===== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px 0 30px;
}

.product-card {
  background: var(--card);
  color: var(--dark-text);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
}

.product-image {
  width: 100%;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.product-image img:active {
  transform: scale(0.985);
}

.product-body {
  padding: 18px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.price {
  font-size: 32px;
  color: var(--primary);
  font-weight: bold;
  line-height: 1;
  margin-bottom: 6px;
}

.months {
  color: #666;
  font-size: 14px;
}

/* ===== BUTTONS ===== */
.page-home .cart-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: bold;
  border: 0;
  cursor: pointer;
  transition: 0.2s ease;
  min-width: 170px;
  font-size: 18px;
}

.page-home .cart-add-btn:hover {
  background: var(--accent-dark);
}

.page-catalog .btn,
.page-all-products .btn {
  background: var(--accent);
  color: #fff;
  padding: 14px 20px;
  border: none;
  border-radius: 16px;
  font-weight: bold;
  cursor: pointer;
  font-size: 18px;
  min-width: 170px;
  transition: 0.2s ease;
}

.page-catalog .btn:hover,
.page-all-products .btn:hover {
  background: var(--accent-dark);
}

/* ===== STATES ===== */
.empty-state,
.loading-state {
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,0.03);
}

/* ===== FOOTER ===== */
footer {
  padding: 36px 0 90px;
  color: var(--muted);
}

.footer-box {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== FLOATING WHATSAPP (DESKTOP) ===== */
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  height: 62px;
  min-width: 62px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--floating-wa-start), var(--floating-wa-end));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 16px 35px rgba(22, 163, 74, 0.35), 0 6px 18px rgba(0,0,0,0.2);
  z-index: 1300;
  cursor: pointer;
  user-select: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.2s ease;
}

.floating-whatsapp::before {
  content: "✆";
  font-size: 18px;
  line-height: 1;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
}

/* ===== FLOATING CART (DESKTOP STYLE) ===== */
.page-home .floating-cart,
.page-catalog .floating-cart,
.page-all-products .floating-cart {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1301;
  height: 62px;
  min-width: 62px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--floating-cart-start), var(--floating-cart-end));
  color: #fff;
  box-shadow: 0 16px 35px rgba(29, 78, 216, 0.35), 0 6px 18px rgba(0,0,0,0.2);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.2s ease;
}

.floating-cart-icon {
  font-size: 18px;
  line-height: 1;
}

.floating-cart-label {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.page-home .floating-cart span#count,
.page-catalog .floating-cart span#count,
.page-all-products .floating-cart span#count {
  font-size: 14px;
  line-height: 1;
  background: rgba(255,255,255,0.16);
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

/* ===== CART OVERLAY ===== */
.cart-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, 0.58);
  backdrop-filter: blur(3px);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.cart-panel-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ===== CART PANEL ===== */
.cart-panel {
  position: fixed;
  top: 0;
  right: -520px;
  width: min(92vw, 460px);
  height: 100vh;
  background: var(--cart-panel-bg);
  color: var(--cart-title);
  z-index: 1401;
  box-shadow: var(--cart-panel-shadow);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--cart-panel-border);
}

.cart-panel.open {
  right: 0;
}

/* ===== CART HEADER ===== */
.cart-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--cart-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, rgba(37,99,235,0.06), rgba(255,255,255,0.5));
  backdrop-filter: blur(12px);
}

.cart-header h3 {
  font-size: 24px;
  line-height: 1.1;
  color: var(--cart-title);
  letter-spacing: 0.2px;
}

.cart-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.cart-close:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* ===== TABS ===== */
.cart-tabs-wrap {
  padding: 10px 14px 0;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--cart-line);
}

.cart-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cart-tab-btn {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.16);
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  cursor: pointer;
  transition: 0.18s ease;
  padding: 0 10px;
}

.cart-tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(37,99,235,0.22);
}

/* ===== CART ITEMS ===== */
.cart-items {
  flex: 1;
  overflow: auto;
  padding: 16px 18px 18px;
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(248,250,252,0.65));
}

.cart-items::-webkit-scrollbar {
  width: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.cart-empty-block {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cart-muted);
  gap: 10px;
  border: 1px dashed rgba(100, 116, 139, 0.22);
  border-radius: 24px;
  background: rgba(255,255,255,0.55);
  padding: 28px 18px;
}

.cart-empty-icon {
  font-size: 44px;
  line-height: 1;
}

.cart-empty-title {
  color: var(--cart-title);
  font-size: 20px;
  font-weight: 800;
}

.cart-empty-text {
  color: var(--cart-muted);
  font-size: 14px;
}

/* ===== SELECT LIST ===== */
.cart-list-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.select-all-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.selected-counter {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.cart-list-grid {
  display: grid;
  gap: 12px;
}

.cart-item-line {
  display: grid;
  grid-template-columns: 26px 78px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  padding: 12px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cart-item-line:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.line-check-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.line-check-wrap input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.line-check-ui {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: #fff;
  display: inline-block;
  position: relative;
}

.line-check-wrap input:checked + .line-check-ui {
  background: var(--primary);
  border-color: var(--primary);
}

.line-check-wrap input:checked + .line-check-ui::after {
  content: "✓";
  position: absolute;
  inset: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.line-image-btn {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #e8eef7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
}

.line-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  display: block;
}

.line-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.line-title {
  color: var(--cart-title);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
}

.line-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: var(--cart-soft);
  border-radius: 999px;
  padding: 4px;
}

.qty-arrow {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.qty-number {
  min-width: 28px;
  text-align: center;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

/* ===== FOOTER ===== */
.cart-footer {
  border-top: 1px solid var(--cart-line);
  padding: 16px 18px 20px;
  display: grid;
  gap: 12px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.05);
}

.cart-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-action-btn {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  user-select: none;
}

.cart-action-btn:hover {
  transform: translateY(-1px);
}

.cart-action-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 14px 28px rgba(22,163,74,0.24);
}

.cart-action-btn-secondary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 14px 28px rgba(37,99,235,0.22);
}

.cart-action-btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 14px 28px rgba(239,68,68,0.24);
}

.send-order-btn {
  display: none;
}

/* ===== ORDERS ===== */
.orders-list-wrap {
  display: grid;
  gap: 12px;
}

.order-card-item {
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 10px;
}

.order-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.order-date {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.order-status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pending {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.status-delivered {
  background: rgba(22,163,74,0.12);
  color: #166534;
}

.status-cancelled {
  background: rgba(239,68,68,0.12);
  color: #b91c1c;
}

.order-offers-list {
  display: grid;
  gap: 4px;
}

.order-offer-name {
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
}

.order-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-small-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.order-track-btn {
  background: #eff6ff;
  color: #1d4ed8;
}

.order-cancel-btn {
  background: #fef2f2;
  color: #dc2626;
}

.order-cancelled-btn,
.order-disabled-btn {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

/* ===== IMAGE VIEWER ===== */
.global-image-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.global-image-viewer.active {
  opacity: 1;
  pointer-events: auto;
}

.global-image-viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.global-image-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* ===== AUTH MODAL ===== */
.auth-modal-global {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2300;
  opacity: 0;
  visibility: hidden;
  transition: 0.24s ease;
  padding: 18px;
}

.auth-modal-global.active {
  opacity: 1;
  visibility: visible;
}

.auth-box-global {
  width: min(92vw, 460px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 26px;
  padding: 24px;
  position: relative;
  color: #111827;
  box-shadow: 0 22px 54px rgba(0,0,0,0.28);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.auth-close-global {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: #eef2ff;
  color: #0f172a;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
}

.auth-box-global h3 {
  font-size: 26px;
  margin-bottom: 6px;
  color: #0f172a;
}

.auth-subtitle-global {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 16px;
}

.auth-option-global,
.auth-submit-global,
.auth-signout-global {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #111827;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
  padding: 0 14px;
}

.auth-submit-global {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: 0;
}

.auth-signout-global {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: 0;
}

.auth-user-box-title {
  font-size: 14px;
  color: #64748b;
  margin-top: 12px;
}

.auth-user-box-name {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin-top: 6px;
}

/* ===== CUSTOMER AUTH SYSTEM ===== */
.customer-auth-shell {
  width: 100%;
  margin-top: 4px;
}

.customer-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.customer-auth-tab {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #dbe4f0;
  background: #f8fbff;
  color: #475569;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.customer-auth-tab.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(37,99,235,0.18);
}

.customer-auth-view {
  display: block;
}

.customer-auth-headline {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}

.customer-auth-note {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.customer-auth-field {
  margin-bottom: 14px;
}

.customer-auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.customer-auth-input,
.customer-auth-select {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #0f172a;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  transition: 0.2s ease;
}

.customer-auth-input:focus,
.customer-auth-select:focus {
  border-color: rgba(37,99,235,0.7);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}

.customer-auth-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 10px;
}

.customer-auth-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  transition: 0.2s ease;
}

.customer-auth-btn:hover {
  transform: translateY(-1px);
}

.customer-auth-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37,99,235,0.18);
}

.customer-auth-btn-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 14px 28px rgba(22,163,74,0.18);
}

.customer-auth-btn-secondary {
  background: #eef2f7;
  color: #334155;
}

.customer-auth-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 14px 28px rgba(239,68,68,0.18);
}

.customer-auth-verify-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.customer-auth-user-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fbff;
  padding: 14px;
  margin-bottom: 14px;
}

.customer-auth-user-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.customer-auth-user-line + .customer-auth-user-line {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.customer-auth-user-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.customer-auth-message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.7;
  display: none;
}

.customer-auth-message.show {
  display: block;
}

.customer-auth-message.info {
  background: rgba(37,99,235,0.10);
  color: #1d4ed8;
  border: 1px solid rgba(37,99,235,0.18);
}

.customer-auth-message.success {
  background: rgba(34,197,94,0.10);
  color: #15803d;
  border: 1px solid rgba(34,197,94,0.18);
}

.customer-auth-message.error {
  background: rgba(239,68,68,0.10);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.18);
}

/* ===== MOBILE APP BAR ===== */
.mobile-app-bar-global {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: calc(100% - 18px);
  max-width: 480px;
  min-height: 68px;
  padding: 8px 6px;
  border-radius: 24px;
  background: rgba(8, 17, 31, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: 4px;
  z-index: 1800;
  box-shadow: 0 16px 40px rgba(0,0,0,0.32);
}

.mobile-app-item {
  min-width: 0;
  width: 100%;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
  cursor: pointer;
  padding: 6px 4px;
}

.mobile-app-item.active {
  color: #22c55e;
}

.mobile-app-icon {
  font-size: 18px;
  line-height: 1;
}

.mobile-app-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-app-badge {
  position: absolute;
  top: 2px;
  right: 12px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.mobile-app-lang-wrap {
  min-width: 0;
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-language-select {
  width: 100%;
  max-width: 62px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  color: #fff;
  text-align: center;
  text-align-last: center;
  font-size: 12px;
  font-weight: 800;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.mobile-language-select option {
  color: #111827;
  background: #fff;
}

/* ===== CONFIRM MODAL ===== */
.global-confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2400;
  opacity: 0;
  visibility: hidden;
  transition: 0.24s ease;
}

.global-confirm-modal.active {
  opacity: 1;
  visibility: visible;
}

.global-confirm-box {
  width: min(92vw, 360px);
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  color: #111827;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
}

.global-confirm-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
}

.global-confirm-text {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.global-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.confirm-btn {
  min-height: 46px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.confirm-cancel-btn {
  background: #f1f5f9;
  color: #334155;
}

.confirm-ok-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

.confirm-ok-btn.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* ===== TOAST ===== */
.global-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(17, 24, 39, 0.95);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  z-index: 2600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}

.global-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== ANIMATIONS ===== */
.cart-pulse {
  animation: cartPulse 0.36s ease;
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.btn:active,
.cart-btn:active,
.cart-action-btn:active,
.order-small-btn:active,
.floating-cart:active,
.floating-whatsapp:active,
.mobile-app-item:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.35);
  }
}

/* ===== IMAGE OPEN: HIDE HEADER/BARS ===== */
body.image-open header,
body.image-open .floating-cart,
body.image-open .floating-whatsapp,
body.image-open .mobile-app-bar-global {
  display: none !important;
}

/* ===== DESKTOP ===== */
@media (min-width: 900px) {
  .nav {
    flex-wrap: nowrap;
  }

  .nav-links {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .nav-row {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .nav-row.main-row,
  .nav-row.hot-row {
    justify-content: flex-start;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-image {
    height: 360px;
  }

  .cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .floating-whatsapp {
    display: inline-flex;
  }

  .page-home .floating-cart,
  .page-catalog .floating-cart,
  .page-all-products .floating-cart {
    display: inline-flex;
  }

  .mobile-app-bar-global {
    display: none !important;
  }
}

/* ===== TABLET ===== */
@media (max-width: 900px) {
  .page-home .hero-box {
    grid-template-columns: 1fr;
  }

  .page-home .hero h2 {
    font-size: 38px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  body {
    padding-bottom: 88px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-home .hero {
    padding-top: 34px;
  }

  .page-home .hero-content,
  .page-home .mini-card {
    padding: 22px;
  }

  .page-catalog .page-head,
  .page-all-products .page-head {
    padding: 18px 0 10px;
  }

  .page-home .hero h2 {
    font-size: 32px;
  }

  .page-home .section-title {
    font-size: 26px;
  }

  .page-catalog .page-head h2,
  .page-all-products .page-head h2 {
    font-size: 28px;
  }

  .price {
    font-size: 28px;
  }

  .logo {
    height: 42px;
  }

  .brand-text span {
    white-space: normal;
  }

  .nav-links a,
  .cart-btn {
    font-size: 12px;
    padding: 7px 8px;
  }

  .page-home .hero-points-row {
    justify-content: center;
    gap: 8px;
  }

  .page-home .hero-points span {
    font-size: 12px;
    padding: 8px 10px;
  }

  .product-image {
    height: 340px;
  }

  .page-home .cart-add-btn,
  .page-catalog .btn,
  .page-all-products .btn {
    min-width: 140px;
    padding: 13px 16px;
    font-size: 16px;
  }

  .floating-whatsapp,
  .page-home .floating-cart,
  .page-catalog .floating-cart,
  .page-all-products .floating-cart {
    display: none !important;
  }

  .cart-panel {
    top: 8px;
    right: calc(-100% - 24px);
    width: calc(100% - 8px);
    max-width: calc(100% - 8px);
    height: calc(100vh - 8px);
    border-radius: 22px 0 0 22px;
    border-left: 1px solid var(--cart-panel-border);
    border-top: 1px solid var(--cart-panel-border);
    border-bottom: 1px solid var(--cart-panel-border);
  }

  .cart-panel.open {
    right: 0;
  }

  .cart-header {
    padding: 18px 16px 14px;
  }

  .cart-header h3 {
    font-size: 22px;
  }

  .cart-tabs-wrap {
    padding: 10px 12px 0;
  }

  .cart-tab-btn {
    font-size: 12px;
    min-height: 42px;
    border-radius: 12px;
  }

  .cart-items {
    padding: 14px 14px 16px;
    gap: 12px;
  }

  .cart-item-line {
    grid-template-columns: 24px 68px 1fr;
    border-radius: 18px;
    padding: 10px;
    gap: 10px;
  }

  .line-image-btn {
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }

  .line-title {
    font-size: 13px;
  }

  .line-qty {
    gap: 8px;
  }

  .qty-arrow {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .qty-number {
    font-size: 13px;
  }

  .cart-footer {
    padding: 14px 14px 18px;
    gap: 10px;
  }

  .cart-action-btn {
    min-height: 48px;
    font-size: 13px;
    border-radius: 14px;
  }

  .order-card-item {
    border-radius: 16px;
    padding: 12px;
  }

  .order-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .global-image-close {
    top: 14px;
    right: 14px;
  }

  .mobile-app-bar-global {
    display: grid;
  }

  .mobile-app-item,
  .mobile-app-lang-wrap {
    min-width: 0;
  }

  .mobile-app-label {
    max-width: 100%;
  }

  .mobile-language-select {
    max-width: 58px;
    height: 42px;
    font-size: 11px;
    border-radius: 14px;
  }

  .global-toast {
    bottom: 92px;
    font-size: 13px;
    padding: 11px 16px;
    max-width: calc(100vw - 28px);
    text-align: center;
    white-space: normal;
  }

  /* ===== MOBILE ONLY: HIDE UI WHEN CART OPEN ===== */
  body.cart-open header,
  body.cart-open .floating-cart,
  body.cart-open .floating-whatsapp,
  body.cart-open .mobile-app-bar-global {
    display: none !important;
  }
}
