/* ===== product-detail.css ===== */
/* ==========================================================
   DOCUMENT
========================================================== */

html {

    scroll-behavior: smooth;

}


/* ==========================================================
   PDP WRAPPER
========================================================== */

.pdp-wrapper {

    margin-top: 40px;

}

.pdp-hero {

    display: grid;

    grid-template-columns: 480px 1fr 320px;

    gap: 24px;

    align-items: start;

}


/* ==========================================================
   PDP CARDS
========================================================== */

.pdp-gallery,
.pdp-summary,
.pdp-inquiry,
.pdp-description-card,
.pdp-spec-card,
.pdp-vehicle-card,
.pdp-related-card {

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: 16px;

    overflow: hidden;

}

.pdp-description-card {

    display: grid;

    gap: 24px;

}

.pdp-description-card ul {

    padding-left: 18px;

}

.pdp-description-card li {

    margin-bottom: 10px;

}


/* ==========================================================
   GALLERY
========================================================== */

.pdp-gallery {

    padding: 24px;

}

.pdp-main-image {

    overflow: hidden;

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: 16px;

}

.pdp-main-image {
    cursor: zoom-in;
}

.pdp-main-image:focus-visible {
    outline: 3px solid var(--color-danger-alpha-35);
    outline-offset: 3px;
}

.pdp-main-image img {

    width: 100%;

    height: 500px;

    object-fit: contain;

    transform: none !important;

}

.pdp-thumbnails {

    display: flex;

    gap: 12px;

    margin-top: 20px;

}

.pdp-thumb {

    width: 72px;

    height: 72px;

    overflow: hidden;

    border: 1px solid var(--border-color);

    border-radius: 10px;

    cursor: pointer;

}

.pdp-thumb img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    transform: none !important;

    transition: none;

}


/* ==========================================================
   PRODUCT SUMMARY
========================================================== */

.pdp-summary {

    padding: 32px;

}

.pdp-badges {

    display: flex;

    gap: 10px;

    margin-bottom: 16px;

}

.pdp-stock {

    padding: 6px 12px;

    background: var(--color-success);

    border-radius: 999px;

    color: var(--bg-card);

    font-size: 12px;

    font-weight: 700;

}

.pdp-genuine {

    padding: 6px 12px;

    background: var(--surface-primary-soft);

    border-radius: 999px;

    color: var(--color-primary);

    font-size: 12px;

    font-weight: 700;

}

.pdp-title {

    margin-bottom: 12px;

    font-size: 48px;

    line-height: 1.1;

}

.pdp-part {

    margin-bottom: 24px;

    color: var(--color-primary);

    font-weight: 700;

}


/* ==========================================================
   PRODUCT META
========================================================== */

.pdp-meta {

    display: table;

    width: 100%;

    margin-top: 24px;

    border: 1px solid var(--border-color);

    border-collapse: collapse;

}

.pdp-row {

    display: table-row;

}

.pdp-row:not(:last-child) {

    border-bottom: 1px solid var(--border-color);

}

.pdp-row strong,

.pdp-reference-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.pdp-reference-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border: 1px solid var(--border-color, var(--border-color));
    border-radius: 0.45rem;
    background: var(--surface-soft, var(--surface-alt));
    font-size: 0.92em;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.pdp-row span {

    display: table-cell;

    padding: 12px 16px;

    vertical-align: top;

}

.pdp-row strong {

    width: 240px;

    background: var(--surface-subtle);

    border-right: 1px solid var(--border-color);

    color: var(--text-primary);

    font-weight: 600;

}

.pdp-row span {

    color: var(--color-text-tertiary);

}


/* ==========================================================
   META PILLS
========================================================== */

.pdp-meta-pills {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin: 16px 0 24px;

}

.pdp-pill {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 8px 14px;

    background: var(--surface-alt);

    border: 1px solid var(--border-color);

    border-radius: 999px;

    font-size: .9rem;

    font-weight: 500;

    line-height: 1;

}

.pdp-pill.part-number {

    background: var(--color-primary);

    border-color: var(--color-primary);

    color: var(--bg-card);

}


/* ==========================================================
   OEM
========================================================== */

.pdp-oem {

    margin-top: 24px;

    padding: 20px;

    border: 1px solid var(--border-color);

    border-radius: 12px;

}

.pdp-oem h3 {

    margin-bottom: 12px;

    font-size: 18px;

}

.pdp-oem table {

    width: 100%;

}

.pdp-oem td {

    padding: 8px 0;

}


/* ==========================================================
   INQUIRY
========================================================== */

.pdp-inquiry {

    position: sticky;

    top: 100px;

    padding: 24px;

}

.pdp-inquiry h3 {

    margin-bottom: 20px;

}

