/* ===== GLOBAL OVERFLOW FIX ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --side-width: 30%;
    --bg-page: #f5f4f0;
}

body {
    margin-bottom: 80px;
    color: #111;
    background: var(--bg-page);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* ===== NAVIGATION ===== */
nav a { color: #111; }
nav a::after { background: #111; }
nav { background-color: #f5f4f0; }
.menu-toggle span { background: #111; }

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center;
    padding: 60px 20px 20px;
    position: relative;
    z-index: 100;
    width: 100%;
    max-width: 100%;
}
.page-header img {
    width: 300px;
    height: auto;
    max-width: 100%;
}

/* ===== MAIN CONTAINER ===== */
.container {
    display: flex;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

/* ===== FIXED LEFT + RIGHT SIDES ===== */
.side {
    width: var(--side-width);
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100vh;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    pointer-events: none;
    transition: none;
}

.side.scrolled {
    position: absolute;
    top: auto;
    bottom: 0;
    height: 100vh;
}

.left-side { 
    left: 0; 
}

.right-side { 
    right: 0; 
}

.card-wrap {
    width: 92%;
    max-width: 100%;
    background: #fff;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    pointer-events: all;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        30px 100%,
        0 calc(100% - 30px)
    );
}

/* ===== LEFT CARD ===== */
.title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.left-card h3 {
    margin: 0;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 700;
    line-height: 1.5;
}
.edition {
    font-size: 11px;
    color: #000;
    white-space: nowrap;
}
.price {
    margin-top: 10px;
    font-weight: 350;
    font-size: 13px;
}

/* ===== ACCORDION ===== */
.accordion { margin-top: 18px; }
.acc-item { border-bottom: 1px solid #eee; }
.acc-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-weight: 550;
    font-size: 12px;
    letter-spacing: 0.4px;
    user-select: none;
}
.acc-toggle { 
    font-size: 11px; 
    color: #111; 
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease;
}
.acc-toggle:hover {
    transform: scale(1.1);
}
.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease, padding 0.32s ease;
    padding: 0;
    font-size: 11px;
    line-height: 1.5;
    color: #222;
    display: none;
}
.acc-body.open { padding: 0 0 18px 0; }

/* ===== CENTER SCROLL AREA ===== */
.middle {
    margin-left: var(--side-width);
    margin-right: var(--side-width);
    width: calc(100% - (2 * var(--side-width)));
    max-width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}
.scroll-content {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}
.scroll-content::-webkit-scrollbar { display: none; }
.scroll-content img {
    width: 500px;
    height: 500px;
    display: block;
    margin: 100px auto !important;
    object-fit: contain !important;
    margin-bottom: 50px;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        80px 100%,
        0 calc(100% - 80px)
    );
}

/* ===== RIGHT CARD ===== */
.right-card { text-align: left; }
.sizes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.sizes button {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #f5f3f0;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        10px 100%,
        0 calc(100% - 10px)
    );
}
.sizes button:hover,
.sizes button.active {
    background: #111;
    color: #fff;
    border-color: #111;
}
.choose-row {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.btn-primary {
    background: #111;
    color: #fff;
    border: 0;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 11px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        10px 100%,
        0 calc(100% - 10px)
    );
}
.btn-primary:hover { background: #333; }
.btn-secondary {
    background: transparent;
    border: 1px solid #111;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 11px;
    text-decoration: none;
    color: #111;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        10px 100%,
        0 calc(100% - 10px)
    );
}

.btn-secondary:hover {
    background: #111;
    color: #fff;
}
.btn-secondary:hover { border-color: #111; }

/* ===== CAROUSEL - Hidden on desktop ===== */
.carousel-container { display: none; }

/* ===== KEY ELEMENTS SECTION - FULLY RESPONSIVE ===== */
.key-elements-section {
    padding: 80px 0 100px;
    background: var(--bg-page);
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.section-header {
    margin-bottom: 50px;
    padding: 0 40px;
}

.section-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #111;
}

.scroll-hint {
    display: none;
}

.h-scroll-outer {
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* ===== DESKTOP: 5 columns with spacing ===== */
.h-scroll-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 100%;
    padding: 0 40px;
}

/* ===== KEY CARD - Desktop ===== */
.key-card {
    width: 100%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        25px 100%,
        0 calc(100% - 25px)
    );
}

