/* ============================================================
   3D Fusion Forge — Refined Storefront Stylesheet
   Palette: Warm off-white · Near-black · Muted gold accent
   ============================================================ */

/* ----- CSS Custom Properties ----- */
:root {
    --primary:   #c8a96e;
    --secondary: #0f0f0f;
    --accent:    #c8a96e;

    --bg:        #0a0a0b;
    --bg-white:  #111113;
    --bg-subtle: #18181b;

    --text:       #f0ece4;
    --text-light: rgba(240,236,228,.65);
    --text-muted: rgba(240,236,228,.35);

    --border:       rgba(255,255,255,.08);
    --border-light: rgba(255,255,255,.05);

    --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
    --shadow:    0 2px 8px rgba(0,0,0,.5);
    --shadow-md: 0 4px 16px rgba(0,0,0,.5);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.6);

    --radius:    6px;
    --radius-sm: 4px;
    --radius-lg: 10px;

    --transition: .18s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --header-height: 68px;
    --bottom-nav-height: 0px; /* updated to 56px on mobile via media query */
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--accent); }

ul, ol { list-style: none; }

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: .5em;
}

h1 { font-size: 2.25rem;  font-weight: 700; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; color: var(--text-light); }

.text-muted  { color: var(--text-muted); }
.text-light  { color: var(--text-light); }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ----- Layout ----- */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    flex: 1;
    padding-top: var(--header-height);
}

.section { padding: 72px 0; }

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 1.75rem;
    letter-spacing: -0.03em;
    display: inline-block;
    position: relative;
    padding-bottom: 14px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 32px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title p {
    font-size: .95rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

/* ----- Grid (Bootstrap 5 handles .row, .col-*, gutters, utilities) ----- */

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10,10,11,.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.03em;
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover { opacity: 0.88; }
.logo-img   { height: 40px; width: auto; display: block; }
.logo-icon  { font-size: 1.35rem; color: var(--accent); }

/* Nav */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    padding: 7px 14px;
    color: var(--text-light);
    font-weight: 500;
    font-size: .875rem;
    letter-spacing: .01em;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover { color: var(--primary); background: var(--border-light); }
.nav-link.active { color: var(--primary); font-weight: 600; }

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--border-light, rgba(0,0,0,0.05));
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius, 8px);
    padding: 2px 4px 2px 12px;
    height: 36px;
    margin-right: 6px;
}
.header-search input {
    background: transparent;
    border: none;
    outline: none;
    color: inherit;
    font-size: 13px;
    width: 160px;
    line-height: 1;
}
.header-search input::placeholder { color: rgba(0,0,0,0.4); opacity: 1; }
.header-search button {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex; align-items: center; justify-content: center;
}
.header-search button:hover { background: rgba(0,0,0,0.05); }

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 1rem;
    transition: all var(--transition);
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.header-action-btn:hover {
    color: var(--primary);
    background: var(--border-light);
}

.lang-toggle {
    width: auto;
    padding: 0 10px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.cart-badge {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--accent);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* Cart icon bump animation on add */
@keyframes cartBump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.cart-bump { animation: cartBump 0.4s ease; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px; height: 38px;
    background: none; border: none;
    cursor: pointer; padding: 8px;
    border-radius: var(--radius-sm);
}

.hamburger:hover { background: var(--border-light); }

.hamburger-line {
    display: block; width: 100%; height: 1.5px;
    background: var(--text); border-radius: 1px;
    transition: all .28s ease;
}

.hamburger.active .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0; visibility: hidden;
    transform: translateY(6px) scale(.98);
    transition: all .18s ease;
    z-index: 1100;
}

