:root {
    --color-bg: #0d0d0d;
    --color-surface: #1a1a1a;
    --color-primary: #e30613;
    --color-primary-glow: rgba(227, 6, 19, 0.4);
    --color-border: #333333;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --font-family: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    background-image: radial-gradient(circle at 50% -20%, #1a1a2e 0%, var(--color-bg) 80%);
    color: var(--color-text);
    font-family: var(--font-family);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.product-main-container {
    max-width: 1350px;
    margin: 2rem auto;
    padding: 0 20px;
}

.product-layout {
    display: grid;
    grid-template-columns: 80px 1.2fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

/* Gallery */
.gallery-container {
    position: sticky;
    top: 2rem;
}

/* Main Image */
.main-img-viewport {
    background: var(--color-surface);
    border-radius: 24px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
}

.main-img-viewport img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-img-viewport:hover img {
    transform: scale(1.08);
}

.thumb-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumb-item {
    aspect-ratio: 4/3;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.5;
    transition: var(--transition);
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--color-primary);
    background: #252525;
    box-shadow: 0 0 20px var(--color-primary-glow);
}

.thumb-item.active img,
.thumb-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.sku-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
}

.price-box {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.price-old {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-weight: 500;
    margin-bottom: 5px;
}

.price-current {
    font-size: 3.6rem;
    font-weight: 900;
    display: flex;
    align-items: baseline;
    gap: 15px;
    line-height: 1;
}

.price-ttc {
    color: var(--color-primary);
    font-size: 1.6rem;
    font-weight: 800;
}

.promo-badge {
    position: absolute;
    top: 20px;
    right: 0;
    transform: rotate(3deg);
    background: var(--color-primary);
    color: #fff;
    padding: 12px 24px;
    font-weight: 900;
    font-size: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--color-primary-glow);
}

/* --- ACTION BOX --- */
.action-container {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    margin-top: 1rem;
}

.qty-box {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    height: 65px;
    overflow: hidden;
}

.qty-input {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    text-align: center;
    font-weight: 900;
    font-size: 1.4rem;
    outline: none;
}

.qty-btn {
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition);
    font-size: 1.2rem;
}

.qty-btn:hover {
    color: #fff;
    background: #2a2a2a;
}

.add-cart-btn {
    background: var(--color-primary);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    font-size: 1.15rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px var(--color-primary-glow);
}

.add-cart-btn:hover {
    background: #ff0717;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--color-primary-glow);
}

/* --- SPECS CARDS --- */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.spec-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
}

.spec-card:hover {
    border-color: #555;
    transform: translateY(-5px);
    background: #222;
}

.spec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
}

.spec-value {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-primary);
}

.spec-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
}

.spec-unit {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-primary);
}

.spec-rpm {
    font-size: 0.65rem;
    opacity: 0.7;
    color: var(--color-text-muted);
    line-height: 1;
}

/* --- HOMOLOGATION --- */
.homo-alert {
    background: rgba(227, 6, 19, 0.08);
    border: 1px solid rgba(227, 6, 19, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1rem;
}

.homo-icon {
    flex-shrink: 0;
    color: var(--color-primary);
}

.homo-msg {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.homo-msg strong {
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 800;
}

.disclaimer-btn {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: underline;
    margin-top: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.disclaimer-btn:hover {
    color: var(--color-primary);
}

/* --- DOCS --- */
.docs-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 2rem;
}

.doc-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 1.2rem;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}

.doc-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    background: #252525;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.doc-card span {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: none;
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    width: 100%;
    height: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
    z-index: 2500;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 4rem;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: 0.2s;
    z-index: 2500;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--color-primary);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-thumbs {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    max-width: 90%;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: thin;
}

.lightbox-thumb {
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.4;
    transition: 0.2s;
}

.lightbox-thumb.active {
    border-color: var(--color-primary);
    opacity: 1;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: 24px;
    max-width: 700px;
    width: 90%;
    border: 1px solid var(--color-border);
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.homo-def-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a2a;
}

