/* 
=========================================================
  SiriusGo Premium Theme v2.0
=========================================================
  Exact match to design mockups
  Background: Lavender #eef0f8
  Primary: Deep Blue #3b6ff1
  Accent Orange: #e87c22
=========================================================
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ====== RESET & ROOT ====== */
:root {
  --sg-bg:           #eef0f8;   /* page background lavender */
  --sg-blue:         #3b6ff1;   /* primary buttons */
  --sg-blue-dark:    #2a5bdc;
  --sg-orange:       #e87c22;   /* prices, accents */
  --sg-green:        #22c55e;   /* stock / delivery */
  --sg-green-bg:     #dcfce7;
  --sg-red:          #ef4444;
  --sg-red-bg:       #fee2e2;
  --sg-yellow:       #f59e0b;   /* stars */
  --sg-white:        #ffffff;
  --sg-text:         #1a1f36;
  --sg-muted:        #6b7280;
  --sg-border:       #e5e7eb;
  --sg-card-shadow:  0 2px 12px rgba(80,100,180,0.10);
  --sg-pill:         9999px;
  --sg-r-sm:         8px;
  --sg-r-md:         12px;
  --sg-r-lg:         16px;
  --sg-r-xl:         20px;
  --sg-whatsapp:     #25d366;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif !important;
  background-color: var(--sg-bg) !important;
  color: var(--sg-text);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Inter', sans-serif !important;
}

a { text-decoration: none; }

/* ====== HEADER TOP BAR ====== */
.sg-topbar {
  background: var(--sg-white);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sg-border);
  position: sticky;
  top: 0;
  z-index: 999;
}
.sg-topbar-left { display: flex; align-items: center; gap: 12px; }
.sg-topbar-center { flex: 1; text-align: center; }
.sg-topbar-right { display: flex; align-items: center; gap: 16px; }

.sg-logo { height: 36px; object-fit: contain; }

.sg-hamburger {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; padding: 4px;
}
.sg-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--sg-text); border-radius: 2px;
}

.sg-icon-btn {
  position: relative;
  color: var(--sg-text);
  font-size: 22px;
  display: flex; align-items: center;
  background: none; border: none; cursor: pointer; padding: 0;
}
.sg-icon-btn .sg-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--sg-blue); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: var(--sg-pill);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* country selector */
.sg-country {
  text-align: center;
  font-size: 14px; font-weight: 600;
  color: var(--sg-blue);
  padding: 6px 0 2px;
  cursor: pointer;
}
.sg-country i { margin: 0 4px; }

/* Search bar */
.sg-search-wrap {
  padding: 6px 16px 12px;
  background: var(--sg-white);
  border-bottom: 1px solid var(--sg-border);
}
.sg-search-inner {
  position: relative;
  display: flex; align-items: center;
}
.sg-search-inner input {
  width: 100%;
  background: var(--sg-bg);
  border: 1.5px solid var(--sg-border);
  border-radius: var(--sg-pill);
  padding: 10px 44px 10px 42px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  color: var(--sg-text);
}
.sg-search-inner input:focus {
  border-color: var(--sg-blue);
  box-shadow: 0 0 0 3px rgba(59,111,241,.12);
  background: #fff;
}
.sg-search-icon-left {
  position: absolute; left: 14px;
  color: var(--sg-muted); font-size: 15px;
  pointer-events: none;
}
.sg-search-icon-right {
  position: absolute; right: 14px;
  color: var(--sg-muted); font-size: 16px;
  cursor: pointer;
}
.sg-search-inner input::placeholder { color: #9ca3af; }

/* ====== HERO BANNER ====== */
.sg-hero-banner {
  background: linear-gradient(135deg, #3b6ff1 0%, #1e88e5 50%, #29b6f6 100%);
  border-radius: var(--sg-r-xl);
  margin: 14px 12px;
  padding: 24px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex; align-items: center;
}
.sg-hero-banner h2 {
  font-size: 24px; font-weight: 800;
  color: #fff; margin: 0 0 6px;
  line-height: 1.2;
}
.sg-hero-banner p {
  font-size: 13px; color: rgba(255,255,255,0.85);
  margin: 0 0 16px;
}
.sg-hero-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sg-white);
  color: var(--sg-blue);
  font-weight: 700; font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--sg-pill);
  border: none; cursor: pointer;
  transition: all .2s;
}
.sg-hero-btn:hover { background: #e0e7ff; }

/* ====== SECTION HEADERS ====== */
.sg-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 8px;
}
.sg-section-title {
  font-size: 17px; font-weight: 700;
  color: var(--sg-text);
  display: flex; align-items: center; gap: 6px;
}
.sg-section-title i { color: var(--sg-yellow); }
.sg-view-all {
  font-size: 13px; font-weight: 600;
  color: var(--sg-blue); cursor: pointer;
}

