/* ===================================
   Product Details Page Styles
   =================================== */

.product-details-page {
    padding: 20px 0 100px;
    background-color: #FFFFFF;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 40px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.breadcrumbs a {
    color: #000;
}

.breadcrumbs .current {
    color: #000;
}

/* Top Row Layout */
.product-top-row {
    display: -webkit-flex;
    display: flex;
    gap: 80px;
    margin-bottom: 80px;
    align-items: flex-start;
}

/* Image Gallery (Left) */
.product-gallery {
    flex: 1.2;
    max-width: 520px;
    flex-shrink: 0;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    background: #E8EBE9;
    /* Soft greenish gray from mockup */
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}

.thumbnail-box {
    aspect-ratio: 1 / 1;
    background: #E8EBE9;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Purchase Column (Right) */
.product-purchase-column {
    flex: 1;
    padding-top: 10px;
}

.info-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1A1A1A;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stars {
    color: #FFC107;
    font-size: 20px;
}

.rating-text {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.info-price {
    font-family: var(--font-body);
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 35px;
    color: #1A1A1A;
}

.info-description-box {
    margin-bottom: 30px;
}

.info-description-box p {
    font-size: 18px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 12px;
}

.secondary-rating {
    margin-bottom: 35px;
}

.purchase-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Gray Qty Block */
.qty-selector-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #909090;
    /* Gray from mockup */
    border-radius: 6px;
    padding: 16px 25px;
    /* Unified padding with button */
    color: #FFF;
    width: 100%;
    height: 60px;
    /* Forced same height */
}

.qty-btn {
    background: transparent;
    color: #FFF;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.qty-val {
    font-size: 18px;
    font-weight: 500;
}

/* Gold Add button */
.btn-add-to-cart-gold {
    background: #C4A47C;
    /* Gold from mockup */
    color: #FFF;
    padding: 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    height: 60px;
    /* Forced same height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bottom Grid Layout */
.product-bottom-grid {
    display: flex;
    gap: 60px;
    margin-bottom: 100px;
}

/* Tabs column (Left half) */
.tabs-column {
    flex: 1.2;
}

.tabs-header {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 35px;
}

.tab-btn {
    padding: 10px 0 15px;
    background: transparent;
    font-size: 16px;
    /* Increased slightly */
    color: #888;
    position: relative;
    cursor: pointer;
    font-weight: 500;
}

.tab-btn.active {
    color: #000;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    /* Small line width as per mockup */
    height: 2px;
    background: #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.content-block {
    margin-bottom: 40px;
}

.reviews-container-row {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.review-summary-card {
    width: 250px;
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    flex-shrink: 0;
}

.summary-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1A1A1A;
}

.star-rating-bars {
    margin-bottom: 25px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.star-label {
    font-size: 13px;
    color: #1A1A1A;
    white-space: nowrap;
    width: 50px;
    text-align: left;
}

.bar-bg {
    flex: 1;
    height: 10px;
    background: #F0F0F0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid #E0E0E0;
}

.bar-fill {
    height: 100%;
    background: #E9BE79;
    /* Gold/Beige from mockup */
    border-radius: 6px;
}

.total-customer-review-count {
    font-size: 12px;
    color: #757575;
    font-weight: 500;
}

[class*="review"] {
    -webkit-overflow-scrolling: touch;
}

/* Review List column */
.review-list-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-item {
    display: flex;
    gap: 15px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-body {
    flex: 1;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.review-text-content {
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
    line-height: 1.4;
}

.review-stars-small {
    color: #FFC107;
    font-size: 14px;
}

.gold-stars {
    color: #E9BE79;
}

/* Mini Gallery */
.review-mini-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    max-width: 600px;
}

.review-mini-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
}

/* Write Review Footer */
.review-action-footer {
    display: flex;
    justify-content: center;
}

.btn-write-review {
    background: #E9BE79;
    color: #FFFFFF;
    padding: 10px 60px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-write-review:hover {
    background: #d4ac6a;
    transform: translateY(-2px);
}

.block-label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    color: #1A1A1A;
}

.content-block p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-specs {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.color-box {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #D9D9D9;
    margin-left: 8px;
    vertical-align: middle;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Preparation Process Tab Styles */
.process-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1A1A1A;
}

.process-list {
    list-style: none;
    padding-left: 5px;
    margin-top: 15px;
}

.process-list li {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.process-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1A1A1A;
    font-weight: bold;
}

/* Similar column (Right half) */
.similar-column {
    flex: 1;
}

.similar-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 35px;
}

.similar-2x2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

.similar-product-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
}

.sim-img-wrap {
    width: 100%;
    aspect-ratio: 1.4 / 1;
    background: #F3F3F3;
    position: relative;
}

.sim-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sim-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(232, 232, 232, 0.8);
    color: #888;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.sim-content {
    padding: 12px 2px;
}

.sim-name {
    font-family: var(--font-heading);
    /* Serif font like the mockup */
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px;
}

.sim-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sim-rating-line {
    display: flex;
    align-items: center;
    gap: 5px;
}

.small-stars {
    font-size: 10px;
}

.sim-rating-val {
    font-size: 10px;
    color: #888;
    font-weight: 500;
}

.sim-price {
    font-size: 18px;
    font-weight: 600;
}

/* Footer Features */
.footer-features-row {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    gap: 30px;
}

.feature-box {
    text-align: center;
    flex: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: #F0F2F5;
    /* Matches the soft gray in the image */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 24px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: #000;
}

.feature-title {
    font-size: 18px;
    /* Larger as requested */
    font-weight: 700;
    margin-bottom: 12px;
    color: #1A1A1A;
}

.feature-text {
    font-size: 15px;
    /* Larger as requested */
    color: #666;
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1100px) {
    .product-top-row {
        flex-direction: column;
        gap: 40px;
    }

    .product-gallery,
    .product-purchase-column {
        max-width: 100%;
    }

    .product-bottom-grid {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .product-details-page {
        padding: 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Hide breadcrumbs on mobile */
    .breadcrumbs {
        display: none;
    }

    /* Mobile Gallery */
    .product-top-row {
        gap: 25px;
        margin-bottom: 20px;
    }

    .product-gallery {
        max-width: 100%;
    }

    .main-image-container {
        aspect-ratio: 1.3 / 1;
        border-radius: 12px;
        margin-bottom: 0;
        background: #E8EBE9;
    }

    .thumbnail-row {
        display: none;
        /* Hide thumbnails on mobile as per design */
    }

    /* Mobile Product Info */
    .product-purchase-column {
        padding-top: 0;
    }

    .info-title {
        font-size: 26px;
        font-weight: 700;
        margin-bottom: 6px;
        line-height: 1.2;
        text-align: left;
    }

    .rating-summary {
        margin-bottom: 10px;
        gap: 6px;
        justify-content: flex-start;
    }

    .stars {
        font-size: 14px;
    }

    .rating-text {
        font-size: 11px;
        color: #666;
    }

    .info-price {
        font-size: 30px;
        font-weight: 700;
        margin-bottom: 6px;
        text-align: left;
    }

    /* Add "50 (5.0 stars)" style text below price */
    .secondary-rating {
        font-size: 12px;
        color: #666;
        margin-bottom: 18px;
        text-align: left;
    }

    .info-description-box {
        margin-bottom: 18px;
    }

    .info-description-box p {
        font-size: 13px;
        line-height: 1.6;
        color: #444;
        margin-bottom: 10px;
        text-align: left;
    }

    /* Mobile Purchase Controls */
    .purchase-controls {
        gap: 10px;
        margin-bottom: 15px;
    }

    .qty-selector-block {
        height: 52px;
        padding: 12px 18px;
        border-radius: 10px;
        background: #909090;
    }

    .qty-btn {
        font-size: 20px;
        padding: 0 8px;
    }

    .qty-val {
        font-size: 15px;
    }

    .btn-add-to-cart-gold {
        height: 52px;
        padding: 14px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        background: #C4A47C;
    }

    /* Mobile Tabs */
    .product-bottom-grid {
        gap: 30px;
        margin-bottom: 50px;
    }

    .tabs-header {
        gap: 25px;
        margin-bottom: 25px;
    }

    .tab-btn {
        font-size: 14px;
        padding: 8px 0 12px;
    }

    .tab-btn.active::after {
        width: 40px;
    }

    .content-block {
        margin-bottom: 30px;
    }

    .block-label {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .content-block p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    /* Mobile Reviews */
    .reviews-container-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .review-summary-card {
        width: 100%;
        padding: 18px;
    }

    .review-item {
        gap: 12px;
    }

    .reviewer-avatar {
        width: 36px;
        height: 36px;
    }

    .reviewer-name {
        font-size: 14px;
    }

    .review-text-content {
        font-size: 13px;
    }

    .review-mini-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 30px;
    }

    .btn-write-review {
        padding: 12px 40px;
        font-size: 14px;
    }

    /* Mobile Similar Products */
    .similar-heading {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .similar-2x2-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
        /* Space for scrollbar */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
    }

    .similar-product-card {
        flex: 0 0 160px;
        /* Fixed width for items */
        scroll-snap-align: start;
    }

    .sim-name {
        font-size: 16px;
    }

    .sim-price {
        font-size: 15px;
    }

    /* Mobile Footer Features */
    .footer-features-row {
        flex-direction: column;
        gap: 40px;
        padding: 50px 0;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }

    .feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .feature-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .feature-text {
        font-size: 14px;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .info-title {
        font-size: 24px;
    }

    .info-price {
        font-size: 28px;
    }

    /* similar-2x2-grid handled by horizontal scroll above */
}