.pdp-inquiry form {

    display: grid;

    gap: 12px;

}

.pdp-inquiry textarea {

    min-height: 120px;

    resize: vertical;

}

.pdp-inquiry .btn {

    width: 100%;

}
/* ==========================================================
   TRUST BAR
========================================================== */

.pdp-trust {

    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 0;

    margin-top: 32px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: 16px;

    overflow: hidden;

}

.pdp-trust-item {

    display: flex;

    align-items: center;

    gap: 16px;

    padding: 24px;

    border-right: 1px solid var(--surface-alt);

}

.pdp-trust-item:last-child {

    border-right: none;

}

.pdp-trust-item img {

    width: 56px;

    height: 56px;

}

.pdp-trust-item strong {

    display: block;

    margin-bottom: 4px;

    font-size: 15px;

    color: var(--text-primary);

}

.pdp-trust-item span {

    font-size: 13px;

    color: var(--text-secondary);

}


/* ==========================================================
   TABS
========================================================== */

.pdp-tab-nav {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 24px;

}

.pdp-tab-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 24px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: 999px;

    color: var(--text-primary);

    font-weight: 600;

    text-decoration: none;

    transition: .2s;

}

.pdp-tab-btn:hover {

    background: var(--color-primary-dark);

    border-color: var(--color-primary-dark);

    color: var(--bg-card);

}

.pdp-tab-btn.active {

    background: var(--color-primary);

    border-color: var(--color-primary);

    color: var(--bg-card);

}

/* ==========================================================
   SPECIFICATIONS
========================================================== */

.pdp-spec-table {

    width: 100%;

}

.pdp-spec-table td {

    padding: 12px;

    border-bottom: 1px solid var(--surface-alt);

}


/* ==========================================================
   COMPATIBLE VEHICLES
========================================================== */

.pdp-vehicles {

    margin-top: 40px;

}

.pdp-vehicle-grid {

    display: flex;

    gap: 24px;

    overflow-x: auto;

    overflow-y: hidden;

    scroll-behavior: smooth;

    scrollbar-width: thin;

    padding-bottom: 12px;

}

.pdp-vehicle-grid::-webkit-scrollbar {

    height: 8px;

}

.pdp-vehicle-grid::-webkit-scrollbar-thumb {

    background: var(--border-color);

    border-radius: 999px;

}

.pdp-vehicle-card {

    flex: 0 0 260px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: 16px;

    overflow: hidden;

    transition: .25s ease;

}

.pdp-vehicle-card:hover {

    transform: translateY(-4px);

    border-color: var(--color-primary);

    box-shadow: 0 12px 30px var(--overlay-black-08);

}

.pdp-vehicle-image {

    display: flex;

    align-items: center;

    justify-content: center;

    height: 180px;

    padding: 20px;

    border-bottom: 1px solid var(--surface-alt);

}

.pdp-vehicle-image img {

    width: 100%;

    max-width: 100%;

    max-height: 120px;

    object-fit: contain;

}

.pdp-vehicle-content {

    padding: 20px;

    text-align: center;

}

.pdp-vehicle-content h4 {

    margin: 0;

    font-size: 16px;

}


/* ==========================================================
   PDP RECOMMENDATION GALLERIES
========================================================== */

.pdp-recommendation-section {
    margin-top: 50px;
}

.pdp-recommendation-wrapper {
    position: relative;
    min-width: 0;
}

.pdp-related-slider {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 12px;
    scroll-snap-type: x proximity;
}

.pdp-related-slider::-webkit-scrollbar {
    display: none;
}

.pdp-related-slider .product-card {
    flex: 0 0 clamp(210px, 24vw, 280px);
    min-width: 0;
    scroll-snap-align: start;
}

.pdp-related-prev,
.pdp-related-next {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    box-shadow: 0 4px 12px var(--overlay-black-12);
    cursor: pointer;
    transform: translateY(-50%);
}

.pdp-related-prev {
    left: 8px;
}

.pdp-related-next {
    right: 8px;
}

.pdp-related-prev:hover,
.pdp-related-next:hover {
    border-color: var(--color-primary);
}

.pdp-related-slider .product-image {
    height: 125px;
}

.pdp-related-slider .product-content {
    padding: 10px;
}

.pdp-related-slider .product-brand,
.pdp-related-slider .product-part,
.pdp-related-slider .product-category,
.pdp-related-slider .product-vehicles,
.pdp-related-slider .product-description {
    display: none !important;
}