/* ====== CATEGORY PILLS ====== */
.sg-cats-row {
  display: flex; gap: 10px;
  overflow-x: auto; padding: 4px 16px 12px;
  -ms-overflow-style: none; scrollbar-width: none;
  flex-wrap: nowrap;
}
.sg-cats-row::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .sg-cats-row {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding: 4px 24px 16px;
  }
}

.sg-cat-pill {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center;
  background: var(--sg-white);
  border-radius: var(--sg-r-lg);
  padding: 12px 10px;
  min-width: 80px; max-width: 90px;
  box-shadow: var(--sg-card-shadow);
  text-decoration: none;
  border: 1.5px solid var(--sg-border);
  transition: all .25s;
}
.sg-cat-pill:hover {
  border-color: var(--sg-blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(59,111,241,.15);
}
.sg-cat-pill img {
  width: 50px; height: 50px; object-fit: contain; margin-bottom: 8px;
}
.sg-cat-pill span {
  font-size: 12px; font-weight: 600;
  color: var(--sg-text); text-align: center;
  line-height: 1.3;
}

/* ====== PRODUCT CARDS (horizontal scroll / grid) ====== */
.sg-products-row {
  display: flex; gap: 12px;
  overflow-x: auto; padding: 4px 16px 16px;
  -ms-overflow-style: none; scrollbar-width: none;
  flex-wrap: nowrap;
}
.sg-products-row::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .sg-products-row {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding: 4px 24px 16px;
  }
}
.sg-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px; padding: 4px 16px 16px;
}

.sg-product-card {
  background: var(--sg-white);
  border-radius: var(--sg-r-lg);
  box-shadow: var(--sg-card-shadow);
  padding: 10px;
  display: flex; flex-direction: column;
  position: relative;
  min-width: 155px;
  border: 1.5px solid var(--sg-border);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.sg-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(59,111,241,.15);
  border-color: rgba(59,111,241,.25);
}

/* Discount badge top-left */
.sg-badge-discount {
  position: absolute; top: 8px; left: 8px;
  background: var(--sg-red);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; z-index: 2;
}
.sg-badge-green {
  background: var(--sg-green) !important;
}

/* Product image */
.sg-prod-img-wrap {
  width: 100%; aspect-ratio: 1;
  background: var(--sg-bg);
  border-radius: var(--sg-r-md);
  overflow: hidden; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
}
.sg-prod-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.sg-product-card:hover .sg-prod-img-wrap img { transform: scale(1.05); }

