@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

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

body {
    font-family: "Roboto Condensed", sans-serif;
    background-color: #eaeaea;
    height: 200vh;
}

.overlay {
    border-image: fill 1 linear-gradient(hsla(0, 0%, 0%, 0.4), hsla(0, 0%, 0%, 0.4));
}

.main {
    color: #e3e0e0;
    font-size: 3rem;

    width:100vw;
    height:80vh;

    backdrop-filter: blur(5px);
    background-image: url("images/background.jpg");
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;

    min-block-size: 80vh;
    place-content: center;
    text-align: center;
}

.number {
    color:#cf5c2b;
}

.products{
    width:100%;
    height:auto;
    padding: 10vh 0;
}

.products h2{
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    margin-left:5vw;
    margin-bottom: 10px;
}

.products .specifications {
    margin-left: 5vw;
    margin-bottom: 10vh;
}

.product_cards_container {
    width:100%;
    height: auto;
    position: relative;

    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2.5vw;
    padding: 0 5vw;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;

}

.product_card {
    top:0;
    width:auto;
    height: auto;

    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease;

    border: #cf5c2b 2px solid;
}

.product_card:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.product_card img {
    width: 100%;
    height: 50vh;

    object-fit: cover;
    object-position:center;
}

.product_card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    margin: 10px;
}

.product_card span {
    height:1px;
    width: 30%;
    background-color: #cf5c2b;
    margin: 0 auto;
    margin-bottom: 10px;
    display: block;
}

.product_content{
    height: 15%;
    padding: 10px;
}

/* Slideshow Modal Styles */
.slideshow-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.slideshow-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slideshow-content img {
    max-width: 80vw;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 0 30px #000;
    margin-bottom: 1rem;
    background: #222;
}

.slideshow-controls {
    display: flex;
    gap: 1rem;
}

.slideshow-controls button,
.slideshow-close {
    background: #222;
    color: #fff;
    border: none;
    padding: 0.7em 1.2em;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.slideshow-controls button:hover,
.slideshow-close:hover {
    background: #cf5c2b;
}

.slideshow-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2em;
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer; 
}

@media (max-width: 1000px) {
    .product_cards_container {
        grid-template-columns: 1fr;
        padding: 0 2vw;
    }
    .product_card {
        height: auto;
        min-height: unset;
        max-height: unset;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    .product_card img {
        height: 30vh;
        max-height: 200px;
        object-fit: cover;
    }
    .product_content {
        padding: 8px;
    }
    .product_card h3 {
        font-size: 2rem;
    }
}