/* ===== FONT FACE ===== */
@font-face {
    font-family: 'Avenir';
    src: url('../fonts/Avenir Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Avenir';
    src: url('../fonts/Avenir Regular.woff2') format('woff2'),
         url('../fonts/Avenir Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Avenir';
    src: url('../fonts/Avenir Regular.woff2') format('woff2'),
         url('../fonts/Avenir Regular.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Avenir';
    src: url('../fonts/Avenir Heavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Avenir';
    src: url('../fonts/Avenir Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cathy Wellington';
    src: url('../fonts/Catthy Wellingten.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== ROOT VARIABLES ===== */
:root {
    --gold:        #B29262;
    --black:       #000000;
    --white:       #FFFFFF;
    --off-white:   #FAFAFA;
    --cream:       #FDF6EC;
    --light-gray:  #F5F5F5;
    --dark-gray:   #1A1A1A;
    --medium-gray: #666666;
    --border-gray: #E0E0E0;
    --chocolate:   #442222;
    --transition:  all 0.35s ease;
    --font-primary:   'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Cathy Wellington', cursive, serif;
}

/* ===== GLOBAL ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Prevent ANY element from blowing out the viewport width on mobile.
   This is the root fix — html + body both need overflow-x: hidden.
   body alone does not stop the html element from scrolling on Android. */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    background: var(--white);
    font-size: 15px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.3;
    color: var(--black);
}

a { text-decoration: none; transition: var(--transition); color: inherit; }
img { max-width: 100%; height: auto; }
.text-gold { color: var(--gold) !important; }

/* ===== NAVBAR ===== */
/*
   IMPORTANT: The critical shell (.navbar position/z-index/background) is in
   header.php's inline <style> to prevent layout shift before this file loads.
   Only add non-critical navbar styles here.
*/
.navbar.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.navbar-brand {
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.navbar-brand img {
    height: 64px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}
.navbar.scrolled .navbar-brand img { height: 48px; }

.nav-link {
    font-family: var(--font-primary) !important;
    color: var(--black) !important;
    font-weight: 600 !important;
    letter-spacing: 0.18em !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    white-space: nowrap;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--gold);
    transition: var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { width: 40%; }
.nav-link:hover,
.nav-link.active { color: var(--gold) !important; }

/* Hide underline on mobile (vertical list) */
@media (max-width: 991px) {
    .nav-link::after { display: none; }
    .nav-link { padding: 0.65rem 0 !important; border-bottom: 1px solid #f5f5f5; }
    .navbar-nav .nav-item:last-child .nav-link { border-bottom: none; }
}

.navbar-actions { gap: 1.2rem; }

/* Currency */
.currency-switcher {
    font-family: var(--font-primary);
    background: transparent;
    border: 1px solid var(--border-gray);
    padding: 0.4rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}
.currency-switcher:hover { border-color: var(--gold); color: var(--gold); }
.currency-option { font-family: var(--font-primary); font-size: 0.85rem; padding: 0.7rem 1.2rem; }
.currency-option.active { background: var(--gold); color: var(--white); }
.currency-option:hover { background: var(--light-gray); }
.currency-option.active:hover { background: var(--gold); color: var(--white); }

/* Nav icons */
.nav-icon {
    color: var(--black);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    transition: var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav-icon:hover { color: var(--gold); }

.cart-badge {
    position: absolute;
    top: -6px; right: -8px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700;
}

.user-avatar-small {
    width: 36px; height: 36px;
    background: var(--black);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid var(--border-gray);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0; margin-top: 8px;
}
.dropdown-header {
    font-family: var(--font-primary);
    font-weight: 600; color: var(--black);
    padding: 0.9rem 1.5rem;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em;
    background: var(--off-white);
    border-bottom: 1px solid var(--border-gray);
}
.dropdown-item {
    font-family: var(--font-primary);
    padding: 0.8rem 1.5rem;
    color: var(--black); font-size: 0.88rem; font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid var(--light-gray);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--gold); color: var(--white); }
.dropdown-item i { width: 22px; opacity: 0.8; }

/* Search modal */
.search-box input {
    border: none; border-bottom: 1px solid #ddd;
    border-radius: 0; font-size: 1rem; padding: 0.75rem 0;
}
.search-box input:focus { box-shadow: none; border-bottom-color: var(--gold); }
.search-box .btn {
    border-radius: 0; background: var(--black); color: var(--white);
    font-size: 0.75rem; letter-spacing: 0.15em;
    text-transform: uppercase; font-weight: 700;
    padding: 0.7rem 2rem; border: none;
}
.search-box .btn:hover { background: var(--gold); color: var(--black); }

/* ===== BUTTONS ===== */
.btn-gold {
    font-family: var(--font-primary);
    background: var(--gold); color: var(--white);
    border: 2px solid var(--gold);
    padding: 0.85rem 2.5rem;
    font-weight: 700; letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: clamp(0.72rem, 1.5vw, 0.8rem);
    transition: var(--transition);
    display: inline-block; cursor: pointer;
}
.btn-gold:hover { background: var(--white); color: var(--gold); }

.btn-outline-gold {
    font-family: var(--font-primary);
    background: transparent; color: var(--gold);
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    padding: 0.4rem 0.9rem !important;
    font-weight: 700; text-transform: uppercase;
    font-size: 0.68rem !important;
    letter-spacing: 0.12em !important;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-outline-gold:hover {
    background: var(--gold) !important;
    color: var(--black) !important;
}

.btn-white {
    font-family: var(--font-primary);
    background: var(--white); color: var(--black);
    border: 2px solid var(--white);
    padding: 0.7rem 1.8rem;
    font-weight: 700; text-transform: uppercase;
    font-size: clamp(0.7rem, 1.5vw, 0.78rem);
    letter-spacing: 0.15em; transition: var(--transition);
}
.btn-white:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

.btn-rafi-primary {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    background: var(--gold); color: var(--black);
    font-family: var(--font-primary) !important;
    font-weight: 700; font-size: 0.75rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none; border: 2px solid var(--gold);
    cursor: pointer; transition: var(--transition); text-align: center;
}
.btn-rafi-primary:hover { background: transparent; color: var(--gold); }

.btn-rafi-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent; color: var(--black);
    font-family: var(--font-primary) !important;
    font-weight: 700; font-size: 0.75rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none; border: 2px solid var(--black);
    transition: var(--transition);
}
.btn-rafi-outline:hover { background: var(--black); color: var(--white); }

/* ===== HERO ===== */
.hero-section {
    position: relative;
    height: 100vh; min-height: 620px;
    display: flex; align-items: center;
    overflow: hidden; background: #000;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 30%;
    opacity: 0.55; transition: transform 8s ease;
}
.hero-section:hover .hero-bg-img { transform: scale(1.04); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.15) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    width: 100%; padding: 0 5vw;
    margin-top: 80px;
    display: flex; align-items: flex-end;
    min-height: calc(100vh - 80px);
    padding-bottom: 6rem;
}
.hero-eyebrow {
    font-family: var(--font-secondary) !important;
    font-size: 1rem; letter-spacing: 0.2em;
    color: var(--gold); text-transform: uppercase;
    margin-bottom: 1.2rem; display: block;
}
.hero-heading {
    font-family: var(--font-primary) !important;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 800; line-height: 1.0;
    letter-spacing: -0.02em; color: var(--white);
    margin-bottom: 1.5rem; text-transform: uppercase;
}
.hero-sub {
    font-family: var(--font-secondary) !important;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: rgba(255,255,255,0.75);
    line-height: 1.8; max-width: 460px;
    margin-bottom: 2.5rem; letter-spacing: 0.02em;
}
.hero-actions { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.btn-rafi-ghost {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    background: transparent; color: var(--white);
    font-family: var(--font-primary) !important;
    font-weight: 600; font-size: 0.75rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none; border: 1px solid rgba(255,255,255,0.4);
    transition: var(--transition);
}
.btn-rafi-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll-hint span {
    display: block; width: 1px; height: 50px;
    background: linear-gradient(to bottom, transparent, var(--gold));
    animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
    0%   { opacity:0; transform:scaleY(0); transform-origin:top; }
    50%  { opacity:1; transform:scaleY(1); }
    100% { opacity:0; transform:scaleY(1); transform-origin:bottom; }
}

/* Fallback hero */
.hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: normal; margin-bottom: 1.5rem;
    line-height: 1.1; color: var(--white); letter-spacing: 1px;
}
.hero-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.75);
    margin-bottom: 2.5rem; max-width: 480px;
    line-height: 1.7; font-weight: 400;
}
.hero-image { position: relative; height: 70vh; min-height: 500px; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ===== BRAND BAR ===== */
.brand-bar { background: var(--black); padding: 1rem 0; overflow: hidden; }
.brand-bar-inner {
    display: flex; justify-content: center;
    align-items: center; gap: 2rem; flex-wrap: wrap;
    font-family: var(--font-primary);
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--gold);
}
.brand-bar .dot { color: rgba(178,146,98,0.4); }

/* ===== SECTION COMMON ===== */
.section-eyebrow {
    font-family: var(--font-secondary) !important;
    font-size: 0.95rem; color: var(--gold);
    letter-spacing: 0.1em; margin-bottom: 0.5rem; display: block;
}
.section-heading {
    font-family: var(--font-primary) !important;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800; letter-spacing: -0.01em;
    color: var(--black); margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.section-sub { color: var(--medium-gray); font-size: 1rem; margin-bottom: 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-title {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: normal; margin-bottom: 0.8rem;
    color: var(--black); letter-spacing: 1px; text-align: center;
}
.section-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    color: var(--medium-gray); margin-bottom: 4rem;
    text-align: center; font-weight: 400;
}

/* ===== PRODUCTS ===== */
.products-section { padding: 6rem 0; background: var(--white); }

.product-card {
    background: var(--white);
    overflow: hidden; transition: var(--transition);
    border: 1px solid var(--border-gray);
    height: 100%; display: flex; flex-direction: column;
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(178,146,98,0.15);
    border-color: var(--gold);
}

.product-badge {
    position: absolute; top: 1rem; left: 1rem; z-index: 5;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.15em;
    text-transform: uppercase; padding: 0.3rem 0.8rem;
    background: var(--black); color: var(--gold);
}
.badge-sold { background: #999; color: #fff; }

.wishlist-btn {
    position: absolute; top: 1rem; right: 1rem; z-index: 5;
    background: white; border: none;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
}
.wishlist-btn.active, .wishlist-btn:hover { color: var(--gold); }

.product-image {
    position: relative; overflow: hidden;
    background: var(--light-gray); aspect-ratio: 1/1;
}
.product-image img {
    width: 100%; height: 100%;
    object-fit: cover; transition: var(--transition);
    pointer-events: none;
}
.product-card:hover .product-image img { transform: scale(1.05); }

/* Desktop overlay */
.product-overlay {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
    z-index: 2;
}
.product-card:hover .product-overlay { opacity: 1; }

.btn-quick-view {
    background: var(--black); color: var(--white);
    border: none; padding: 0.7rem 1.8rem;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    cursor: pointer; transition: var(--transition);
}
.btn-quick-view:hover { background: var(--gold); }

/* Mobile quick view button — covers entire image */
.mobile-qv-btn {
    display: none;
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    background: transparent; border: none;
    cursor: pointer; z-index: 10;
    -webkit-tap-highlight-color: rgba(178,146,98,0.2);
    touch-action: manipulation;
}

.product-info {
    padding: clamp(1.2rem, 2.5vw, 1.6rem);
    flex-grow: 1; display: flex; flex-direction: column;
}
.product-name {
    font-family: var(--font-primary);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-weight: 700; margin-bottom: 0.5rem;
    color: var(--black); text-transform: uppercase; letter-spacing: 0.05em;
}
.product-desc, .product-description {
    font-family: var(--font-primary);
    color: var(--medium-gray);
    font-size: clamp(0.82rem, 1.5vw, 0.88rem);
    margin-bottom: 1rem; flex-grow: 1;
    line-height: 1.6; font-weight: 400;
}
.product-footer {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 0.75rem;
    padding-top: 1rem; border-top: 1px solid var(--border-gray);
}
.product-price {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 800; color: var(--gold);
}
.product-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.btn-cart {
    background: var(--black); color: var(--white); border: none;
    padding: 0.5rem 1rem; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; transition: var(--transition);
}
.btn-cart:hover { background: var(--gold); color: var(--black); }
.btn-preorder { background: var(--chocolate); }
.btn-soldout  { background: #ccc; cursor: not-allowed; }
.ship-date    { font-size: 0.75rem; color: var(--medium-gray); margin-top: 0.5rem; }
.empty-collection { text-align: center; padding: 4rem; color: var(--medium-gray); }

/* ===== ABOUT SECTION ===== */
.about-section  { padding: 90px 0; background: var(--off-white); }
.about-strip    { padding: 7rem 0; background: var(--cream); }
.about-img-wrap { position: relative; overflow: hidden; }
.about-img-wrap img { width: 100%; height: 520px; object-fit: cover; display: block; }
.about-img-label {
    position: absolute; bottom: 1.5rem; right: 1.5rem;
    background: var(--gold); color: var(--white);
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.25em; text-transform: uppercase;
    padding: 0.4rem 1rem;
}
.about-body { font-size: 1rem; line-height: 1.85; color: #444; margin-top: 1.2rem; }
.about-section h2 { font-family: var(--font-secondary); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: normal; letter-spacing: 1px; }
.about-section .lead { font-family: var(--font-primary); font-size: clamp(1rem, 2vw, 1.12rem); color: var(--medium-gray); margin-bottom: 1.5rem; line-height: 1.75; }

/* ===== VALUES STRIP ===== */
.values-strip { background: var(--black); padding: 4rem 0; }
.value-item { padding: 2.5rem 2rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); }
.value-item:last-child { border-right: none; }
.value-icon { font-size: 1.8rem; color: var(--gold); margin-bottom: 1rem; }
.value-item h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white); margin-bottom: 0.5rem; }
.value-item p  { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin: 0; }

/* ===== FOOTER ===== */
.footer { background: var(--black); color: rgba(255,255,255,0.7); }
.rafi-footer { background: #0a0a0a; color: rgba(255,255,255,0.6); padding: 5rem 0 2rem; font-family: var(--font-primary); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem; padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    display: block;
    font-family: var(--font-primary) !important;
    font-size: 2rem; font-weight: 900;
    letter-spacing: 0.2em; color: #fff;
    text-decoration: none; margin-bottom: 1.2rem;
}
.footer-tagline { font-family: var(--font-secondary) !important; font-size: 0.9rem; line-height: 1.9; color: rgba(255,255,255,0.4); margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); text-decoration: none;
    font-size: 0.9rem; transition: var(--transition);
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); }
.footer-heading {
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: #fff; margin-bottom: 1.2rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-newsletter-text { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin-bottom: 1rem; line-height: 1.7; }
.footer-newsletter { display: flex; border-bottom: 1px solid rgba(255,255,255,0.2); }
.footer-newsletter input {
    flex: 1; background: transparent; border: none;
    color: #fff; font-size: 0.82rem; padding: 0.5rem 0;
    outline: none; font-family: var(--font-primary);
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.25); }
.footer-newsletter button { background: transparent; border: none; color: var(--gold); cursor: pointer; padding: 0.5rem; font-size: 1rem; transition: var(--transition); }
.footer-newsletter button:hover { transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.25); margin: 0; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.78rem; color: rgba(255,255,255,0.25); text-decoration: none; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }

/* Legacy footer */
.footer-title { font-family: var(--font-secondary); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: normal; margin-bottom: 1.2rem; color: var(--white); letter-spacing: 2px; }
.footer-text  { font-family: var(--font-primary); color: rgba(255,255,255,0.7); font-size: clamp(0.85rem, 1.5vw, 0.92rem); line-height: 1.7; }
.social-links { display: flex; gap: 0.8rem; }
.social-icon  { width: 42px; height: 42px; background: transparent; border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; color: var(--white); transition: var(--transition); font-size: 1.1rem; }
.social-icon:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.newsletter-form .form-control { font-family: var(--font-primary); border: 1px solid rgba(255,255,255,0.3); background: transparent; padding: 0.75rem 1rem; color: var(--white); }
.newsletter-form .form-control:focus { border-color: var(--gold); background: rgba(255,255,255,0.05); color: var(--white); box-shadow: none; }
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form .btn { font-family: var(--font-primary); background: var(--gold); color: var(--white); border: 1px solid var(--gold); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; }
.newsletter-form .btn:hover { background: var(--white); color: var(--gold); }

/* ===== SCROLL TOP ===== */
.scroll-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 48px; height: 48px;
    background: var(--gold); color: var(--white); border: none;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); z-index: 999;
    box-shadow: 0 4px 12px rgba(178,146,98,0.3);
}
.scroll-top:hover { background: var(--black); transform: translateY(-3px); }
.scroll-top.show, .scroll-top.visible { display: flex; }

/* ===== AUTH ===== */
.auth-section { min-height: calc(100vh - 80px); display: flex; align-items: center; background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); }
.auth-card { background: white; border-radius: 0; padding: 3rem 2.5rem; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.auth-icon { width: 80px; height: 80px; background: var(--black); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.auth-icon i { font-size: 2rem; color: var(--gold); }

/* ===== FORMS ===== */
.form-label { font-weight: 600; color: #333; margin-bottom: 0.5rem; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
.form-control, .form-select {
    border: none; border-bottom: 1px solid #ddd;
    border-radius: 0; padding: 0.75rem 0;
    font-family: var(--font-primary);
    transition: var(--transition);
}
.form-control:focus, .form-select:focus { border-bottom-color: var(--gold); box-shadow: none; }

/* ===== CHECKOUT ===== */
.checkout-card { background: white; padding: 2rem; border: 1px solid var(--border-gray); }
.payment-option { padding: 1rem; border: 1px solid var(--border-gray); margin-bottom: 1rem; transition: var(--transition); cursor: pointer; }
.payment-option:hover { border-color: var(--gold); }
.order-summary { background: white; padding: 2rem; border: 1px solid var(--border-gray); position: sticky; top: 100px; }
.order-item { padding: 1rem 0; border-bottom: 1px solid var(--border-gray); }
.order-item:last-child { border-bottom: none; }
.order-item-img { width: 60px; height: 60px; object-fit: cover; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 1rem; }
.summary-total { font-size: 1.3rem; font-weight: 800; }
.summary-total span:last-child { color: var(--gold); }

/* ===== UTILITIES ===== */
.bg-light { background-color: var(--off-white) !important; }
hr { border-color: var(--border-gray); }
.font-primary   { font-family: var(--font-primary); }
.font-secondary { font-family: var(--font-secondary); }
.decorative-heading { font-family: var(--font-secondary); font-size: clamp(2rem, 4vw, 3rem); font-weight: normal; letter-spacing: 1px; }
.decorative-accent  { font-family: var(--font-secondary); color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand-col { grid-column: 1 / -1; }
    .value-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .about-img-wrap img { height: 380px; }
    .hero-section .col-lg-6:first-child { padding-right: 1rem; margin-bottom: 2rem; }
    .hero-image { height: 50vh; min-height: 400px; }
}

@media (max-width: 768px) {
    .hero-content { padding: 0 1.5rem; padding-bottom: 4rem; }
    .hero-heading  { font-size: 2.8rem; }
    .hero-actions  { flex-direction: column; align-items: flex-start; }

    /* Hide desktop overlay on mobile */
    .product-overlay { display: none !important; }

    /* Quick view tap label at bottom of image */
    .product-image::after {
        content: 'Quick View';
        position: absolute;
        bottom: 0; left: 0; right: 0;
        background: rgba(0,0,0,0.6);
        color: var(--gold);
        font-size: 0.62rem; font-weight: 700;
        letter-spacing: 0.2em; text-transform: uppercase;
        text-align: center; padding: 0.6rem;
        pointer-events: none;
        z-index: 3;
    }

    /* Show the mobile tap button */
    .mobile-qv-btn { display: block; }

    .order-summary { position: static; margin-top: 2rem; }
}

@media (max-width: 576px) {
    .product-actions { width: 100%; }
    .product-actions .btn { flex: 1; }
    .hero-image { height: 45vh; min-height: 350px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== QUICK VIEW MODAL ===== */
body.modal-open { padding-right: 0 !important; }
.modal-open     { padding-right: 0 !important; }

/* ── DESKTOP ──────────────────────────────────────── */
@media (min-width: 769px) {
    #quickViewModal .modal-dialog {
        max-width: 860px;
        width: 95vw;
        margin: auto;
        display: flex;
        align-items: center;
        min-height: calc(100% - 3.5rem);
    }
    #quickViewModal .modal-content {
        border-radius: 0 !important;
        border: none !important;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    .rafi-qv-close {
        position: absolute;
        top: 1rem; right: 1rem; z-index: 20;
        background: #000; border: none; color: #B29262;
        width: 36px; height: 36px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.2rem; cursor: pointer; transition: all 0.2s;
    }
    .rafi-qv-close:hover { background: #B29262; color: #000; }
    .rafi-qv-body { display: flex; flex-direction: row; }
    .rafi-qv-img-wrap { flex: 0 0 45%; background: #FDF6EC; min-height: 420px; overflow: hidden; }
    .rafi-qv-img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 420px; }
    .rafi-qv-info { flex: 1; padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
}

/* ── MOBILE BOTTOM SHEET ──────────────────────────── */
@media (max-width: 768px) {
    #quickViewModal {
        display: flex !important;
        align-items: flex-end !important;
        padding: 0 !important;
    }
    #quickViewModal.fade:not(.show) { opacity: 1; }
    #quickViewModal .modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        transform: translateY(100%) !important;
        transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1) !important;
        position: relative;
    }
    #quickViewModal.show .modal-dialog {
        transform: translateY(0) !important;
    }
    #quickViewModal .modal-content {
        border-radius: 20px 20px 0 0 !important;
        border: none !important;
        max-height: 88vh;
        overflow-y: auto;
        box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
    }
    #quickViewModal .modal-content::before {
        content: '';
        display: block;
        width: 40px; height: 4px;
        background: #ddd; border-radius: 2px;
        margin: 12px auto 0;
    }
    .rafi-qv-close { display: none; }
    .rafi-qv-body { display: flex; flex-direction: column; }
    .rafi-qv-img-wrap {
        width: 100%; height: 56vw;
        min-height: 200px; max-height: 280px;
        background: #FDF6EC; overflow: hidden; flex: none;
    }
    .rafi-qv-img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .rafi-qv-info { padding: 1.25rem 1.25rem 2rem; }
}

