/* Products.css - Full file with arrows reduced by half for 1440px and up */

.background {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative !important;
    padding: 120px 0 100px 0;
}

.content {
    display: flex !important;
    flex-direction: row-reverse !important; /* Image left, text right */
    align-items: center !important;
    justify-content: center !important;
    width: 65% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    box-sizing: border-box !important;
    gap: 80px !important;
    min-height: 70vh;
    position: static !important;
    transform: none !important;
}

/* Text block */
.text {
    flex: 1;
    text-align: center;
    padding: 20px !important;
}

.text h1 {
    font-size: 48px;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.text h2 {
    font-size: 23px;
    margin: 20px 0;
    line-height: 1.4;
}

.text h3 {
    font-size: 20px;
    margin: 25px 0;
    line-height: 1.5;
}

.text h4 {
    font-size: 23px;
    margin: 30px 0 35px 0;
    color: #ffcc66;
}

.text p {
    font-size: 18px;
    margin: 15px 0;
}

/* Image container - base */
.image-container {
    flex: 0 0 450px !important;
    height: 450px !important;
    position: relative !important;
    overflow: visible !important;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid #ff9900 !important;
    border-radius: 20px;
    box-shadow: 
        0 0 40px #ff9900,
        0 0 80px #ff6600,
        0 0 120px rgba(255, 153, 0, 0.7) !important;
    background: #000000 !important;
    margin-left: 120px !important;
    z-index: 10;
}

/* Images */
.image-container img {
    max-width: 88%;
    max-height: 88%;
    height: auto;
    width: auto;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    border-radius: 12px;
    z-index: 1;
}

.image-container img.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

/* Arrows - base */
.arrow {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    cursor: pointer;
    color: #ff9900;
    font-size: 70px !important;
    width: 90px;
    height: 90px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 300 !important;
    text-shadow: 0 0 20px #ff9900, 0 0 40px #ff6600;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid #ff9900;
    border-radius: 50%;
    box-shadow: 0 0 30px #ff9900, inset 0 0 20px rgba(255, 153, 0, 0.3);
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}

.arrow:hover {
    color: white;
    background: rgba(255, 153, 0, 0.5);
    box-shadow: 0 0 50px #ff9900, 0 0 80px #ff6600;
    transform: translateX(-50%) scale(1.2);
}

.arrow.up {
    top: -60px !important;
}

.arrow.down {
    bottom: -60px !important;
}

/* Buttons */
.variant-select {
    padding: 12px 24px;
    font-size: 19px;
    font-family: Arial, sans-serif;
    color: #ff9900;
    background-color: #1a1a1a;
    border: 2px solid #ff9900;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    width: fit-content;
    text-align: center;
    box-shadow: 0 0 15px #ff9900;
    transition: all 0.3s ease;
    cursor: pointer;
}

.variant-select:hover {
    background-color: #ff9900;
    color: #1a1a1a;
}

.addToCartButton,
.addToCartButton:link,
.addToCartButton:visited {
    display: inline-block;
    padding: 15px 65px;
    background-color: #1a1a1a;
    color: #ff9900;
    border: 3px solid #ff9900;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 0 20px #ff9900, 0 0 40px #ff6600;
    transition: all 0.3s ease;
}

.addToCartButton:hover {
    background-color: #ff9900;
    color: #000000;
    box-shadow: 0 0 30px #ff9900, 0 0 60px #ff6600;
    transform: translateY(-3px);
}

/* ==================== MEDIA QUERIES - MOBILE-FIRST ==================== */

/* ≤480px */
@media (max-width: 480px) {
    .content {
        width: 95% !important;
        gap: 20px !important;
        margin-left: 5% !important;
        padding: 20px 15px !important;
    }

    .image-container {
        flex: 0 0 150px !important;
        height: 150px !important;
    }

    .text h1 { font-size: 25px !important; }
    .text h2 { font-size: 15px !important; }
    .text h3 { font-size: 13px !important; }

    .arrow {
        font-size: 36px !important;
        width: 52px !important;
        height: 52px !important;
    }

    .addToCartButton {
        padding: 8px 32px !important;
        font-size: 14px !important;
    }
}

/* 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .content {
        flex-direction: row-reverse !important;
        width: 94% !important;
        gap: 32px !important;
        padding: 25px 15px !important;
        margin-left: 3% !important;
        justify-content: flex-start !important;
    }

    .text {
        flex: 0.8 !important;
    }

    .image-container {
        flex: 0 0 230px !important;
        height: 230px !important;
        margin-left: 0 !important;
        box-shadow: 
            0 0 24px #ff9900,
            0 0 48px #ff6600,
            0 0 70px rgba(255, 153, 0, 0.5) !important;
    }

    .text h1 { font-size: 27px !important; }
    .text h2 { font-size: 15.5px !important; }
    .text h3 { font-size: 14px !important; }
    .text h4 { font-size: 15.5px !important; }
    .text p { font-size: 13px !important; }

    .arrow {
        font-size: 23px !important;
        width: 32px !important;
        height: 32px !important;
    }

    .arrow.up { top: -15px !important; }
    .arrow.down { bottom: -15px !important; }

    .addToCartButton {
        padding: 10px 40px !important;
        font-size: 15.5px !important;
    }

    .variant-select {
        padding: 9px 18px !important;
        font-size: 14.5px !important;
    }
}

/* 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .content {
        width: 85% !important;
        gap: 45px !important;
        padding: 35px 20px !important;
    }

    .text {
        flex: 0.9 !important;
    }

    .text h1 { font-size: 36px !important; }
    .text h2 { font-size: 19px !important; }
    .text h3 { font-size: 17px !important; }
    .text h4 { font-size: 19px !important; }
    .text p { font-size: 16px !important; }

    .image-container {
        flex: 0 0 250px !important;
        height: 250px !important;
        margin-left: 40px !important;
        box-shadow: 
            0 0 30px #ff9900,
            0 0 55px #ff6600,
            0 0 80px rgba(255, 153, 0, 0.55) !important;
    }

    .arrow {
        font-size: 33px !important;
        width: 44px !important;
        height: 44px !important;
    }

    .arrow.up { top: -23px !important; }
    .arrow.down { bottom: -23px !important; }

    .addToCartButton {
        padding: 12px 45px !important;
        font-size: 18px !important;
    }

    .variant-select {
        padding: 10px 20px !important;
        font-size: 17px !important;
    }
}

/* 1025px - 1439px */
@media (min-width: 1025px) and (max-width: 1439px) {
    .content {
        width: 85% !important;
        max-width: none !important;
        gap: 60px !important;
        padding: 40px 20px !important;
        justify-content: center !important;
    }

    .image-container {
        flex: 0 0 360px !important;
        height: 360px !important;
        margin-left: 50px !important;
        box-shadow: 
            0 0 35px #ff9900,
            0 0 70px #ff6600,
            0 0 100px rgba(255, 153, 0, 0.6) !important;
    }

    .text h1 { font-size: 42px !important; }
    .text h2 { font-size: 21px !important; }
    .text h3 { font-size: 19px !important; }
    .text h4 { font-size: 21px !important; }
    .text p { font-size: 17px !important; }

    .arrow {
        font-size: 58px !important;
        width: 78px !important;
        height: 78px !important;
    }

    .arrow.up { top: -42px !important; }
    .arrow.down { bottom: -42px !important; }

    .addToCartButton {
        padding: 14px 55px !important;
        font-size: 20px !important;
    }
}

/* 1440px - 1919px - arrows reduced by half */
@media (min-width: 1440px) and (max-width: 1919px) {
    .content {
        width: 78% !important;
        gap: 65px !important;
    }

    .image-container {
        flex: 0 0 400px !important;
        height: 400px !important;
        margin-left: 90px !important;
    }

    .text h1 { font-size: 45px !important; }
    .text h2 { font-size: 22px !important; }
    .text h3 { font-size: 19.5px !important; }
    .text h4 { font-size: 22px !important; }
    .text p { font-size: 17.5px !important; }

    .arrow {
        font-size: 32.5px !important;     /* Half of previous 65px */
        width: 42.5px !important;
        height: 42.5px !important;
    }

    .arrow.up { top: -30px !important; }   /* Adjusted position for smaller arrows */
    .arrow.down { bottom: -30px !important; }

    .addToCartButton {
        padding: 15px 60px !important;
        font-size: 21px !important;
    }
}

/* ≥1920px - arrows reduced by half */
@media (min-width: 1920px) {
    .content {
        width: 60% !important;
        max-width: 1600px !important;
        gap: 100px !important;
    }

    .image-container {
        flex: 0 0 360px !important;
        height: 360px !important;
        margin-left: 100px !important;
    }

    .text h1 { font-size: 54px !important; }

    .arrow {
        font-size: 40px !important;       /* Half of previous 80px */
        width: 50px !important;
        height: 50px !important;
    }

    .arrow.up { top: -30px !important; }   /* Adjusted position */
    .arrow.down { bottom: -30px !important; }
}