/* =========================
   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;
}

/* =========================
   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);
}



/* ============================
   ✅ MANIFEST CONDITION COLORS
============================ */

/* 🔴 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;
}



/* =========================
   LAYOUT
========================= */
.container {
    width: min(1200px, 100% - 2rem);
    margin-inline: auto;
}

/* =========================
   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);
}

/* =========================
   BUTTONS (REUSABLE)
========================= */
.btn {
    border-radius: 999px;
    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);
}

.order-panel {
    max-width: 1100px;
    margin: 60px auto;
    padding: 30px;
    border-radius: 18px;
    background: linear-gradient(180deg, #2a1c14, #1b120d);
}

.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;
}

.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: 6px;
    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: 650;
    color: #f6b07a;
}

.price-original {
    font-size: .8rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.price-msrp {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    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;
}


/* =========================
   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: var(--color-accent);
    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);
}

/* =========================
   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 {
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 100px;
    transition: background 0.2s;
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-btn.left {
    left: 0px;
}

.carousel-btn.right {
    right: -10px;
}

/* ✅ 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;
}

/* ===============================
   ✅ SHOP GRID OVERLAP FIX
=============================== */

/* ✅ FORCE GRID TO CONTROL SIZE — NOT THE CARD */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 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);
}

/* ============================================================
   ✅ 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);
}



/* =========================
   ✅ 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;
}

.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;
}


/* ===============================
   ✅ RESPONSIVE SAFETY (NO OVERLAP)
=============================== */

/* ✅ Panel animation */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 1200px) {
    .shop-grid {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
    }
}

@media (max-width: 900px) {
    .shop-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 580px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* ✅ Disable hover animation on mobile (avoids tap bugs) */
@media (max-width: 900px) {
    .card:hover {
        transform: none;
        box-shadow: 0 10px 24px rgba(0,0,0,0.55);
    }

    .card:hover img {
        transform: none;
    }
}

/* =========================
   ✅ MOBILE SHOP LAYOUT
========================= */
@media (max-width: 1000px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* ✅ MOBILE */
@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   ✅ MOBILE STABILITY FIX (NO STRETCH / NO EXPLOSION)
========================= */
@media (max-width: 900px) {

    /* ✅ HERO CLEAN STACK */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
    
    /* ✅ FORCE BRAND LEFT-ALIGN ON MOBILE */
    .brand {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .hero-text h2 {
        font-size: 1.9rem;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;   /* ✅ HARD CENTER EVERYTHING */
        text-align: center;
    }

    .hero-text .btn,
    .hero a.btn {
        width: auto;              /* ✅ NO FULL WIDTH */
        display: inline-flex;     /* ✅ SHRINK TO CONTENT */
        margin: 14px auto 0;      /* ✅ TRUE CENTER */
        padding: 10px 24px;       /* ✅ CLEAN TAP SIZE */
    }

    .hero-badge {
        order: -1;
        padding: 1.2rem;
    }

    /* ✅ HEADER SAFE WRAP */
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .main-nav,
    .auth-buttons {
        width: 100%;
        justify-content: center;
    }

    /* =========================
       ✅ CAROUSEL: SWIPE MODE
    ========================= */

    /* ✅ HIDE ARROWS */
    .carousel-btn {
        display: none;
    }

    /* ✅ VIEWPORT BECOMES SCROLL CONTAINER */
    .carousel-window {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        width: 100% !important;
    }

    /* ✅ TRACK STOPS USING TRANSFORM PHYSICS */
    .carousel-track {
        padding-left: 12px;
        padding-right: 12px;
        gap: 16px;
        transform: none !important;
    }

    /* ✅ MOBILE CART BUTTON TEXT SWAP */
    .cart-text-desktop {
        display: none;
    }
    
    .cart-text-mobile {
        display: inline;
    }
    
    /* ✅ TIGHTER MOBILE CART BUTTON */
    .btn-cart {
        padding: 10px 12px;
        font-size: 0.8rem;
    }


    .product-actions {
        flex-direction: row;       /* ✅ FORCE SINGLE ROW */
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 10px;
        flex-wrap: nowrap;         /* ✅ PREVENT WRAP */
    }

    .qty-wrap {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .qty-wrap input {
        width: 48px;
    }

    .btn-cart {
        flex: 1 0 auto;            /* ✅ GIVES IT ROOM BUT NO WRAP */
        white-space: nowrap;      /* ✅ PREVENT TEXT WRAP */
        padding: 10px 14px;       /* ✅ SLIGHTLY TIGHTER */
        font-size: 0.8rem;        /* ✅ MICRO SCALE */
    }

    /* ✅ ENSURE VIEW DETAILS NEVER COLLIDES */
    .view-details {
        margin-top: 14px;
        display: block;
    }
    

}