/* ── SHARED QUICK VIEW STYLES ─────────────────────── */
.rafi-qv-loader {
    display: flex; align-items: center;
    justify-content: center; min-height: 200px;
}
.rafi-qv-eyebrow {
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: #B29262; margin-bottom: 0.4rem;
}
.rafi-qv-name {
    font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.02em; color: #000;
    line-height: 1.2; margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
}
.rafi-qv-price {
    font-size: 1.2rem; font-weight: 800;
    color: #B29262; margin-bottom: 0.75rem;
}
.rafi-qv-badge {
    display: inline-block;
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    padding: 0.3rem 0.75rem; margin-bottom: 1rem;
}
.rafi-qv-badge--in  { background: #000; color: #B29262; }
.rafi-qv-badge--pre { background: #442222; color: #fff; }
.rafi-qv-badge--out { background: #eee; color: #999; }
.rafi-qv-desc {
    font-size: 0.83rem; color: #666; line-height: 1.8;
    margin-bottom: 1.25rem;
    border-top: 1px solid #f0f0f0; padding-top: 1rem;
}
.rafi-qv-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.rafi-qv-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 0.95rem 1rem;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    border: none; cursor: pointer; transition: all 0.25s;
    text-decoration: none; text-align: center; width: 100%;
    font-family: 'Avenir', 'Century Gothic', sans-serif;
    min-height: 50px;
}
.rafi-qv-btn--cart    { background: #000; color: #fff; border: 2px solid #000; }
.rafi-qv-btn--cart:hover { background: #B29262; border-color: #B29262; color: #000; }
.rafi-qv-btn--buy     { background: #B29262; color: #000; border: 2px solid #B29262; }
.rafi-qv-btn--buy:hover  { background: transparent; color: #B29262; }
.rafi-qv-btn--details { background: transparent; color: #888; border: 1px solid #e0e0e0; font-size: 0.65rem; }
.rafi-qv-btn--details:hover { border-color: #000; color: #000; }
.rafi-qv-btn--disabled { background: #eee; color: #bbb; border: none; cursor: not-allowed; }

/* ===== INDEX.PHP INLINE STYLE OVERRIDES =====
   The inline <style> in index.php redefines hero/product styles.
   These rules fix the mobile overflow caused by that block.
   Add these at the END of your live style.css
*/

/* Hero image must never exceed viewport */
.hero-section {
    overflow: hidden;
    max-width: 100vw;
    width: 100%;
}
.hero-bg-img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content {
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent any section from overflowing */
section, .brand-bar, .about-strip, .values-strip, .products-section {
    max-width: 100%;
    overflow-x: hidden;
}

/* Bootstrap container safety net on mobile */
@media (max-width: 991.98px) {
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}