/* ============================================================
   Keenmeenah Closet — Design System
   Palette: Ink #0C0906 | Ivory #FBF6EA | Gold #D9A94B
            Deep Gold #A5762A | Espresso #211A10 | Cream #F3E6C8
   Type: Display = Playfair Display | Body = Jost | Utility = Inter
   ============================================================ */

:root {
  --ink: #0c0906;
  --ivory: #fbf6ea;
  --rose-gold: #d9a94b;
  --bronze: #a5762a;
  --espresso: #211a10;
  --blush: #f3e6c8;
  --white: #ffffff;
  --success: #4c7a5a;
  --danger: #b33a3a;

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Jost", "Helvetica Neue", sans-serif;
  --font-utility: "Inter", sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--ivory);
  font-size: 16px;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
}

a {
  color: var(--bronze);
  text-decoration: none;
}
a:hover {
  color: var(--rose-gold);
}

.text-rosegold {
  color: var(--rose-gold) !important;
}
.text-bronze {
  color: var(--bronze) !important;
}
.bg-ink {
  background: var(--ink) !important;
}
.bg-blush {
  background: var(--blush) !important;
}

/* Buttons */
.btn-gold {
  background: var(--rose-gold);
  color: var(--white);
  border: 1px solid var(--rose-gold);
  padding: 0.65rem 1.75rem;
  font-family: var(--font-utility);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.btn-gold:hover {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--white);
}
.btn-outline-gold {
  background: transparent;
  color: var(--bronze);
  border: 1px solid var(--rose-gold);
  padding: 0.6rem 1.6rem;
  font-family: var(--font-utility);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.btn-outline-gold:hover {
  background: var(--rose-gold);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  font-family: var(--font-utility);
  font-weight: 500;
  font-size: 0.85rem;
}
.btn-whatsapp:hover {
  background: #1ebc59;
  color: #fff;
}

/* Navbar */
.site-navbar {
  background: var(--ivory);
  border-bottom: 1px solid rgba(217, 169, 75, 0.25);
  padding: 0;
  height: 84px;
  display: flex;
  align-items: center;
  overflow: visible;
  position: relative;
  z-index: 1020;
}
.site-navbar .navbar-brand {
  position: relative;
  height: 84px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.site-navbar .navbar-brand img {
  position: relative;
  width: auto;
  height: 100%;
  max-width: 160px;
  object-fit: contain;
  z-index: 5;
}
body.has-hero-logo .site-navbar .navbar-brand {
  width: 168px;
  display: block;
}
body.has-hero-logo .site-navbar .navbar-brand img {
  position: absolute;
  top: 0;
  left: 0;
  width: 168px;
  height: 168px;
  max-width: none;
  object-fit: cover;
  border-radius: 0 0 20px 20px;
  border: 2px #fff solid;
  border-top: 0px;
}
@media (max-width: 575.98px) {
  .site-navbar {
    height: 64px;
  }
  .site-navbar .navbar-brand {
    height: 64px;
  }
  .site-navbar .navbar-brand img {
    height: 100%;
    max-width: 120px;
  }
  body.has-hero-logo .site-navbar .navbar-brand {
    width: 128px;
  }
  body.has-hero-logo .site-navbar .navbar-brand img {
    width: 128px;
    height: 128px;
    max-width: none;
  }
}
.site-navbar .nav-link {
  font-family: var(--font-utility);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--espresso);
  margin: 0 0.6rem;
}
.site-navbar .nav-link:hover {
  color: var(--rose-gold);
}

/* Mobile full-screen menu */
.mobile-nav-close {
  display: none;
}
.mobile-nav-logo {
  display: none;
}
@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: var(--ink);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }
  .site-navbar .navbar-collapse.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.mobile-nav-open {
    overflow: hidden;
  }

  .mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(217, 169, 75, 0.4);
    border-radius: 50%;
    background: transparent;
    color: var(--rose-gold);
    font-size: 1.1rem;
  }
  .mobile-nav-close:hover {
    background: rgba(217, 169, 75, 0.12);
  }

  .mobile-nav-logo {
    display: block;
    margin-bottom: 1.5rem;
  }
  .mobile-nav-logo img {
    height: 150px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
  }

  .site-navbar .navbar-nav {
    margin: 0 !important;
    text-align: center;
  }
  .site-navbar .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
  .site-navbar .navbar-nav .nav-link {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    text-transform: none;
  }
  .site-navbar .navbar-nav .nav-link:hover {
    color: var(--rose-gold);
  }

  .site-navbar .navbar-collapse > .d-flex {
    margin: 2rem 0 0 !important;
    flex-direction: column;
    gap: 1.1rem;
  }
  .site-navbar .navbar-collapse .btn-whatsapp.d-none {
    display: inline-flex !important;
    margin: 0 !important;
  }
  .site-navbar .navbar-collapse .nav-icon-link {
    margin: 0;
    color: var(--ivory);
    font-size: 1.3rem;
  }
}