.sg-prod-brand { font-size: 10px; font-weight: 700; color: var(--sg-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.sg-prod-name  {
  font-size: 13px; font-weight: 600; color: var(--sg-text);
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  margin-bottom: 4px; line-height: 1.4;
}
.sg-prod-by    { font-size: 11px; color: var(--sg-muted); margin-bottom: 6px; }
.sg-prod-by strong { color: var(--sg-text); }

.sg-prod-price-row {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; margin-bottom: 4px;
}
.sg-prod-price-current {
  font-size: 17px; font-weight: 800; color: var(--sg-text);
}
.sg-prod-price-old {
  font-size: 11px; text-decoration: line-through; color: var(--sg-muted);
}
.sg-prod-badge-inline {
  font-size: 10px; font-weight: 700;
  color: #fff; background: var(--sg-red);
  border-radius: 4px; padding: 1px 5px;
}

.sg-prod-stars { font-size: 11px; color: var(--sg-yellow); margin-bottom: 10px; }
.sg-prod-stars span { color: var(--sg-muted); }

/* Product buy button */
.sg-btn-buy {
  display: block; width: 100%;
  background: var(--sg-blue); color: #fff;
  font-weight: 700; font-size: 13px;
  text-align: center;
  padding: 9px;
  border-radius: var(--sg-pill);
  border: none; cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: auto;
}
.sg-btn-buy:hover { background: var(--sg-blue-dark); transform: scale(1.02); color: #fff; }
.sg-btn-buy.ver-tienda { background: transparent; color: var(--sg-blue); border: 1.5px solid var(--sg-blue); }
.sg-btn-buy.ver-tienda:hover { background: var(--sg-blue); color: #fff; }

/* ====== LOCAL STORES SECTION ====== */
.sg-store-card {
  background: var(--sg-white);
  border-radius: var(--sg-r-lg);
  padding: 14px;
  display: flex; flex-direction: column;
  min-width: 160px;
  box-shadow: var(--sg-card-shadow);
  border: 1.5px solid var(--sg-border);
  transition: all .25s;
}
.sg-store-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59,111,241,.15);
}
.sg-store-card-top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.sg-store-avatar {
  width: 44px; height: 44px; border-radius: var(--sg-r-md);
  object-fit: cover; flex-shrink: 0;
}
.sg-store-name { font-size: 14px; font-weight: 700; color: var(--sg-text); }
.sg-store-rating { font-size: 12px; color: var(--sg-yellow); }
.sg-store-meta { font-size: 12px; color: var(--sg-muted); margin-bottom: 10px; }
.sg-btn-store {
  display: block;
  background: var(--sg-blue); color: #fff;
  text-align: center; font-weight: 700; font-size: 13px;
  padding: 9px; border-radius: var(--sg-pill);
  border: none; cursor: pointer; transition: background .2s;
}
.sg-btn-store:hover { background: var(--sg-blue-dark); color: #fff; }

/* ====== CART PAGE ====== */
.sg-cart-title {
  font-size: 20px; font-weight: 800; color: var(--sg-text);
  padding: 20px 16px 4px;
}
.sg-cart-subtitle {
  font-size: 13px; color: var(--sg-muted);
  padding: 0 16px 16px;
}

/* Store group in cart */
.sg-cart-store-header {
  background: var(--sg-white);
  border-radius: var(--sg-r-lg) var(--sg-r-lg) 0 0;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--sg-border);
}
.sg-cart-store-logo {
  width: 40px; height: 40px; border-radius: 10px;
  object-fit: cover; margin-right: 10px;
}
.sg-cart-store-name { font-size: 15px; font-weight: 700; color: var(--sg-text); }
.sg-cart-store-rating { font-size: 12px; color: var(--sg-yellow); }
.sg-btn-ver-tienda {
  font-size: 13px; font-weight: 600; color: var(--sg-text);
  border: 1.5px solid var(--sg-border);
  border-radius: var(--sg-pill);
  padding: 5px 14px;
  background: var(--sg-white);
  white-space: nowrap;
  cursor: pointer; transition: all .2s;
}
.sg-btn-ver-tienda:hover { border-color: var(--sg-blue); color: var(--sg-blue); }

/* Cart product row */
.sg-cart-item {
  background: var(--sg-white);
  padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
  border-bottom: 1px solid var(--sg-bg);
}
.sg-cart-item-img {
  width: 90px; height: 90px; flex-shrink: 0;
  border-radius: var(--sg-r-md); object-fit: cover;
  background: var(--sg-bg);
}
.sg-cart-item-info { flex: 1; min-width: 0; }
.sg-cart-item-name { font-size: 14px; font-weight: 700; color: var(--sg-text); margin-bottom: 2px; }
.sg-cart-item-desc { font-size: 12px; color: var(--sg-muted); margin-bottom: 6px; }
.sg-cart-item-price { font-size: 18px; font-weight: 800; color: var(--sg-text); margin-bottom: 6px; }
.sg-stock-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--sg-green-bg); color: var(--sg-green);
  font-size: 11px; font-weight: 600;
  border-radius: var(--sg-pill); padding: 3px 10px;
}
.sg-cart-item-heart {
  color: var(--sg-muted); font-size: 16px;
  cursor: pointer; padding: 2px;
  flex-shrink: 0;
}

