/* =========================================================
   CROWN THEORY
   Product Page Styles
   ========================================================= */


/* =========================================================
   1. BREADCRUMB
   ========================================================= */

.product-breadcrumb {
    padding: 24px 0;
    background-color: #F7F4EB;
    border-bottom: 1px solid #DDD6C8;
}

.product-breadcrumb nav {
    width: 100%;
}

.breadcrumb-list {
    /* Removes 1, 2, 3 numbering */
    list-style: none;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
}

.breadcrumb-list li {
    margin: 0;
    padding: 0;

    color: #8A7E75;
}

.breadcrumb-list a {
    color: #6B7F63;

    font-weight: 600;

    transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
    color: #3D2314;
}

/* Current product name */
.breadcrumb-list li[aria-current="page"] {
    color: #3D2314;

    font-weight: 600;
}

/* Slash separators */
.breadcrumb-list li[aria-hidden="true"] {
    color: #B4A99F;

    font-weight: 400;
}


/* =========================================================
   2. PRODUCT DETAIL SECTION
   ========================================================= */

.product-detail-section {
    padding: 64px 0 88px;
    background-color: #FCFAF5;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: start;
}


/* =========================================================
   3. PRODUCT GALLERY
   ========================================================= */

.product-gallery {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
}

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

.product-thumbnail {
    width: 90px;
    height: 90px;

    padding: 0;

    background-color: #F7F4EB;

    border: 2px solid transparent;
    border-radius: 10px;

    overflow: hidden;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.product-thumbnail:hover {
    border-color: #D9A05B;
}

.product-thumbnail.active {
    border-color: #6B7F63;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   4. MAIN PRODUCT IMAGE
   ========================================================= */

.product-main-image {
    position: relative;

    width: 100%;
    height: 600px;

    background-color: #EEE9DE;

    border-radius: 20px;

    overflow: hidden;
}

.product-main-image img {
    width: 100%;
    height: 100%;

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

.product-main-image .product-badge {
    position: absolute;

    top: 20px;
    left: 20px;

    z-index: 2;
}


/* =========================================================
   5. PRODUCT INFO
   ========================================================= */

.product-info {
    padding-top: 8px;
}

.product-info h1 {
    margin-bottom: 16px;

    color: #3D2314;

    font-size: 52px;
    line-height: 1.08;
}


/* =========================================================
   6. RATING
   ========================================================= */

.product-rating-row {
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    gap: 12px;
}

.product-rating-row .review-stars {
    margin: 0;

    color: #D9A05B;

    letter-spacing: 2px;
}

.product-review-link {
    color: #6C625B;

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

.product-review-link:hover {
    color: #6B7F63;
}


/* =========================================================
   7. PRICE
   ========================================================= */

.product-detail-price {
    margin-bottom: 20px;

    color: #3D2314;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
}


/* =========================================================
   8. DESCRIPTION
   ========================================================= */

.product-short-description {
    margin-bottom: 24px;

    max-width: 560px;

    color: #6C625B;

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   9. PRODUCT BENEFITS
   ========================================================= */

.product-benefits {
    margin-bottom: 32px;
    padding-left: 0;
}

.product-benefits li {
    position: relative;

    margin-bottom: 12px;
    padding-left: 26px;

    color: #4F4842;

    font-size: 14px;
    line-height: 1.6;
}

.product-benefits li::before {
    content: "✓";

    position: absolute;
    left: 0;
    top: 0;

    color: #6B7F63;

    font-weight: 700;
}


/* =========================================================
   10. PRODUCT OPTION GROUP
   ========================================================= */

.product-option-group {
    margin-bottom: 28px;
}

.product-option-heading {
    margin-bottom: 12px;

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

    color: #3D2314;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.product-option-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-option-button {
    padding: 10px 18px;

    background-color: #FFFFFF;
    color: #3D2314;

    border: 1px solid #DDD6C8;
    border-radius: 24px;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.product-option-button:hover {
    border-color: #6B7F63;
}

.product-option-button.active {
    background-color: #6B7F63;
    color: #FFFFFF;
    border-color: #6B7F63;
}


/* =========================================================
   11. QUANTITY
   ========================================================= */

.product-quantity-section {
    margin-bottom: 24px;
}

.product-quantity-section label {
    display: block;

    margin-bottom: 10px;

    color: #3D2314;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.quantity-control {
    width: 150px;

    display: grid;
    grid-template-columns: 44px 1fr 44px;

    border: 1px solid #DDD6C8;
    border-radius: 24px;

    overflow: hidden;

    background-color: #FFFFFF;
}

.quantity-button {
    width: 44px;
    height: 44px;

    background-color: transparent;

    border: none;

    color: #3D2314;

    font-size: 20px;

    cursor: pointer;
}

.quantity-button:hover {
    background-color: #E7ECE3;
}

.quantity-control input {
    width: 100%;

    border: none;
    outline: none;

    text-align: center;

    color: #3D2314;
    background-color: #FFFFFF;

    font-weight: 600;
}


/* =========================================================
   12. ADD TO CART
   ========================================================= */

.product-add-button {
    width: 100%;

    min-height: 54px;

    margin-bottom: 24px;

    font-size: 15px;
}


/* =========================================================
   13. PURCHASE NOTES
   ========================================================= */

.product-purchase-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.purchase-note {
    padding: 16px;

    background-color: #F7F4EB;

    border: 1px solid #DDD6C8;
    border-radius: 12px;
}

.purchase-note strong,
.purchase-note span {
    display: block;
}

.purchase-note strong {
    margin-bottom: 4px;

    color: #3D2314;

    font-size: 13px;
}

.purchase-note span {
    color: #6C625B;

    font-size: 11px;
}


/* =========================================================
   14. PRODUCT INFORMATION SECTION
   ========================================================= */

.product-information-section {
    background-color: #F7F4EB;
}

.product-information-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-information-card {
    padding: 32px;

    background-color: #FFFFFF;

    border: 1px solid #DDD6C8;
    border-radius: 16px;
}

.product-info-number {
    display: block;

    margin-bottom: 18px;

    color: #D9A05B;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.product-information-card h2 {
    margin-bottom: 16px;

    font-size: 30px;
}

.product-information-card p {
    margin-bottom: 16px;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   15. TEXTURE TAGS
   ========================================================= */

.product-texture-tags {
    margin-top: 20px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-texture-tags span {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #E7ECE3;
    color: #3D2314;

    border-radius: 50%;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   16. PRODUCT INGREDIENT SECTION
   ========================================================= */

.product-ingredient-section {
    padding: 88px 0;

    background-color: #E7ECE3;
}

.product-ingredient-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.product-ingredient-copy {
    max-width: 520px;
}

.product-ingredient-copy h2 {
    margin-bottom: 20px;

    font-size: 42px;
}

.product-ingredient-copy p {
    margin-bottom: 24px;

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   17. INGREDIENT LIST
   ========================================================= */

.product-ingredient-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-ingredient-item {
    padding: 20px;

    display: flex;
    align-items: center;
    gap: 20px;

    background-color: #F7F4EB;

    border: 1px solid #CDD5C8;
    border-radius: 14px;
}

.ingredient-letter {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #6B7F63;
    color: #FFFFFF;

    border-radius: 50%;

    font-family: "Cooper Black", Georgia, serif;
    font-size: 20px;
}

.product-ingredient-item h3 {
    margin-bottom: 4px;

    font-size: 20px;
}

.product-ingredient-item p {
    font-size: 13px;
}


/* =========================================================
   18. COMPLETE ROUTINE SECTION
   ========================================================= */

.complete-routine-section {
    background-color: #FCFAF5;
}

.recommended-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.recommended-product-card {
    background-color: #F7F4EB;

    border: 1px solid #DDD6C8;
    border-radius: 16px;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.recommended-product-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 8px 22px rgba(61, 35, 20, 0.09);
}


/* =========================================================
   19. RECOMMENDED PRODUCT IMAGE
   ========================================================= */

.recommended-product-image {
    position: relative;

    display: block;

    height: 330px;

    background-color: #EEE9DE;

    overflow: hidden;
}

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

    object-fit: cover;
}

.routine-number {
    position: absolute;

    top: 16px;
    left: 16px;

    padding: 7px 12px;

    background-color: #D9A05B;
    color: #3D2314;

    border-radius: 20px;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   20. RECOMMENDED PRODUCT CONTENT
   ========================================================= */

.recommended-product-content {
    padding: 24px;
}

.recommended-product-content h3 {
    margin-bottom: 10px;

    font-size: 24px;
}

.recommended-product-content p {
    margin-bottom: 20px;

    font-size: 14px;
    line-height: 1.6;
}

.recommended-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.recommended-product-bottom strong {
    color: #3D2314;

    font-size: 18px;
}

.recommended-product-bottom .button {
    min-height: 44px;

    padding: 10px 16px;

    font-size: 12px;
}


/* =========================================================
   21. REVIEWS SECTION
   ========================================================= */

.product-reviews-section {
    background-color: #3D2314;
}

.product-reviews-section h2 {
    color: #F7F4EB;
}

.product-reviews-section .eyebrow {
    color: #D9A05B;
}

.reviews-summary {
    margin-bottom: 40px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 16px;

    color: #F7F4EB;
}

.overall-rating > strong {
    color: #F7F4EB;

    font-family: "Cooper Black", Georgia, serif;
    font-size: 52px;
}

.overall-rating .review-stars {
    margin-bottom: 4px;

    color: #D9A05B;
}

.overall-rating span {
    color: #D9CFC7;

    font-size: 12px;
}


/* =========================================================
   22. REVIEW GRID
   ========================================================= */

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    padding: 28px;

    background-color: #F7F4EB;

    border-radius: 16px;
}

.review-card .review-stars {
    margin-bottom: 16px;

    color: #D9A05B;
}

.review-card blockquote {
    margin-bottom: 20px;

    color: #3D2314;

    font-family: "Cooper Black", Georgia, serif;
    font-size: 18px;
    line-height: 1.5;
}

.review-customer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-customer strong {
    color: #3D2314;

    font-size: 13px;
}

.review-customer span {
    padding: 5px 10px;

    background-color: #E7ECE3;
    color: #3D2314;

    border-radius: 20px;

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


/* =========================================================
   23. TABLET
   ========================================================= */

@media screen and (max-width: 1100px) {

    .product-detail-grid {
        gap: 40px;
    }

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

    .product-info h1 {
        font-size: 44px;
    }

    .product-purchase-notes {
        grid-template-columns: 1fr;
    }

    .product-information-grid {
        grid-template-columns: 1fr 1fr;
    }

    .recommended-products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .review-grid {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   24. SMALL TABLET
   ========================================================= */

@media screen and (max-width: 850px) {

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .product-thumbnails {
        order: 2;

        flex-direction: row;
    }

    .product-main-image {
        order: 1;
    }

    .product-thumbnail {
        width: 80px;
        height: 80px;
    }

    .product-info {
        padding-top: 0;
    }

    .product-information-grid {
        grid-template-columns: 1fr;
    }

    .product-ingredient-grid {
        grid-template-columns: 1fr;
    }

    .reviews-summary {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =========================================================
   25. MOBILE
   ========================================================= */

@media screen and (max-width: 650px) {

    .product-breadcrumb {
        padding: 18px 0;
    }

    .product-detail-section {
        padding: 40px 0 64px;
    }

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

    .product-info h1 {
        font-size: 38px;
    }

    .product-short-description {
        font-size: 16px;
    }

    .product-option-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .product-purchase-notes {
        grid-template-columns: 1fr;
    }

    .product-information-card {
        padding: 24px;
    }

    .product-information-card h2 {
        font-size: 26px;
    }

    .product-ingredient-section {
        padding: 64px 0;
    }

    .product-ingredient-copy h2 {
        font-size: 34px;
    }

    .recommended-products-grid {
        grid-template-columns: 1fr;
    }

    .recommended-product-image {
        height: 360px;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   26. SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 420px) {

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

    .product-thumbnail {
        width: 68px;
        height: 68px;
    }

    .product-info h1 {
        font-size: 34px;
    }

    .product-rating-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .quantity-control {
        width: 100%;
        max-width: 160px;
    }

    .recommended-product-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .recommended-product-bottom .button {
        width: 100%;
    }

    .overall-rating > strong {
        font-size: 44px;
    }

}