/* =========================
   THE BARN TROVE CORE THEME
========================= */
:root {
    --color-bg: #1b1511;
    --color-bg-alt: #241b15;
    --color-panel: #2c2119;
    --color-panel-soft: #34261d;

    --color-accent: #b24a2a;
    --color-accent-soft: #e2a47c;

    --color-text: #f7f1e9;
    --color-text-muted: #b3a79a;
    --color-border: #423428;

    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 6px;

    --shadow-soft: 0 16px 40px rgba(0,0,0,0.45);

    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================
   THE BARN TROVE CORE THEME
========================= */

/*==========================*/

/* =========================
   RESET + BODY
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, #2c2119 0%, #140f0b 45%, #0b0805 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;

    color: var(--color-text);
    font-family: var(--font-main);
}

/*==========================*/

/* =========================
   RESET + BODY
========================= */


/* ✅ SHOP PAGE VIEWPORT LOCK */
.shop-layout,
.shop-filters,
.shop-grid {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

.shop-layout * {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

/*==========================*/

/* ============================
   Product Menifest Rankings
============================ */

/* ðŸ”´ Broken */
.info-condition.extra-broken {
    color: #ff4d4d !important;
}

/* ðŸ”µ Like New */
.info-condition.extra-like-new {
    color: #46ff84 !important;
}

/* ðŸŸ¡ Used */
.info-condition.extra-used {
    color: #f5c542 !important;
}

/* ðŸŸ¢ Brand New */
.info-condition.extra-brand-new {
    color: #3fa9ff !important;
}

/* âšª Default fallback */
.info-condition.extra-default {
    color: #bbb !important;
}

/* ============================
   Product Menifest Rankings
============================ */

/*==========================*/

/* =========================
   HEADER / NAV
========================= */
.site-header {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 1.5rem;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #fff;
}

.brand span {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.16em;
}

.main-nav {
    display: flex;
    gap: 1.3rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
    color: var(--color-text);
    border-color: rgba(178, 74, 42, 0.9);
}

.site-footer {
    margin-top: 80px;
    padding: 26px 18px;
    border-top: 1px solid rgba(0,0,0,0.12);
    background: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent);

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    font-size: 13px;
    color: #f7f1e9;
}

.site-footer .footer-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0.85;
    text-align: center;
}



/* =========================
   HEADER / NAV
========================= */

/*==========================*/

/* =========================
   BUTTONS (REUSABLE)
========================= */
.btn {
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.btn.primary {
    background: linear-gradient(135deg, var(--color-accent), #d1663c);
    color: #fff;
    border-color: rgba(0,0,0,0.6);
    box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
    background: linear-gradient(135deg, #c95c32, #e07946);
}

.btn.ghost {
    background: transparent;
    color: var(--color-text-muted);
    border-color: rgba(255,255,255,0.1);
}

.btn.outline {
    background: transparent;
    color: var(--color-accent-soft);
    border-color: rgba(178, 74, 42, 0.7);
}

/* =========================
   BUTTONS (REUSABLE)
========================= */

/*==========================*/

/* =========================
        Order Panel
========================= */
.order-panel {
    max-width: 1100px;
    margin: 60px auto;
    padding: 30px;
    border-radius: 18px;
    background: linear-gradient(180deg, #2a1c14, #1b120d);
}

.order-panel form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 14px;
}

.order-panel label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.order-panel input[type="email"],
.order-panel input[type="password"],
.order-panel input[type="text"] {
    background: #140c08;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 6px 16px rgba(0,0,0,0.45);
}

.order-panel input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow:
        0 0 0 1px rgba(178,74,42,0.6),
        0 0 16px rgba(178,74,42,0.25);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-header h2 {
    margin: 0;
    font-size: 26px;
}

.order-total {
    color: #e3a87c;
    font-size: 22px;
    font-weight: 700;
}

.order-divider {
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 20px 0;
}

.order-grid-header,
.order-row {
    display: grid;
    grid-template-columns: 1fr 90px 130px 130px 40px;
    align-items: center;
    padding: 12px 0;
}

.order-grid-header {
    text-transform: uppercase;
    color: #bba89b;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.order-row {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.order-item-name {
    font-weight: 500;
}

/* =========================
        Order Panel
========================= */

/*==========================*/

/* =========================
           Form
========================= */

.form-actions {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

/* =========================
           Form
========================= */

/*==========================*/

/* =========================
       Notifications
========================= */

/* =========================
   CHECKOUT LAYOUT FIX
========================= */

.checkout-container {
    max-width: 620px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: left;
}

.checkout-box {
    border: 1px solid rgba(255,255,255,0.15);
    padding: 24px;
    border-radius: 12px;
    background: rgba(0,0,0,0.35);
    margin-bottom: 24px;
}

.checkout-box h3 {
    margin-bottom: 18px;
    font-size: 18px;
}

/* ✅ Layout each row into two clean columns */
.checkout-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    text-align: right;
    font-size: 15px;
    padding: 6px 0;
}

.checkout-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    font-size: 15px;
    padding: 6px 0;
}

/* =========================
   CHECKOUT ITEM COLUMNS
========================= */

.checkout-item-row {
    display: grid;
    grid-template-columns: 1fr 80px 120px;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
}

.checkout-item-name {
    text-align: left;
}

.checkout-item-qty {
    text-align: center;
    opacity: 0.85;
}

.checkout-item-price {
    text-align: right;
    font-weight: 500;
}


.checkout-row span:last-child {
    text-align: right;
    min-width: 90px;
}

/* ✅ Divider spacing */
.checkout-box hr {
    text-align: right;
    margin: 16px 0;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.25);
}

/* ✅ Total row */
.checkout-row.total {
    font-size: 17px;
    font-weight: bold;
    padding-top: 10px;
}

/* =========================
   PAYPAL CENTER + SIZE FIX
========================= */

.paypal-center {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* ✅ Controls actual button width */
#paypal-button-container {
    width: 240px !important;
}




/* ✅ ERROR MESSAGE */
.error-box {
    background: rgba(255,70,70,0.12);
    border: 1px solid rgba(255,70,70,0.45);
    color: #ffb3b3;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 14px;
}



.center {
    text-align: center;
}

.right {
    text-align: right;
}

.order-row input {
    width: 55px;
    text-align: center;
    border-radius: 6px;
    border: none;
    padding: 4px;
}

.order-remove {
    background: none;
    border: none;
    color: #ff7a7a;
    font-size: 18px;
    cursor: pointer;
}

.order-totals {
    margin-top: 24px;
    max-width: 280px;
    margin-left: auto;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.totals-row.grand {
    font-size: 20px;
    font-weight: 700;
    color: #e3a87c;
}

.cart-actions-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}



/* =========================
   HERO
========================= */
.hero {
    padding: 3.5rem 0 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: center;
}

.hero-text h2 {
    font-size: clamp(2.4rem, 4vw, 3.1rem);
    margin: 0;
    line-height: 1.1;
}

.hero-text h2 span {
    color: var(--color-accent-soft);
}

.hero-text p {
    margin: 1rem 0 1.5rem;
    color: var(--color-text-muted);
    max-width: 32rem;
}

.hero-badge {
    background: radial-gradient(circle at top, #3a261d, #1a110c);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-badge span {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    text-align: center;
    color: var(--color-text-muted);
}

/* =========================
   FEATURED / SECTIONS
========================= */
.featured {
    padding: 2.5rem 0;
}

.featured .carousel-wrapper {
    max-width: calc((280px * 4) + (20px * 4)); 
}

.featured-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.featured-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.view-all {
    font-size: 0.85rem;
    color: var(--color-accent-soft);
    text-decoration: none;
}

/* =========================
   PRODUCT CARDS (CORE)
========================= */
.card {
    background: linear-gradient(145deg, var(--color-panel), var(--color-panel-soft));
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 10px 24px rgba(0,0,0,0.55);
    display: flex;
    flex: 0 0 250px;
    flex-direction: column;
    width: 250px;
    min-height: 450px; /* âœ… FULL CARD HEIGHT LOCK */
    transition:
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.card img {
    width: 100%;
    height: 230px;          /* âœ… fixed image box height */
    object-fit: contain;   /* âœ… FITS image inside without cropping */
    background: #241b15;      /* âœ… fills empty space nicely */
    display: block;
    transition: transform 0.25s ease;
}

/* Force every card body to use a vertical layout */
.card-body {
    padding: 0.9rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Invisible spacer that absorbs vertical differences */
.card-body::before {
    content: "";
    flex-grow: 1;   /* âœ… THIS replaces the missing description */
}

.card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 22px 48px rgba(0,0,0,0.65);
    z-index: 5; /* âœ… prevents overlap clipping */
}

/* âœ… Image subtle zoom for premium feel */
.card:hover img {
    transform: scale(1.04);
}

/* Stock always stays in the same vertical band */
.card-body .stock-remaining {
    margin-top: 6px;
}

/* Action row always stays aligned */
.card-body .product-actions {
    margin-top: 12px;
    margin-bottom: 12px;
}

/* View Details ALWAYS locked at bottom */
.card-body .view-details {
    margin-top: auto;  /* âœ… THIS IS THE KEY LINE */
}

.card-body h4 {
    font-size: 1rem;
    margin: 0;
    vertical-align:top;
    min-height: 52px;   /* âœ… FIXED NAME BOX */
    max-height: 52px;
    line-height: 1.3;
    overflow: hidden;
}

.card-body .price {
    color: var(--color-accent-soft);
    font-weight: 400;
    font-size: .9rem;
}

.card-body p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    min-height: 3rem;
}

/* =========================
   PRICE ROW (LOCKED FORMAT)
========================= */

.price-group {
    display: flex;
    align-items: top;
    gap: 4px;
    margin-top: 2px;
    min-height: 20px;   /* âœ… PRICE ROW FIXED */
    max-height: 20px;
}

.price-savings {
    font-size: .8rem;
    font-weight: 500;
    color: #3cff87;
    margin-top: 6px;
    min-height: 28px;
    max-height: 28px;
    visibility: hidden;  /* âœ… Reserves space even when empty */
}



/* âœ… Only show it when content actually exists */
.price-savings:not(:empty) {
    visibility: visible;
}

.price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d6ae92;
}

.price-original {
    font-size: 1rem;
    font-weight: 500;
    margin-left: 4px;
    text-align: center;
    color: #f7f1e9;
}
.price-original.crossed {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #b7b7b7;
    text-decoration: line-through;
}

.price-original.hidden {
    opacity: 0;
}

.price-msrp {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-left: 16px;
    text-align: center;
    text-transform: uppercase;
}

/* =========================
   STOCK INDICATOR
========================= */

.stock-remaining {
    font-size: 0.85rem;
    color: #FFD28A;
    margin-top: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    min-height: 10px;   /* âœ… FIXED STOCK ROW */
    max-height: 10px;
}

/* ================================
   âœ… PRODUCT DETAIL INLINE ACTIONS
================================ */

.inline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}


/* =========================
   LAYOUT
========================= */
.container {
    width: min(1200px, 100% - 2rem);
    margin-inline: auto;
}

/* =========================
   PRODUCT ACTION ROW FIX
========================= */
.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    /* âœ… HARD LOCK ROW SIZE */
    height: 40px;
    min-height: 40px;

    margin-top: 8px;
}