.pdp-related-slider .product-title {
    min-height: 34px;
    max-height: 34px;
    margin: 4px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.pdp-related-slider .add-to-cart {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 11px;
}

@media (max-width: 1200px) {
    .pdp-related-slider .product-card {
        flex-basis: clamp(210px, 30vw, 260px);
    }
}

@media (max-width: 768px) {
    .pdp-related-wrapper {
        min-width: 0;
    }

    .pdp-related-slider {
        gap: 12px;
        padding-inline: 0;
    }

    .pdp-related-slider .product-card {
        flex-basis: min(78vw, 280px);
    }

    .pdp-related-prev {
        left: 4px;
    }

    .pdp-related-next {
        right: 4px;
    }
}

@media (max-width: 420px) {
    .pdp-related-slider .product-card {
        flex-basis: min(84vw, 280px);
    }
}

/* ==========================================================
   DESCRIPTION
========================================================== */

.pdp-description-grid {

    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 24px;

    align-items: start;

}

.pdp-description-card {

    display: grid;

    gap: 24px;

    padding: 24px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: 16px;

}

.pdp-description-card h3 {

    margin-bottom: 16px;

}

.pdp-description-card ul,
.pdp-highlights {

    padding-left: 18px;

}

.pdp-description-card li,
.pdp-highlights li {

    margin-bottom: 12px;

}


/* ==========================================================
   OEM TABLE
========================================================== */

.pdp-oem-table {

    width: 100%;

}

.pdp-oem-table td {

    padding: 10px 0;

    border-bottom: 1px solid var(--surface-alt);

}


/* ==========================================================
   PDP GALLERY
========================================================== */

.pdp-gallery {

    position: relative;

}

.pdp-brand-badge {

    position: absolute;

    top: 16px;

    left: 16px;

    z-index: 10;

    width: 184px;

    height: 76px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 8px;

    background: var(--bg-card);

    border-radius: 12px;

    box-shadow: 0 6px 18px var(--overlay-black-08);

    overflow: hidden;

    pointer-events: none;

}

.pdp-brand-badge img {

    display: block;

    width: 56px;

    height: 56px;

    max-width: none;

    max-height: none;

    object-fit: contain;

    transform: scale(1.45);

    transform-origin: center;

    flex: 0 0 auto;

}

.pdp-thumb-wrapper {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 16px;

}

.pdp-thumbnails {

    display: flex;

    flex: 1;

    gap: 12px;

    overflow-x: auto;

    scroll-behavior: smooth;

    scrollbar-width: none;

}

.pdp-thumbnails::-webkit-scrollbar {

    display: none;

}

.pdp-thumb {

    flex: 0 0 90px;

}

.pdp-thumb:hover {

    border-color: var(--color-primary-dark);

}

.pdp-thumb img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}

.pdp-thumb-prev,
.pdp-thumb-next {

    width: 38px;

    height: 38px;

    background: var(--bg-card);

    border: none;

    border-radius: 50%;

    box-shadow: 0 4px 12px var(--overlay-black-12);

    cursor: pointer;

}

/* ==========================================================
   PRODUCT ACTIONS
========================================================== */

.pdp-actions {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 24px;

}


/* ==========================================================
   QUANTITY SELECTOR
========================================================== */

.pdp-qty {

    display: flex;

    align-items: center;

    flex-shrink: 0;

    overflow: hidden;

    border: 1px solid var(--border-color);

    border-radius: 10px;

}

.pdp-qty button {

    width: 42px;

    height: 42px;

    background: var(--bg-card);

    border: none;

    cursor: pointer;

    font-size: 20px;

}

.pdp-qty input {

    width: 60px;

    height: 42px;

    border: none;

    outline: none;

    text-align: center;

}


/* ==========================================================
   ACTION BUTTONS
========================================================== */

.pdp-cart-btn {

    flex: 1;

}

.pdp-remove-btn {

    width: 46px;

    height: 46px;

    background: var(--color-danger);

    border: none;

    border-radius: 10px;

    color: var(--bg-card);

    cursor: pointer;

}


/* ==========================================================
   SECTION NAVIGATION
========================================================== */

.pdp-section-nav {

    position: sticky;

    top: 70px;

    z-index: 100;

    padding: 12px 0;

    background: var(--bg-card);

}

.pdp-section-nav a {

    text-decoration: none;

}

.pdp-section {

    margin-bottom: 50px;

}

.pdp-section-title {

    margin-bottom: 24px;

    font-size: 32px;

    font-weight: 700;

    color: var(--text-primary);

}
@media (max-width: 1200px) {
    .pdp-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .pdp-inquiry {
        position: static;
    }
}

