/* GlowCart global styles — mobile-first responsive */
:root {
  --gc-primary: #c2185b;        /* dark pink */
  --gc-primary-dark: #8e1252;   /* deep dark pink */
  --gc-secondary: #ffe9f3;      /* light pink */
  --gc-gold: #d4af37;           /* gold */
  --gc-dark: #4a1030;           /* deep plum (footer / dark surfaces) */
  --gc-info: #0dcaf0;
  --gc-success: #198754;
  --gc-warning: #ffc107;
  --gc-danger: #dc3545;
  --gc-gray: #6c757d;
}

body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--gc-dark); }
img { max-width: 100%; height: auto; }

/* Navbar */
.gc-navbar { background: linear-gradient(90deg, var(--gc-primary), var(--gc-primary-dark)); }
.gc-navbar .nav-link { font-weight: 500; }
.gc-navbar .nav-link:hover, .gc-navbar .nav-link.active { color: #fff !important; }
.gc-cart-badge { font-size: .65rem; }
.gc-search .form-control { border-radius: 999px 0 0 999px; }
.gc-search .btn { border-radius: 0 999px 999px 0; }
@media (max-width: 991.98px) {
  .gc-search { width: 100%; margin-top: .5rem; }
  .gc-search .input-group { width: 100%; }
}

/* Buttons */
.gc-btn-primary {
  background: linear-gradient(90deg, var(--gc-primary), var(--gc-primary-dark));
  border: none; color: #fff; border-radius: 999px;
}
.gc-btn-primary:hover { background: var(--gc-primary-dark); color: #fff; }
.gc-btn-outline { border: 1px solid var(--gc-primary); color: var(--gc-primary); border-radius: 999px; }
.gc-btn-outline:hover { background: var(--gc-primary); color: #fff; }
.gc-btn-dark { background: linear-gradient(135deg, var(--gc-gold), #b8941f); color: #4a1030; border: none; border-radius: 999px; font-weight: 600; }
.gc-btn-dark:hover { filter: brightness(1.08); color: #4a1030; }

/* Hero */
.gc-hero {
  background: linear-gradient(120deg, #ffe9f3 0%, #fff5f9 50%, #fff0f6 100%);
  border-radius: 1.5rem;
}
.gc-hero-img { border-radius: 1rem; object-fit: cover; width: 100%; height: 100%; min-height: 220px; }
@media (min-width: 992px) { .gc-hero-img { min-height: 380px; } }

/* Category chips — horizontally scrollable on mobile */
.gc-cat-scroll {
  display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .75rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.gc-cat-scroll::-webkit-scrollbar { height: 6px; }
.gc-cat-scroll::-webkit-scrollbar-thumb { background: #d88bb5; border-radius: 3px; }
.gc-cat-item {
  flex: 0 0 auto; scroll-snap-align: start; text-align: center;
  text-decoration: none; color: var(--gc-dark); width: 90px;
}
.gc-cat-item img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.gc-cat-item span { font-size: .8rem; display: block; margin-top: .35rem; font-weight: 500; }
@media (min-width: 768px) {
  .gc-cat-scroll { flex-wrap: wrap; overflow-x: visible; }
  .gc-cat-item { width: 110px; }
  .gc-cat-item img { width: 88px; height: 88px; }
}

/* Product cards */
.gc-product-card { transition: transform .2s ease, box-shadow .2s ease, background .2s ease; height: 100%; background: #fff; }
.gc-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.12) !important;
  background: linear-gradient(160deg, #f9e2a0 0%, #efcf72 100%) !important;
  border-color: var(--gc-gold) !important;
}
.gc-product-card .card-img-top { aspect-ratio: 1/1; object-fit: cover; }
.gc-price { font-weight: 700; color: var(--gc-primary); }
.gc-price-del { color: #999; text-decoration: line-through; font-weight: 400; font-size: .85em; }
.gc-badge-offer { position: absolute; top: .75rem; left: .75rem; z-index: 2; background: var(--gc-gold) !important; color: #4a1030 !important; font-weight: 700; }
.gc-badge-duration { background: var(--gc-secondary) !important; color: var(--gc-primary-dark) !important; }

/* Section headings */
.gc-section-title { font-weight: 800; letter-spacing: -.5px; }
.gc-section-sub { color: #777; }

/* Why choose us */
.gc-feature-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--gc-secondary); color: var(--gc-primary); font-size: 1.5rem;
}

/* Reviews */
.gc-stars { color: var(--gc-gold); }

/* Mobile bottom navigation (customer pages) */
.gc-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
  background: #fff; border-top: 1px solid #eee;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.gc-bottom-nav .gc-bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: .45rem 0 .35rem; color: #777; text-decoration: none; font-size: .68rem; font-weight: 500;
}
.gc-bottom-nav .gc-bn-item i { font-size: 1.3rem; line-height: 1.2; }
.gc-bottom-nav .gc-bn-item:hover { color: var(--gc-primary); }
.gc-bottom-nav .gc-bn-item.active { color: var(--gc-primary); }
.gc-bn-badge { font-size: .6rem; }
@media (max-width: 991.98px) {
  .gc-bottom-nav { display: flex; }
  body { padding-bottom: 62px; }
}

/* Footer */
.gc-footer { background: var(--gc-dark); color: #fff; }
.gc-footer a:hover { color: #fff !important; }
.gc-footer-bottom { background: rgba(0,0,0,.25); }

/* Dashboard layout */
.gc-dash-body { background: #fff5f8; }
.gc-dash-layout { display: flex; min-height: 100vh; padding-top: 56px; }
.gc-dash-sidebar {
  width: 240px; flex-shrink: 0; background: #fff; border-right: 1px solid #eee;
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto;
}
.gc-dash-sidebar .nav-link { color: #555; border-radius: .5rem; padding: .6rem .9rem; margin: .15rem .6rem; font-size: .92rem; }
.gc-dash-sidebar .nav-link:hover { background: var(--gc-secondary); color: var(--gc-primary); }
.gc-dash-sidebar .nav-link.active { background: var(--gc-primary); color: #fff; }
.gc-dash-main { flex: 1; min-width: 0; }
.gc-sidebar { width: 260px; background: #fff; }
.gc-sidebar .nav-link { color: #555; padding: .8rem 1.25rem; border-radius: 0; }
.gc-sidebar .nav-link.active { background: var(--gc-secondary); color: var(--gc-primary); font-weight: 600; }

/* Stat cards */
.gc-stat-card { border-left: 4px solid var(--gc-primary); }
.gc-stat-card .gc-stat-icon { font-size: 1.8rem; color: var(--gc-primary); }

/* Tables on mobile: horizontal scroll wrapper */
.gc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gc-table-wrap table { min-width: 640px; }

/* Booking cards (mobile-friendly lists) */
.gc-list-card { border-left: 4px solid var(--gc-primary); }

/* Forms */
.form-control:focus, .form-select:focus { border-color: var(--gc-primary); box-shadow: 0 0 0 .2rem rgba(194,24,91,.15); }
.form-check-input:checked { background-color: var(--gc-primary); border-color: var(--gc-primary); }
.form-check-input:focus { border-color: var(--gc-primary); box-shadow: 0 0 0 .2rem rgba(194,24,91,.15); }
.page-link { color: var(--gc-primary); }
.page-item.active .page-link { background-color: var(--gc-primary); border-color: var(--gc-primary); }

/* Modal */
.modal-content { border-radius: 1rem; }

/* Utilities */
.gc-img-cover { object-fit: cover; }
.gc-text-primary { color: var(--gc-primary) !important; }
.gc-bg-soft { background: var(--gc-secondary); }

/* Prevent horizontal scroll */
html, body { overflow-x: hidden; max-width: 100%; }

/* ===== Theme overrides: map Bootstrap "primary" (blue) to GlowCart dark pink ===== */
.bg-primary { background-color: var(--gc-primary) !important; }
.text-primary { color: var(--gc-primary) !important; }
.btn-primary { background-color: var(--gc-primary); border-color: var(--gc-primary); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background-color: var(--gc-primary-dark) !important; border-color: var(--gc-primary-dark) !important; }
.btn-outline-primary { color: var(--gc-primary); border-color: var(--gc-primary); }
.btn-outline-primary:hover, .btn-outline-primary:active { background-color: var(--gc-primary) !important; border-color: var(--gc-primary) !important; color: #fff !important; }
.link-primary { color: var(--gc-primary) !important; }
.border-primary { border-color: var(--gc-primary) !important; }
.bg-primary-subtle { background-color: var(--gc-secondary) !important; }
.text-bg-primary { background-color: var(--gc-primary) !important; color: #fff !important; }
.accordion-button:not(.collapsed) { background-color: var(--gc-secondary); color: var(--gc-primary-dark); }
.accordion-button:focus { border-color: var(--gc-primary); box-shadow: 0 0 0 .2rem rgba(194,24,91,.15); }

/* Gold accents */
.gc-gold { color: var(--gc-gold); }
.gc-gold-bg { background: linear-gradient(135deg, var(--gc-gold), #b8941f); color: #4a1030; }
hr { border-color: var(--gc-secondary); opacity: 1; }