.qty-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* =========================
   âœ… SITE-MATCHED PROFESSIONAL CART BUTTON
========================= */

.btn-cart {
    background: linear-gradient(135deg, #8a4b32, #3b1f16);
    color: #fff;

    border: 1px solid rgba(0,0,0,0.35);
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);

    min-width: 110px;
    text-align: center;

    padding: 10px 22px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.08em;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}

.btn-cart:hover {
    background: color-mix(in srgb, var(--color-accent) 85%, white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.22);
    transform: translateY(-1px);
}

.btn-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.18);
}


/* =========================
   âœ… PRODUCT DETAIL PAGE
========================= */

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-top: 2.5rem;
}

.product-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    background: #140e09;
    box-shadow: var(--shadow-soft);
}

.product-detail-info h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-description {
    margin-top: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* =========================
   âœ… PROFESSIONAL VIEW DETAILS BUTTON
========================= */

.view-details {
    margin-top: auto;
    min-height: 20px;

    background: transparent;
    color: var(--color-accent);

    border: 1px solid rgba(0,0,0,0.25);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);

    padding: 9px 20px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.08em;
    text-align: center;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}

.view-details:hover {
    background: color-mix(in srgb, var(--color-accent) 12%, transparent);
    box-shadow: 0 3px 8px rgba(0,0,0,0.16);
    transform: translateY(-1px);
}