@media (max-width: 992px) {
    .pdp-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pdp-description-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   MOBILE PRODUCT DETAIL
   All PDP-specific mobile behavior lives here.
========================================================== */

@media (max-width: 768px) {

    .pdp-wrapper {
        margin-top: 20px;
        padding-bottom: 84px;
    }

    .pdp-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .pdp-gallery {
        width: 100%;
        min-width: 0;
        padding: 12px;
        overflow: hidden;
    }

    .pdp-main-image {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .pdp-main-image img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: contain;
    }

    .pdp-thumb-wrapper {
        width: 100%;
        min-width: 0;
        margin-top: 12px;
    }

    .pdp-thumbnails {
        min-width: 0;
        width: 100%;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .pdp-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .pdp-thumb {
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
    }

    .pdp-thumb-prev,
    .pdp-thumb-next {
        display: none;
    }

    .pdp-brand-badge {
        top: 10px;
        left: 10px;
        width: 164px;
        height: 64px;
        padding: 5px;
    }

    .pdp-brand-badge img {
        width: 52px;
        height: 52px;
    }

    .pdp-summary,
    .pdp-inquiry,
    .pdp-description-card {
        min-width: 0;
        padding: 16px;
    }

    .pdp-title {
        font-size: clamp(1.45rem, 7vw, 2rem);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .pdp-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .pdp-actions .pdp-add-to-purchase-cart,
    .pdp-actions .pdp-request-part-link {
        flex: 1 1 100%;
        width: 100%;
    }

    .pdp-inquiry {
        position: static;
    }

    .pdp-trust {
        grid-template-columns: 1fr;
    }

    .pdp-trust-item {
        border-right: 0;
        border-bottom: 1px solid var(--surface-alt);
        padding: 16px;
    }

    .pdp-trust-item:last-child {
        border-bottom: 0;
    }

    .pdp-description-grid {
        grid-template-columns: 1fr;
    }

    .pdp-section-nav {
        position: sticky;
        top: 0;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .pdp-section-nav::-webkit-scrollbar {
        display: none;
    }

    .pdp-section-nav a {
        display: inline-block;
    }

}

@media (max-width: 420px) {
    .pdp-gallery {
        padding: 10px;
    }

    .pdp-main-image {
        border-radius: 12px;
    }

    .pdp-thumb {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }
}


/* ==========================================================
   MOBILE PDP DATA + ACTION HARDENING
========================================================== */

@media (max-width: 768px) {
    .pdp-meta {
        display: block;
        width: 100%;
    }
    .pdp-row {
        display: grid;
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    }
    .pdp-row strong,
    .pdp-row span {
        display: block;
        min-width: 0;
        padding: 10px 12px;
        overflow-wrap: anywhere;
    }
    .pdp-row strong {
        width: auto;
    }
    .pdp-actions {
        align-items: stretch;
        gap: 10px;
    }
    .pdp-qty {
        width: 100%;
        justify-content: center;
    }
    .pdp-qty button,
    .pdp-qty input {
        min-height: 44px;
        height: 44px;
    }
    .pdp-qty input { flex: 1; min-width: 0; }
    .pdp-section-title { font-size: clamp(1.5rem, 7vw, 2rem); }
    .pdp-vehicle-grid { gap: 12px; }
    .pdp-vehicle-card { flex-basis: min(78vw, 260px); }
    .pdp-related-slider { gap: 12px; }
}

/* ==========================================================
   MANUFACTURER REFERENCE / AVAILABLE VARIANTS
========================================================== */
.pdp-manufacturer-variant-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pdp-manufacturer-variant {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg, var(--bg-card));
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pdp-manufacturer-variant:hover,
.pdp-manufacturer-variant:focus-visible {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 22px var(--overlay-black-08);
}

.pdp-manufacturer-variant-brand {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .72;
}

.pdp-manufacturer-variant strong {
    font-size: 1rem;
    line-height: 1.35;
}

.pdp-manufacturer-variant-ref,
.pdp-manufacturer-variant-oem {
    font-size: .84rem;
    line-height: 1.35;
    opacity: .8;
}

.pdp-manufacturer-variant-price {
    margin-top: 4px;
    font-weight: 700;
}

.pdp-manufacturer-variant-link {
    margin-top: 5px;
    font-size: .88rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .pdp-manufacturer-variant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .pdp-manufacturer-variant-grid {
        grid-template-columns: 1fr;
    }

    .pdp-manufacturer-variant {
        padding: 15px;
    }
}


/* ==========================================================
   PRODUCT REVIEWS
   ========================================================== */
.pdp-reviews-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}
.pdp-review-summary {
    min-width: 120px;
    padding: 14px 18px;
    border: 1px solid var(--border-color, var(--border-color));
    border-radius: 12px;
    text-align: center;
    background: var(--surface, var(--bg-card));
}
.pdp-review-summary strong { display: block; font-size: 1.25rem; }
.pdp-review-summary span { display: block; margin-top: 4px; font-size: .82rem; color: var(--text-muted, var(--text-secondary)); }
.pdp-review-list { display: grid; gap: 14px; }
.pdp-review-card, .pdp-review-empty {
    border: 1px solid var(--border-color, var(--border-color));
    border-radius: 12px;
    padding: 18px;
    background: var(--surface, var(--bg-card));
}
.pdp-review-card-top { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.pdp-review-card-top strong { display:block; }
.pdp-review-card-top div span { display:block; margin-top:3px; font-size:.8rem; color:var(--text-muted, var(--text-secondary)); }
.pdp-review-card h3 { margin:12px 0 6px; font-size:1rem; }
.pdp-review-card p { margin:0; line-height:1.65; color:var(--text-color, var(--color-text-tertiary)); white-space:pre-wrap; }
.pdp-review-stars { letter-spacing:1px; white-space:nowrap; }
.pdp-review-form-wrap { margin-top:22px; }
.pdp-review-signin { padding:16px; border-radius:10px; background:var(--surface-alt, var(--surface-alt)); }
.pdp-review-signin a { font-weight:600; }
.pdp-review-form { border:1px solid var(--border-color, var(--border-color)); border-radius:12px; padding:20px; }
.pdp-review-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.pdp-review-form .form-group { margin-bottom:14px; }
.pdp-review-form input, .pdp-review-form select, .pdp-review-form textarea { width:100%; }
.pdp-review-form-note { margin:10px 0 0; font-size:.8rem; color:var(--text-muted, var(--text-secondary)); }
.pdp-review-status { margin-top:10px; font-size:.9rem; }
@media (max-width: 700px) {
    .pdp-reviews-header { flex-direction:column; }
    .pdp-review-summary { width:100%; }
    .pdp-review-form-grid { grid-template-columns:1fr; gap:0; }
    .pdp-review-card-top { flex-direction:column; }
}

/* Keep the main PDP image box stable while an image error handler swaps in
   the placeholder. */
.pdp-main-image img {
    color: transparent;
    font-size: 0;
}


/* ===== rfq.css ===== */
/* ==========================================================
   RFQ PAGES
========================================================== */

.rfq-page,
.rfq-basket,
.rfq-customer {

    background: transparent;

}


/* ==========================================================
   RFQ TABLE
========================================================== */

.rfq-table-wrapper {

    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

    border: 1px solid var(--border-color);

    border-radius: 12px;

    background: var(--bg-card);

    box-shadow: 0 4px 16px var(--overlay-black-06);

}


.rfq-table {

    width: 100%;

    min-width: 760px;

    border-collapse: separate;

    border-spacing: 0;

    table-layout: fixed;

    background: var(--bg-card);

}


/* ==========================================================
   HEADER
========================================================== */

.rfq-table thead {

    background: var(--text-primary);

}


.rfq-table thead th {

    padding: 16px 20px;

    color: var(--bg-card);

    background: var(--text-primary);

    font-size: .9rem;

    font-weight: 700;

    text-align: left;

    white-space: nowrap;

    border-right: 1px solid var(--overlay-white-15);

    border-bottom: 1px solid var(--border-color);

}


.rfq-table thead th:last-child {

    border-right: none;

}


/* ==========================================================
   COLUMN WIDTHS
========================================================== */

.rfq-table th:nth-child(1),
.rfq-table td:nth-child(1) {

    width: 20%;

}


.rfq-table th:nth-child(2),
.rfq-table td:nth-child(2) {

    width: 35%;

}


.rfq-table th:nth-child(3),
.rfq-table td:nth-child(3) {

    width: 18%;

}


.rfq-table th:nth-child(4),
.rfq-table td:nth-child(4) {

    width: 15%;

    text-align: center;

}


.rfq-table th:nth-child(5),
.rfq-table td:nth-child(5) {

    width: 12%;

    text-align: center;

}


/* ==========================================================
   BODY CELLS
========================================================== */

.rfq-table tbody td {

    padding: 17px 20px;

    color: var(--text-primary);

    background: var(--bg-card);

    font-size: .95rem;

    vertical-align: middle;

    border-right: 1px solid var(--border-color);

    border-bottom: 1px solid var(--border-color);

}


.rfq-table tbody td:last-child {

    border-right: none;

}


.rfq-table tbody tr:last-child td {

    border-bottom: none;

}


/* ==========================================================
   ROW HOVER
========================================================== */

.rfq-table tbody tr {

    transition: background-color .15s ease;

}


.rfq-table tbody tr:hover td {

    background: var(--surface-alt);

}


/* ==========================================================
   PRODUCT DATA
========================================================== */

.rfq-table td:nth-child(1) {

    font-weight: 600;

    overflow-wrap: anywhere;

}


.rfq-table td:nth-child(2) {

    font-weight: 500;

    overflow-wrap: anywhere;

}


.rfq-table td:nth-child(3) {

    color: var(--text-secondary);

    overflow-wrap: anywhere;

}


/* ==========================================================
   QUANTITY
========================================================== */

.rfq-qty {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    white-space: nowrap;

}


.rfq-qty button {

    width: 32px;

    height: 32px;

    min-width: 32px;

    padding: 0;

    border: 1px solid var(--border-color);

    border-radius: 6px;

    background: var(--bg-card);

    color: var(--text-primary);

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 1rem;

    font-weight: 600;

    line-height: 1;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .15s ease;

}


.rfq-qty button:hover {

    background: var(--surface-muted);

    border-color: var(--color-text-placeholder);

}


.rfq-qty button:active {

    transform: scale(.94);

}


.rfq-qty span {

    min-width: 28px;

    text-align: center;

    font-weight: 700;

}


/* ==========================================================
   REMOVE BUTTON
========================================================== */

.remove-rfq {

    padding: 7px 12px;

    border: 1px solid var(--border-color);

    border-radius: 6px;

    background: var(--bg-card);

    color: var(--color-danger);

    cursor: pointer;

    font: inherit;

    font-size: .85rem;

    font-weight: 600;

    white-space: nowrap;

    transition:
        background-color .2s ease,
        border-color .2s ease;

}


.remove-rfq:hover {

    background: var(--surface-primary-soft);

    border-color: var(--color-danger);

}

/* ==========================================================
   RFQ CUSTOMER FORM
========================================================== */

.rfq-customer {

    padding: 48px 0 64px;

}

#rfq-form {

    width: 100%;

    padding: 36px 40px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: 14px;

    box-shadow: 0 4px 18px var(--overlay-black-06);

}


/* ==========================================================
   FORM GROUPS
========================================================== */

#rfq-form .form-group {

    margin-bottom: 22px;

}

#rfq-form .form-group:last-of-type {

    margin-bottom: 28px;

}


/* ==========================================================
   LABELS
========================================================== */

#rfq-form .form-group label {

    display: block;

    margin-bottom: 8px;

    color: var(--text-primary);

    font-size: .9rem;

    font-weight: 600;

}