.dropdown.open .dropdown-menu {
    opacity: 1; visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    padding: 8px 12px 6px;
    font-weight: 600;
    font-size: .82rem;
    color: var(--text-muted);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: .875rem;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

.dropdown-item i { width: 16px; text-align: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 22px;
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .01em;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover  { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Primary — gold accent */
.btn-primary {
    background: var(--accent);
    color: #0a0a0b;
    border-color: var(--accent);
    font-weight: 600;
}
.btn-primary:hover {
    background: #d4b882;
    border-color: #d4b882;
    color: #0a0a0b;
}

/* Secondary — subtle fill */
.btn-secondary {
    background: var(--bg-subtle);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: var(--border);
    color: var(--primary);
    border-color: var(--border);
}

/* Accent — warm gold */
.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-accent:hover {
    background: #a07c44;
    border-color: #a07c44;
    color: #fff;
}

/* Outline */
.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-light);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

/* Danger */
.btn-danger {
    background: rgba(220,38,38,.15);
    color: #f87171;
    border-color: rgba(220,38,38,.4);
}
.btn-danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }

.btn-sm  { padding: 6px 14px; font-size: .8rem; }
.btn-lg  { padding: 13px 30px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

/* ============================================================
   PRODUCT GRID & CARDS
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: #d8d3cb;
}

.product-card-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--bg-subtle);
}

.product-card-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.04);
}

/* Sale badge */
.product-card-image .sale-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.product-card-image .flash-badge {
    background: var(--accent);
}

/* Wishlist button */
.product-card-wishlist {
    position: absolute;
    top: 10px; right: 10px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: .85rem;
    transition: all var(--transition);
    z-index: 2;
}

.product-card-wishlist:hover,
.product-card-wishlist.active { color: #c0392b; border-color: #fcc; }

.product-card-body {
    padding: 14px 16px 10px;
    flex: 1;
}

.product-card-title {
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    letter-spacing: 0;
}

.product-card-title a { color: inherit; }
.product-card-title a:hover { color: var(--accent); }

.product-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.product-card-price .old-price {
    font-size: .8rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 5px;
}

.product-card-footer {
    padding: 0 16px 16px;
}

.product-card .btn { width: 100%; }

/* Stars inside cards */
.product-card .stars { font-size: .75rem; margin-bottom: 6px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    border-radius: 20px;
    line-height: 1.4;
}

.badge-primary   { background: rgba(200,169,110,.18); color: #c8a96e; }
.badge-secondary { background: rgba(255,255,255,.07); color: var(--text-light); }
.badge-accent    { background: rgba(200,169,110,.18); color: #c8a96e; }
.badge-success   { background: rgba(52,168,90,.15);  color: #4ade80; }
.badge-danger    { background: rgba(229,62,62,.15);  color: #f87171; }
.badge-warning   { background: rgba(217,119,6,.15);  color: #fbbf24; }
.badge-info      { background: rgba(59,130,246,.15); color: #60a5fa; }

/* ============================================================
   ALERTS / FLASH
   ============================================================ */
.alert {
    padding: 13px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: .875rem;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    border-left: 3px solid transparent;
}

.alert-success { background: rgba(52,168,90,.12);  border-color: #34a85a; color: #86efac; }
.alert-error   { background: rgba(229,62,62,.12);  border-color: #e53e3e; color: #fca5a5; }
.alert-warning { background: rgba(217,119,6,.12);  border-color: #d97706; color: #fde68a; }
.alert-info    { background: rgba(59,130,246,.12); border-color: #3b82f6; color: #93c5fd; }

.alert-close {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    font-size: 1rem; cursor: pointer;
    color: inherit; opacity: .5; padding: 4px;
}
.alert-close:hover { opacity: 1; }

.flash-container {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    right: 20px;
    z-index: 2000;
    max-width: 380px;
    width: 100%;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }

.form-group label,
label {
    display: block;
    font-weight: 500;
    font-size: .82rem;
    margin-bottom: 5px;
    color: var(--text);
    letter-spacing: .02em;
}

.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="datetime-local"],
input[type="date"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 9px 13px;
    font-family: var(--font);
    font-size: .875rem;
    color: var(--text);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.input:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,26,26,.08);
}

textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9a9a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer; }

.form-hint  { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: .78rem; color: #c82c2c; margin-top: 4px; }

.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: .875rem;
    color: var(--text-light);
}

.form-checkbox input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* ============================================================
   STARS
   ============================================================ */
.stars {
    display: inline-flex; gap: 2px;
    color: var(--accent); font-size: .85rem;
}

.star.empty { color: var(--border); }
.star.half  { color: var(--accent); opacity: .5; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex; align-items: center;
    justify-content: center; gap: 4px;
    margin: 48px 0;
}

.pagination a,
.pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: .82rem; font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-light);
    transition: all var(--transition);
}

.pagination a:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-white); }

.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .disabled { opacity: .35; pointer-events: none; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: var(--primary);
    color: #fff;
    padding: 96px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(184,149,90,.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    max-width: 520px;
    margin: 0 auto 36px;
}

.hero .btn { margin: 0 6px; }

.hero .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.hero .btn-primary:hover { background: var(--bg-subtle); border-color: var(--bg-subtle); color: var(--primary); }

.hero .btn-outline {
    border-color: rgba(255,255,255,.35);
    color: #fff;
}
.hero .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 48px 0;
}

.product-gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-subtle);
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.product-gallery-main img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-gallery-thumbs { display: flex; gap: 8px; }

.product-gallery-thumb {
    width: 68px; height: 68px;
    border-radius: var(--radius-sm);
    overflow: hidden; cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
    background: var(--bg-subtle);
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover { border-color: var(--accent); }

.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
    font-size: 1.75rem;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.75;
    font-size: .925rem;
}

/* Quantity selector */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.quantity-selector button {
    width: 38px; height: 38px;
    background: var(--bg-subtle);
    border: none; cursor: pointer;
    font-size: .9rem; color: var(--text);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}

.quantity-selector button:hover { background: var(--border); }

.quantity-selector input {
    width: 46px; height: 38px;
    text-align: center; border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: .875rem; font-weight: 600;
    padding: 0;
}

.product-actions { display: flex; gap: 10px; margin-top: 22px; }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    font-size: .875rem;
    color: var(--text-light);
}

.cart-item-info { display: flex; align-items: center; gap: 14px; }

.cart-item-image {
    width: 68px; height: 68px;
    border-radius: var(--radius);
    overflow: hidden; flex-shrink: 0;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
}

.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-remove {
    color: var(--text-muted); font-size: 1rem;
    background: none; border: none; cursor: pointer; padding: 4px;
    transition: color var(--transition);
}
.cart-item-remove:hover { color: #c82c2c; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    padding: 40px 0;
}

.cart-summary { position: sticky; top: calc(var(--header-height) + 20px); }

.cart-summary-row {
    display: flex; justify-content: space-between;
    padding: 10px 0; font-size: .875rem; color: var(--text-light);
}

.cart-summary-row.total {
    font-weight: 700; font-size: 1rem; color: var(--primary);
    border-top: 1px solid var(--border);
    margin-top: 6px; padding-top: 14px;
}

.coupon-form { display: flex; gap: 8px; margin-top: 14px; }
.coupon-form input { flex: 1; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    padding: 40px 0;
}

.checkout-section { margin-bottom: 28px; }

.checkout-section h2 {
    font-size: 1.05rem;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    padding: 40px 0;
}

.account-sidebar .card { padding: 8px; }

.account-sidebar-header {
    padding: 16px 12px 14px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 6px;
}

.account-avatar { font-size: 2.5rem; color: var(--border); margin-bottom: 8px; }
.account-sidebar-header h3 { font-size: .95rem; margin-bottom: 2px; }
.account-sidebar-header p  { font-size: .78rem; color: var(--text-muted); margin: 0; }

.account-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px; border-radius: var(--radius-sm);
    color: var(--text-light); font-size: .86rem; font-weight: 500;
    transition: all var(--transition);
}

.account-nav-link:hover,
.account-nav-link.active {
    background: var(--bg-subtle);
    color: var(--primary);
}

.account-nav-link i { width: 16px; text-align: center; font-size: .85rem; }

.account-section { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.account-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.account-page-title { font-size: 1.35rem; margin: 0; letter-spacing: -0.02em; }

/* Account stat cards */
.account-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.account-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
}

.account-stat-icon {
    font-size: 1.4rem;
    color: var(--primary);
    opacity: .8;
    flex-shrink: 0;
}

.account-stat-info {
    display: flex;
    flex-direction: column;
}

.account-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.account-stat-label {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.account-content { min-width: 0; }

.empty-state {
    text-align: center; padding: 60px 24px;
    color: var(--text-muted); font-size: .925rem;
}
.empty-state i { font-size: 2.5rem; margin-bottom: 14px; display: block; opacity: .3; }

/* Address cards */
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.address-card {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 18px; background: var(--bg-white);
    transition: box-shadow var(--transition);
}
.address-card:hover { box-shadow: var(--shadow); }
.address-card-header { display: flex; gap: 6px; margin-bottom: 12px; }
.address-card-body { font-size: .85rem; color: var(--text-light); line-height: 1.7; margin-bottom: 14px; }
.address-card-body strong { color: var(--text); }
.address-card-actions { display: flex; gap: 8px; }

/* ============================================================
   UPLOAD AREA
   ============================================================ */
.upload-area {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center; cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-subtle);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent);
    background: rgba(184,149,90,.04);
}

.upload-area-icon { font-size: 2rem; color: var(--text-muted); margin-bottom: 10px; }
.upload-area p { font-size: .875rem; margin-bottom: 0; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 3000;
    opacity: 0; visibility: hidden;
    transition: all .25s ease;
    padding: 20px;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 480px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    transform: translateY(16px) scale(.98);
    transition: transform .25s ease;
    box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 { margin-bottom: 0; font-size: 1.05rem; }

.modal-close {
    background: none; border: none; font-size: 1.1rem;
    color: var(--text-muted); cursor: pointer; padding: 4px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.modal-close:hover { background: var(--bg-subtle); color: var(--text); }

.modal-body { padding: 22px; }

.modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #0d0d0f;
    border-top: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.5);
    padding: 64px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand { max-width: 300px; }

.footer-brand .logo {
    color: #fff; font-size: 1.15rem; margin-bottom: 14px;
}
.footer-brand .logo:hover { opacity: 0.85; }
.footer-logo-img { height: 80px; width: auto; display: block; margin-bottom: 6px; }

.footer-brand p {
    font-size: .85rem;
    color: rgba(255,255,255,.45);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-heading {
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-links li { margin-bottom: 9px; }

.footer-links a {
    color: rgba(255,255,255,.45);
    font-size: .875rem;
    transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.social-links { display: flex; gap: 8px; margin-bottom: 0; }

.social-link {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.45);
    font-size: .85rem;
    transition: all var(--transition);
}

.social-link:hover { background: var(--accent); color: #fff; }

.footer-newsletter p { font-size: .82rem; }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: .8rem;
}

.copyright { margin-bottom: 0; color: rgba(255,255,255,.3); }

.payment-icons {
    display: flex; gap: 10px;
    font-size: 1.35rem; color: rgba(255,255,255,.25);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: .8rem; color: var(--text-muted);
    padding: 14px 0; margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/'; margin-right: 6px; opacity: .4;
}

.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-light); }

/* ============================================================
   DATA TABLES (shared with admin-style pages)
   ============================================================ */
/* .table is an alias for .data-table used on account pages */
.table {
    width: 100%; border-collapse: collapse;
}
.table th {
    text-align: left; padding: 10px 14px;
    font-size: .72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
    white-space: nowrap;
}
.table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border-light);
    font-size: .875rem; color: var(--text-light);
    vertical-align: middle;
    white-space: nowrap;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-subtle); }
