/* =========================================
   GENERAL
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
}

button {
    font-family: inherit;
}


/* =========================================
   NAVBAR
========================================= */

.product-navbar {
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.navbar-container {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 20px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    text-decoration: none;
    color: #111;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-links a,
.navbar-actions a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.navbar-actions {
    display: flex;
    gap: 20px;
}


/* =========================================
   PRODUCT DETAILS
========================================= */

.product-details {
    width: 100%;
    padding: 70px 30px;
}

.product-details-container {
    max-width: 1250px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}


/* =========================================
   PRODUCT GALLERY
========================================= */

.product-gallery {
    width: 100%;
}

.main-product-image {
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #f5f5f5;
}

.main-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================================
   THUMBNAILS
========================================= */

.product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.thumbnail {
    width: 80px;
    height: 95px;
    overflow: hidden;
    border: 1px solid #ddd;
    cursor: pointer;
}

.thumbnail.active {
    border: 2px solid #111;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================================
   PRODUCT INFORMATION
========================================= */

.product-information {
    padding-top: 10px;
}

.product-information h1 {
    margin: 0 0 20px;

    font-size: 30px;
    line-height: 1.3;
    font-weight: 500;
}

.product-price {
    margin-bottom: 40px;

    font-size: 22px;
    font-weight: 600;
}


/* =========================================
   PRODUCT OPTIONS
========================================= */

.product-option {
    margin-bottom: 30px;
}

.product-option h3 {
    margin: 0 0 12px;

    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.color-name {
    font-size: 15px;
}


/* =========================================
   SIZE OPTIONS
========================================= */

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-options button {
    width: 52px;
    height: 45px;

    background: #fff;
    border: 1px solid #ccc;

    cursor: pointer;

    font-size: 14px;
}

.size-options button:hover {
    border-color: #111;
}

.size-options button:focus {
    border: 2px solid #111;
}


/* =========================================
   QUANTITY
========================================= */

.quantity-selector {
    width: 130px;
    height: 45px;

    border: 1px solid #ccc;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-selector button {
    width: 40px;
    height: 100%;

    border: none;
    background: transparent;

    font-size: 20px;
    cursor: pointer;
}

.quantity-selector span {
    font-size: 15px;
}


/* =========================================
   PRODUCT BUTTONS
========================================= */

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-top: 35px;
}

.product-buttons button {
    width: 100%;
    height: 52px;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.add-to-cart {
    background: #fff;
    border: 1px solid #111;
    color: #111;
}

.buy-now {
    background: #111;
    border: 1px solid #111;
    color: #fff;
}

.add-to-cart:hover {
    background: #111;
    color: #fff;
}

.buy-now:hover {
    background: #333;
}


/* =========================================
   GENERAL SECTIONS
========================================= */

.product-section {
    width: 100%;
    border-top: 1px solid #e5e5e5;
    padding: 70px 30px;
}

.product-section-container {
    max-width: 1100px;
    margin: auto;
}

.product-section h2,
.recommended-header h2 {
    margin: 0 0 35px;

    text-align: center;

    font-size: 24px;
    font-weight: 500;
    letter-spacing: 1px;
}


/* =========================================
   DESCRIPTION
========================================= */

.description-content {
    max-width: 850px;
    margin: auto;
}

.description-content p {
    margin: 0 0 18px;

    font-size: 15px;
    line-height: 1.8;
    color: #555;
}


/* =========================================
   SIZE CHART
========================================= */

.size-chart-wrapper {
    width: 100%;
    overflow-x: auto;
}

.size-chart {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.size-chart th,
.size-chart td {
    padding: 16px;

    border: 1px solid #ddd;

    font-size: 14px;
}

.size-chart th {
    background: #f7f7f7;
    font-weight: 600;
}


/* =========================================
   REVIEWS
========================================= */

.reviews-empty {
    text-align: center;
}

.reviews-empty p {
    margin-bottom: 25px;

    color: #777;
    font-size: 15px;
}

.review-button {
    padding: 13px 25px;

    background: #fff;
    border: 1px solid #111;

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;
}

.review-button:hover {
    background: #111;
    color: #fff;
}


/* =========================================
   RECOMMENDED PRODUCTS
========================================= */

.recommended-section {
    width: 100%;
    border-top: 1px solid #e5e5e5;

    padding: 70px 30px 100px;
}

.recommended-container {
    max-width: 1250px;
    margin: auto;
}

.recommended-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 24px;
}

.recommended-card {
    width: 100%;
}

.recommended-image {
    width: 100%;
    height: 360px;

    overflow: hidden;

    background: #f5f5f5;
}

.recommended-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.recommended-card:hover .recommended-image img {
    transform: scale(1.04);
}

.recommended-info {
    padding-top: 15px;
}

.recommended-info h3 {
    margin: 0 0 8px;

    font-size: 15px;
    font-weight: 500;
}

.recommended-info p {
    margin: 0;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .navbar-links {
        display: none;
    }

    .product-details-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .main-product-image {
        height: 600px;
    }

    .recommended-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .navbar-container {
        padding: 16px;
    }

    .product-details {
        padding: 35px 15px;
    }

    .product-section {
        padding: 50px 15px;
    }

    .recommended-section {
        padding: 50px 15px 70px;
    }

    .main-product-image {
        height: 450px;
    }

    .product-information h1 {
        font-size: 24px;
    }

    .product-price {
        font-size: 19px;
    }

    .recommended-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .recommended-image {
        height: 250px;
    }

}