/* Quantity control */
.sg-qty-control {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--sg-border);
  border-radius: var(--sg-pill);
  overflow: hidden; margin-top: 10px;
  width: fit-content;
}
.sg-qty-btn {
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  color: var(--sg-text);
  transition: background .15s;
}
.sg-qty-btn:hover { background: var(--sg-bg); }
.sg-qty-val {
  min-width: 30px; text-align: center;
  font-size: 14px; font-weight: 700; color: var(--sg-text);
  border: none; border-left:1.5px solid var(--sg-border); border-right:1.5px solid var(--sg-border);
  height: 32px; line-height: 32px; padding: 0 6px;
  outline: none;
}
.sg-cart-delete {
  font-size: 13px; font-weight: 600; color: var(--sg-red);
  cursor: pointer; display: block; margin-top: 8px;
  background: none; border: none;
}

/* Cart footer (subtotal + WA btn) */
.sg-cart-footer-row {
  background: var(--sg-white);
  border-radius: 0 0 var(--sg-r-lg) var(--sg-r-lg);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.sg-subtotal { font-size: 15px; font-weight: 600; color: var(--sg-text); }
.sg-subtotal strong { font-weight: 800; }
.sg-btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sg-orange);
  color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: var(--sg-pill);
  border: none; cursor: pointer; transition: all .2s;
}
.sg-btn-whatsapp:hover { background: #cf6a15; color: #fff; }

.sg-cart-secure-note {
  text-align: center;
  font-size: 12px; color: var(--sg-muted);
  padding: 16px; 
}
.sg-cart-secure-note i { margin-right: 4px; }

/* ====== PRODUCT DETAIL PAGE ====== */
.sg-detail-page { background: var(--sg-bg); min-height: 100vh; }

.sg-breadcrumb {
  padding: 12px 16px;
  font-size: 13px; color: var(--sg-muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.sg-breadcrumb a { color: var(--sg-muted); text-decoration: none; }
.sg-breadcrumb a:hover { color: var(--sg-blue); }
.sg-breadcrumb .sep { color: var(--sg-muted); font-size: 11px; }
.sg-breadcrumb .active { color: var(--sg-text); font-weight: 600; }

.sg-detail-cat-title {
  font-size: 26px; font-weight: 800;
  color: var(--sg-orange);
  padding: 0 16px 12px;
}

.sg-detail-img-area {
  background: var(--sg-white);
  border-radius: var(--sg-r-xl);
  margin: 0 12px;
  padding: 20px;
  position: relative;
  box-shadow: var(--sg-card-shadow);
}
.sg-oferta-badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--sg-blue); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 5px 14px; border-radius: var(--sg-r-sm);
  z-index: 3;
}
.sg-detail-main-img {
  width: 100%; max-height: 340px;
  object-fit: contain; border-radius: var(--sg-r-md);
  mix-blend-mode: multiply;
}
.sg-detail-img-counter {
  position: absolute; bottom: 80px; right: 24px;
  background: rgba(0,0,0,.45); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: var(--sg-pill);
}
.sg-thumbnails-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px;
}
.sg-thumb-arrow {
  background: var(--sg-bg); border: 1.5px solid var(--sg-border);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; color: var(--sg-text);
  font-size: 13px; transition: all .2s;
}
.sg-thumb-arrow:hover { background: var(--sg-blue); color: #fff; border-color: var(--sg-blue); }
.sg-thumbs { display: flex; gap: 8px; overflow-x: auto; flex: 1; padding: 2px; -ms-overflow-style: none; scrollbar-width: none; }
.sg-thumbs::-webkit-scrollbar { display: none; }
.sg-thumb {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: var(--sg-r-sm);
  object-fit: cover; cursor: pointer;
  border: 2px solid var(--sg-border);
  transition: border-color .2s;
}
.sg-thumb.active { border-color: var(--sg-blue); }
.sg-thumb:hover { border-color: var(--sg-blue); }

/* Detail info panel */
.sg-detail-info {
  padding: 20px 16px 100px;
}
.sg-detail-brand { font-size: 13px; color: var(--sg-muted); font-weight: 500; margin-bottom: 4px; }
.sg-detail-name { font-size: 22px; font-weight: 800; color: var(--sg-text); margin-bottom: 4px; line-height: 1.25; }
.sg-detail-desc { font-size: 14px; color: var(--sg-muted); margin-bottom: 12px; }
.sg-delivery-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sg-green-bg); color: var(--sg-green);
  font-size: 13px; font-weight: 600;
  border-radius: var(--sg-pill); padding: 5px 14px; margin-bottom: 16px;
}
.sg-detail-price-old { font-size: 14px; text-decoration: line-through; color: var(--sg-muted); margin-bottom: 4px; }
.sg-detail-price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.sg-detail-price { font-size: 32px; font-weight: 900; color: var(--sg-orange); }
.sg-detail-disc-badge {
  background: #fff3e0; color: var(--sg-orange);
  font-size: 13px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--sg-r-sm);
}