/* ==========================================================
   INPUTS
========================================================== */

#rfq-form input,
#rfq-form textarea {

    width: 100%;

    padding: 12px 14px;

    border: 1px solid var(--border-color);

    border-radius: 8px;

    background: var(--bg-card);

    color: var(--text-primary);

    font: inherit;

    font-size: .95rem;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}


#rfq-form input {

    min-height: 46px;

}


#rfq-form textarea {

    min-height: 130px;

    resize: vertical;

}


/* ==========================================================
   INPUT FOCUS
========================================================== */

#rfq-form input:focus,
#rfq-form textarea:focus {

    border-color: var(--color-text-placeholder);

    box-shadow: 0 0 0 3px var(--overlay-black-06);

}


/* ==========================================================
   SUBMIT
========================================================== */

#rfq-form .btn-primary {

    margin-top: 4px;

}



/* ==========================================================
   RFQ BADGE
========================================================== */

.rfq-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 24px;

    height: 24px;

    padding: 0 8px;

    background: var(--color-primary);

    border-radius: 999px;

    color: var(--bg-card);

    font-size: .75rem;

    font-weight: 700;

}


/* ==========================================================
   THANK YOU PAGE
========================================================== */

.thank-you-page {

    padding: 100px 0;

}

.confirmation-box {

    max-width: 800px;

    margin: 0 auto;

    padding: 48px;

    background: var(--bg-card);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-md);

    text-align: center;

}

