/* =====================================================
   PRODUCT PAGE - ADELINA MODNI STUDIO
===================================================== */

.product-page {
    padding: 55px 0 90px;
    background: #faf9f7;
}

.product-container {
    width: 90%;
    max-width: 1350px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;

    align-items: start;
}


/* =====================================================
   GALLERY
===================================================== */

.gallery {
    width: 100%;
}

.main-image {
    width: 100%;
    max-width: 620px;
    height: 650px;

    margin: 0 auto;

    background: #f3f3f3;
    position: relative;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}


/* =====================================================
   GALLERY ARROWS
===================================================== */

.gallery-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 46px;
    height: 46px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.94);
    color: #222;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 10;

    font-size: 18px;

    box-shadow: 0 3px 12px rgba(0,0,0,0.12);

    transition: all .3s ease;
}

.gallery-arrow:hover {
    background: #111;
    color: #fff;
}

.gallery-arrow.left {
    left: 18px;
}

.gallery-arrow.right {
    right: 18px;
}


/* =====================================================
   PRODUCT DETAILS
===================================================== */

.product-details {
    background: #fff;

    padding: 38px 40px 42px;

    margin-top: 0;
}


/* =====================================================
   PRODUCT NAME
===================================================== */

.product-details h1 {
    font-family: 'Cormorant Garamond', serif;

    font-size: 36px;
    font-weight: 500;

    letter-spacing: 1.5px;
    line-height: 1.08;

    color: #171717;

    margin: 0 0 16px;
}


/* =====================================================
   PRICE - ADELINA
===================================================== */

.product-details .product-price {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 6px 0 30px;
    padding: 0;

    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    font-weight: 500;

    color: #222;

    letter-spacing: 1.5px;
    line-height: 1.4;
}

.product-details .product-price::before {
    content: "";

    width: 32px;
    height: 1px;

    background: #d8b892;

    display: block;
    flex-shrink: 0;
}


/* =====================================================
   DESCRIPTION
===================================================== */

.description {
    font-family: 'Montserrat', sans-serif;

    font-size: 14px;
    font-weight: 400;

    letter-spacing: .15px;
    line-height: 27px;

    color: #707070;

    margin: 0 0 32px;
}


/* =====================================================
   SUBHEADINGS
===================================================== */

.product-details h3 {
    font-family: 'Montserrat', sans-serif;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 1.6px;

    text-transform: uppercase;

    color: #222;

    margin: 27px 0 14px;
}


/* =====================================================
   SIZES
===================================================== */

.sizes {
    display: flex;
    gap: 9px;

    flex-wrap: wrap;
}

.sizes button {
    width: 52px;
    height: 52px;

    border: 1px solid #d5d5d5;

    background: #fff;
    color: #222;

    cursor: pointer;

    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;

    transition: all .3s ease;
}

.sizes button:hover,
.sizes button.active {
    background: #111;
    color: #fff;

    border-color: #111;
}


/* =====================================================
   COLORS
===================================================== */

.colors {
    display: flex;

    gap: 13px;

    margin-top: 10px;
}

.colors span {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    cursor: pointer;

    border: 2px solid #ddd;

    transition: all .25s ease;
}


/* BOJE */

.bordo {
    background: #800020;
}

.green {
    background: #3f6b45;
}

.brown {
    background: #795548;
}

.blue {
    background: #3b5ca8;
}

.black {
    background: #111;
}

.white {
    background: #fff;
}

.beige {
    background: #d8c3a5;
}

.orange {
    background: #d97841;
}

.gray {
    background: #8a8a8a;
}

.pink {
    background: #dd8c8c;
}

.cream {
    background: #f3e8d0;
}

.burgundy {
    background-color: #7d2031;
}

/* AKTIVNA BOJA */

.colors .active {
    border: 3px solid #d8b892;

    box-shadow: 0 0 0 2px #fff;
}


/* =====================================================
   QUANTITY
===================================================== */

.quantity {
    display: flex;

    margin-top: 30px;
    margin-bottom: 25px;
}

.quantity button {
    width: 48px;
    height: 48px;

    border: none;

    background: #111;
    color: #fff;

    cursor: pointer;

    font-size: 18px;
}

.quantity input {
    width: 65px;
    height: 48px;

    text-align: center;

    border: 1px solid #ddd;

    font-family: 'Montserrat', sans-serif;
    font-size: 16px;

    background: #fff;
}


/* =====================================================
   BUTTONS
===================================================== */

.cart-btn {
    width: 100%;
    height: 56px;

    margin-top: 22px;

    border: none;

    background: #111;
    color: #fff;

    font-family: 'Montserrat', sans-serif;

    font-size: 13px;
    font-weight: 500;

    letter-spacing: 2px;

    cursor: pointer;

    transition: all .35s ease;
}

.cart-btn:hover {
    background: #d8b892;
    color: #111;
}


.wishlist-btn {
    width: 100%;
    height: 56px;

    margin-top: 12px;

    border: 1px solid #222;

    background: #fff;
    color: #222;

    font-family: 'Montserrat', sans-serif;

    font-size: 13px;
    font-weight: 500;

    letter-spacing: 2px;

    cursor: pointer;

    transition: all .35s ease;
}

.wishlist-btn:hover {
    background: #111;
    color: #fff;
}


/* =====================================================
   INFO BOX
===================================================== */