.table-responsive { overflow-x: auto; }

.data-table {
    width: 100%; border-collapse: collapse;
}

.data-table th {
    text-align: left; padding: 10px 14px;
    font-size: .72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}

.data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border-light);
    font-size: .875rem; color: var(--text-light);
    vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-subtle); }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.mt-1 { margin-top: 4px; }  .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; } .mt-4 { margin-top: 20px; }
.mb-1 { margin-bottom: 4px; }  .mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; } .mb-4 { margin-bottom: 20px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 14px; }

.divider {
    border: none; border-top: 1px solid var(--border);
    margin: 24px 0;
}

.tag {
    display: inline-flex; align-items: center;
    gap: 5px; padding: 3px 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .75rem; font-weight: 500;
    color: var(--text-light);
}

/* Page section within content */
.page-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.page-section h2 {
    font-size: 1.1rem; margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

/* ============================================================
   FLASH SALE COUNTDOWN
   ============================================================ */
.countdown-badge {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: .75rem !important;
    letter-spacing: .05em;
    background: rgba(184,149,90,.12) !important;
    color: #8a6d38 !important;
    border: 1px solid rgba(184,149,90,.25);
    border-radius: var(--radius-sm) !important;
    padding: 3px 8px !important;
}

.badge-flash-sale {
    background: var(--accent) !important;
    color: #fff !important;
    font-size: .72rem !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3,1fr); }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1/-1; max-width: 100%; }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }

    .hamburger { display: flex; }

    .main-nav {
        position: fixed;
        top: var(--header-height); left: 0; right: 0; bottom: 0;
        background: var(--bg-white); z-index: 999;
        padding: 20px 16px;
        transform: translateX(-100%);
        transition: transform .28s ease;
        overflow-y: auto;
    }

    .main-nav.open { transform: translateX(0); }

    .nav-links { flex-direction: column; gap: 2px; align-items: flex-start; }

    .nav-link { padding: 11px 14px; font-size: .925rem; width: 100%; }

    .product-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 12px;
    }

    .product-detail {
        grid-template-columns: 1fr; gap: 24px;
    }

    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

    .account-layout { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }

    /* Hide the inline header search on small screens — replace with icon-only button if needed */
    .header-search input { width: 110px; font-size: 12px; }

    .section { padding: 48px 0; }
    h1 { font-size: 1.625rem; }
    h2 { font-size: 1.375rem; }

    .cart-table thead { display: none; }
    .cart-table tr {
        display: flex; flex-wrap: wrap;
        padding: 14px 0;
        border-bottom: 1px solid var(--border-light);
    }
    .cart-table td { border: none; padding: 4px 8px; }
}

