/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: Arial, sans-serif;

    background: #f2eadf;
    color: #2f2924;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
textarea {
    font: inherit;
}

.messages {
    max-width: 850px;

    margin: 16px auto 0;

    padding: 0 20px;
}

.message {
    padding: 11px 14px;

    border-radius: 9px;

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

.message.success {
    background: #edf7ef;

    color: #397148;

    border: 1px solid #cfe4d3;
}

.message.error {
    background: #fff0ed;

    color: #a43b2a;

    border: 1px solid #efd0ca;
}

.message.warning {
    background: #f8f0df;

    color: #8b671e;

    border: 1px solid #eadbb9;
}

.message.info {
    background: #eef2ed;

    color: #4b613e;

    border: 1px solid #d7e0d2;
}

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

.cafe-navbar {
    position: relative;
    z-index: 100;

    height: 58px;

    display: flex;
    align-items: center;

    padding: 0 22px;

    background: #fffdf9;

    border-bottom: 1px solid #e2d9ce;

    box-shadow:
        0 2px 10px rgba(68, 48, 35, 0.06);
}


/* Brand */

.cafe-brand {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #30271f;

    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 700;
}

.cafe-brand:hover {
    color: #8b3f16;
}

.cafe-brand-icon {
    width: 30px;
    height: 30px;

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

    border-radius: 9px;

    background: #8b3f16;
    color: #fffaf3;

    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 700;
}


/* Navigation */

.cafe-nav {
    position: absolute;

    left: 50%;

    display: flex;
    align-items: center;

    gap: 28px;

    transform: translateX(-50%);
}

.cafe-nav a {
    position: relative;

    color: #4f453d;

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

.cafe-nav a:hover {
    color: #8b3f16;
}


/* Active Menu */

.cafe-nav a:first-child {
    color: #8b3f16;
}

.cafe-nav a:first-child::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -8px;

    height: 1px;

    background: #8b3f16;
}


/* Profile */

.cafe-profile {
    width: 30px;
    height: 30px;

    margin-left: auto;

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

    overflow: hidden;

    border-radius: 50%;

    background: #f1dfc9;

    color: #8b3f16;

    font-size: 12px;
    font-weight: 700;
}

.cafe-profile img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   MESSAGES
   ========================================================= */

.messages {
    margin: 15px 56px 0;
}

.message {
    padding: 11px 14px;

    border-radius: 8px;

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

.message.success {
    background: #edf7ef;
    color: #397148;
}

.message.error {
    background: #fff0ed;
    color: #a43b2a;
}

.message.warning {
    background: #f8f0df;
    color: #8b671e;
}

.message.info {
    background: #eef2ed;
    color: #4b613e;
}


/* =========================================================
   PAGE
   ========================================================= */

.product-detail-page {
    min-height: 100vh;

    padding: 24px 56px 60px;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(139, 63, 22, 0.035),
            transparent 30%
        );
}

.product-detail-container {
    width: 100%;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.breadcrumb {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 18px;

    color: #8a8179;

    font-size: 12px;
}

.breadcrumb a {
    color: #8b3f16;

    font-weight: 600;
}

.breadcrumb .current {
    color: #51463d;

    font-weight: 600;
}


/* =========================================================
   MAIN PRODUCT CARD
   ========================================================= */

.product-detail-card {
    display: grid;

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

    gap: 45px;

    padding: 28px;

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

    background: #fffdf9;

    box-shadow:
        0 6px 20px rgba(68, 48, 35, 0.06);
}


/* =========================================================
   LEFT GALLERY
   ========================================================= */

.product-gallery {
    min-width: 0;
}


/* =========================================================
   MAIN IMAGE CAROUSEL
   ========================================================= */

.product-image-carousel {
    position: relative;

    width: 100%;
}

.product-image-carousel .carousel-inner {
    width: 100%;

    overflow: hidden;

    border-radius: 14px;
}

.product-image-carousel .carousel-item {
    width: 100%;
}


/* Main Image */

.main-image-container {
    width: 100%;
    height: 460px;

    overflow: hidden;

    border-radius: 14px;

    background: #eee7dc;
}

.main-product-image {
    display: block;

    width: 100%;
    height: 460px;

    object-fit: cover;

    cursor: zoom-in;
}

.main-no-image {
    width: 100%;
    height: 100%;

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

    color: #91877d;

    font-size: 14px;
}


/* =========================================================
   MAIN IMAGE CONTROLS
   ========================================================= */

.product-carousel-control {
    width: 52px;

    opacity: 1;
}

.product-carousel-control:hover {
    opacity: 1;
}

.product-carousel-control .carousel-control-prev-icon,
.product-carousel-control .carousel-control-next-icon {
    width: 36px;
    height: 36px;

    position: relative;

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

    border-radius: 50%;

    background: #fffdf9;

    background-image: none;

    filter: none;

    box-shadow:
        0 2px 8px rgba(55, 42, 32, 0.16);
}

.product-carousel-control
.carousel-control-prev-icon::before,
.product-carousel-control
.carousel-control-next-icon::before {
    content: "";

    width: 8px;
    height: 8px;

    border-top: 2px solid #493c33;
    border-left: 2px solid #493c33;
}

.product-carousel-control
.carousel-control-prev-icon::before {
    transform: rotate(-45deg);
}

.product-carousel-control
.carousel-control-next-icon::before {
    transform: rotate(135deg);
}

.product-carousel-control:hover
.carousel-control-prev-icon,
.product-carousel-control:hover
.carousel-control-next-icon {
    background: #f5ede2;
}


/* =========================================================
   PRODUCT IMAGE THUMBNAILS
   ========================================================= */

.product-thumbnails {
    display: flex;

    gap: 9px;

    margin-top: 12px;

    overflow-x: auto;

    padding-bottom: 3px;

    scrollbar-width: none;
}

.product-thumbnails::-webkit-scrollbar {
    display: none;
}

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

    flex: 0 0 72px;

    padding: 0;

    overflow: hidden;

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

    background: #eee7dc;

    cursor: pointer;
}

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

.product-thumbnail.active {
    border-color: #8b3f16;
}

.product-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   RELATED PRODUCTS
   ========================================================= */

.related-products-section {
    width: 100%;

    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid #e8e0d6;
}


/* =========================================================
   SECTION HEADINGS AND NAVIGATION ARROWS
   ========================================================= */

/* Related Products: heading and arrows on the same row */

.related-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
    width: 100%;
    margin-bottom: 14px;
}

