* {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #161616;
    background: #ffffff;
}


a {
    text-decoration: none;
    color: inherit;
}


/* ========================================
   HEADER
======================================== */

.header {
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    border-bottom: 1px solid #eeeeee;

    position: sticky;
    top: 0;

    background: #ffffff;

    z-index: 5;
}


.logo {
    display: flex;
    align-items: center;

    text-decoration: none;
}


.logo img {
    width: 170px;
    height: auto;

    display: block;

    object-fit: contain;
}


.header nav {
    display: flex;
    gap: 28px;
}


.header nav a {
    font-weight: 500;
}


.cart {
    border: 1px solid #111111;

    background: #111111;

    color: #ffffff;

    border-radius: 24px;

    padding: 10px 18px;

    cursor: pointer;
}


/* ========================================
   HERO
======================================== */

.hero {
    min-height: 70vh;

    display: flex;
    align-items: center;

    padding: 8%;

    background:
        linear-gradient(
            110deg,
            #f2eee9,
            #fafafa
        );
}


.hero h1 {
    font-size:
        clamp(48px, 8vw, 92px);

    max-width: 700px;

    margin: 10px 0;
}


.hero p:not(.eyebrow) {
    font-size: 20px;

    max-width: 560px;

    line-height: 1.6;
}


.eyebrow {
    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;
}


/* ========================================
   BUTTON
======================================== */

.btn {
    display: inline-block;

    background: #111111;

    color: #ffffff;

    padding: 14px 24px;

    border-radius: 28px;

    margin-top: 16px;

    border: 0;

    cursor: pointer;

    font-size: 16px;
}


/* ========================================
   SHOP
======================================== */

.shop,
.about,
.contact {
    padding: 80px 6%;
}


.section-head {
    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 20px;
}


.section-head h2,
.about h2,
.contact h2 {
    font-size: 42px;

    margin: 8px 0 30px;
}


.section-head input {
    padding: 13px 16px;

    border: 1px solid #cccccc;

    border-radius: 24px;

    width: 260px;

    font-size: 15px;
}


/* ========================================
   PRODUCTS
======================================== */

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 30px;
}


.product-card {
    width: 100%;

    border: 1px solid #eeeeee;

    border-radius: 16px;

    padding: 18px;

    background: #ffffff;

    overflow: hidden;
}


.product-image {
    width: 100%;
}


.product-main-image {
    width: 100%;

    height: 420px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background: #f7f7f7;

    border-radius: 10px;
}


.product-main-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
}

.product-main-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important; 
    transform: none !important;
}


/* ========================================
   THUMBNAILS
======================================== */

.product-gallery {
    display: flex !important;

    flex-direction: row !important;

    justify-content: center;

    align-items: center;

    gap: 12px;

    margin-top: 15px;
}


.thumbnail-button {
    width: 75px !important;

    height: 75px !important;

    flex: 0 0 75px;

    padding: 4px;

    background: #ffffff;

    border: 1px solid #dddddd;

    border-radius: 6px;

    cursor: pointer;
}


.thumbnail-button img {
    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;

    border-radius: 4px;
}


.thumbnail-button.active {
    border: 2px solid #111111;
}


/* ========================================
   PRODUCT INFORMATION
======================================== */

.product-info {
    width: 100%;

    padding-top: 18px;
}


.product-category {
    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #777777;
}


.product-info h3 {
    font-size: 22px;

    margin: 8px 0;
}


.product-description {
    color: #555555;

    line-height: 1.5;
}


.product-price {
    font-size: 20px;

    font-weight: 700;
}


.product-info label {
    display: block;

    margin-top: 15px;

    margin-bottom: 6px;

    font-weight: 600;
}


.product-info select {
    width: 100%;

    padding: 11px;

    border: 1px solid #cccccc;

    border-radius: 8px;

    background: #ffffff;
}


.product-info .btn {
    width: 100%;

    margin-top: 14px;
}


.no-products {
    font-size: 18px;

    color: #777777;
}


/* ========================================
   ABOUT
======================================== */

.about {
    background: #f7f4f0;

    max-width: none;
}


.about p:not(.eyebrow) {
    max-width: 700px;

    font-size: 20px;

    line-height: 1.7;
}


/* ========================================
   CONTACT
======================================== */

.contact {
    text-align: center;
}


.contact p {
    color: #555555;
}


/* ========================================
   FOOTER
======================================== */

footer {
    text-align: center;

    padding: 30px;

    border-top: 1px solid #eeeeee;

    color: #666666;
}


/* ========================================
   SHOPPING CART
======================================== */

.drawer {
    position: fixed;

    right: -420px;

    top: 0;

    width: min(420px, 100%);

    height: 100vh;

    background: #ffffff;

    z-index: 10;

    box-shadow:
        -8px 0 30px #0002;

    padding: 24px;

    transition: 0.25s;

    overflow: auto;
}


.drawer.open {
    right: 0;
}


.drawer-head {
    display: flex;

    justify-content: space-between;

    align-items: center;
}


.drawer-head button {
    font-size: 28px;

    border: 0;

    background: none;

    cursor: pointer;
}


.item {
    display: flex;

    gap: 12px;

    padding: 16px 0;

    border-bottom: 1px solid #eeeeee;
}


.item button {
    margin-left: auto;

    height: fit-content;

    cursor: pointer;
}


.total {
    font-size: 20px;

    font-weight: 700;

    padding: 20px 0;
}


.full {
    width: 100%;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {

    .products-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

    .header {
        padding: 0 5%;
    }


    .header nav {
        display: none;
    }


    .logo img {
        width: 140px;
    }


    .hero {
        min-height: 60vh;

        padding: 10% 6%;
    }


    .products-grid {
        grid-template-columns: 1fr;
    }


    .product-main-image {
        height: 420px;
    }


    .section-head {
        align-items: flex-start;

        flex-direction: column;
    }


    .section-head input {
        width: 100%;
    }


    .shop,
    .about,
    .contact {
        padding: 55px 5%;
    }

}


@media (max-width: 500px) {

    .hero h1 {
        font-size: 48px;
    }


    .product-main-image {
        height: 360px;
    }

}

/* =========================================
   PROFESSIONAL PRODUCT PHOTO DISPLAY
   ========================================= */

.product-main-image {
    width: 100%;
    height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: scale(1.25);
    transform-origin: center;
}