@media (max-width: 480px) {
    .product-grid { gap: 10px; }
    .product-card-body { padding: 10px 12px 8px; }
    .product-card-title { font-size: .82rem; }
    .product-card-price { font-size: .9rem; }
    .container { padding: 0 14px; }
    .hero h1 { font-size: 1.625rem; }
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION BAR
   ============================================================ */
.mobile-bottom-nav {
    display: none; /* desktop: hidden */
}

/* ============================================================
   FILTER DRAWER (shop page, mobile)
   ============================================================ */
.filter-drawer-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1050;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.filter-drawer-overlay.open { display: block; }

.filter-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(320px, 85vw);
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    z-index: 1051;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.filter-drawer.open { transform: translateX(0); }

.filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    background: var(--bg-white); z-index: 1;
}
.filter-drawer-header h6 { margin: 0; font-size: .95rem; font-weight: 700; color: var(--text); }

.filter-drawer-close {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.filter-drawer-close:hover { background: var(--bg-subtle); color: var(--text); }

.filter-drawer-body { padding: 16px 18px; }

.filter-trigger-btn {
    display: none; /* shown only on mobile */
}

/* ============================================================
   CART MOBILE CARD LAYOUT
   ============================================================ */
.cart-mobile-items { display: none; }

.cart-mobile-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}
.cart-mobile-item:last-child { border-bottom: none; }