.view-details:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    background: color-mix(in srgb, var(--color-accent) 18%, transparent);
}

/* =========================
   ✅ ACCOUNT TABS USING VIEW-DETAILS STYLE
========================= */

.account-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.account-tabs .view-details {
    cursor: pointer;
    opacity: 0.6;
    transform: none;
}

.account-tabs .view-details.active {
    opacity: 1;
    background: color-mix(in srgb, var(--color-accent) 12%, transparent);
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.4);
    pointer-events: none;
}
/* =========================
   ✅ FORCE ACCOUNT TAB VISIBILITY CONTROL
========================= */

.account-content {
    display: none !important;
}

.account-content.active {
    display: block !important;
}


/* ✅ Styled Contact Form */
.styled-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.styled-contact-form input,
.styled-contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.45);
    color: #f7f1e9;
    font-size: 0.95rem;
    outline: none;
}

.styled-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.styled-contact-form input::placeholder,
.styled-contact-form textarea::placeholder {
    color: #b3a79a;
}

/* ✅ Loading + Status Message */
.form-status {
    margin-top: 14px;
    font-size: 0.95rem;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: center;
}

.form-status.loading {
    color: #f2c27b;
}

.form-status.success {
    background: rgba(80, 200, 120, 0.15);
    border: 1px solid rgba(80, 200, 120, 0.4);
    color: #7CFFC9;
}

.form-status.error {
    background: rgba(200, 80, 80, 0.15);
    border: 1px solid rgba(200, 80, 80, 0.4);
    color: #FF9A9A;
}

.hidden {
    display: none;
}

.styled-contact-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.45);
    color: #f7f1e9;
    font-size: 0.95rem;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.styled-contact-form select option {
    background: #1b1511;
    color: #f7f1e9;
}



/* =========================
   ✅ EDIT PROFILE TEXTAREA = INPUT STYLE MATCH
========================= */

/* =====================================================
   ✅ FORCE TEXTAREA TO BE IDENTICAL TO NORMAL INPUTS
   ✅ PREVENT AUTOFILL FROM CHANGING APPEARANCE
===================================================== */

/* 1️⃣ Make textarea inherit the exact textbox styling */
#editProfileModal textarea {
    all: unset;                 /* strips ALL browser defaults */
    display: block;
    width: 100%;
    box-sizing: border-box;

    /* ✅ Inherit your real input look */
    font: inherit;
    color: inherit;
    background: inherit;

    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.25);

    min-height: 100px;
    resize: vertical;
}

/* 2️⃣ Focus state identical to your inputs */
#editProfileModal textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

/* 3️⃣ Kill Chrome/Edge autofill styling completely */
#editProfileModal textarea:-webkit-autofill,
#editProfileModal textarea:-webkit-autofill:hover,
#editProfileModal textarea:-webkit-autofill:focus,
#editProfileModal input:-webkit-autofill,
#editProfileModal input:-webkit-autofill:hover,
#editProfileModal input:-webkit-autofill:focus {
    -webkit-text-fill-color: inherit !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    caret-color: inherit !important;
    transition: background-color 99999s ease-in-out 0s;
}


/* =========================
   PRODUCT IMAGE CAROUSEL
========================= */

/* The entire left image column is locked */
.product-image {
    position: relative;
    width: 80%;
    height:80%;
    max-width: 100%;
    flex: 0 0 400px;
}


/* âœ… MAIN IMAGE WRAPPER â€” MUST BE RELATIVE */
.product-img-window {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    width: 400px;
    height: 450px;
    margin: 0 auto;
}

/* Image track never affects layout */
.product-img-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

/* Every image identical size */
.product-main-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    flex: 0 0 100%;
    background: #241b15;
}

/* âœ… PRODUCT PAGE ARROWS (LOCKED TO IMAGE ONLY) */
.product-image .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 100px;
    transition: background 0.2s ease;
}

/* âœ… ARROWS FLOAT OVER IMAGE â€” NO PUSHING */
.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 100px;
    transition: background 0.2s ease;

    pointer-events: auto;  /* âœ… ensures click works */
}

.product-image .carousel-btn.left {
    left: 12px;
}

.product-image .carousel-btn.right {
    right: 12px;
}