.related-products-header h2 {
    margin: 0;
    line-height: 1.3;
}

.related-products-controls,
.customer-review-controls {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
    flex-shrink: 0;
}


/* Rounded navigation buttons */

.related-products-arrow,
.customer-review-arrow {
    appearance: none;
    -webkit-appearance: none;

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

    width: 36px;
    height: 36px;
    min-width: 36px;

    padding: 0;

    border: 1px solid #ded5c8;
    border-radius: 50%;

    background: #fffdf9;
    color: #493c33;

    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

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


/* Hover */

.related-products-arrow:hover:not(:disabled),
.customer-review-arrow:hover:not(:disabled) {
    background: #f5ede2;
    border-color: #bda890;
    color: #71300f;
}


/* Disabled */

.related-products-arrow:disabled,
.customer-review-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* Customer Reviews: keep navigation controls vertically centered */

.reviews-heading {
    align-items: center;
}


/* Keep the review summary from stretching the heading */

.reviews-heading-info {
    min-width: 0;
}


/* AJAX containers */

#relatedProductsContainer,
#customerReviewContainer {
    width: 100%;
    min-width: 0;
}


/* Mobile */

@media (max-width: 600px) {
    .related-products-header {
        gap: 8px;
    }

    .related-products-header h2 {
        font-size: 17px;
    }

    .related-products-controls,
    .customer-review-controls {
        gap: 6px;
    }

    .related-products-arrow,
    .customer-review-arrow {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 23px;
    }
}



/* =========================================================
   RELATED PRODUCTS GRID
   ========================================================= */

.related-products-grid {

    display: grid;

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

    gap: 10px;

    width: 100%;
}



/* =========================================================
   RELATED PRODUCT CARD
   ========================================================= */

.related-product-card {

    display: block;

    width: 100%;

    min-width: 0;

    overflow: hidden;

    border: 1px solid #ded5c8;

    border-radius: 10px;

    background: #fffdf9;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.related-product-card:hover {

    border-color: #8b3f16;

    box-shadow:
        0 4px 12px rgba(68, 48, 35, 0.09);

    transform: translateY(-2px);
}



/* =========================================================
   RELATED PRODUCT IMAGE
   ========================================================= */