.reference-number {

    display: inline-block;

    margin: 24px 0;

    padding: 12px 20px;

    background: var(--surface-muted);

    border-radius: var(--radius-md);

    font-weight: 700;

}

.thank-you-actions {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 16px;

    margin-top: 32px;

}

@media (max-width: 768px) {
    .rfq-customer { padding: 32px 0 48px; }
    #rfq-form { padding: 24px 16px; border-radius: 12px; }
    .rfq-table-wrapper { border-radius: 10px; }
    .rfq-table { min-width: 720px; }
}

.rfq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.rfq-actions .btn {
    min-width: 180px;
}
@media (max-width: 640px) {
    .rfq-actions {
        flex-direction: column;
    }
    .rfq-actions .btn {
        width: 100%;
    }
}


/* ===== site-theme.css ===== */
/* ==========================================================
   SOUVIKS SITE-WIDE THEME
   Shared presentation layer for non-home pages.
   The homepage remains the visual reference; this layer keeps
   typography, containers, heroes, cards and responsive spacing
   consistent without replacing page-specific functionality.
========================================================== */

.site-page {
    background: var(--bg-body);
}

.site-page main {
    overflow-x: clip;
}

.site-page > main,
.index-page > main {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
}


/* ==========================================================
   SHARED PAGE HERO
========================================================== */