.product-image .carousel-btn:hover {
    background: rgba(0,0,0,0.85);
}

/* ============================================================
   âœ… THUMBNAIL STRIP UNIFORM SIZE
============================================================ */

/* âœ… THUMB STRIP â€” NOW ANCHORED DIRECTLY TO IMAGE */
.product-thumb-strip {
    position: absolute;
    bottom: -64px;       /* âœ… tight under image */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 40;
}

.product-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #241b15;
    border-radius: 8px;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.product-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.product-thumb.active {
    opacity: 1;
    border: 2px solid var(--color-accent);
}


/* =========================
   CAROUSEL (FEATURED FINDS)
========================= */
/* Outer shell: arrows + viewport */
.carousel-shell {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.carousel-window {
    overflow: hidden;
    flex: 0 0 auto;   /* âœ… prevent flex squeezing */
    margin-inline: auto;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 20px;
    overflow: hidden;
    flex: 1;

    /* âœ… PREVENT ARROWS FROM OVERLAPPING CARDS */
    padding-left: 40px;
    padding-right: 40px;
}


.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: max-content;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-btn {
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    cursor: pointer;
    border-radius: 100px;
    transition: background 0.2s;
    z-index: 2;
    font-size: 28px;
    line-height: 1;           
    padding: 0;              
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-btn.left {
    left: 0px;
}

.carousel-btn.right {
    right: 80px;
}

/* âœ… CART TEXT DEFAULTS */
.cart-text-desktop { display: inline; }
.cart-text-mobile { display: none; }

/* =========================
   âœ… SHOP GRID + FILTER LAYOUT
========================= */

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 2.5rem 0;
}

/* âœ… FILTER PANEL */
.shop-filters {
    background: linear-gradient(145deg, #261b14, #1e140f);
    border-radius: 14px;
    padding: 1.2rem;
    border: 1px solid rgba(255,255,255,0.05);
    height: fit-content;
}

.shop-filters h4 {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.filter-form input {
    background: #140c08;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: 4px;
}

.filter-form .btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #8a4b32, #3b1f16);

}

/* ===============================
   âœ… SHOP GRID OVERLAP FIX
=============================== */

/* âœ… FORCE GRID TO CONTROL SIZE â€” NOT THE CARD */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* âœ… REMOVE HARD WIDTH FROM CARD (GRID CONTROLS IT NOW) */
.shop-grid .card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: none;
}

/* âœ… PREVENT IMAGE FROM CAUSING OVERFLOW */
.shop-grid .card img {
    max-width: 100%;
    height: 230px;
    object-fit: contain;
}

/* ============================================================
   âœ… ABSOLUTE LOCK: IMAGE + ARROWS CAN NEVER MOVE
============================================================ */

.image-lock {
    position: relative !important;
    width: 420px !important;
    min-width: 420px !important;
    max-width: 420px !important;
    height: 460px !important;     /* âœ… HARD HEIGHT LOCK */
    min-height: 460px !important;
    max-height: 460px !important;
    flex: 0 0 420px !important;
}

.image-lock .product-image {
    position: relative !important;
    width: 100px !important;
    min-width: 10px !important;
    max-width: 10px !important;
    height: 10px !important;     /* âœ… HARD HEIGHT LOCK */
    min-height: 10px !important;
    max-height: 10px !important;
    flex: 0 0 420px !important;
}

/* Viewport is also surgically locked */
.image-lock .product-img-window {
    position: absolute !important;
    inset: 0;
    overflow: hidden;
    border-radius: 18px;
}

/* Track never contributes to layout height */
.image-lock .product-img-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* All images identical immutable size */
.image-lock .product-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #241b15;
    flex: 0 0 100%;
}

/* ============================================================
   âœ… ARROWS ARE NOW PINNED TO THE IMAGE â€” FOREVER
============================================================ */

.image-lock .carousel-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;

    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 100px;
    transition: background 0.2s ease;
}

.image-lock .carousel-btn.left {
    left: -40px !important;
}

.image-lock .carousel-btn.right {
    right: -40px !important;
}

.image-lock .carousel-btn:hover {
    background: rgba(0,0,0,0.9);
}

/* ============================================================
   âœ… THUMB STRIP IS ALSO HARD LOCKED
============================================================ */

.product-thumb-strip {
    position: absolute;
    bottom: -70px;          /* âœ… just below image */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 30;
}

.image-lock .product-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #241b15;
    border-radius: 8px;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.image-lock .product-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.image-lock .product-thumb.active {
    opacity: 1;
    border: 2px solid var(--color-accent);
}

.product-card {
    position: relative;   /* ✅ REQUIRED for ribbon positioning */
    overflow: hidden;      /* ✅ THIS IS WHAT FIXES THE CROPPING */
}


/* ✅ RIBBON BODY */
.savings-ribbon {
    position: absolute;
    top: 14px;
    left: -48px;
    background: linear-gradient(135deg, #8fb9db, #3c6e96);
    color: #111;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 8px 54px;
    text-transform: uppercase;
    transform: rotate(-45deg);
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.45);
    border: 1px solid rgba(0,0,0,0.25);
}

/* ✅ OPTIONAL GLOSS */
.savings-ribbon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.35),
        rgba(255,255,255,0)
    );
}


/* ==============================
   ✅ MSRP SAVINGS (CLEAN TEXT)
============================== */

.msrp-savings-text {
    margin-top: 10px;
    display: block;

    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.06em;

    color: #5cff97;   /* clean premium green */
    text-transform: uppercase;

    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}



/* =============================
   THANK YOU PAGE — PREMIUM STYLE
============================= */