.cart-mobile-img {
    width: 70px; height: 70px;
    border-radius: var(--radius);
    object-fit: cover; flex-shrink: 0;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
}

.cart-mobile-info { flex: 1; min-width: 0; }

.cart-mobile-name {
    font-size: .875rem; font-weight: 600;
    color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 2px;
}

.cart-mobile-note {
    font-size: .75rem; color: var(--text-muted);
    margin-bottom: 6px;
}

.cart-mobile-price {
    font-size: .9rem; font-weight: 700;
    color: var(--accent); margin-bottom: 8px;
}

.cart-mobile-controls {
    display: flex; align-items: center; gap: 8px;
}

.cart-mobile-remove {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25);
    border-radius: var(--radius-sm); cursor: pointer;
    color: #f87171; font-size: .85rem;
    transition: all var(--transition);
    flex-shrink: 0;
}
.cart-mobile-remove:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

/* Sticky checkout bar on mobile cart */
.cart-sticky-checkout {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 12px 16px;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    z-index: 900;
}

/* ============================================================
   PRODUCT PAGE — MOBILE GALLERY THUMBS
   ============================================================ */
.product-gallery-thumbs-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.product-gallery-thumbs-scroll::-webkit-scrollbar { display: none; }
.product-gallery-thumbs-scroll .product-gallery-thumbs {
    flex-wrap: nowrap;
    min-width: max-content;
}