.key-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.key-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px 10px 30px;
    background: #fff;
}

.key-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.key-card:hover .key-card-image img { 
    transform: scale(1.05); 
}

.key-card-body {
    padding: 12px 14px 16px;
    background: #fff;
}

.key-card-tag {
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #d4a74f;
    font-weight: 600;
    margin-bottom: 6px;
}

.key-card-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: #111;
    line-height: 1.3;
}

.key-card-desc {
    font-size: 10px;
    line-height: 1.5;
    color: #777;
}

.h-scroll-nav {
    display: none;
}

/* ===== ACCORDION MODAL ===== */
.acc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.acc-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.acc-modal-card {
    background: #fff;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 35px;
    position: fixed;
    left: 50px;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        30px 100%,
        0 calc(100% - 30px)
    );
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.4s ease;
}

.acc-modal-overlay.active .acc-modal-card {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.acc-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #fff;
    color: #444;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10;
}

.acc-modal-close:hover {
    transform: rotate(90deg);
}

.acc-modal-header {
    padding-right: 50px;
/*    margin-bottom: 10px;
*/    padding-bottom: 10px;
}

.acc-modal-title {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111;
}

.acc-modal-body {
    font-size: 12px;
    line-height: 2.5;
    color: #000;
}

.acc-modal-body a {
    color: #111;
    text-decoration: underline;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.acc-modal-body a:hover {
    opacity: 0.6;
}

/* ===== REGULAR MODALS (Pre-order, Waitlist, Signup) ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    padding: 40px;
    max-width: 350px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal close button with logo */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.modal-close img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(0);
    transition: filter 0.3s ease;
}

.modal-close:hover {
    background: #f5f4f0;
    border-color: #111;
    transform: scale(1.1);
}