.related-product-image {

    position: relative;

    width: 100%;

    height: 125px;

    overflow: hidden;

    background: #eee7dc;
}


.related-product-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.related-product-no-image {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #91877d;

    font-size: 10px;
}



/* =========================================================
   RELATED PRODUCT INFO
   ========================================================= */

.related-product-info {

    min-height: 66px;

    padding: 9px;
}


.related-product-info h3 {

    margin: 0 0 5px;

    color: #3d332b;

    font-size: 12px;

    font-weight: 600;

    line-height: 1.35;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

    overflow: hidden;
}


.related-product-info strong {

    color: #8b3f16;

    font-family: Georgia, serif;

    font-size: 13px;
}



/* =========================================================
   RELATED PRODUCT UNAVAILABLE
   ========================================================= */

.related-product-unavailable {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(47, 41, 36, 0.48);

    color: #ffffff;

    font-size: 10px;

    font-weight: 600;
}


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

.product-detail-info {
    min-width: 0;
}

.product-category {
    display: inline-block;

    margin-bottom: 10px;

    padding: 6px 10px;

    border-radius: 15px;

    background: #f1e6d8;

    color: #8b3f16;

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

.product-detail-info h1 {
    margin: 0 0 12px;

    font-family: Georgia, serif;

    color: #3d2619;

    font-size: 30px;

    line-height: 1.25;
}

.product-description {
    margin: 0;

    color: #817568;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   PRICE
   ========================================================= */

.product-price {
    margin-top: 22px;

    font-family: Georgia, serif;

    color: #8b3f16;

    font-size: 25px;
    font-weight: 700;
}


/* =========================================================
   AVAILABILITY
   ========================================================= */

.availability {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-top: 13px;

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

.availability span {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;
}

.availability.available {
    color: #4b6a40;
}

.availability.available span {
    background: #4b6a40;
}

.availability.unavailable {
    color: #8f8982;
}

.availability.unavailable span {
    background: #8f8982;
}


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

.quantity-section {
    margin-top: 25px;
}

.quantity-section label,
.instructions-section > label,
.reviews-section > label {
    display: block;

    margin-bottom: 10px;

    color: #74685d;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.3px;
}

.quantity-controls {
    display: flex;
    align-items: center;

    gap: 14px;
}

.quantity-controls button {
    width: 40px;
    height: 40px;

    border: 1px solid #d9d0c5;
    border-radius: 9px;

    background: #fffdf9;

    color: #514b46;

    font-size: 20px;

    cursor: pointer;

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

.quantity-controls button:hover {
    border-color: #8b3f16;

    background: #faf4eb;

    color: #8b3f16;
}

.quantity-controls span {
    min-width: 25px;

    text-align: center;

    font-family: Georgia, serif;

    font-size: 18px;
    font-weight: 700;
}


/* =========================================================
   SPECIAL INSTRUCTIONS
   ========================================================= */

.instructions-section {
    margin-top: 22px;
}

.instruction-options {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 10px;
}

.instruction-options button {
    padding: 7px 10px;

    border: 1px solid #ddd4ca;
    border-radius: 14px;

    background: #fffdf9;

    color: #74685d;

    font-size: 11px;

    cursor: default;
}

.instructions-section textarea {
    width: 100%;
    min-height: 70px;

    padding: 11px;

    resize: none;

    border: none;
    border-radius: 10px;

    outline: none;

    background: #f7f2ea;

    color: #817568;

    font-size: 12px;
}


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

.reviews-section {
    margin-top: 22px;
}

.dummy-review {
    padding: 13px;

    border: 1px solid #e3dbd1;
    border-radius: 10px;

    background: #fffdf9;
}

.review-header {
    display: flex;

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

    gap: 10px;

    margin-bottom: 7px;
}

.review-header strong {
    color: #3d332b;

    font-size: 12px;
}

.review-header span {
    color: #c58b16;

    font-size: 12px;
}

.dummy-review p {
    margin: 0;

    color: #756b63;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   ADD TO ORDER
   ========================================================= */

.add-to-order-form {
    margin-top: 22px;
}

.detail-add-button {
    display: flex;

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

    gap: 25px;

    width: 100%;

    padding: 13px 18px;

    margin-top: 30px;

    border: none;
    border-radius: 9px;

    background: #8b3f16;

    color: #fffaf3;

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

    cursor: pointer;

    box-shadow:
        0 5px 12px rgba(139, 63, 22, 0.16);

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.detail-add-button:hover {
    background: #743312;
}

.detail-add-button:active {
    transform: translateY(1px);
}

.detail-add-button strong {
    font-size: 14px;
}

.detail-add-button.disabled {
    background: #e7e2db;

    color: #999189;

    cursor: not-allowed;

    box-shadow: none;
}


/* =========================================================
   IMAGE ZOOM
   ========================================================= */

.image-zoom {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: none;

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

    padding: 30px;

    background: rgba(0, 0, 0, 0.75);

    cursor: zoom-out;
}

.image-zoom.show {
    display: flex;
}

.image-zoom img {
    max-width: 90vw;
    max-height: 90vh;

    object-fit: contain;

    border-radius: 10px;
}

.instruction-option.selected {
    border-color: #8b3f16;
    background: #8b3f16;
    color: #fffaf3;
}

.instructions-section textarea {
    width: 100%;
    min-height: 85px;

    margin-top: 12px;
    padding: 11px 12px;

    border: 1px solid #d9d0c5;
    border-radius: 8px;

    outline: none;

    background: #fffdf9;

    color: #30271f;

    font-family: Arial, sans-serif;
    font-size: 12px;

    resize: vertical;
}

.instructions-section textarea:focus {
    border-color: #8b3f16;

    box-shadow:
        0 0 0 3px rgba(139, 63, 22, 0.08);
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .product-detail-page {
        padding: 25px 30px 50px;
    }

    .product-detail-card {
        gap: 30px;

        padding: 20px;
    }

    .main-image-container,
    .main-product-image {
        height: 400px;
    }

    .related-products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .related-product-image {
        height: 115px;
    }
}


/* =========================================================
   RESPONSIVE - SMALL TABLET
   ========================================================= */

@media (max-width: 800px) {

    .product-detail-page {
        padding: 20px;
    }

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

        gap: 30px;
    }

    .main-image-container,
    .main-product-image {
        height: 430px;
    }
    .related-products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }   

    .related-product-image {
            height: 125px;
    }   
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 600px) {

    /* Navbar */

    .cafe-navbar {
        height: 52px;

        padding: 0 12px;
    }

    .cafe-brand {
        gap: 7px;

        font-size: 14px;
    }

    .cafe-brand-icon {
        width: 27px;
        height: 27px;

        border-radius: 8px;

        font-size: 13px;
    }

    .cafe-nav {
        gap: 18px;
    }

    .cafe-nav a {
        font-size: 10px;
    }

    .cafe-nav a:first-child::after {
        bottom: -6px;
    }

    .cafe-profile {
        width: 27px;
        height: 27px;

        font-size: 11px;
    }


    /* Messages */

    .messages {
        margin: 12px;
    }


    /* Page */

    .product-detail-page {
        padding: 15px 12px 35px;
    }


    /* Main card */

    .product-detail-card {
        display: block;

        padding: 0;

        border: none;

        background: transparent;

        box-shadow: none;
    }


    /* Gallery */

    .product-gallery {
        padding: 10px;

        border: 1px solid #ded5c8;
        border-radius: 14px;

        background: #fffdf9;

        box-shadow:
            0 4px 14px rgba(68, 48, 35, 0.06);
    }

    .main-image-container,
    .main-product-image {
        height: 330px;
    }


    /* Thumbnails */

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

        flex-basis: 62px;
    }


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

        gap: 9px;
    }


    .related-product-image {
        height: 115px;
    }


    .related-product-info {
        min-height: 62px;

        padding: 8px;
    }


    .related-product-info h3 {
        font-size: 11px;
    }


    .related-product-info strong {
        font-size: 12px;
    }


    /* Product info */

    .product-detail-info {
        margin-top: 15px;

        padding: 18px;

        border: 1px solid #ded5c8;
        border-radius: 14px;

        background: #fffdf9;

        box-shadow:
            0 4px 14px rgba(68, 48, 35, 0.06);
    }

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


/* =========================================================
   RESPONSIVE - VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .cafe-nav {
        gap: 13px;
    }

    .cafe-nav a {
        font-size: 9px;
    }

    .product-detail-info {
        padding: 14px;
    }

    .related-products-grid {
        grid-template-columns:
            1fr 1fr;
    
        gap: 7px;
    }
    
    
    .related-product-image {
        height: 95px;
    }
    
    
    .related-product-info {
        padding: 7px;
    }
    
    
    .related-product-info h3 {
        font-size: 10px;
    }
    
    
    .related-product-info strong {
        font-size: 11px;
    }
}

/* =========================================================
   CUSTOMER REVIEWS - REAL REVIEW SYSTEM
   ========================================================= */

.reviews-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e8e0d6;
}

.reviews-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.reviews-heading-info {
    min-width: 0;
}

.reviews-heading-info > label {
    display: block;
    margin-bottom: 8px;
    color: #74685d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.reviews-average {
    color: #3d2619;
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
}

.reviews-summary-star {
    color: #c58b16;
    font-size: 17px;
}

.reviews-count {
    color: #8a8179;
    font-size: 11px;
}

.review-action-button {
    flex-shrink: 0;
    padding: 9px 13px;
    border: 1px solid #8b3f16;
    border-radius: 8px;
    background: #8b3f16;
    color: #fffaf3;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.review-action-button:hover {
    background: #743312;
    transform: translateY(-1px);
}

.review-login-note {
    color: #8a8179;
    font-size: 11px;
    line-height: 1.5;
}


/* Review list */

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e3dbd1;
    border-radius: 10px;
    background: #fffdf9;
    transition: border-color 0.2s ease;
}

.review-card:hover {
    border-color: #d4c2ae;
}

.review-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.review-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    border: 1px solid #e8d5bf;
    border-radius: 50%;
    background: #f1e6d8;
    color: #8b3f16;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 700;
}