.thankyou-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(255,180,90,0.08), transparent 60%),
        linear-gradient(180deg, rgba(0,0,0,0.92), rgba(0,0,0,0.98));
    padding: 80px 20px;
}

.thankyou-card {
    max-width: 560px;
    width: 100%;
    padding: 60px 50px;
    text-align: center;

    background:
        linear-gradient(180deg, rgba(20,20,20,0.96), rgba(8,8,8,0.98));
    border-radius: 14px;

    border: 1px solid rgba(255, 184, 108, 0.25);
    box-shadow:
        0 0 0 1px rgba(255,184,108,0.15),
        0 25px 80px rgba(0,0,0,0.9);
}

/* ✅ ICON */

.thankyou-icon-glow {
    width: 64px;
    height: 64px;
    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
    color: #0b0;

    background:
        radial-gradient(circle, rgba(0,255,150,0.35), transparent 70%),
        #0b2a15;

    border-radius: 50%;
    border: 1px solid rgba(0,255,150,0.5);

    box-shadow:
        0 0 25px rgba(0,255,150,0.35),
        0 0 60px rgba(0,255,150,0.25);
}

/* ✅ TITLES */

.thankyou-title {
    font-size: 2.2rem;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.thankyou-lead {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ✅ DIVIDER */

.thankyou-divider {
    width: 80px;
    height: 2px;
    margin: 25px auto;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,184,108,0.8),
        transparent
    );
}

/* ✅ TEXT */

.thankyou-subtext {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.6;
}

/* ✅ BUTTON ROW */

.thankyou-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}


/* ==============================
   ✅ ORDER HISTORY MINI CARDS
================================ */

.order-mini-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;

    gap: 20px;

    padding: 18px 22px;
    margin-bottom: 16px;

    border-radius: 16px;
    text-decoration: none;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

