:root {
  --navy: #0B1C3D;
  --navy-dark: #081530;
  --gold: #D9A441;
  --gold-light: #F0C866;
  --gold-dark: #B9852A;
  --bg: #F6F7FB;
  --card: #FFFFFF;
  --text-dark: #1C2437;
  --text-muted: #7C8497;
  --success: #2FAE60;
  --pending: #F2A93B;
  --danger: #E0503C;
  --shipped: #3B82C4;
  --line: rgba(11, 28, 61, 0.08);
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

#chrome, #app {
  width: 100%;
  overflow-x: hidden;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6, .brand-text, .btn, .navbar-brand {
  font-family: 'Poppins', sans-serif;
}

a { text-decoration: none; }

/* ===== Site header / navbar ===== */
.site-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.brand-badge {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border-radius: 8px;
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}
.brand-text {
  color: var(--gold-light);
  font-weight: 700;
  font-style: italic;
  font-size: 19px;
}
.navbar-toggler { border: none; padding: 4px; box-shadow: none !important; }
.site-nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px !important;
  border-radius: 8px;
}
.site-nav-link:hover, .site-nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.08);
}
.icon-btn {
  color: #fff;
  font-size: 20px;
  position: relative;
  background: none;
  border: none;
  display: inline-flex;
}
.cart-badge {
  position: absolute;
  top: -6px; right: -9px;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
}
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--navy-dark);
    border-radius: 12px;
    padding: 14px;
  }
}

/* ===== Site footer ===== */
.site-footer {
  background: var(--navy-dark);
  padding: 44px 0 24px;
  margin-top: 56px;
}
.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.footer-link {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-bottom: 8px;
}
.footer-link:hover { color: var(--gold-light); }

/* ===== Shared layout ===== */
.page-container { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
@media (min-width: 1400px) { .page-container { max-width: 1320px; } }
.section-eyebrow {
  font-weight: 700; color: var(--text-muted); letter-spacing: 1px;
  font-size: 12px; text-transform: uppercase;
}
.see-all-link {
  font-size: 12px; font-weight: 700; color: var(--gold-dark);
  display: inline-flex; align-items: center; gap: 2px;
}
.search-bar .form-control, .search-bar .input-group-text {
  border-radius: 12px; padding: 12px 14px; border-color: var(--line);
}
.search-bar .input-group-text { border-radius: 12px 0 0 12px; }
.search-bar .form-control { border-radius: 0 12px 12px 0; }
.search-bar .form-control:focus { border-color: var(--gold); box-shadow: none; }
.glosco-card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(11,28,61,0.05);
}