.sg-btn-add-cart {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: var(--sg-blue); color: #fff;
  font-weight: 700; font-size: 16px;
  padding: 14px; border-radius: var(--sg-pill);
  border: none; cursor: pointer; transition: all .2s;
  margin-bottom: 12px;
}
.sg-btn-add-cart:hover { background: var(--sg-blue-dark); color: #fff; }

.sg-btn-wa-detail {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: var(--sg-whatsapp); color: #fff;
  font-weight: 700; font-size: 15px;
  padding: 13px; border-radius: var(--sg-pill);
  border: none; cursor: pointer; transition: all .2s;
  margin-bottom: 16px;
}
.sg-btn-wa-detail:hover { background: #1da851; color: #fff; }

/* Provider box */
.sg-provider-box {
  background: var(--sg-white);
  border: 1.5px solid var(--sg-border);
  border-radius: var(--sg-r-lg);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.sg-provider-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--sg-bg); display: flex; align-items: center; justify-content: center;
  color: var(--sg-blue); font-size: 20px; flex-shrink: 0;
}
.sg-provider-name { font-weight: 700; color: var(--sg-text); font-size: 14px; }
.sg-provider-link { font-size: 13px; color: var(--sg-blue); font-weight: 600; }
.sg-provider-arrow { margin-left: auto; color: var(--sg-muted); font-size: 14px; }

/* Detail tabs */
.sg-detail-tabs {
  background: var(--sg-white);
  border-radius: var(--sg-r-xl) var(--sg-r-xl) 0 0;
  margin: 0 0 0 0;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--sg-card-shadow);
}
.sg-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--sg-border);
}
.sg-tab-btn {
  flex: 1; text-align: center;
  padding: 14px 0;
  font-size: 14px; font-weight: 600;
  color: var(--sg-muted); background: none; border: none; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all .2s;
}
.sg-tab-btn.active {
  color: var(--sg-blue);
  border-bottom-color: var(--sg-blue);
}
.sg-tab-content { padding: 20px 16px; display: none; }
.sg-tab-content.active { display: block; }
.sg-tab-content p { font-size: 14px; color: var(--sg-text); line-height: 1.7; margin: 0 0 10px; }
.sg-sku-row { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.sg-sku-label { font-size: 13px; font-weight: 600; color: var(--sg-text); }
.sg-sku-val { font-size: 13px; color: var(--sg-muted); font-family: monospace; }

/* Sticky bottom bar on detail page */
.sg-detail-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--sg-white);
  border-top: 1px solid var(--sg-border);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
  z-index: 998;
  box-shadow: 0 -4px 16px rgba(0,0,0,.07);
}
.sg-sticky-price { flex: 1; }
.sg-sticky-price-val { font-size: 22px; font-weight: 900; color: var(--sg-text); }
.sg-sticky-price-label { font-size: 11px; color: var(--sg-muted); }
.sg-sticky-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--sg-blue); color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 13px 22px; border-radius: var(--sg-pill);
  border: none; cursor: pointer; transition: background .2s;
  white-space: nowrap;
}
.sg-sticky-btn:hover { background: var(--sg-blue-dark); }

/* ====== MI CUENTA MODAL ====== */
.sg-account-modal .modal-content {
  border-radius: var(--sg-r-xl);
  border: none;
  box-shadow: 0 20px 60px rgba(59,111,241,.2);
  overflow: hidden;
}
.sg-account-modal .modal-body { padding: 24px; }

.sg-account-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
.sg-account-title { font-size: 22px; font-weight: 800; color: var(--sg-text); margin: 0 0 4px; }
.sg-account-subtitle { font-size: 13px; color: var(--sg-muted); margin: 0; }
.sg-close-btn {
  background: var(--sg-bg); border: none;
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; color: var(--sg-text);
  flex-shrink: 0;
}