/* LEFT BLOCK */
.order-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-id {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.order-date {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #fff;
}

/* MIDDLE STATUS */
.order-middle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-pill {
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ============================
   ✅ ORDER STATUS COLORS
============================ */

/* 🟡 PENDING — Awaiting Action */
.order-pill.pending {
    background: rgba(255, 200, 0, 0.18);
    color: #ffd24a;
    border: 1px solid rgba(255, 200, 0, 0.45);
}

/* 🟢 PAID — Success */
.order-pill.paid {
    background: rgba(0, 255, 160, 0.18);
    color: #40ffb4;
    border: 1px solid rgba(0, 255, 160, 0.45);
}

/* 🔵 SHIPPED — In Transit */
.order-pill.shipped {
    background: rgba(80, 160, 255, 0.18);
    color: #6aaeff;
    border: 1px solid rgba(80, 160, 255, 0.45);
}

/* 🟣 DELIVERED — Completed */
.order-pill.delivered {
    background: rgba(180, 120, 255, 0.18);
    color: #c49bff;
    border: 1px solid rgba(180, 120, 255, 0.45);
}

/* 🔴 REFUNDED — Money Returned */
.order-pill.refunded {
    background: rgba(255, 80, 80, 0.18);
    color: #ff7a7a;
    border: 1px solid rgba(255, 80, 80, 0.45);
}

/* 🔴⚠️ PAYMENT FAILED — Hard Error */
.order-pill.payment_failed {
    background: rgba(255, 40, 40, 0.22);
    color: #ff4444;
    border: 1px solid rgba(255, 40, 40, 0.55);
    box-shadow: 0 0 12px rgba(255, 40, 40, 0.25);
    animation: pulseError 1.6s infinite;
}

/* ✅ Optional Warning Pulse for Failed Payments */
@keyframes pulseError {
    0%   { box-shadow: 0 0 0 rgba(255, 40, 40, 0.0); }
    50%  { box-shadow: 0 0 12px rgba(255, 40, 40, 0.35); }
    100% { box-shadow: 0 0 0 rgba(255, 40, 40, 0.0); }
}


/* RIGHT SIDE */
.order-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.order-total {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffb47a;
}

.order-view {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 160, 90, 0.65);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: #ffb47a;
    text-transform: uppercase;
}

/* ✅ SCALE DOWN ON SMALL SCREENS */
@media (max-width: 720px) {
    .order-mini-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .order-right {
        align-items: flex-start;
    }
}



.invoice-panel {
    max-width: 720px;
    margin: 40px auto;
    background: linear-gradient(135deg, rgba(255,160,90,.12), rgba(0,0,0,.85));
    border-radius: 22px;
    padding: 36px;
    box-shadow: 0 0 30px rgba(0,0,0,.6);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.invoice-left h1 {
    margin: 0;
    font-size: 1.6rem;
}

.invoice-meta div {
    margin-top: 6px;
    opacity: .9;
}

.invoice-right {
    text-align: right;
}

.invoice-right h2 {
    margin: 0;
}

.invoice-billing {
    margin-top: 20px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table th,
.invoice-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.invoice-table th {
    text-align: left;
    font-weight: 600;
    opacity: .85;
}

.invoice-totals {
    max-width: 320px;
    margin-left: auto;
}

.invoice-totals div {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.invoice-grand {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,.25);
    padding-top: 10px;
}

/* ✅ PRINT MODE */
@media print {
    body * {
        visibility: hidden;
    }
    .invoice-panel, .invoice-panel * {
        visibility: visible;
    }
    .invoice-grand { 
        border-top: 1px solid;
    }
    .invoice-table th { 
        font-weight: 800;
    }
    .invoice-panel { 
        color: #000;
    }
      /* FORCE ALL STATUS PILLS TO BLACK ON INVOICE */
      .order-pill,
      .invoice-status,
      .status-badge {
        background: #000 !important;
        color: #000 !important;
        opacity: 1 !important;
        border: 1px solid #000 !important;
        box-shadow: none !important;
      }
    .invoice-table th,
    .invoice-table td {
    color: #000;
    border-bottom: 1px solid;
}
    .invoice-panel {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #fff;
        color: #000;
        box-shadow: none;
    }
    .cart-actions-bar {
    display: none !important;
}

}

/* ============================================================
   âœ… MANIFEST EXTRA COLUMN FINAL ALIGNMENT FIX
============================================================ */

.info-condition {
    text-align: right;
    justify-self: end;
    white-space: nowrap;
    color: #FFD28A;
    font-weight: 600;
}

/* Tooltip bubble */
.info-condition::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    width: max-content;
    max-width: 260px;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* Tooltip arrow */
.info-condition::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #111 transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 9999;
}

/* âœ… SHOW TOOLTIP ON HOVER */
.info-condition:hover::after,
.info-condition:hover::before {
    opacity: 1;
}

/* âœ… GLOBAL FLOATING TOOLTIP */
#global-tooltip {
    position: absolute;
    background: #111;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    max-width: 260px;
    pointer-events: none;
    opacity: 0;
    z-index: 99999;
    transition: opacity 0.12s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}


.cart-success {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    border-color: #16a34a !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(34,197,94,.6);
    transform: scale(1.05);
}

.btn-chat {
    background: linear-gradient(135deg, var(--color-accent), #d1663c);
    color: #fff;
    border: 1px solid rgba(0,0,0,0.6);
    box-shadow: var(--shadow-soft);
    min-width: 140px;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-chat:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}




/* =========================
   âœ… DROPDOWNS MATCH INPUTS (RECTANGLE, NO STUCK GLOW)
========================= */

.filter-form select {
    width: 100%;
    height: 46px;

    padding: 0 44px 0 14px;
    margin-top: 10px;

    font-size: 0.85rem;
    color: var(--color-text);

    background: linear-gradient(145deg, #20160f, #140e09);
    border: 1px solid rgba(255,255,255,0.08);

    /* âœ… RECTANGLE SHAPE (MATCH TEXT INPUTS) */
    border-radius: 12px;

    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.4),
        0 6px 16px rgba(0,0,0,0.55);

    cursor: pointer;

    /* âœ… SINGLE CLEAN ARROW */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23b3a79a' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* âœ… HOVER */
.filter-form select:hover {
    border-color: rgba(178, 74, 42, 0.45);
}

/* âœ… FOCUS (ONLY WHILE ACTIVE) */
.filter-form select:focus {
    border-color: var(--color-accent);
    box-shadow:
        0 0 0 1px rgba(178, 74, 42, 0.5),
        0 0 8px rgba(178, 74, 42, 0.25);
}

/* âœ… REMOVE "STUCK" GLOW AFTER CLICK */
.filter-form select:focus:not(:focus-visible) {
    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.4),
        0 6px 16px rgba(0,0,0,0.55);
    border-color: rgba(255,255,255,0.08);
}

/* âœ… DROPDOWN OPTION LIST */
.filter-form select option {
    background: #18110c;
    color: var(--color-text);
}

/* âœ… PRODUCT INFO TOGGLES */
.product-info-toggles {
    display: flex;
    gap: 12px;
    margin: 18px 0;
}

/* ================================
   âœ… PRODUCT INFO PANELS â€” REFINED
================================ */

/* Panel container */
.info-panel {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 10px;
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.08);

    /* âœ… SCALE IT DOWN VISUALLY */
    max-width: 92%;
    font-size: 0.85rem;

    /* âœ… SOFT SEPARATION */
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* Panel title */
.info-panel h3 {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    opacity: 0.9;
}

/* Table wrapper */
.info-table {
    display: flex;
    flex-direction: column;
    gap: 6px; /* âœ… tighter spacing */
}

/* Individual row */
.info-row {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 0.8fr;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
}

/* Labels */
.info-title {
    font-size: 0.8rem;
    opacity: 0.75;
    white-space: nowrap;
}

/* Values */
.info-value {
    font-size: 0.85rem;
    opacity: 0.95;
}


/* ================================
   âœ… COLOR STATES (CONFIRMED)
================================ */

.extra-broken {
    color: #ff4d4d;
}

.extra-like-new {
    color: #60a5fa;
}

.extra-used {
    color: #facc15;
}

.extra-brand-new {
    color: #22c55e;
}

.extra-default {
    color: #cbd5e1;
}


/* âœ… HEADER CART ICON + BADGE */
.auth-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* =========================
   ✅ AUTH FORM INPUT OVERRIDE (MATCH DARK THEME)
========================= */

.auth-box input,
.order-panel input[type="text"],
.order-panel input[type="email"],
.order-panel input[type="password"] {
    width: 100%;
    height: 48px;

    background: linear-gradient(145deg, #20160f, #140e09);
    color: var(--color-text);

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;

    padding: 0 14px;
    font-size: 0.95rem;

    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.4),
        0 6px 16px rgba(0,0,0,0.35);

    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ✅ HOVER */
.auth-box input:hover,
.order-panel input:hover {
    border-color: rgba(178, 74, 42, 0.45);
}

/* ✅ FOCUS */
.auth-box input:focus,
.order-panel input:focus {
    border-color: var(--color-accent);
    box-shadow:
        0 0 0 1px rgba(178, 74, 42, 0.5),
        0 0 10px rgba(178, 74, 42, 0.25);
}

/* ✅ PLACEHOLDER COLOR */
.auth-box input::placeholder,
.order-panel input::placeholder {
    color: var(--color-text-muted);
}


.cart-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cart-icon {
    font-size: 22px;
    color: #1f2937;
    transition: transform 0.15s ease;
}

.cart-icon-wrapper:hover .cart-icon {
    transform: scale(1.1);
}

/* âœ… CART BADGE NUMBER */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #16a34a; /* green */
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

/* =========================
   HOME PAGE ENHANCEMENTS
========================= */

.home-value-strip {
  margin-top: 10px;
  padding: 60px 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
}

.value-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.categories-grid {
  max-width: 1100px;
  max-height:200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 6px;
}

.value-box {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 26px;
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
}

.value-box h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  text-align:center;
  color: var(--color-accent-soft);
}

.value-box p {
  opacity: 0.85;
  font-size: 0.9rem;
}

/* CATEGORY STRIP */
.home-category-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px auto 5px;
}

.home-category-strip a {
  padding: 12px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  font-size: 0.85rem;
  color: inherit;
  background: rgba(0,0,0,0.4);
  transition: all 0.2s ease;
}

.home-category-strip a:hover {
  background: rgba(0,0,0,0.8);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* TRUST BAR */
.home-trust-bar {
  margin: 60px auto;
  display: flex;
  justify-content: center;
  gap: 36px;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* NEWSLETTER */
.home-newsletter {
  padding: 70px 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.home-newsletter h3 {
  margin-bottom: 8px;
}

.home-newsletter p {
  opacity: 0.75;
  margin-bottom: 18px;
}

.home-newsletter form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-newsletter input {
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: inherit;
}





/* =========================
   ✅ FORCE DARK MODE ON CHROME AUTOFILL
========================= */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--color-text) !important;
    transition: background-color 9999s ease-in-out 0s !important;
    box-shadow: 0 0 0px 1000px #140e09 inset !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 14px;
}


/* ===============================
         MOBILE SECTION
=============================== */


/* ===============================
   ✅ RESPONSIVE SAFETY (NO OVERLAP)
=============================== */

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ✅ If viewport cannot safely fit 4 cards → drop to 3 */
@media (max-width: 1380px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
  }
}

/* ===============================
   ✅ TABLET + SMALL DESKTOP
=============================== */

@media (max-width: 1200px) {
.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 14px;
    padding: 0 6px;
    justify-content: center;
  }
}