/* ===== Auth screens ===== */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy), var(--navy-dark));
  padding: 24px 16px;
  position: relative;
}
.auth-back-btn {
  position: absolute;
  top: 20px; left: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.auth-back-btn:hover { background: rgba(255,255,255,0.22); }
.auth-card {
  width: 100%; max-width: 400px;
  background: #fff;
  border-radius: 18px;
  padding: 34px 28px;
}
.auth-logo-badge {
  width: 74px; height: 74px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.auth-logo-badge .diamond {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border-radius: 10px;
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* ===== Buttons ===== */
.btn-glosco {
  background: var(--gold); border-color: var(--gold); color: var(--navy);
  font-weight: 700; border-radius: 10px; padding: 11px 20px;
}
.btn-glosco:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--navy); }
.btn-outline-navy {
  border: 1.2px solid var(--navy); color: var(--navy); font-weight: 600; border-radius: 10px;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.form-control, .form-select {
  border-radius: 10px; padding: 11px 14px; border-color: var(--line);
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(217,164,65,0.18);
}

/* ===== Hero section (real website hero, not an app banner) ===== */
.hero-section {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  padding: 56px 0 64px;
}
.hero-title {
  color: #fff;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 14px;
}
@media (min-width: 768px) { .hero-title { font-size: 42px; } }
.hero-subtitle {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  max-width: 560px;
  margin: 0 auto 28px;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 16px; } }
.hero-search { max-width: 600px; margin: 0 auto; }
.search-bar-lg .form-control, .search-bar-lg .input-group-text { padding: 13px 16px; }
.search-bar-lg .btn { border-radius: 0 12px 12px 0; padding: 0 22px; }

/* ===== Trust strip (why choose us) ===== */
.trust-strip { padding: 28px 0; background: #fff; border-bottom: 1px solid var(--line); }
.trust-badge {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--text-dark);
}
.trust-badge i { color: var(--gold-dark); font-size: 20px; flex-shrink: 0; }

.section-title { font-weight: 700; font-size: 20px; color: var(--navy); }

/* Horizontally-scrollable rows (filter chips). min-width:0 is essential
   here — without it, a flex item refuses to shrink below its content's
   natural width and can silently push the whole page wider than the
   viewport, which is what causes a page-level horizontal scroll. */
.scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.scroll-row::-webkit-scrollbar { height: 5px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* Filter chips (category quick-filter on the All Products section) */
.filter-chip {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ===== Dedicated Categories page ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}
@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
}
.category-card {
  text-decoration: none; color: inherit;
  padding: 20px 14px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(11,28,61,0.1); }
.category-card-thumb {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 26px; overflow: hidden;
}
.category-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-card-name { font-weight: 600; font-size: 13px; }
.category-card-count { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ===== Product grid — CSS Grid with auto-fill scales smoothly across every
   screen width instead of jumping between fixed Bootstrap breakpoints,
   so it looks intentional on everything from a small phone to an
   ultra-wide monitor. */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
@media (min-width: 576px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
}
@media (min-width: 1400px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
}

/* ===== Product cards ===== */
.product-card {
  text-decoration: none; color: inherit; display: block; height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(11,28,61,0.1);
}
.product-card .thumb-wrap {
  aspect-ratio: 1 / 0.85;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border-radius: 14px 14px 0 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 30px; overflow: hidden;
}
.product-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card .product-info { padding: 10px 12px; }
.product-card .product-name {
  font-size: 13px; font-weight: 600; margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card .product-category {
  font-size: 10px; color: var(--text-muted); margin-bottom: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card .product-price { color: var(--gold-dark); font-weight: 700; font-size: 13px; }

/* Skeleton loading placeholders while the full catalog loads */
.skeleton-card { overflow: hidden; }
.skeleton-block {
  background: linear-gradient(90deg, #EEF0F5 25%, #F7F8FB 37%, #EEF0F5 63%);
  background-size: 400% 100%;
  animation: skeletonShine 1.4s ease infinite;
  border-radius: 6px;
}
@keyframes skeletonShine {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ===== Product detail ===== */
.pv-hero {
  width: 220px; height: 220px; margin: 0 auto;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 70px; position: relative;
}
@media (min-width: 768px) { .pv-hero { width: 280px; height: 280px; font-size: 90px; } }
.pv-hero img { width: 100%; height: 100%; object-fit: cover; }
.pv-hero .size-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: var(--navy);
  font-weight: 800; font-size: 12px;
  padding: 4px 8px; border-radius: 6px;
}
.feature-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(47,174,96,0.08); color: var(--success);
  padding: 5px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.variant-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  cursor: pointer; margin-bottom: 10px; background: #fff;
}
.variant-row.selected { border-color: var(--navy); border-width: 1.4px; background: rgba(11,28,61,0.04); }
.variant-thumb {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  display: flex; align-items: center; justify-content: center; color: var(--gold);
  overflow: hidden;
}
.variant-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Cart ===== */
.cart-tile { display: flex; gap: 12px; padding: 12px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 6px; border: none;
  background: rgba(11,28,61,0.06); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-summary-bar {
  position: sticky; bottom: 0;
  background: #fff; border-top: 1px solid var(--line);
  padding: 14px 16px; margin: 0 -16px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
}

/* ===== Status pills ===== */
.status-pill { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; display: inline-block; }
.status-pending { background: rgba(242,169,59,0.14); color: var(--gold-dark); }
.status-shipped { background: rgba(59,130,196,0.14); color: var(--shipped); }
.status-delivered { background: rgba(47,174,96,0.14); color: var(--success); }
.status-cancelled { background: rgba(224,80,60,0.14); color: var(--danger); }

/* ===== Account ===== */
.account-avatar {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: var(--navy);
}

/* ===== Loading / empty / error states ===== */
.state-block { text-align: center; padding: 60px 20px; color: var(--text-muted); grid-column: 1 / -1; }
.state-block i { font-size: 48px; margin-bottom: 12px; display: block; }

/* ===== Entrance animation ===== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeSlideUp .5s ease-out both; }
.animate-in.delay-1 { animation-delay: .08s; }
.animate-in.delay-2 { animation-delay: .16s; }
.animate-in.delay-3 { animation-delay: .24s; }