.sg-avatar-section {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.sg-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}
.sg-avatar i { font-size: 36px; color: #fff; }
.sg-avatar-cam {
  position: absolute; bottom: 2px; right: 2px;
  background: var(--sg-blue); color: #fff;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.sg-user-name { font-size: 20px; font-weight: 800; color: var(--sg-text); margin: 0 0 2px; }
.sg-user-since { font-size: 12px; color: var(--sg-muted); margin: 0 0 8px; }
.sg-verified-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--sg-green-bg); color: var(--sg-green);
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--sg-pill);
}

/* Account info sections */
.sg-info-section {
  background: var(--sg-bg);
  border-radius: var(--sg-r-lg);
  overflow: hidden; margin-bottom: 12px;
}
.sg-info-section-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  font-size: 15px; font-weight: 700; color: var(--sg-text);
  background: var(--sg-bg);
}
.sg-info-icon-wrap {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--sg-white);
  display: flex; align-items: center; justify-content: center;
  color: var(--sg-blue); font-size: 16px;
  flex-shrink: 0;
}
.sg-info-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--sg-white);
  border-top: 1px solid var(--sg-bg);
}
.sg-info-row-content { flex: 1; }
.sg-info-row-label { font-size: 12px; color: var(--sg-muted); margin-bottom: 2px; }
.sg-info-row-value { font-size: 15px; font-weight: 600; color: var(--sg-text); }
.sg-edit-btn {
  background: var(--sg-bg); border: 1.5px solid var(--sg-border);
  border-radius: var(--sg-pill);
  padding: 5px 14px;
  font-size: 13px; font-weight: 600; color: var(--sg-text);
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: all .2s;
}
.sg-edit-btn:hover { border-color: var(--sg-blue); color: var(--sg-blue); }

/* Nav rows (Direcciones, Seguridad) */
.sg-nav-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--sg-bg);
  border-radius: var(--sg-r-lg);
  margin-bottom: 10px; cursor: pointer;
  transition: all .2s;
}
.sg-nav-row:hover { background: #e4e6f3; }
.sg-nav-icon-wrap {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.sg-nav-icon-green { background: var(--sg-green-bg); color: var(--sg-green); }
.sg-nav-icon-purple { background: #ede9fe; color: #7c3aed; }
.sg-nav-row-text { flex: 1; }
.sg-nav-row-title { font-size: 15px; font-weight: 700; color: var(--sg-text); margin: 0 0 2px; }
.sg-nav-row-sub { font-size: 12px; color: var(--sg-muted); margin: 0; }
.sg-nav-arrow { color: var(--sg-muted); font-size: 14px; }

/* Logout button */
.sg-logout-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: var(--sg-blue); color: #fff;
  font-weight: 700; font-size: 16px;
  padding: 14px; border-radius: var(--sg-pill);
  border: none; cursor: pointer; transition: background .2s;
  margin-bottom: 12px;
}
.sg-logout-btn:hover { background: var(--sg-blue-dark); }
.sg-secure-note {
  text-align: center; font-size: 12px; color: var(--sg-muted);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* ====== MIS PEDIDOS PAGE ====== */
.sg-orders-tabs {
  display: flex;
  background: var(--sg-white);
  border-bottom: 1px solid var(--sg-border);
  overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
}
.sg-orders-tabs::-webkit-scrollbar { display: none; }
.sg-orders-tab {
  flex: 0 0 auto; text-align: center;
  padding: 14px 20px;
  font-size: 14px; font-weight: 600; color: var(--sg-muted);
  border-bottom: 3px solid transparent; cursor: pointer;
  background: none; border-top: none; border-left: none; border-right: none;
  white-space: nowrap; transition: all .2s;
}
.sg-orders-tab.active { color: var(--sg-blue); border-bottom-color: var(--sg-blue); }

.sg-orders-title {
  padding: 16px;
  font-size: 20px; font-weight: 800; color: var(--sg-text);
}
.sg-orders-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sg-bg); color: var(--sg-text);
  font-size: 14px; font-weight: 700;
  width: 26px; height: 26px; border-radius: 50%;
  margin-left: 8px;
}

/* Order store group */
.sg-order-group {
  background: var(--sg-white);
  border-radius: var(--sg-r-xl);
  margin: 0 12px 16px;
  overflow: hidden;
  box-shadow: var(--sg-card-shadow);
}
.sg-order-store-bar {
  display: flex; align-items: center;
  padding: 14px 16px; gap: 10px;
  border-bottom: 1px solid var(--sg-border);
}
.sg-orders-store-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--sg-bg); display: flex; align-items: center; justify-content: center;
  object-fit: cover; flex-shrink: 0;
}
.sg-orders-store-name { font-size: 16px; font-weight: 800; color: var(--sg-text); margin: 0 0 2px; }
.sg-orders-store-rating { font-size: 12px; color: var(--sg-yellow); }
.sg-active-orders-btn {
  margin-left: auto;
  font-size: 13px; font-weight: 600; color: var(--sg-text);
  border: 1.5px solid var(--sg-border);
  border-radius: var(--sg-pill); padding: 5px 14px;
  background: var(--sg-white); cursor: pointer; white-space: nowrap;
  transition: all .2s;
}
.sg-active-orders-btn:hover { border-color: var(--sg-blue); color: var(--sg-blue); }

