@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('./fonts/CormorantGaramond-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('./fonts/CormorantGaramond-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

/* GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #354553;
    background: white;
}


/* HEADER */

.header {
    width: 100%;
    background: white;
}


/* TOP BAR */

.top-bar {
    height: 48px;
    width: 100%;
    border-bottom: 1px solid #e8e8e8;
}

.social-icons {
    max-width: 1450px;
    height: 100%;
    margin: auto;
    padding: 0 45px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.social-icons a {
    color: #bfc5c9;
    text-decoration: none;
    font-size: 19px;
    font-weight: 500;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #354553;
}


/* MAIN HEADER */

.header-container {
    max-width: 1450px;
    height: 95px;
    margin: auto;
    padding: 0 45px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 160px;
    height: auto;
    display: block;
}


/* NAVIGATION */

.navigation {
    display: flex;
    gap: 40px;
    align-items: center;
    height: 100%;
}

.navigation a {
    position: relative;
    height: 100%;

    display: flex;
    align-items: center;

    text-decoration: none;
    color: #354553;

    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;

    transition: 0.3s;
}


/* ACTIVE NAVIGATION LINE */

.navigation a.active::before {
    content: "";

    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 90px;
    height: 4px;

    background: #171717;
}


.navigation a:hover {
    color: #999999;
}


/* CART */

.cart {
    text-decoration: none;
    color: #354553;
    font-size: 14px;

    border-bottom: 1px solid #354553;
    padding-bottom: 5px;
}

/* HERO */

.hero {
    min-height: 390px;

    background-image: url('../images/banners/marble-landscape.png');

    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title {
    text-align: center;
    width: min(750px, 85%);
    padding: 20px 0;

    border-top: 2px solid #354553;
    border-bottom: 2px solid #354553;
}

.hero-title h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 76px;
    font-weight: 500;
    letter-spacing: 5px;
}

.hero-title p {
    font-size: 13px;
    letter-spacing: 7px;
    margin-top: 5px;
}


/* CATEGORIES SECTION */

.categories-section {
    max-width: 1450px;
    margin: 0 auto;
    padding: 65px 35px 90px;
    background: white;
}

.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.category-card {
    text-decoration: none;
    color: #354553;
    text-align: center;
}

.category-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.04);
}

.category-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    font-weight: 500;
    margin-top: 22px;
}

.category-card p {
    font-size: 14px;
    margin-top: 8px;
}


/* FOOTER */

footer {
    background: #354553;
    color: white;
    padding: 35px;
    text-align: center;
    font-size: 12px;
    line-height: 2;
}


/* RESPONSIVE */

@media (max-width: 850px) {

    .header-container {
        height: auto;
        min-height: 95px;
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
    }

    .logo img {
        width: 135px;
    }

    .navigation {
        width: 100%;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px 22px;
    }

    .navigation a {
        height: auto;
        font-size: 19px;
        padding: 5px 0;
    }

    .navigation a.active::before {
        top: -20px;
        width: 100%;
        height: 2px;
    }

    .cart {
        margin-top: 5px;
    }

    .hero-title h1 {
        font-size: 30px;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .shop-intro h2 {
        font-size: 38px;
    }

}

/* ========================================
   SLEVOVÝ KÓD
======================================== */

.discount-code-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f7f5;
    border: 1px solid #e8e5e1;
    border-radius: 4px;
}

.discount-code-section h3 {
    margin: 0 0 15px;
    color: #354553;
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    font-weight: 600;
}

.discount-code-form {
    display: flex;
    gap: 10px;
}

.discount-code-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #d5d2ce;
    border-radius: 3px;
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    outline: none;
}

.discount-code-form input:focus {
    border-color: #354553;
}

.discount-code-form button {
    padding: 12px 22px;
    border: none;
    border-radius: 3px;
    background: #354553;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.discount-code-form button:hover {
    background: #526575;
}

#discount-message {
    margin: 10px 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
}

@media (max-width: 480px) {
    .discount-code-form {
        flex-direction: column;
    }

    .discount-code-form button {
        width: 100%;
    }
}

/* ROZLOŽENÍ SLEVY A CENOVÉHO SHRNUTÍ */

.checkout-bottom-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: start;
    margin-top: 30px;
}

.checkout-bottom-layout .discount-code-section {
    margin: 0;
}

.checkout-bottom-layout .discount-code-form {
    flex-direction: column;
}

.checkout-bottom-layout .discount-code-form button {
    width: 100%;
}

@media (max-width: 750px) {
    .checkout-bottom-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ========================================
   ROZLOŽENÍ SLEVY A CENOVÉHO SHRNUTÍ
======================================== */

.checkout-bottom-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 35px;
    align-items: start;
    margin-top: 30px;
}

.checkout-bottom-layout .discount-code-section {
    margin: 0;
    padding: 18px;
}

.checkout-bottom-layout .discount-code-section h3 {
    font-size: 23px;
}

.checkout-bottom-layout .discount-code-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-bottom-layout .discount-code-form button {
    width: 100%;
}

.checkout-bottom-layout .checkout-price-summary {
    width: 100%;
}

@media (max-width: 750px) {

    .checkout-bottom-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

}

/* MRAMOROVÝ PRUH POD NADPISEM CHECKOUTU */

.checkout-page h1 {
    margin-bottom: -98px !important;
    padding-bottom: 0;
}

.checkout-marble-banner {
    width: 150%;
    height: 150px;
    margin-left: -25%;
    margin-bottom: 40px;

    background-image: url('../images/banners/marble-landscape.png');
    background-size: cover;
    background-position: center;

    border-top: 1px solid #e8e5e1;
    border-bottom: 1px solid #e8e5e1;
}