:root {
  --theme-primary: #8c1d40;
  --theme-primary-dark: #6f1633;
  --theme-accent: #f8f0f2;
  --text-dark: #222;
}

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background: #fff;
  color: var(--text-dark);
}

.site-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.top-strip {
  background: #fff;
  color: #444;
  border-bottom: 1px solid #eee;
}

.top-link {
  color: var(--theme-primary);
  text-decoration: none;
}

.top-link:hover {
  color: var(--theme-primary-dark);
}

.header-main {
  background: #fff;
}

.brand-lockup .brand-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-lockup .brand-title {
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: #111;
  letter-spacing: 0.35px;
  line-height: 1.15;
}

.brand-lockup .brand-tagline {
  color: rgba(17, 17, 17, 0.62);
  font-size: 0.78rem;
  margin-top: 0.1rem;
  font-weight: 500;
}

.search-wrap {
  border: 1px solid #e3d5db;
  border-radius: 2rem;
  overflow: hidden;
}

.search-box {
  border-radius: 2rem;
  border: 1px solid #e0d1d6;
  padding-left: 1rem;
}

.search-box:focus {
  border-color: #c77d95;
  box-shadow: 0 0 0 0.2rem rgba(140, 29, 64, 0.12);
}

.btn-theme {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
}

.btn-theme:hover {
  background: var(--theme-primary-dark);
  border-color: var(--theme-primary-dark);
  color: #fff;
}

.btn-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-tools .tool-link {
  width: 42px;
  height: 42px;
  border: 1px solid #e8dce1;
  border-radius: 50%;
  color: #2f2f2f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-tools .tool-link:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.account-link {
  text-decoration: none;
  color: #242424;
  line-height: 1.1;
}

.account-link strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-main {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid #efe2e7;
  box-shadow: 0 4px 12px rgba(20, 20, 20, 0.04);
}

.nav-main .nav-link {
  color: #2f2f2f;
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.9rem 0.95rem;
}

.nav-main .nav-link:hover,
.nav-main .nav-link:focus {
  color: var(--theme-primary);
}

.nav-main .navbar-nav .nav-link.active,
.nav-main .navbar-nav .show > .nav-link {
  color: var(--theme-primary);
}

.hero-image {
  height: 560px;
  object-fit: cover;
  filter: brightness(0.72);
}

.carousel-caption {
  background: linear-gradient(120deg, rgba(20, 20, 20, 0.6), rgba(20, 20, 20, 0.25));
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 560px;
  bottom: 3rem;
}

.carousel-caption h2 {
  font-size: 2rem;
  font-weight: 700;
}

.category-thumb {
  height: 150px;
  object-fit: cover;
}

.product-image {
  height: 320px;
  object-fit: cover;
}

.discount-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #111;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-card {
  border-radius: 0.9rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 28px rgba(22, 22, 22, 0.12) !important;
}

.mega-dropdown .dropdown-menu {
  width: min(980px, 95vw);
  border-radius: 0.9rem;
  border: 1px solid #efdfdf;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  box-shadow: 0 18px 36px rgba(20, 20, 20, 0.12);
}

.mega-dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.offer-banner {
  background: linear-gradient(135deg, #fff7f9, #f8f3ff);
  border: 1px solid #ecdde3;
}

.product-tabs .nav-link {
  border-radius: 2rem;
  color: #444;
  border: 1px solid #ddd;
  margin-left: 0.5rem;
  background: #fff;
}

.product-tabs .nav-link.active {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
}

.cart-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
}

.whatsapp-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
}

.search-suggestion {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1200;
  max-height: 280px;
  overflow: auto;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.search-suggestion a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #222;
  text-decoration: none;
}

.search-suggestion a:hover {
  background: #f7f7f7;
}

.footer-main {
  background: #22171b;
}

/* Customer dashboard sidebar */
.dashboard-nav-link {
  color: #444;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.dashboard-nav-link:hover {
  background: #f7edf1;
  color: var(--theme-primary);
}

.dashboard-nav-link.active {
  background: var(--theme-accent);
  color: var(--theme-primary);
  font-weight: 600;
}

.dashboard-nav-link.text-danger:hover {
  background: #fff0f0;
  color: #dc3545 !important;
}

/* Quantity stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8cdd2;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 38px;
}

.qty-btn {
  width: 36px;
  height: 100%;
  background: #f8f0f2;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--theme-primary);
  cursor: pointer;
  transition: background 0.15s ease;
  line-height: 1;
  padding: 0;
}

.qty-btn:hover {
  background: var(--theme-primary);
  color: #fff;
}

.qty-btn:active {
  background: var(--theme-primary-dark);
  color: #fff;
}

.qty-input {
  width: 46px;
  height: 100%;
  text-align: center;
  border: none;
  border-left: 1px solid #d8cdd2;
  border-right: 1px solid #d8cdd2;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
  outline: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Toast notification */
#appToast {
  min-width: 260px;
  max-width: 340px;
}

#appToast.toast-success {
  background: #1e6b3a;
  color: #fff;
}

#appToast.toast-error {
  background: #8c1d40;
  color: #fff;
}

/* Auth page tabs */
.auth-tab {
  color: #555;
  background: #f8f0f2;
  border: 1px solid #e8d7dd;
  border-radius: 0.6rem !important;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  background: #f2e4e9;
  color: var(--theme-primary);
  border-color: #d9b8c2;
}

.auth-tab.active,
.auth-tab:focus {
  background: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(140, 29, 64, 0.25);
}

.auth-tab .bi {
  font-size: 0.95rem;
}

/* Shop listing pagination */
.shop-pagination-card {
  background: linear-gradient(180deg, #fff 0%, #fdfbfc 100%);
  border: 1px solid #eadfe3;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 28px rgba(58, 15, 32, 0.07);
}

.shop-pagination-summary {
  text-align: center;
  font-size: 0.9rem;
  color: #5c5c5c;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

.shop-pagination-summary strong {
  color: var(--theme-primary-dark);
  font-weight: 600;
}

.pagination.shop-pagination-pills {
  gap: 0.35rem;
}

.pagination.shop-pagination-pills .page-link {
  border-radius: 2rem;
  border: 1px solid #e5d5dc;
  color: #444;
  min-width: 2.5rem;
  text-align: center;
  padding: 0.45rem 0.75rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pagination.shop-pagination-pills .page-link:hover {
  background: var(--theme-accent);
  border-color: #d4b8c4;
  color: var(--theme-primary-dark);
}

.pagination.shop-pagination-pills .page-item.active .page-link {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(140, 29, 64, 0.3);
}

.pagination.shop-pagination-pills .page-item.disabled .page-link {
  background: #f5f0f2;
  color: #aaa;
  border-color: #ebe4e7;
}

.pagination.shop-pagination-pills .shop-page-arrow {
  min-width: 2.75rem;
  padding-inline: 0.65rem;
}

.pagination.shop-pagination-pills .shop-page-arrow .bi {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 575px) {
  .brand-lockup .brand-mark {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 991px) {
  .hero-image { height: 320px; }
  .mega-dropdown .dropdown-menu { width: 100%; }
  .mega-dropdown:hover .dropdown-menu { display: none; }
  .header-tools { gap: 0.5rem !important; }
  .account-link strong { font-size: 0.8rem; }
  .nav-main .nav-link { text-transform: none; font-size: 0.95rem; }
  .carousel-caption { bottom: 1.5rem; max-width: 92%; }
  .carousel-caption h2 { font-size: 1.2rem; }
  .product-image { height: 250px; }
}