/* ============================================================
   IMPROVED RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --bottom-nav-height: 56px;
    }

    /* ── Body padding for bottom nav ── */
    body {
        padding-bottom: var(--bottom-nav-height);
    }

    /* ── Site footer bottom padding ── */
    .site-footer {
        padding-bottom: calc(var(--bottom-nav-height) + 16px);
    }

    /* ── Flash messages: keep above bottom nav ── */
    .flash-container {
        bottom: calc(var(--bottom-nav-height) + 12px);
        top: auto;
        right: 12px;
        left: 12px;
        max-width: 100%;
    }

    /* ── Hide hamburger & top nav links — bottom nav replaces them ── */
    .hamburger { display: none !important; }
    .main-nav  { display: none !important; }

    /* ── Bottom navigation bar ── */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: var(--bottom-nav-height);
        background: rgba(17,17,19,.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        z-index: 1000;
        align-items: stretch;
        box-shadow: 0 -4px 16px rgba(0,0,0,.4);
    }

    .mobile-bottom-nav .mbn-item {
        flex: 1;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        gap: 3px;
        color: var(--text-muted);
        font-size: .6rem; font-weight: 600;
        text-decoration: none;
        position: relative;
        transition: color var(--transition);
        letter-spacing: .02em;
        padding: 4px 0 2px;
    }

    .mobile-bottom-nav .mbn-item i {
        font-size: 1.25rem;
        line-height: 1;
    }

    .mobile-bottom-nav .mbn-item:hover,
    .mobile-bottom-nav .mbn-item.active {
        color: var(--accent);
        text-decoration: none;
    }

    .mobile-bottom-nav .mbn-badge {
        position: absolute;
        top: 4px;
        left: calc(50% + 6px);
        background: var(--accent);
        color: #0a0a0b;
        font-size: .55rem; font-weight: 800;
        min-width: 16px; height: 16px;
        border-radius: 8px;
        display: flex; align-items: center; justify-content: center;
        padding: 0 3px; line-height: 1;
    }

    /* ── Hero section ── */
    .hero-section,
    section[class*="hero"] {
        min-height: 0 !important;
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    /* ── Hero display-3 heading ── */
    .display-3 { font-size: 1.85rem !important; line-height: 1.2 !important; }
    .lead { font-size: .95rem !important; }

    /* ── Filter trigger button shown on mobile ── */
    .filter-trigger-btn { display: inline-flex; }

    /* ── Cart mobile: show cards, hide table ── */
    .cart-mobile-items { display: block; }
    .cart-desktop-table { display: none; }
    .cart-sticky-checkout { display: block; }
    .cart-summary { padding-bottom: calc(var(--bottom-nav-height) + 60px); }

    /* ── Product gallery thumbs: horizontal scroll ── */
    .product-gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* ── Product actions stack ── */
    .product-actions { flex-direction: column; }
    .product-actions .btn { width: 100%; min-height: 48px; }

    /* ── Quantity selector full-width on product page ── */
    .quantity-selector { width: 100%; justify-content: center; }

    /* ── Touch targets: min 44×44px ── */
    .btn { min-height: 44px; }
    .btn-sm { min-height: 36px; }
    .header-action-btn { width: 44px; height: 44px; }

    /* ── Section padding reduction ── */
    .section { padding: 40px 0; }
    .section-title { margin-bottom: 32px; }

    /* ── Account layout: tabs on top ── */
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar .card { padding: 4px; }
    .account-sidebar-header { padding: 12px; }
}

/* ── Single column for very small phones (< 400px) ── */
@media (max-width: 400px) {
    .col-6 { flex: 0 0 100%; max-width: 100%; width: 100%; }
}

/* ── iOS: prevent input zoom (font-size < 16px triggers auto-zoom) ── */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="date"],
    textarea,
    select,
    .form-control,
    .form-select {
        font-size: 16px !important;
    }
}

/* ============================================================
   BOOTSTRAP 5 DARK THEME OVERRIDES
   ============================================================ */