.review-author-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.review-author-details strong {
    overflow-wrap: anywhere;
    color: #3d332b;
    font-size: 12px;
    font-weight: 700;
}

.review-date {
    color: #968a7e;
    font-size: 10px;
}

.review-rating {
    display: flex;
    flex-shrink: 0;
    gap: 1px;
    padding-top: 2px;
    font-size: 13px;
}

.star-filled {
    color: #c58b16;
}

.star-empty {
    color: #ded5c8;
}

.review-text {
    margin: 13px 0 0;
    color: #756b63;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    white-space: pre-line;
}


/* Admin response */

.review-admin-reply {
    margin-top: 14px;
    padding: 12px;
    border-left: 3px solid #8b3f16;
    border-radius: 0 8px 8px 0;
    background: #f7f2ea;
}

.admin-reply-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6f3518;
    font-size: 11px;
}

.admin-reply-icon {
    font-size: 17px;
}

.review-admin-reply p {
    margin: 0;
    color: black;
    font-size: 11px;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.admin-reply-date {
    display: block;
    color: #968a7e;
    font-size: 10px;
}


/* Edit and delete controls */

.review-owner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #eee7de;
}

.review-owner-actions > form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.review-owner-actions > button,
.review-owner-actions > form > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    vertical-align: middle;
}