.homo-def-term {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 8px;
}

.schematic-link,
.doc-link {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    width: 100%;
    box-sizing: border-box;
}

.schematic-link {
    margin-top: 2.5rem;
}

.schematic-link:hover,
.doc-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(227, 6, 19, 0.05);
}

.schematic-link img,
.doc-link img {
    height: 40px;
    width: auto;
}

/* Form styling in popup */
/* Compactify Modal Header */
.modal-header-actions {
    padding: 10px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pdf-modal-title {
    font-size: 0.85rem;
    font-weight: 800;
}

/* Compactify Quote Form */
.quote-form-container {
    margin-top: 0;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.quote-form-title {
    font-size: 0.9rem;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Final Review Box */
.quote-final-review-box {
    background: rgba(226, 37, 43, 0.03);
    border: 1px solid rgba(226, 37, 43, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    position: relative;
}

.review-box-label {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #0d0d0d;
    padding: 0 10px;
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.selection-summary-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.selection-summary-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.selection-minimal-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.selection-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.sel-ref {
    flex: 1;
    font-weight: 600;
    color: #eee;
    font-family: 'Inter', sans-serif;
}

.manual-add-row {
    display: flex;
    gap: 10px;
    margin: 10px 0 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.catalog-section-header {
    font-size: 0.7rem;
    font-weight: 800;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.parts-table-header {
    display: grid;
    grid-template-columns: 1fr 100px;
    padding: 8px 15px;
    background: rgba(0,0,0,0.6);
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #999; /* Lightened from #555 */
    margin-bottom: 6px;
    width: 100%;
    box-sizing: border-box;
}

.part-row {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 15px;
    padding: 6px 15px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    width: 100%;
    box-sizing: border-box;
    margin: 0; /* Strict management */
}

.part-row.row-unavailable {
    opacity: 1;
    background: transparent; /* Ensure no extra bg shift */
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.part-row.row-unavailable input[name="item_ref[]"] {
    color: #ff0000 !important;
    font-weight: 800;
}

/* Final Review Box - Carbon Glow Theme */
.quote-final-review-box {
    background: rgba(226, 37, 43, 0.12); /* Increased red tint from 0.07 */
    border: 1px solid rgba(226, 37, 43, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 25px;
    margin-top: 35px;
    position: relative;
    border-left: 4px solid var(--primary);
}

.review-box-label {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 950;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.selection-summary-container {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
}

.selection-summary-title {
    color: #ccc; /* Improved visibility */
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.selection-item {
    display: grid;
    grid-template-columns: 1fr 100px; /* SYNC with catalog grid */
    gap: 15px;
    padding: 8px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    align-items: center;
}

.selection-item:last-child {
    border-bottom: none;
}

.catalog-section-header {
    font-size: 0.7rem;
    font-weight: 800;
    color: #888; /* lightened from #444 */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.part-qty-box {
    height: 32px;
}

/* Contact Footer Area */
.quote-contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: flex-end;
    margin-top: 15px;
}

.f-group label {
    font-size: 0.75rem;
    margin-bottom: 6px;
    color: #bbb; /* lightened */
}

.f-group .f-input-dark {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-color: #333;
}

.order-btn-small {
    height: 40px;
    font-size: 0.8rem;
    padding: 0 20px;
}

.quote-actions-bottom {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-text-only {
    background: none;
    border: 1px solid #444;
    color: #aaa; /* lightened from #666 */
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-text-only:hover {
    border-color: var(--primary);
    color: #fff;
    background: rgba(226, 37, 43, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(226, 37, 43, 0.2);
}

.part-qty-btn {
    background: none;
    border: none;
    color: #fff;
    width: 32px;
    height: 100%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.part-qty-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
}

.part-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.part-qty-input {
    width: 36px;
    border: none;
    background: none;
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    outline: none;
}

.selection-item-remove {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
}

.selection-item-remove button {
    background: #333;
    color: #888;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.selection-item-remove button:hover {
    background: var(--primary);
    color: #fff;
}

.part-row {
    position: relative;
}

.quote-form-header {
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.6), rgba(255, 0, 0, 0.2));
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ff0000;
    cursor: pointer;
    text-align: center;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-sudden 2s infinite;
    transition: 0.3s;
}

@keyframes pulse-sudden {
    0% {
        opacity: 1;
        background: linear-gradient(90deg, rgba(255, 0, 0, 0.4), rgba(255, 0, 0, 0.9), rgba(255, 0, 0, 0.4));
    }

    92% {
        opacity: 0.4;
    }

    96% {
        opacity: 1;
        background: linear-gradient(90deg, rgba(255, 0, 0, 0.5), rgba(255, 0, 0, 1), rgba(255, 0, 0, 0.5));
    }

    100% {
        opacity: 1;
    }
}

.quote-form-header:hover {
    background: rgba(227, 6, 19, 0.2);
}

.modal-content.full-width {
    max-width: 98% !important;
    width: 98% !important;
    height: 95vh !important;
    padding: 2rem !important;
    overflow-y: auto !important; /* Fix scroll issue 🚀 */
}

.f-group {
    margin-bottom: 15px;
}

.f-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #888;
}

.f-input {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    padding: 10px;
    color: #fff;
    border-radius: 6px;
    outline: none;
}

.f-input:focus {
    border-color: var(--color-primary);
}

/* ======== HEADER ======== */
.site-header {
    position: relative;
    z-index: 200;
    background: #0a0a0a;
    height: 68px;
    overflow: hidden;
}

/* Full-width inner wrapper */
.header-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Left zone: TTShop logo */
.header-logo-zone {
    padding: 0 32px;
    flex-shrink: 0;
    z-index: 3;
}

.logo-ttshop {
    height: 44px;
    width: auto;
    display: block;
}

/* Center angled panel with Akrapovic logo */
.header-akra-panel {
    position: absolute;
    left: 160px;
    right: 160px;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The skewed dark-red background panel */
.header-akra-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, #1a0000 0%, #2d0505 40%, #8b0000 65%, #cc0000 80%, #e30613 92%, #ff1a1a 100%);
    clip-path: polygon(30px 0%, 100% 0%, calc(100% - 30px) 100%, 0% 100%);
}

.header-akra-panel img {
    position: relative;
    z-index: 1;
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Right zone: icons */
.header-actions {
    margin-left: auto;
    display: flex;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 28px;
    z-index: 3;
    flex-shrink: 0;
}

.action-icon {
    color: #fff;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.action-icon:hover {
    color: var(--color-primary);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -9px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
}

/* Hamburger – hidden desktop */
.hamburger-icon {
    display: none;
}

/* ======== BREADCRUMBS ======== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1350px;
    margin: 1.5rem auto 0;
    padding: 0 20px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs span {
    color: #fff;
    font-weight: 600;
}

/* ======== THUMB CONSTRAINT ======== */
.thumb-item {
    aspect-ratio: 4/3;
    width: 80px;
    flex-shrink: 0;
}

/* ======== DESCRIPTION FULL-WIDTH ======== */
.product-description-section {
    max-width: 1350px;
    margin: 4rem auto 0;
    padding: 0 20px 4rem;
    border-top: 1px solid var(--color-border);
}

.product-description-section h2 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    color: #fff;
}

.product-description-section p,
.product-description-section div {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 800px;
}

/* --- MOBILE --- */
@media (max-width: 1024px) {
    .site-header {
        height: 58px;
        background: #000;
    }

    .header-akra-panel {
        display: none;
        /* hide diagonal Akra panel on mobile */
    }

    .hamburger-icon {
        display: flex;
        /* show hamburger on mobile */
    }

    .header-content {
        grid-template-columns: 1fr auto;
        padding: 0 1.5rem;
    }

    .logo-akra-center {
        display: none;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-title {
        font-size: 2.8rem;
        margin-top: 0.5rem;
    }

    .thumb-col {
        order: 3;
        flex-direction: row;
        overflow-x: auto;
        padding: 0 0 10px 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .thumb-col::-webkit-scrollbar {
        display: none;
    }

    .thumb-item {
        width: 75px;
        flex-shrink: 0;
        border-radius: 10px;
    }

    .main-img-col,
    .info-col,
    .gallery-container {
        display: contents;
        /* Permet le réordonnancement global via grid */
    }

    .price-current {
        font-size: 3.2rem;
        justify-content: flex-start;
        position: relative;
        padding-right: 60px;
        /* Espace pour le badge */
        width: fit-content;
    }



    .specs-grid {
        order: 4;
        grid-template-columns: 1fr;
    }

    .action-container {
        order: 5;
        grid-template-columns: 1fr;
        position: sticky;
        bottom: 15px;
        background: rgba(13, 13, 13, 0.95);
        backdrop-filter: blur(10px);
        padding: 15px;
        margin: 0 -15px;
        border-radius: 20px;
        z-index: 100;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    }

    .qty-box {
        display: none;
        /* Hide Qty on direct mobile view to prioritize cart button */
    }

    .homo-alert {
        order: 6;
    }

    .docs-section {
        order: 7;
    }

    /* 1. SKU */
    .sku-tag {
        order: 1;
        margin-bottom: 5px;
        text-align: left;
    }

    /* 2. Title */
    .product-title {
        order: 2;
        margin-bottom: 5px;
        font-size: 1.8rem;
        text-align: left;
        /* Aligné à gauche comme demandé par screenshot */
        letter-spacing: -0.5px;
        line-height: 1.1;
    }

    /* 3. Main image — JUST UNDER TITLES */
    .main-img-viewport {
        order: 4;
        /* Remonté juste sous le bloc titre/line */
        width: 100%;
        margin: 15px 0;
    }

    /* 4. Line / description / subtitle — UNDER TITLE */
    .info-col>p {
        order: 3;
        /* Sous le titre, avant l'image */
        margin-top: 0 !important;
        text-align: left;
        font-size: 1rem;
        color: var(--color-text-muted);
        font-weight: 500;
    }

    /* 5. Thumbnails */
    .thumb-col {
        flex-direction: row;
        order: 5;
        overflow-x: auto;
        justify-content: flex-start;
        width: 100%;
        padding-bottom: 10px;
        margin-top: -5px;
    }

    .thumb-item {
        width: 80px;
        flex-shrink: 0;
    }

    /* 6. Price box */
    .price-box {
        order: 6;
        margin-top: 20px;
        display: grid;
        grid-template-columns: auto auto;
        grid-template-areas:
            "old ."
            "current badge";
        align-items: center;
        column-gap: 15px;
        width: fit-content;
        padding: 5px 0;
    }

    .price-old {
        grid-area: old;
    }

    .price-current {
        grid-area: current;
        font-size: 3rem;
        justify-content: flex-start;
        line-height: 1;
        width: fit-content;
    }

    .price-box .promo-badge {
        grid-area: badge;
        position: static;
        transform: rotate(-6deg);
        background: var(--color-primary);
        color: #fff;
        padding: 10px 20px;
        font-weight: 900;
        font-size: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 5px 20px var(--color-primary-glow);
        margin: 0;
        width: auto;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    /* 7. Action container (qty + AJOUTER AU PANIER) — RIGHT BELOW PRICE */
    .action-container {
        order: 7;
        margin-top: 10px;
        margin-bottom: 15px;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .add-cart-btn {
        height: 60px;
        font-size: 1.1rem;
        position: static;
        width: 100%;
    }

    .qty-box {
        height: 55px;
    }

    /* 8. Availability status */
    .avail-status {
        order: 8;
        font-size: 1.2rem !important;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* 9. Specs grid */
    .specs-grid {
        order: 9;
        grid-template-columns: repeat(3, 1fr);
    }

    /* 10. Everything else (docs, homo, description) */
    .homo-alert {
        order: 11;
    }

    .docs-section {
        order: 12;
    }

    .gallery-container {
        position: static;
        display: contents;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 1.4rem;
    }

    .price-current {
        font-size: 2.2rem;
    }

    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .spec-card {
        padding: 12px;
    }
}

/* Utils */
.glow-text {
    text-shadow: 0 0 15px var(--color-primary-glow);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 0.8s linear infinite;
}

/* Lightbox Custom */
.modal-overlay {
    overflow-y: auto; /* Allow the overlay to scroll if content is too tall */
    -webkit-overflow-scrolling: touch;
    display: none;
    align-items: flex-start; /* Start from top on mobile */
    padding: 20px 0;
}

.modal-content.full-width {
    background: #000 !important;
    border-color: #222 !important;
    height: auto !important; /* Allow it to grow with content */
    min-height: 100%;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
    }
    .modal-content.full-width {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0;
        min-height: 100vh;
    }
}

.modal-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 30px;
}

.pdf-modal-title {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.modal-header-actions .close-btn {
    padding: 10px 25px;
    font-size: 0.85rem;
    background: var(--color-primary);
    box-shadow: none;
    border: none;
}

/* Cart Specific Modals */
.cart-modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.cart-modal-text {
    color: #aaa;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cart-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-secondary {
    background: #222;
    color: #fff;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #333;
}

.cart-loader-msg {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 20px;
    text-align: center;
}

.summary-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
}

.summary-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.summary-info p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

/* ======== QUOTE FORM IN POPUP ======== */
.quote-trigger-bar {
    background: linear-gradient(90deg, #d30613 0%, #ff1a1a 50%, #d30613 100%);
    border: 1px solid #e2252b;
    border-radius: 12px;
    padding: 12px 20px;
    margin-top: 15px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
    position: relative;
    z-index: 100;
}

@media (max-width: 768px) {
    .quote-trigger-bar {
        position: sticky;
        top: 0;
        z-index: 1000;
        margin-top: 5px;
        margin-bottom: 10px;
        border-radius: 0 0 12px 12px;
        padding: 10px;
    }
}

.quote-trigger-bar:hover {
    transform: scale(1.01);
    background: linear-gradient(90deg, #ff1a1a 0%, #e2252b 50%, #ff1a1a 100%);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.5);
}

.quote-trigger-text {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-icon {
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(227, 6, 19, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0);
    }
}

.quote-form-container {
    display: none;
    background: rgba(13, 13, 13, 0.98);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 25px;
    margin-top: 15px;
    animation: slideUp 0.3s ease-out;
    position: relative; /* Ensure it stays in flow but above if needed */
    z-index: 99;
}

@media (max-width: 768px) {
    .quote-form-container {
        padding: 15px;
        margin-top: 10px;
        border-radius: 12px;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-form-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.parts-table-header {
    display: grid;
    grid-template-columns: 1fr 150px 80px 110px;
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 15px;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .parts-table-header {
        display: none;
    }
}

.part-row {
    display: grid;
    grid-template-columns: 1fr 150px 80px 110px;
    gap: 15px;
    margin-bottom: 10px;
    align-items: center;
}

.part-sku-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.row-unavailable {
    opacity: 0.6;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 2px 5px;
}

.row-unavailable .f-input-dark {
    border-color: rgba(230,43,30,0.1);
    color: #ff3b30;
    font-weight: 800;
}

.label-unavailable {
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.part-price-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 150px;
}

.part-price-cell .price-old {
    font-size: 0.85rem;
    color: #aaa;
    text-decoration: line-through;
    font-weight: 400;
}

.part-price-cell .price-new {
    font-size: 1rem;
    color: #fff;
    font-weight: 800;
}

.part-total-cell {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 80px;
}

.part-qty-total-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.part-line-total {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-primary);
    min-width: 60px;
    text-align: right;
}

.selection-grand-total {
    margin-top: 15px;
    padding: 15px;
    background: rgba(230, 43, 30, 0.1);
    border: 1px solid rgba(230, 43, 30, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
}

.selection-grand-total .total-value {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.sel-ref-box {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 15px;
}

.sel-total-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .part-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        border-bottom: 1px solid #333;
        padding-bottom: 15px;
    }
    .part-row > div:nth-child(2) { grid-column: 1 / span 2; } /* Name full width */
}

.f-input-dark {
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    transition: 0.2s;
}

.f-input-dark:focus {
    border-color: var(--color-primary);
}

.part-qty-box {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    height: 38px;
    overflow: hidden;
}

.part-qty-btn {
    width: 30px;
    height: 100%;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s;
}

.part-qty-btn:hover {
    color: #fff;
    background: #222;
}

.part-qty-input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-icon-only {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #111;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-icon-only:hover {
    background: #222;
    color: #fff;
    border-color: #444;
}

.btn-icon-only.btn-add {
    color: var(--color-primary);
    border-color: rgba(227, 6, 19, 0.3);
}

.btn-icon-only.btn-add:hover {
    background: rgba(227, 6, 19, 0.1);
    border-color: var(--color-primary);
}

.quote-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .quote-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .quote-footer .f-group, .quote-footer .order-btn-small {
        width: 100%;
    }
}

.f-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.f-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.order-btn-small {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.order-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--color-primary-glow);
}

.success-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 40px;
    border-radius: 12px;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(68, 187, 68, 0.1);
    border: 2px solid #44bb44;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #44bb44;
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Footer Styling */
footer {
    background: #000;
    padding: 80px 5vw 40px;
    border-top: 2px solid var(--color-primary);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: #444;
}

.footer-logo {
    height: 60px;
    margin-bottom: 25px;
    transition: 0.5s ease;
    filter: drop-shadow(0 0 5px rgba(227, 6, 19, 0.3));
    animation: footerGlow 4s infinite ease-in-out;
}

.footer-logo:hover {
    filter: drop-shadow(0 0 15px rgba(227, 6, 19, 0.8));
    transform: scale(1.05);
}

@keyframes footerGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(227, 6, 19, 0.2));
        opacity: 0.9;
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(227, 6, 19, 0.6));
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* SPARE PARTS: Cart Action Zone + Inquiry Zone                   */
/* ═══════════════════════════════════════════════════════════════ */

/* --- BOUTON AJOUTER AU PANIER (Zone verte/accent) --- */
.sp-cart-action-zone {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.03));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.sp-cart-action-zone:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.05));
}

.sp-add-to-cart-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 14px 40px;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
    width: 100%;
    max-width: 400px;
}

.sp-add-to-cart-btn:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.35);
}

.sp-add-to-cart-btn:active {
    transform: translateY(-1px);
}

.sp-cart-hint {
    font-size: 0.72rem;
    color: rgba(16, 185, 129, 0.7);
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* --- SÉPARATEUR VISUEL "OU" --- */
.sp-inquiry-zone {
    background: rgba(100, 116, 139, 0.06);
    border: 1px solid rgba(100, 116, 139, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.sp-inquiry-zone:hover {
    border-color: rgba(100, 116, 139, 0.3);
}

.sp-inquiry-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.12);
}

.sp-inquiry-header svg {
    color: #64748b;
    flex-shrink: 0;
}

/* --- Grand Total Styling --- */
.selection-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selection-grand-total .total-value {
    color: #10b981;
    font-size: 1.1rem;
    font-weight: 900;
}

/* --- Cart Confirm Modal adjustments --- */
#sp-cart-confirm-modal .modal-content {
    border: 1px solid rgba(16, 185, 129, 0.3);
}

#sp-cart-confirm-modal .add-cart-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}