/* --- Layout backgrounds --- */
.bg-light  { background-color: #18181b !important; }
.bg-white  { background-color: #111113 !important; }
.bg-body   { background-color: #0a0a0b !important; }

/* --- Text --- */
.text-dark   { color: var(--text)       !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-body   { color: var(--text)       !important; }

/* --- Headings inside Bootstrap containers --- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--text); }

/* --- Bootstrap Cards --- */
.card {
    background-color: #111113;
    border-color: rgba(255,255,255,.08);
    color: var(--text);
}
.card-header {
    background-color: #18181b;
    border-color: rgba(255,255,255,.08);
    color: var(--text);
}
.card-title, .card-subtitle { color: var(--text); }

/* --- Forms --- */
.form-control,
.form-select {
    background-color: #1c1c1f;
    border-color: rgba(255,255,255,.12);
    color: var(--text);
}
.form-control:focus,
.form-select:focus {
    background-color: #1c1c1f;
    border-color: #c8a96e;
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(200,169,110,.15);
}
.form-control::placeholder,
.form-select::placeholder  { color: var(--text-muted); }
.form-label                { color: var(--text); }
.form-text                 { color: var(--text-muted); }
.form-check-label          { color: var(--text); }
.input-group-text {
    background-color: #1c1c1f;
    border-color: rgba(255,255,255,.12);
    color: var(--text-muted);
}

/* --- Tables --- */
.table {
    --bs-table-color:       var(--text);
    --bs-table-border-color: rgba(255,255,255,.08);
    --bs-table-striped-bg:  rgba(255,255,255,.02);
    --bs-table-hover-bg:    rgba(255,255,255,.04);
    color: var(--text);
}
.table > :not(caption) > * > * { color: var(--text); border-color: rgba(255,255,255,.08); }
.table > thead { border-color: rgba(255,255,255,.12); }
.table-responsive { border-color: rgba(255,255,255,.08); }

/* --- Bootstrap Buttons --- */
.btn.btn-primary {
    background-color: #c8a96e;
    border-color:     #c8a96e;
    color: #0a0a0b;
    font-weight: 600;
}
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active { background-color: #d4b882; border-color: #d4b882; color: #0a0a0b; }

.btn.btn-outline-primary { border-color: #c8a96e; color: #c8a96e; }
.btn.btn-outline-primary:hover { background-color: #c8a96e; color: #0a0a0b; }

.btn.btn-secondary { background-color: #1c1c1f; border-color: rgba(255,255,255,.15); color: var(--text); }
.btn.btn-secondary:hover { background-color: #2a2a2f; border-color: rgba(255,255,255,.25); color: var(--text); }

.btn.btn-outline-secondary { border-color: rgba(255,255,255,.15); color: var(--text-light); }
.btn.btn-outline-secondary:hover { background-color: rgba(255,255,255,.06); color: var(--text); border-color: rgba(255,255,255,.25); }

.btn.btn-outline-danger { border-color: rgba(229,62,62,.5); color: #f87171; }
.btn.btn-outline-danger:hover { background-color: rgba(229,62,62,.15); color: #f87171; }

.btn.btn-success { background-color: #16a34a; border-color: #16a34a; }
.btn.btn-warning { background-color: #d97706; border-color: #d97706; color: #0a0a0b; }

/* --- Badges (Bootstrap) --- */
.badge.bg-primary   { background-color: #c8a96e !important; color: #0a0a0b !important; }
.badge.bg-secondary { background-color: #2a2a2f !important; }
.badge.bg-success   { background-color: #16a34a !important; }
.badge.bg-warning   { background-color: #d97706 !important; color: #0a0a0b !important; }
.badge.bg-danger    { background-color: #dc2626 !important; }
.badge.bg-info      { background-color: #0284c7 !important; }
.badge.text-dark    { color: #0a0a0b !important; }

/* --- Alerts (Bootstrap) --- */
.alert-primary { background-color: rgba(200,169,110,.12); border-color: rgba(200,169,110,.3); color: #c8a96e; }
.alert-success { background-color: rgba(22,163,74,.12);  border-color: rgba(22,163,74,.3);  color: #86efac; }
.alert-warning { background-color: rgba(217,119,6,.12);  border-color: rgba(217,119,6,.3);  color: #fde68a; }
.alert-danger  { background-color: rgba(220,38,38,.12);  border-color: rgba(220,38,38,.3);  color: #fca5a5; }
.alert-info    { background-color: rgba(59,130,246,.12); border-color: rgba(59,130,246,.3); color: #93c5fd; }

/* --- List groups --- */
.list-group-item {
    background-color: #111113;
    border-color: rgba(255,255,255,.08);
    color: var(--text);
}
.list-group-item-action:hover { background-color: #18181b; color: var(--text); }

/* --- Modals --- */
.modal-content { background-color: #111113; border-color: rgba(255,255,255,.08); color: var(--text); }
.modal-header  { border-color: rgba(255,255,255,.08); }
.modal-footer  { border-color: rgba(255,255,255,.08); }
.modal-backdrop { opacity: .7; }

/* --- Bootstrap Dropdowns --- */
.dropdown-menu {
    background-color: #111113;
    border-color: rgba(255,255,255,.1);
}
.dropdown-item { color: var(--text-light); }
.dropdown-item:hover,
.dropdown-item:focus { background-color: #18181b; color: var(--text); }
.dropdown-divider { border-color: rgba(255,255,255,.08); }
.dropdown-header  { color: var(--text-muted); }

/* --- Pagination (Bootstrap) --- */
.page-link { background-color: #111113; border-color: rgba(255,255,255,.08); color: var(--text); }
.page-link:hover { background-color: #18181b; color: var(--text); }
.page-item.active .page-link { background-color: #c8a96e; border-color: #c8a96e; color: #0a0a0b; }
.page-item.disabled .page-link { background-color: #111113; color: var(--text-muted); }

/* --- Breadcrumb --- */
nav[aria-label="breadcrumb"] { background-color: #14141a; }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item > a    { color: var(--text-light); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* --- Misc --- */
hr { border-color: rgba(255,255,255,.08); opacity: 1; }
.shadow-sm { box-shadow: 0 1px 4px rgba(0,0,0,.4) !important; }
.border     { border-color: rgba(255,255,255,.08) !important; }
.border-bottom, .border-top, .border-start, .border-end { border-color: rgba(255,255,255,.08) !important; }

/* --- Nav tabs --- */
.nav-tabs { border-color: rgba(255,255,255,.08); }
.nav-tabs .nav-link { color: var(--text-muted); }
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    background-color: #111113;
    border-color: rgba(255,255,255,.08) rgba(255,255,255,.08) #111113;
    color: var(--text);
}

/* --- Product card wishlist btn on dark bg --- */
.product-card-wishlist {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.1);
}
.product-card:hover { border-color: rgba(200,169,110,.25); }

/* --- Bootstrap 5 CSS root variable overrides (dark theme) --- */
:root {
    --bs-primary:         #c8a96e;
    --bs-primary-rgb:     200, 169, 110;
    --bs-link-color:      #c8a96e;
    --bs-link-hover-color:#d4b882;
    --bs-body-bg:         #0a0a0b;
    --bs-body-color:      #f0ece4;
    --bs-border-color:    rgba(255,255,255,.08);
    --bs-secondary-bg:    #18181b;
    --bs-tertiary-bg:     #111113;
    --bs-emphasis-color:  #f0ece4;
}

/* --- Text colour utilities --- */
.text-primary   { color: #c8a96e !important; }
.text-secondary { color: rgba(240,236,228,.65) !important; }
.text-success   { color: #86efac !important; }
.text-danger    { color: #f87171 !important; }
.text-warning   { color: #fde68a !important; }
.text-info      { color: #93c5fd !important; }

/* --- Background utilities not yet covered --- */
.bg-primary  { background-color: #c8a96e !important; color: #0a0a0b !important; }
.bg-success  { background-color: rgba(22,163,74,.2)  !important; }
.bg-danger   { background-color: rgba(220,38,38,.2)  !important; }
.bg-warning  { background-color: rgba(217,119,6,.2)  !important; }
.bg-info     { background-color: rgba(59,130,246,.2) !important; }
.bg-secondary { background-color: #18181b !important; }
.bg-dark      { background-color: #111113 !important; }

/* Ensure Bootstrap table header bg-light override applies to thead */
thead.bg-light th,
thead.bg-light > tr > th { background-color: #18181b !important; color: var(--text) !important; }