.review-edit-button,
.review-delete-button {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease;
}

.review-edit-button {
    color: #8b3f16;
}

.review-edit-button:hover {
    color: #5f280e;
    text-decoration: underline;
}

.review-delete-button {
    color: #a43b2a;
}

.review-delete-button:hover {
    color: #7d2519;
    text-decoration: underline;
}


/* Empty state */

.reviews-empty-state {
    padding: 25px 14px;
    border: 1px dashed #d9cbbb;
    border-radius: 10px;
    background: #faf6f0;
    text-align: center;
}

.reviews-empty-icon {
    margin-bottom: 7px;
    color: #b89b7b;
    font-family: Georgia, serif;
    font-size: 30px;
}

.reviews-empty-state h3 {
    margin: 0 0 6px;
    color: #3d2619;
    font-family: Georgia, serif;
    font-size: 16px;
}

.reviews-empty-state p {
    margin: 0;
    color: #8a8179;
    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   REVIEW MODAL
   ========================================================= */

.review-modal .modal-dialog {
    max-width: 490px;
    margin: 1.25rem auto;
}

.review-modal .modal-content {
    overflow: hidden;
    border: 1px solid #e0d4c6;
    border-radius: 15px;
    background: #fffdf9;
    box-shadow: 0 15px 50px rgba(47, 41, 36, 0.18);
}

.review-modal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 23px 24px 18px;
    border-bottom: 1px solid #eee5da;
    background: #faf6f0;
}