/* Individual order item */
.sg-order-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid var(--sg-bg);
}
.sg-order-item-img {
  width: 80px; height: 80px; border-radius: var(--sg-r-md);
  object-fit: cover; flex-shrink: 0; background: var(--sg-bg);
}
.sg-order-item-info { flex: 1; min-width: 0; }
.sg-order-item-name { font-size: 15px; font-weight: 700; color: var(--sg-text); margin-bottom: 4px; }
.sg-order-id { font-size: 13px; color: var(--sg-blue); font-weight: 600; margin-bottom: 10px; }

/* Progress bar for order status */
.sg-order-progress { margin-bottom: 8px; }
.sg-progress-bar-bg {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px; margin-bottom: 6px;
}
.sg-progress-seg {
  height: 5px; border-radius: 3px; background: var(--sg-border);
  transition: background .3s;
}
.sg-progress-seg.done { background: var(--sg-blue); }
.sg-progress-seg.active { background: var(--sg-orange); }
.sg-progress-labels {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.sg-progress-label {
  font-size: 10px; text-align: center; color: var(--sg-muted);
}
.sg-progress-label.active { color: var(--sg-orange); font-weight: 700; }
.sg-progress-label.done { color: var(--sg-blue); font-weight: 600; }

/* Order status badge */
.sg-order-status-confirmed {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--sg-orange); font-size: 13px; font-weight: 600;
  margin-bottom: 12px;
}
.sg-order-status-confirmed i { color: var(--sg-orange); }

/* Order action buttons */
.sg-order-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-btn-tracking {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sg-blue); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--sg-pill);
  border: none; cursor: pointer; transition: background .2s;
}
.sg-btn-tracking:hover { background: var(--sg-blue-dark); }
.sg-btn-contact-store {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sg-white); color: var(--sg-text);
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--sg-pill);
  border: 1.5px solid var(--sg-border); cursor: pointer; transition: all .2s;
}
.sg-btn-contact-store:hover { border-color: var(--sg-blue); color: var(--sg-blue); }

.sg-order-subtotal {
  padding: 12px 16px;
  font-size: 14px; font-weight: 600; color: var(--sg-text);
  border-top: 1px solid var(--sg-border);
}
.sg-order-subtotal strong { font-weight: 800; }

/* ====== SEARCH BAR IN HEADER ====== */
.search-bar-premium {
  width: 100%;
  background: var(--sg-bg);
  border: 1.5px solid var(--sg-border);
  border-radius: var(--sg-pill);
  padding: 10px 44px 10px 42px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; outline: none;
  transition: all .2s;
}
.search-bar-premium:focus {
  border-color: var(--sg-blue);
  box-shadow: 0 0 0 3px rgba(59,111,241,.12);
  background: #fff;
}

/* BACKWARD COMPAT aliases */
.btn-sirius-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--sg-blue); color: #fff;
  font-weight: 700; font-size: 15px;
  padding: 13px; border-radius: var(--sg-pill);
  border: none; cursor: pointer; transition: background .2s;
  text-align: center;
}
.btn-sirius-primary:hover { background: var(--sg-blue-dark); color: #fff; }
.sirius-card {
  background: var(--sg-white);
  border-radius: var(--sg-r-xl);
  box-shadow: var(--sg-card-shadow);
  overflow: hidden;
}
.premium-cat-pill { display: none; } /* replaced by sg-cat-pill */

    }
  }
}