.site-page .page-hero,
.site-page .catalogue-hero,
.site-page .products-hero,
.site-page .brands-hero,
.site-page .categories-hero,
.site-page .vehicles-hero,
.site-page .about-hero,
.site-page .contact-hero,
.site-page .request-quote-hero,
.site-page .privacy-hero,
.site-page .terms-hero,
.site-page .refund-hero {
    position: relative;
    min-height: 340px;
    padding: 64px 0;
    background-color: var(--bg-body);
    background-image: linear-gradient(90deg, var(--overlay-white-98) 0%, var(--overlay-white-90) 36%, var(--overlay-white-35) 68%, var(--overlay-white-00) 100%), var(--hero-image, none);
    background-position: center right;
    background-size: cover;
    color: var(--text-primary);
    text-align: left;
}

.site-page .page-hero::before {
    background: transparent;
}

.site-page .hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 700px);
    max-width: 700px;
    margin: 0;
    text-align: left;
}

.site-page .page-hero h1,
.site-page .catalogue-hero h1,
.site-page .products-hero h1,
.site-page .brands-hero h1,
.site-page .categories-hero h1,
.site-page .vehicles-hero h1,
.site-page .about-hero h1,
.site-page .contact-hero h1,
.site-page .request-quote-hero h1,
.site-page .privacy-hero h1,
.site-page .terms-hero h1,
.site-page .refund-hero h1 {
    max-width: 700px;
    margin: 0 0 12px;
    color: var(--text-primary);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.site-page .page-hero p,
.site-page .catalogue-hero p,
.site-page .products-hero p,
.site-page .brands-hero p,
.site-page .categories-hero p,
.site-page .vehicles-hero p,
.site-page .about-hero p,
.site-page .contact-hero p,
.site-page .request-quote-hero p,
.site-page .privacy-hero p,
.site-page .terms-hero p,
.site-page .refund-hero p {
    max-width: 660px;
    margin: 0;
    color: var(--text-secondary);
    font-size: .98rem;
    line-height: 1.6;
}

.site-page .hero-stats {
    justify-content: flex-start;
    width: fit-content;
    max-width: 100%;
    margin: 24px 0 0;
    padding: 12px 14px;
    gap: 0;
    background: var(--overlay-white-90);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-page .hero-stat {
    min-width: 150px;
    padding: 7px 20px;
    text-align: left;
}

.site-page .hero-stat .stat-number {
    color: var(--text-primary);
    font-weight: 800;
}

.site-page .hero-stat .stat-label {
    color: var(--text-secondary);
}

/* ==========================================================
   SHARED SECTION RHYTHM
========================================================== */

.site-page .section-spacing,
.site-page .catalogue-summary,
.site-page .catalogue-products,
.site-page .section-heading {
    scroll-margin-top: 80px;
}

.site-page .section-spacing {
    padding: 48px 0;
}

.site-page .section-heading {
    text-align: left;
    margin-bottom: 24px;
}

.site-page .section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: -.025em;
}

.site-page .section-heading p {
    max-width: 760px;
    margin: 8px 0 0;
    line-height: 1.6;
}

.site-page .section-heading::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin: 12px 0 0;
    border-radius: 999px;
    background: var(--color-primary);
}

/* ==========================================================
   SHARED CARD LANGUAGE
========================================================== */

.site-page .card,
.site-page .product-card,
.site-page .brand-card,
.site-page .vehicle-card,
.site-page .category-card,
.site-page .why-card,
.site-page .metrics-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}


.site-page .catalogue-search + section,
.site-page .catalogue-summary + section {
    border-top: 1px solid var(--border-color);
}

/* ==========================================================
   ENTITY DETAIL PAGES
========================================================== */

.site-page .entity-hero {
    padding: 28px 0 16px;
    background: var(--bg-body);
}