.nav-icon-link {
  color: var(--ink);
  position: relative;
  margin-left: 0.9rem;
}
.nav-icon-link .badge-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--rose-gold);
  color: #fff;
  font-size: 0.62rem;
  padding: 2px 5px;
  border-radius: 50%;
  font-family: var(--font-utility);
}

/* Mini-cart dropdown */
.cart-dropdown-menu {
  width: 320px;
  max-width: 90vw;
  padding: 1rem;
  margin-top: 0.75rem;
  border: 1px solid rgba(217, 169, 75, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.cart-dropdown-items {
  max-height: 260px;
  overflow-y: auto;
}
.cart-dropdown-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-dropdown-remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.8rem;
  padding: 2px 0;
  opacity: 0.7;
}
.cart-dropdown-remove:hover {
  opacity: 1;
}

/* Add-to-cart toast */
.cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 300px;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.85rem 1.25rem;
  font-family: var(--font-utility);
  font-size: 0.85rem;
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 2000;
}
.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.cart-toast-error {
  background: var(--danger);
}

/* Hero */
.hero-section {
  background-color: var(--ink);
  color: var(--ivory);
  padding: 6rem 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(12, 9, 6, 0.82) 45%, rgba(33, 26, 16, 0.88) 100%);
}
.hero-section .container {
  z-index: 1;
}
.hero-section h1 {
  color: var(--ivory);
  font-size: 3.2rem;
  line-height: 1.15;
}
.hero-section .lead {
  color: var(--blush);
  font-size: 1.15rem;
}
.hero-eyebrow {
  font-family: var(--font-utility);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--rose-gold);
}

.hero-img-zoom {
  transition: transform 0.4s ease;
}
.hero-img-zoom:hover {
  transform: scale(1.08);
}

/* Chain divider signature element */
.chain-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem 0;
  gap: 10px;
}
.chain-divider::before,
.chain-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-gold));
}
.chain-divider::after {
  background: linear-gradient(90deg, var(--rose-gold), transparent);
}
.chain-divider svg {
  flex-shrink: 0;
}

/* Section titles */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title .eyebrow {
  font-family: var(--font-utility);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--bronze);
  display: block;
  margin-bottom: 0.5rem;
}

/* Product cards */
.product-card {
  background: var(--white);
  border: 1px solid rgba(217, 169, 75, 0.2);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
  position: relative;
}
.product-card:hover {
  box-shadow: 0 10px 30px rgba(12, 9, 6, 0.1);
  transform: translateY(-4px);
}
.product-card .product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--blush);
}
.product-card .product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}
.product-card .wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--espresso);
  z-index: 2;
}
.product-card .wishlist-btn.active {
  color: var(--danger);
}
.product-card .badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--rose-gold);
  color: #fff;
  font-family: var(--font-utility);
  font-size: 0.7rem;
  padding: 3px 9px;
  letter-spacing: 0.04em;
  z-index: 2;
}
.product-card .card-body {
  padding: 1.1rem;
}
.product-card .product-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.product-price .old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85rem;
  margin-right: 6px;
}
.product-price .current-price {
  color: var(--bronze);
  font-weight: 600;
  font-family: var(--font-utility);
}