.review-modal-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #9a6545;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.review-modal .modal-title {
    margin: 0;
    color: #3d2619;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 700;
}

.review-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #e3d8ca;
    border-radius: 50%;
    background: #fffdf9;
    color: #756b63;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.review-modal-close:hover {
    background: #8b3f16;
    color: #fffaf3;
}

.review-modal .modal-body {
    padding: 22px 24px;
}

.review-product-reference {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 23px;
    padding: 13px;
    border: 1px solid #e8dfd3;
    border-radius: 10px;
    background: #faf6f0;
}

.review-product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1e6d8;
    color: #8b3f16;
    font-size: 20px;
}

.review-product-reference > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.review-product-reference strong {
    color: #3d332b;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.review-product-reference > div > span {
    color: #8a8179;
    font-size: 11px;
}

.review-form-group {
    margin-bottom: 20px;
}

.review-form-group:last-child {
    margin-bottom: 0;
}

.review-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #51463d;
    font-size: 12px;
    font-weight: 700;
}

.review-form-control {
    display: block;
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #d9d0c5;
    border-radius: 8px;
    outline: none;
    background: #fffdf9;
    color: #30271f;
    font-family: Arial, sans-serif;
    font-size: 12px;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.review-form-control:focus {
    border-color: #8b3f16;
    box-shadow: 0 0 0 3px rgba(139, 63, 22, 0.09);
}

.review-textarea {
    min-height: 125px;
    resize: vertical;
    line-height: 1.6;
}

.review-field-hint {
    display: block;
    margin-top: 7px;
    color: #968a7e;
    font-size: 10px;
    line-height: 1.5;
}

.review-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 22px;
    border-top: 1px solid #eee5da;
}

.review-cancel-button,
.review-submit-button {
    min-height: 39px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.review-cancel-button {
    border: 1px solid #d9d0c5;
    background: #fffdf9;
    color: #62564c;
}

.review-cancel-button:hover {
    border-color: #bda890;
    background: #f7f2ea;
}

.review-submit-button {
    border: 1px solid #8b3f16;
    background: #8b3f16;
    color: #fffaf3;
}

.review-submit-button:hover {
    border-color: #743312;
    background: #743312;
}


/* =========================================================
   REVIEW RESPONSIVENESS
   ========================================================= */

@media (max-width: 600px) {

    .reviews-section {
        margin-top: 22px;
        padding-top: 18px;
    }

    .reviews-heading {
        align-items: flex-start;
        gap: 10px;
    }

    .reviews-average {
        font-size: 20px;
    }

    .review-action-button {
        padding: 9px 10px;
        font-size: 10px;
    }

    .review-card {
        padding: 12px;
    }

    .review-card-top {
        gap: 8px;
    }

    .review-avatar {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .review-rating {
        font-size: 11px;
    }

    .review-modal .modal-dialog {
        margin: 12px;
    }

    .review-modal .modal-header {
        padding: 19px 18px 15px;
    }

    .review-modal .modal-title {
        font-size: 21px;
    }

    .review-modal .modal-body {
        padding: 18px;
    }

    .review-modal .modal-footer {
        padding: 14px 18px 18px;
    }
}

/* =========================================================
   AJAX CONTENT TRANSITIONS
   ========================================================= */

#relatedProductsContainer,
#customerReviewContainer {
    opacity: 1;
    transform: translateX(0);

    transition:
        opacity 220ms ease,
        transform 220ms ease;

    will-change: opacity, transform;
}

/* Fade and slide out */

#relatedProductsContainer.is-transitioning,
#customerReviewContainer.is-transitioning {
    opacity: 0;
}

/* Next navigation */

#relatedProductsContainer.slide-next,
#customerReviewContainer.slide-next {
    transform: translateX(-12px);
}

/* Previous navigation */

#relatedProductsContainer.slide-previous,
#customerReviewContainer.slide-previous {
    transform: translateX(12px);
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    #relatedProductsContainer,
    #customerReviewContainer {
        transition: none;
        transform: none;
    }
}

.product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.offer-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    background: #e8f5e9;
    color: #237a3b;
    font-size: 0.8rem;
    font-weight: 700;
}

.offer-prices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.original-price {
    color: #888;
    font-size: 0.95rem;
    font-weight: 400;
}

.offered-price,
.regular-price {
    color: #71300f;
    font-size: 1.4rem;
    font-weight: 700;
}   