.site-page .brand-detail,
.site-page .category-detail,
.site-page .vehicle-detail {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================
   MOBILE NAVIGATION
========================================================== */

@media (max-width: 992px) {
    .top-bar .container {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .top-bar-brand {
        min-width: 0;
    }

    .top-bar-tools {
        flex: 0 1 auto;
        min-width: 0;
        margin-left: auto;
    }

    .top-bar-tools .top-whatsapp,
    .top-bar-tools .language-switcher,
    .top-bar .mobile-menu-button {
        flex: 0 0 44px;
        width: 44px;
        max-width: 44px;
    }

    .top-bar .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        min-width: 44px;
        min-height: 44px;
        margin-left: 0;
    }

    .mobile-navigation-open .main-navigation {
        z-index: 5000;
    }

    .main-navigation {
        top: 0;
        height: 100dvh;
        max-height: none;
        padding: max(12px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
        border: 0;
        border-left: 1px solid var(--overlay-white-12);
        box-shadow: 0 18px 40px var(--overlay-black-28);
    }

    .main-navigation .mobile-navigation-header {
        min-height: 64px;
        padding: 8px 0;
        padding-top: max(8px, env(safe-area-inset-top));
    }

    .main-navigation .navigation-menu {
        width: 100%;
        max-width: 100%;
        padding-top: 8px;
    }

    .main-navigation .navigation-menu .nav-link {
        min-height: 52px;
        padding: 12px 10px;
        overflow-wrap: anywhere;
    }

    .main-navigation .mobile-nav-auth {
        width: 100%;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .main-navigation .mobile-nav-auth-link {
        min-height: 50px;
    }
}

/* ==========================================================
   RESPONSIVE PAGE SYSTEM
========================================================== */

@media (max-width: 768px) {
    .site-page .page-hero,
    .site-page .catalogue-hero,
    .site-page .products-hero,
    .site-page .brands-hero,
    .site-page .categories-hero,
    .site-page .vehicles-hero,
    .site-page .about-hero,
    .site-page .contact-hero,
    .site-page .request-quote-hero,
    .site-page .privacy-hero,
    .site-page .terms-hero,
    .site-page .refund-hero {
        min-height: 0;
        padding: 42px 0 32px;
        background-position: 72% center;
    }

    .site-page .hero-content {
        width: 100%;
        max-width: 700px;
        text-align: left;
    }

    .site-page .page-hero h1,
    .site-page .catalogue-hero h1,
    .site-page .products-hero h1,
    .site-page .brands-hero h1,
    .site-page .categories-hero h1,
    .site-page .vehicles-hero h1,
    .site-page .about-hero h1,
    .site-page .contact-hero h1,
    .site-page .request-quote-hero h1,
    .site-page .privacy-hero h1,
    .site-page .terms-hero h1,
    .site-page .refund-hero h1 {
        font-size: clamp(1.85rem, 8vw, 2.6rem);
    }

    .site-page .page-hero p,
    .site-page .catalogue-hero p,
    .site-page .products-hero p,
    .site-page .brands-hero p,
    .site-page .categories-hero p,
    .site-page .vehicles-hero p,
    .site-page .about-hero p,
    .site-page .contact-hero p,
    .site-page .request-quote-hero p,
    .site-page .privacy-hero p,
    .site-page .terms-hero p,
    .site-page .refund-hero p {
        font-size: .9rem;
    }

    .site-page .hero-stats {
        width: 100%;
        overflow-x: auto;
        padding: 8px;
        scrollbar-width: none;
    }

    .site-page .hero-stats::-webkit-scrollbar {
        display: none;
    }

    .site-page .hero-stat {
        flex: 0 0 140px;
        min-width: 140px;
        padding: 7px 12px;
    }

    .site-page .section-spacing {
        padding: 38px 0;
    }

    .site-page .section-heading {
        margin-bottom: 18px;
    }

    .site-page .section-heading h2 {
        font-size: 1.5rem;
    }

    .site-page .section-heading::after {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .site-page .page-hero,
    .site-page .catalogue-hero,
    .site-page .products-hero,
    .site-page .brands-hero,
    .site-page .categories-hero,
    .site-page .vehicles-hero,
    .site-page .about-hero,
    .site-page .contact-hero,
    .site-page .request-quote-hero,
    .site-page .privacy-hero,
    .site-page .terms-hero,
    .site-page .refund-hero {
        padding-top: 34px;
        padding-bottom: 26px;
    }

    .site-page .hero-stats {
        border-radius: var(--radius-md);
    }

    .site-page .hero-stat {
        flex-basis: 128px;
        min-width: 128px;
    }

    .site-page .section-spacing {
        padding: 32px 0;
    }
}


/* ==========================================================
   ACCESSIBILITY / REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .main-navigation {
        transition: none !important;
    }
}

/* ==========================================================
   MOBILE TOP-BAR CONTROL SPACING
========================================================== */

@media (max-width: 420px) {
    .top-bar-tools { flex: 0 0 auto; gap: 6px; margin-left: auto; }
    .top-bar-tools .top-whatsapp,
    .top-bar .mobile-menu-button,
    .language-button { width: 44px; min-width: 44px; max-width: 44px; height: 44px; }
    .top-bar-tools .top-whatsapp { padding: 0; }
    .language-button { gap: 0; padding: 0; justify-content: center; }
    .language-button .language-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; line-height: 1; }
    .language-button .language-arrow { display: none; }
}