.info-box {
    margin-top: 38px;

    padding-top: 25px;

    border-top: 1px solid #eee;
}

.info-box div {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 17px;

    color: #555;

    font-family: 'Montserrat', sans-serif;

    font-size: 13px;
}

.info-box i {
    width: 42px;
    height: 42px;

    display: flex;

    justify-content: center;
    align-items: center;

    background: #f5f5f5;

    border-radius: 50%;

    font-size: 17px;
}


/* =====================================================
   TABS
===================================================== */

.tabs {
    width: 92%;
    max-width: 1450px;

    margin: 75px auto;
}

.tab-buttons {
    display: flex;

    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 17px 32px;

    border: none;

    background: #fff;

    cursor: pointer;

    font-family: 'Montserrat', sans-serif;

    font-size: 14px;

    transition: .3s;
}

.tab.active {
    border-bottom: 3px solid #111;

    font-weight: 600;
}

.tab:hover {
    color: #d8b892;
}

.tab-content {
    background: #fff;

    padding: 32px;

    line-height: 30px;

    color: #666;

    font-family: 'Montserrat', sans-serif;

    font-size: 14px;
}


/* =====================================================
   RELATED PRODUCTS
===================================================== */

.related-products {
    width: 92%;
    max-width: 1450px;

    margin: 80px auto;
}

.related-products h2 {
    text-align: center;

    font-family: 'Cormorant Garamond', serif;

    font-size: 42px;
    font-weight: 500;

    letter-spacing: 2px;

    margin-bottom: 40px;
}

.related-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 28px;
}

.related-card {
    background: #fff;

    border: 1px solid #eee;

    transition: .35s;

    overflow: hidden;
}

.related-card:hover {
    transform: translateY(-7px);

    box-shadow: 0 15px 35px rgba(0,0,0,.10);
}

.related-card img {
    width: 100%;

    height: 330px;

    object-fit: cover;

    transition: .5s;
}

.related-card:hover img {
    transform: scale(1.04);
}

.related-card h3 {
    text-align: center;

    margin: 17px 0 9px;

    font-family: 'Montserrat', sans-serif;

    font-size: 16px;
    font-weight: 500;

    letter-spacing: 1px;
}

.related-card p {
    text-align: center;

    margin-bottom: 18px;

    color: #666;

    font-family: 'Montserrat', sans-serif;

    font-weight: 600;
}


/* =====================================================
   TABLET
===================================================== */

@media(max-width:1100px) {

    .product-container {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .main-image {
        margin: auto;
    }

    .product-details {
        margin-top: 0;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   MOBILE - PRODUCT PAGE
===================================================== */

@media (max-width: 700px) {

    .product-page {
        padding: 12px 0 30px;
    }

    .product-container {
        width: 94%;
        display: block;
    }

    /* SLIKA - MALO MANJA */

    .gallery {
        margin-bottom: 12px;
    }

    .main-image {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 4.5;
        margin: auto;
        overflow: hidden;
    }

    .main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* STRELICE NA SLICI */

    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .gallery-arrow.left {
        left: 8px;
    }

    .gallery-arrow.right {
        right: 8px;
    }

    /* DETALJI PROIZVODA */

    .product-details {
        padding: 20px 17px 24px;
        margin-top: 0;
    }

    /* NAZIV */

    .product-details h1 {
        font-size: 30px;
        letter-spacing: 0.5px;
        line-height: 1.1;
        margin: 0 0 8px;
    }

    /* CIJENA */

    .product-details .price {
        font-size: 21px;
        letter-spacing: 0.8px;
        margin: 4px 0 17px;
        gap: 9px;
    }

    .product-details .price::before {
        width: 22px;
    }

    /* OPIS */

    .description {
        font-size: 13px;
        line-height: 22px;
        margin-bottom: 18px;
    }

    /* VELIČINA I BOJA */

    .product-details h3 {
        font-size: 13px;
        margin-top: 16px;
        margin-bottom: 10px;
    }

    .sizes {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
    }

    .sizes button {
        width: 44px;
        height: 44px;
    }

    .colors {
        gap: 9px;
    }

    .colors span {
        width: 29px;
        height: 29px;
    }

    /* KOLIČINA */

    .quantity {
        margin-top: 18px;
        margin-bottom: 20px;
    }

    /* DUGMAD ZA KUPOVINU */

    .cart-btn,
    .wishlist-btn {
        width: 100%;
        height: 50px;
        font-size: 13px;
        letter-spacing: 2px;
    }

    .wishlist-btn {
        margin-top: 10px;
    }

    /* INFORMACIJE O DOSTAVI */

    .info-box {
        margin-top: 20px;
        padding-top: 15px;
    }

    /* TABOVI */

    .tabs {
        width: 94%;
        margin: 30px auto;
    }

    .tab-buttons {
        flex-wrap: wrap;
    }

    .tab {
        padding: 12px 14px;
        font-size: 12px;
    }

    .tab-content {
        padding: 18px 15px;
        line-height: 24px;
        font-size: 13px;
    }

    /* SLIČNI PROIZVODI */

    .related-products {
        width: 94%;
        margin: 35px auto;
    }

    .related-products h2 {
        font-size: 29px;
        margin-bottom: 22px;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .related-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }

    .related-card h3 {
        font-size: 13px;
        margin: 12px 5px 7px;
    }

    .related-card p {
        font-size: 13px;
        margin-bottom: 13px;
    }
}