/* ✅ Phones → 1 per row */
@media (max-width: 580px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(250px, 250px));
    justify-content: center;
  }
}

/* ===============================
   ✅ GLOBAL MOBILE (PHONES)
=============================== */

@media (max-width: 900px) {

  /* ✅ Disable hover on touch */
  .card:hover { transform: none; box-shadow: 0 10px 24px rgba(0,0,0,0.55); }
  .card:hover img { transform: none; }

  /* ✅ Product Detail Stack */
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* =========================
     ✅ HERO
  ========================= */
  .hero {
    padding: 70px 20px 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .hero-text {
    align-items: center;
    text-align: center;
  }

  .hero-text h2 {
    font-size: 1.9rem;
  }

  .hero-text p {
    font-size: 0.95rem;
    opacity: 0.9;
  }

  .hero .btn {
    margin-top: 14px;
    padding: 10px 24px;
  }

  .hero-badge {
    order: -1;
    padding: 1.2rem;
    margin-top: 10px;
  }

  .hero-badge span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  /* =========================
     ✅ HEADER STACK
  ========================= */
  .brand {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav,
  .auth-buttons {
    width: 100%;
    justify-content: center;
  }

  /* =========================
     ✅ CAROUSEL SWIPE MODE
  ========================= */
  .carousel-btn { display: none; }

  .carousel-window {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100% !important;
  }

  .carousel-track {
    display: flex;
    padding: 12px;
    gap: 16px;
    transform: none !important;
  }

  .carousel-track .card {
    min-width: 72%;
    scroll-snap-align: start;
  }
  
  /* =========================
   ✅ FEATURED FINDS MOBILE CARD FIX
========================= */
@media (max-width: 900px) {

  .carousel-track .card {
    min-width: 260px;   /* ✅ Hard cap size */
    max-width: 260px;
    aspect-ratio: 3 / 4;
    flex: 0 0 auto;
  }

  .carousel-track .card img {
    height: 170px;      /* ✅ Prevent image stretching */
    object-fit: contain;
  }
}


  /* =========================
     ✅ CART BUTTONS
  ========================= */
  .cart-text-desktop { display: none; }
  .cart-text-mobile  { display: inline; }

 

  .product-actions {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .qty-wrap input { width: 48px; }

  .view-details {
    margin-top: 14px;
    display: block;
  }

  /* =========================
     ✅ HOMEPAGE STRIPS
  ========================= */
  .home-category-strip {
    margin: 46px auto 24px;
    padding: 0 10px;
  }

  .home-category-strip a {
    font-size: 0.75rem;
    padding: 9px 14px;
  }

  .home-value-strip {
    padding: 50px 16px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .home-trust-bar {
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.75rem;
  }

  .home-newsletter {
    padding: 55px 16px;
  }

  .home-newsletter form {
    flex-direction: column;
  }

  .home-newsletter input,
  .home-newsletter button {
    width: 100%;
  }

/* =========================================================
   ✅ SHOP PAGE — MOBILE CLEANUP (FINAL, NO STRETCH, NO VOID)
========================================================= */

@media (max-width: 900px) {

  /* ✅ STACK FILTER + GRID */
  .shop-layout {
    grid-template-columns: 1fr;
    row-gap: 22px;
    padding: 1.2rem 10px;
  }

  /* ✅ FILTER PANEL — COMPACT, NOT FULL SCREEN */
  .shop-filters {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border-radius: 14px;
  }

  .shop-filters h4 {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 12px;
  }

  /* ✅ GRID-BASED FILTER FORM (NO STRETCH) */
  .filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* ✅ FULL WIDTH WHERE NEEDED */
  .filter-form input,
  .filter-form select {
    width: 100%;
    min-width: 0;
  }

  /* ✅ SEARCH SPANS FULL WIDTH */
  .filter-form input[name="search"] {
    grid-column: span 2;
  }

  /* ✅ BUTTONS SIDE-BY-SIDE */
  .filter-form button,
  .filter-form a.btn {
    width: 100%;
  }

  /* ==================================================
     ✅ PRODUCT GRID — SAME SCALE AS HOMEPAGE CARDS
  ================================================== */
  .shop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 14px;
    padding: 0 4px;
    justify-content: center;
  }

  /* ✅ LOCK CARD PROPORTIONS */
  .shop-grid .card {
    width: 100%;
    max-width: 280px;     /* ✅ Desktop reference width */
    aspect-ratio: 3 / 4; /* ✅ Prevents vertical stretch */
    margin-inline: auto;
    flex: none;
  }

  /* ✅ IMAGE SCALES CLEANLY */
  .shop-grid .card img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
  }

}

/* =========================
   ✅ SMALL PHONES (iPHONE SE / MINI)
========================= */

@media (max-width: 520px) {

  .filter-form {
    grid-template-columns: 1fr;
  }

  .filter-form input[name="search"] {
    grid-column: span 1;
  }

    .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-grid .card {
    max-width: 260px;
  }

  .shop-grid .card img {
    max-height: 150px;
  }

}

/* =========================
   ✅ MOBILE CART FIX
========================= */
@media (max-width: 768px) {

  .order-panel {
    padding: 16px;
    margin: 20px auto;
  }

  .order-header h2 {
    font-size: 1.4rem;
  }

  .order-grid-header {
    display: none; /* ✅ Hide desktop headers completely */
  }

  .order-row {
    grid-template-columns: 1fr; /* ✅ Stack into rows */
    gap: 12px;
    padding: 14px 0;
  }

  .order-item-name {
    font-size: 0.95rem;
    font-weight: 600;
  }

  .order-row .center,
  .order-row .right {
    text-align: left;
    font-size: 0.9rem;
  }

  .order-row input {
    width: 70px;
  }

  .order-remove {
    align-self: flex-end;
    font-size: 20px;
  }

  .order-totals {
    max-width: 100%;
  }

  .cart-actions-bar {
    flex-direction: column;
    gap: 14px;
  }

  .cart-actions-bar a,
  .cart-actions-bar button {
    width: 100%;
    text-align: center;
  }
}

/* ======================================================
   ✅ MOBILE CART FIX — NO MORE TINY DESKTOP MODE
====================================================== */

@media (max-width: 700px) {

  /* ✅ FULL WIDTH CART */
  .order-panel {
    max-width: 100%;
    padding: 16px;
    margin: 20px 8px;
  }

  /* ✅ HIDE DESKTOP GRID HEADER */
  .order-grid-header {
    display: none;
  }

  /* ✅ STACK EACH CART ROW */
  .order-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 14px 0;
    align-items: center;
  }

  /* ✅ ITEM NAME FULL WIDTH */
  .order-item-name {
    grid-column: span 2;
    font-size: 0.95rem;
    font-weight: 600;
  }

  /* ✅ QTY + PRICE + TOTAL CLEAN STACK */
  .order-row .center,
  .order-row .right {
    font-size: 0.9rem;
  }

  .order-row input {
    width: 60px;
    font-size: 0.9rem;
  }

  /* ✅ REMOVE BUTTON ALIGNED RIGHT */
  .order-remove {
    grid-column: span 2;
    text-align: right;
    font-size: 18px;
  }

  /* ✅ TOTALS FULL WIDTH */
  .order-totals {
    max-width: 100%;
    margin-top: 18px;
  }

  .totals-row {
    font-size: 0.9rem;
  }

  .totals-row.grand {
    font-size: 1.2rem;
  }

  /* ✅ STACK ACTION BUTTONS */
  .cart-actions-bar {
    flex-direction: column;
    gap: 12px;
  }

  .cart-actions-bar .btn {
    width: 100%;
  }
}

/* ======================================================
   ✅ HARD MOBILE CART OVERRIDE (FINAL FIX)
====================================================== */

@media (max-width: 768px) {

  .container {
    width: 100% !important;
    padding: 0 12px !important;
  }

  .order-panel {
    max-width: 100% !important;
    padding: 16px !important;
    margin: 14px 0 !important;
  }

  /* ✅ KILL DESKTOP GRID HEADER */
  .order-grid-header {
    display: none !important;
  }

  /* ✅ STACK EACH CART ITEM */
  .order-row {
    display: block !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .order-item-name {
    font-size: 1rem !important;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .order-row .center,
  .order-row .right {
    display: inline-block;
    font-size: 0.95rem !important;
    margin-right: 12px;
  }

  .order-row input {
    width: 64px !important;
    font-size: 1rem !important;
  }

  .order-remove {
    display: block;
    margin-top: 10px;
    text-align: right;
    font-size: 20px;
  }

  /* ✅ TOTALS STACK FULL WIDTH */
  .order-totals {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: 22px;
  }

  .totals-row {
    font-size: 0.95rem;
  }

  .totals-row.grand {
    font-size: 1.3rem;
  }

  /* ✅ STACK BUTTONS */
  .cart-actions-bar {
    flex-direction: column !important;
    gap: 12px;
    margin-top: 24px;
  }

  .cart-actions-bar .btn {
    width: 100% !important;
  }
}