.modal-close:hover img {
    filter: brightness(0.8);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.modal-header p {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.modal-submit {
    width: 100%;
    padding: 14px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.modal-submit:hover {
    background: #333;
}

.modal-submit:disabled {
    background: #999;
    cursor: not-allowed;
}

.modal-footer {
    margin-top: 20px;
    text-align: center;
}

.modal-footer img {
    max-width: 120px;
    height: auto;
}

/* Order Summary Box */
.order-summary-box {
    background: #f5f4f0;
    padding: 16px;
    margin: 20px 0;
}

.order-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.order-row span:first-child {
    color: #666;
}

.order-row span:last-child {
    font-weight: 600;
    color: #111;
}

.order-row.total {
    padding-top: 12px;
    border-top: 2px solid #ddd;
    margin-top: 8px;
    font-size: 16px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.form-control,
.form-input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #ddd;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-input:focus {
    outline: none;
    border-color: #111;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.success-message {
    text-align: center;
    padding: 30px;
    display: none;
}

.success-icon {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 15px;
}

/* Force modal display override */
.modal-overlay#preorderModal {
    z-index: 99999 !important;
}

/* ===== IMAGE ZOOM MODAL ===== */
.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-zoom-overlay.active {
    display: flex;
    opacity: 1;
}

.zoom-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.zoom-content img {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    border-radius: 0;
    transform-origin: center center;
    transition: transform 0.12s ease-out;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        50px 100%,
        0 calc(100% - 50px)
    );
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.zoom-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100001;
    backdrop-filter: blur(10px);
    line-height: 1;
    padding: 0;
    clip-path: polygon(
            0 0,
            100% 0,
            100% 100%,
            15px 100%,
            0 calc(100% - 15px)
        );
}

.zoom-close:hover {
    
    border-color: #fff;
    transform: rotate(90deg) scale(1.1);
}

/* Hide logo and navigation ONLY when zoom is active */
body.zoom-active .page-header,
body.zoom-active header,
body.zoom-active nav {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Desktop only - clickable images with hover */
@media (min-width: 821px) {
    .scroll-content img {
        cursor: zoom-in;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .scroll-content img:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
}

/* =============================================
   RESPONSIVE - TABLET (max 820px)
============================================= */
@media (max-width: 820px) {
    :root { --side-width: 0px; }

    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    body { overflow-y: auto; }

    .page-header { padding: 30px 20px 10px; }
    .page-header img { width: 180px; }

    .container {
        flex-direction: column;
        height: auto;
        gap: 0;
        overflow: visible;
        width: 100%;
        max-width: 100%;
    }

    .side {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 20px 16px;
        pointer-events: all;
        display: block;
    }

    .card-wrap {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        background: #fff;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        pointer-events: all;
    }

    /* ORDER: carousel → left info → right size */
    .middle {
        order: 1;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        overflow: hidden;
    }
    .left-side { order: 2; }
    .right-side { order: 3; }

    /* Hide desktop scroll, show carousel */
    .scroll-content { display: none; }
    .carousel-container {
        display: block;
        width: 100%;
        max-width: 100%;
        background: var(--bg-page);
        padding-bottom: 10px;
        overflow: hidden;
    }

    /* Carousel wrapper */
    .carousel-wrapper {
        width: 100%;
        max-width: 100%;
        height: 55vw;
        max-height: 360px;
        min-height: 220px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background: #eee9e3;
    }
    .carousel-track {
        display: flex;
        height: 100%;
        width: 100%;
        transition: transform 0.35s ease;
        will-change: transform;
    }
    .carousel-slide {
        min-width: 100%;
        max-width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        flex-shrink: 0;
        overflow: hidden;
    }
    .carousel-slide img {
        width: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
        margin: auto;
    }

    /* Carousel nav arrows */
    .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255,255,255,0.9);
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .carousel-nav.prev { left: 12px; }
    .carousel-nav.next { right: 12px; }

    /* Carousel dots */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 14px 0 6px;
    }
    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ccc;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }
    .carousel-dot.active {
        width: 24px;
        border-radius: 6px;
        background: #111;
    }

    .left-side { padding: 16px 16px 8px; }
    .right-side { padding: 8px 16px 24px; }

    .sizes { gap: 8px; margin-top: 10px; }
    .sizes button {
        padding: 10px 16px;
        font-size: 12px;
    }
    .choose-row { margin-top: 14px; gap: 10px; }
    .btn-primary,
    .btn-secondary {
        flex: 1;
        justify-content: center;
        padding: 12px 10px;
        font-size: 11px;
    }

    .acc-header { padding: 14px 0; font-size: 11px; }

    /* ===== KEY ELEMENTS - TABLET RESPONSIVE ===== */
    .key-elements-section {
        padding: 50px 0 60px;
    }
    
    .section-header {
        margin-bottom: 30px;
        padding: 0 20px;
    }
    
    /* Tablet: 2 columns grid */
    .h-scroll-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
        max-width: 100%;
    }
    
    .key-card {
        clip-path: polygon(
            0 0,
            100% 0,
            100% 100%,
            20px 100%,
            0 calc(100% - 20px)
        );
    }

    .key-card-image {
        height: 220px;
        padding: 30px 20px 10px 20px;
    }

    .key-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .key-card-body { 
        padding: 12px 14px 16px; 
    }
    
    .key-card-tag {
        font-size: 7px;
    }
    
    .key-card-title { 
        font-size: 10px; 
    }
    
    .key-card-desc { 
        font-size: 9px;
        line-height: 1.4;
    }

    .acc-modal-card {
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        padding: 28px 22px;
        max-height: 85vh;
        max-width: 90%;
    }
    
    .acc-modal-overlay.active .acc-modal-card {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .acc-modal-close {
        width: 32px;
        height: 32px;
        top: 16px;
        right: 16px;
    }

    .modal-content {
        padding: 30px 25px;
        max-width: 95%;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    /* Image zoom modal - tablet */
    .zoom-close {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .zoom-content {
        max-width: 95%;
        max-height: 85vh;
    }
}

/* =============================================
   RESPONSIVE - MOBILE (max 480px)
============================================= */
@media (max-width: 480px) {
    .page-header img { width: 150px; }

    .carousel-wrapper {
        height: 65vw;
        max-height: 280px;
    }

    .card-wrap { padding: 16px; }

    .sizes button {
        padding: 9px 13px;
        font-size: 11px;
    }

    /* ===== KEY ELEMENTS - MOBILE RESPONSIVE ===== */
    .key-elements-section { 
        padding: 40px 0 50px; 
    }
    
    .section-header {
        margin-bottom: 25px;
        padding: 0 16px;
    }
    
    .section-title {
        font-size: 10px;
    }

    /* Mobile: 1 column grid */
    .h-scroll-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }
    

    
    .key-card {
        clip-path: polygon(
            0 0,
            100% 0,
            100% 100%,
            15px 100%,
            0 calc(100% - 15px)
        );
    }

    /* Mobile: proper image container */
    .key-card-image {
        height: 200px;
        padding: 25px 30px 10px 30px;
    }
    
    .key-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .key-card-body { 
        padding: 10px 12px 14px; 
    }
    
    .key-card-tag {
        font-size: 7px;
    }
    
    .key-card-title {
        font-size: 10px;
        margin-bottom: 5px;
    }
    
    .key-card-desc {
        font-size: 9px;
        line-height: 1.4;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
}

/* =============================================
   RESPONSIVE - VERY SMALL MOBILE (max 360px)
============================================= */
@media (max-width: 360px) {
    .key-elements-section { 
        padding: 30px 0 40px; 
    }
    
    .h-scroll-container {
        gap: 16px;
        padding: 0 12px;
    }
    
    .key-card-image { 
        height: 180px;
        padding: 20px 25px 10px 25px;
    }
    
    .key-card-tag {
        font-size: 6px;
    }
    
    .key-card-title {
        font-size: 9px;
    }
    
    .key-card-desc {
        font-size: 8px;
    }
}





















/* ===== KEY CARD CAROUSEL STYLES ===== */

/* Remove old key-card-image styles and replace with carousel */

/* Carousel container inside card */
.key-card-carousel {
    width: 100%;
    position: relative;
}

/* Wrapper for carousel */
.carousel-wrapper-card {
    width: 100%;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 30px 20px 0px 20px;
    position: relative;
}

/* Next arrow button inside card */
.key-card-arrow-btn {
    position: absolute;
    bottom: 30%;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #fff;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 0.2s, transform 0.15s;
    line-height: 1;
    padding: 0;
}

/* Track that moves */
.carousel-track-card {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

/* Individual slide */
.carousel-slide-card {
    min-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Image in carousel */
.carousel-slide-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Hover effect on image */
.key-card:hover .carousel-slide-card img {
    transform: scale(1.05);
}

/* Dots container */
.carousel-dots-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 34px;
    background: #fff;
}

/* Individual dot */
.carousel-dot-card {
    width: 6px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

/* Active dot */
.carousel-dot-card.active {
    width: 16px;
    background: #111;
    border-radius: 3px;
}

/* Dot hover */
.carousel-dot-card:hover:not(.active) {
    background: #999;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 820px) {
    .carousel-wrapper-card {
        height: 220px;
        padding: 25px 15px 0px 15px;
    }

    .carousel-dots-card {
        padding: 10px 0 0 0;
        padding-bottom: 8px;
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 480px) {
    .carousel-wrapper-card {
        height: 200px;
        padding: 20px 15px 0px 15px;
    }

    .carousel-dots-card {
        padding: 8px 0 0 0;
        padding-bottom: 6px;
        gap: 6px;
    }

    .carousel-dot-card {
        width: 5px;
        height: 5px;
    }

    .carousel-dot-card.active {
        width: 14px;
    }
}