/* Category tiles */
.category-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  display: block;
}
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-tile:hover img {
  transform: scale(1.08);
}
.category-tile .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(12, 9, 6, 0.75) 0%,
    rgba(12, 9, 6, 0.1) 60%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.3rem;
}
.category-tile .overlay span {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--blush);
  padding: 3.5rem 0 1.5rem;
}
.site-footer h5 {
  color: var(--rose-gold);
  font-family: var(--font-display);
}
.site-footer a {
  color: var(--blush);
}
.site-footer a:hover {
  color: var(--rose-gold);
}
.site-footer .footer-bottom {
  border-top: 1px solid rgba(217, 169, 75, 0.2);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: 0.82rem;
  color: #a89a8c;
}

/* Forms */
.form-control,
.form-select {
  border-radius: 2px;
  border: 1px solid #e3d3a4;
  padding: 0.65rem 0.9rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 0.2rem rgba(217, 169, 75, 0.2);
}
.form-label {
  font-family: var(--font-utility);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Star rating */
.star-rating {
  color: var(--rose-gold);
  letter-spacing: 2px;
}
.star-input {
  direction: rtl;
  unicode-bidi: bidi-override;
  display: inline-flex;
  font-size: 1.6rem;
}
.star-input input {
  display: none;
}
.star-input label {
  color: #ddd;
  cursor: pointer;
  padding: 0 2px;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
  color: var(--rose-gold);
}

/* Cart / checkout */
.cart-table th {
  font-family: var(--font-utility);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--bronze);
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e3d3a4;
}
.qty-control button {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
}
.qty-control input {
  width: 42px;
  text-align: center;
  border: none;
}

.summary-box {
  background: var(--white);
  border: 1px solid rgba(217, 169, 75, 0.25);
  padding: 1.5rem;
}

.status-badge {
  font-family: var(--font-utility);
  font-size: 0.72rem;
  padding: 4px 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
}
.status-pending {
  background: #fdf1d6;
  color: #8a6d1c;
}
.status-confirmed,
.status-completed {
  background: #e3f0e6;
  color: var(--success);
}
.status-processing,
.status-ready,
.status-out_for_delivery {
  background: #e2ecf5;
  color: #34618c;
}
.status-rejected,
.status-cancelled {
  background: #fbe4e4;
  color: var(--danger);
}
.status-awaiting_proof,
.status-pending_verification {
  background: #f2e6d9;
  color: var(--bronze);
}

/* Auth pages */
.auth-wrap {
  max-width: 460px;
  margin: 4rem auto;
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid rgba(217, 169, 75, 0.25);
}

/* My-account sidebar */
.account-sidebar .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(217, 169, 75, 0.15);
  font-family: var(--font-utility);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
}
.account-sidebar .list-group-item.active {
  background: var(--rose-gold);
  color: #fff;
}

/* Admin */
.admin-sidebar {
  background: var(--ink);
  min-height: 100vh;
  color: var(--blush);
  flex-shrink: 0;
}
.admin-main {
  min-width: 0;
  overflow-x: auto;
}
.admin-sidebar a {
  color: var(--blush);
  display: block;
  padding: 0.75rem 1.2rem;
  font-family: var(--font-utility);
  font-size: 0.9rem;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(217, 169, 75, 0.15);
  color: var(--rose-gold);
}
.admin-sidebar .brand {
  padding: 1.3rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--rose-gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-card {
  background: #fff;
  border: 1px solid rgba(217, 169, 75, 0.25);
  padding: 1.4rem;
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
}
.stat-card .stat-label {
  font-family: var(--font-utility);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bronze);
}

/* Responsive */
@media (max-width: 767px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .hero-section {
    padding: 4rem 0 3rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--rose-gold);
  outline-offset: 2px;
}
