/* Product Details Page Specific Styles */

.product-details-page {
    padding-top: 20px;
    background-color: var(--floral-white);
    min-height: 100vh;
}

/* Header Adjustments */
.header-wrapper header {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Ensure header stays on top */
}

.breadcrumb-container {
    padding: 10px 50px;
    font-size: 0.9rem;
    color: var(--text-sienna);
    background-color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.breadcrumb-container a:hover {
    color: var(--accent-gold-med);
    text-decoration: underline;
}

.breadcrumb-container .separator {
    margin: 0 5px;
    color: var(--accent-gold-light);
}

/* Main Container Layout */
.product-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
    position: relative;
}

/* Left Section: Fixed Visuals */
.product-visuals {
    flex: 1;
    /* roughly 50% */
    position: sticky;
    top: 110px;
    /* Adjust based on header height, little more spacing */
    height: auto;
    max-height: calc(100vh - 140px);
    /* Constrain height */
    overflow-y: auto;
    /* Allow internal scroll if viewport is short */
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look if supported */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-visuals::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for WebKit */
}

.main-image-container {
    flex: 1;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 60vh;
}

.main-image-container img,
.main-image-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* or cover based on preference */
    transition: transform 0.3s ease;
}

.video-player {
    width: 100%;
    height: 100%;
}

.thumbnail-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100px;
}

.thumbnail-track-container {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.thumbnail-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
    height: 100%;
}

.thumb-item {
    min-width: 80px;
    /* 4 items ~320px + gaps */
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
    background: white;
}

.thumb-item img,
.thumb-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--accent-gold-med);
    opacity: 1;
}

.thumb-nav {
    background: white;
    border: 1px solid var(--accent-gold-light);
    color: var(--text-saddle-brown);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.thumb-nav:hover {
    background: var(--accent-gold-med);
    color: white;
}


/* Right Section: Scrollable Info */
.product-info-panel {
    flex: 1;
    /* overflow-y: auto;  - We want the page to scroll, not just this panel, 
                          but since left is sticky, this naturally flows. */
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 50px;
    width: 50%;
}

/* 1. Price & Actions */
.product-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.price-block .current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark-brown);
    font-family: 'Times New Roman', Times, serif;
}

.price-block .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    margin-left: 10px;
}

.action-icons {
    display: flex;
    gap: 12px;
}

.p-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: #fff;
    color: var(--text-dark-brown);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.p-action-btn:hover {
    border-color: var(--accent-gold-light);
    color: var(--accent-gold-dark);
    transform: translateY(-2px);
}

.p-action-btn.active {
    background: var(--accent-gold-med);
    color: #fff;
    border-color: var(--accent-gold-med);
}

/* Ensure wishlist btn on details page doesn't use absolute pos from style.css */
.product-header-actions .wishlist-btn {
    position: static !important;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-block .tax-note {
    font-size: 0.8rem;
    color: #777;
    margin-top: 2px;
}

.action-icons {
    display: flex !important;
    flex-direction: row !important;
    grid-gap: 15px;
    /* Fallback */
    gap: 15px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.p-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--accent-gold-light);
    background: white;
    color: var(--text-saddle-brown);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.p-action-btn:hover {
    background: var(--floral-white);
    color: var(--accent-gold-med);
    transform: scale(1.1);
}

/* 2. Product Name */
.product-title {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    /* font-family: "Cinzel", serif; */
    /* font-family: "Roboto", sans-serif; */
    color: #4a4a4a;
    line-height: 1.3;
}

/* 3. Highlight */
.product-highlight {
    font-style: italic;
    color: var(--text-sienna);
    border-left: 3px solid var(--accent-gold-med);
    padding-left: 15px;
}

/* 3a. Size Selector (Bangles & Rings) */
.size-selector {
    margin: 16px 0 20px;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.15);
}

.size-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.size-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark-brown);
}

.size-note {
    font-size: 0.8rem;
    color: var(--text-muted, #777);
}

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

.size-option {
    min-width: 38px;
    padding: 6px 10px;
    border-radius: 18px;
    border: 1px solid rgba(139, 69, 19, 0.4);
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    color: var(--text-dark-brown);
    background: #fffdf8;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.size-option:hover {
    border-color: var(--accent-gold-med);
    background: #fff7e6;
    transform: translateY(-1px);
}

.size-option.active {
    background: var(--accent-gold-med);
    color: #ffffff;
    border-color: var(--accent-gold-dark);
    font-weight: 600;
}

/* 4. Estimated Delivery */
.delivery-check-section h4 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-dark-brown);
}

.pincode-input-group {
    display: flex;
    gap: 10px;
    max-width: 300px;
}

.pincode-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--accent-gold-light);
    border-radius: 4px;
    outline: none;
}

.pincode-input-group button {
    padding: 8px 15px;
    background: transparent;
    border: 1px solid var(--accent-gold-med);
    /* Explicit border instead of none */
    color: var(--accent-gold-dark);
    /* Ensure text is visible */
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.pincode-input-group button:hover {
    background: var(--accent-gold-med);
    color: white;
}

.delivery-message {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #2e7d32;
    /* Success green */
}

/* 5. Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item i {
    color: var(--accent-gold-med);
    font-size: 1.2rem;
}

.feature-item span {
    font-size: 0.9rem;
    color: var(--text-dark-brown);
}

/* 6. Gift Option */
.gift-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #fff0f0;
    /* Light pinkish bg */
    border-radius: 8px;
    border: 1px dashed var(--accent-gold-med);
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark-brown);
    position: relative;
    padding-left: 30px;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 1px solid var(--text-sienna);
    border-radius: 4px;
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--accent-gold-med);
    border-color: var(--accent-gold-med);
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.gift-price {
    font-weight: 500;
    color: var(--text-saddle-brown);
    margin-left: 5px;
}

/* 7. Purchase Actions */
.purchase-actions {
    display: flex;
    gap: 15px;
}

.purchase-actions button {
    flex: 1;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-buy-now {
    background: transparent;
    border: 2px solid var(--accent-gold-med);
    color: var(--text-dark-brown);
}

.btn-buy-now:hover {
    background: var(--floral-white);
}

.btn-add-cart {
    background: var(--accent-gold-med);
    /* Nice pink/red from example image */
    border: none;
    color: white;
    background-color: #eb7488;
    /* Match the example vaguely */
}

.btn-add-cart:hover {
    background-color: #d65a6e;
    box-shadow: 0 5px 15px rgba(235, 116, 136, 0.4);
}

/* 8. Offers Section */
.offers-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.offers-section h4 {
    margin-bottom: 15px;
}

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

.offer-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    align-items: center;
}

.offer-icon {
    font-size: 1.2rem;
    color: #eb7488;
}

.offer-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.offer-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.offer-code {
    font-size: 0.8rem;
    color: #777;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 9. Product Info Tabs */
.product-info-tabs {
    background: #fffcf8;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-top: 20px;
}

.tabs-nav {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--text-dark-brown);
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold-med);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.desc-content {
    color: var(--text-dark-brown);
    font-size: 0.95rem;
    line-height: 1.6;
}

.extra-desc {
    display: none;
    margin-top: 10px;
}

.toggle-desc-btn {
    background: none;
    border: none;
    color: var(--accent-gold-dark);
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    padding: 0;
}

.toggle-desc-btn:hover {
    text-decoration: underline;
}

/* Price Breakup – Invoice-style layout */
.price-breakup-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(139, 69, 19, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.price-breakup-invoice {
    max-width: 520px;
    margin: 0 auto;
}

.breakup-section {
    margin-bottom: 24px;
}

.breakup-section:last-of-type {
    margin-bottom: 0;
}

.breakup-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-light-brown);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.12);
    text-transform: uppercase;
}

.breakup-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    font-size: 0.95rem;
    gap: 16px;
}

.breakup-row-highlight {
    background: rgba(212, 175, 55, 0.08);
    margin: 0 -12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-dark-brown);
}

.breakup-label {
    color: var(--text-saddle-brown);
    flex-shrink: 0;
}

.breakup-value {
    font-weight: 500;
    color: var(--text-dark-brown);
    text-align: right;
}

.breakup-value-discount {
    color: #2e7d32;
}

.breakup-note {
    font-size: 0.8rem;
    color: var(--text-light-brown);
    margin: 6px 0 0;
    font-style: italic;
}

.breakup-row-subtotal {
    border-top: 1px dashed rgba(139, 69, 19, 0.2);
    padding-top: 14px;
    margin-top: 4px;
    font-weight: 600;
}

.breakup-row-discount {
    padding-bottom: 4px;
}

.breakup-row-grand {
    padding: 16px 14px;
    margin: 0 -12px 0;
    background: linear-gradient(135deg, rgba(92, 61, 46, 0.08), rgba(92, 61, 46, 0.04));
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.15);
    font-size: 1.05rem;
}

.breakup-value-grand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark-brown);
}

.breakup-payable .breakup-note {
    margin-top: 8px;
}

/* Legacy table (kept for any other use) */
.breakup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #444;
}

.breakup-table th {
    text-align: left;
    padding: 12px 15px;
    background: #f9f9f9;
    color: #888;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.breakup-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    background: #fdf6e6;
    border-radius: 50%;
    padding: 4px;
}

.item-meta strong {
    display: block;
    color: #333;
    font-size: 0.95rem;
}

.item-meta span {
    font-size: 0.75rem;
    color: #999;
}

.sub-total-row td,
.discount-row td {
    font-weight: 500;
}

.sub-total-row {
    background: #fcfcfc;
}

.gross-wt {
    line-height: 1.2;
}

.gross-wt small {
    color: #999;
    font-size: 0.7rem;
}

.discount_val {
    color: #2e7d32;
    font-weight: 600;
}

.breakup-table tfoot .grand-total-row td {
    padding: 20px 15px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    font-family: var(--font-heading);
    border-bottom: none;
}

.grand-total-row .total-val {
    text-align: right;
    font-size: 1.5rem;
}

/* 10. Pair It Up */
.pair-it-up {
    margin-top: 20px;
}

.pair-it-up h4 {
    margin-bottom: 15px;
}

.combo-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.combo-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.combo-info {
    flex: 1;
}

.combo-price {
    display: block;
    font-weight: 700;
    color: var(--text-chocolate);
    margin-bottom: 5px;
}

/* 11. Similar Products */
.similar-slider-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold-med) rgba(139, 69, 19, 0.1);
}

.similar-slider-container::-webkit-scrollbar {
    height: 8px;
    display: block;
}

.similar-slider-container::-webkit-scrollbar-track {
    background: rgba(139, 69, 19, 0.08);
    border-radius: 4px;
}

.similar-slider-container::-webkit-scrollbar-thumb {
    background: var(--accent-gold-med);
    border-radius: 4px;
}

.similar-slider-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-dark);
}

.similar-track {
    display: flex;
    gap: 15px;
    width: max-content;
    min-width: 100%;
    padding-bottom: 5px;
}

.similar-card {
    min-width: 200px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.similar-card:hover {
    transform: translateY(-5px);
}

.similar-img {
    height: 150px;
    width: 100%;
    object-fit: cover;
}

.similar-info {
    padding: 10px;
}

.similar-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

/* 12. Reviews */
.customer-ratings {
    border-top: 1px solid rgba(139, 69, 19, 0.1);
    padding-top: 20px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.big-rating {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark-brown);
}

.stars {
    color: #ffc107;
    /* Star yellow */
    font-size: 1.1rem;
}

.review-count {
    color: #777;
    font-size: 0.9rem;
}

/* Responsiveness */
@media (max-width: 900px) {
    .product-container {
        flex-direction: column;
    }

    .product-visuals {
        position: static;
        height: auto;
        transform: none;
    }

    .main-image-container {
        max-height: clamp(280px, 45vw, 360px);
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        border-radius: 10px;
    }

    .main-image-container img,
    .main-image-container video {
        max-height: 100%;
        width: auto;
        max-width: 100%;
    }

    .product-visuals {
        padding: 0 16px;
    }

    .thumbnail-slider-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .main-image-container {
        max-height: clamp(220px, 55vw, 300px);
        max-width: 100%;
        border-radius: 8px;
    }

    .thumbnail-slider-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 400px) {
    .main-image-container {
        max-height: clamp(180px, 50vw, 240px);
        border-radius: 6px;
    }

    .product-visuals {
        padding: 0 10px;
    }
}

@media (max-width: 900px) {
    .product-info-panel {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        align-items: center;
        text-align: center;
    }

    .product-header-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .price-block {
        text-align: center;
    }

    .purchase-actions {
        justify-content: center;
        gap: clamp(10px, 2.5vw, 14px);
        flex-wrap: wrap;
    }

    .purchase-actions button {
        padding: clamp(10px, 2.5vw, 14px) clamp(16px, 4vw, 24px);
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
        border-radius: clamp(6px, 1.5vw, 8px);
        min-width: 140px;
    }

    .features-grid {
        justify-items: center;
    }

    .delivery-check-section,
    .gift-option {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .size-selector {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Purchase Actions Responsive - Small Screens */
@media (max-width: 500px) {
    .purchase-actions {
        gap: clamp(8px, 2vw, 10px);
    }

    .purchase-actions button {
        padding: clamp(8px, 2.2vw, 12px) clamp(12px, 3vw, 18px);
        font-size: clamp(0.75rem, 2.3vw, 0.85rem);
        border-radius: 6px;
        min-width: 120px;
        letter-spacing: 0.02em;
    }
}

@media (max-width: 360px) {
    .purchase-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .purchase-actions button {
        width: 100%;
        min-width: unset;
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

/* Similar Products Responsive */
@media (max-width: 900px) {
    .similar-slider-container {
        margin: 0 -10px;
        padding: 0 10px 15px;
    }

    .similar-slider-container::-webkit-scrollbar {
        height: 6px;
    }

    .similar-track {
        gap: 12px;
    }

    .similar-card {
        min-width: 170px;
    }

    .similar-img {
        height: 130px;
    }

    .similar-info {
        padding: 8px;
    }

    .similar-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 500px) {
    .similar-slider-container {
        margin: 0 -8px;
        padding: 0 8px 12px;
    }

    .similar-slider-container::-webkit-scrollbar {
        height: 5px;
    }

    .similar-track {
        gap: 10px;
    }

    .similar-card {
        min-width: 150px;
    }

    .similar-img {
        height: 110px;
    }

    .similar-info {
        padding: 6px;
    }

    .similar-title {
        font-size: 0.8rem;
    }

    .similar-actions {
        font-size: 0.85rem;
    }
}

@media (max-width: 350px) {
    .similar-card {
        min-width: 130px;
    }

    .similar-img {
        height: 95px;
    }

    .similar-title {
        font-size: 0.75rem;
    }

    .similar-actions {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}

/* Price Breakup Responsive - Small Screens (400px and below) */
@media (max-width: 400px) {
    .price-breakup-wrapper {
        padding: clamp(12px, 4vw, 20px);
        border-radius: 10px;
    }

    .price-breakup-invoice {
        max-width: 100%;
    }

    .breakup-section {
        margin-bottom: clamp(14px, 5vw, 20px);
    }

    .breakup-section-title {
        font-size: clamp(0.65rem, 2.2vw, 0.72rem);
        margin-bottom: clamp(8px, 2.5vw, 10px);
        padding-bottom: clamp(4px, 1.5vw, 6px);
        letter-spacing: 0.04em;
    }

    .breakup-row {
        padding: clamp(6px, 2vw, 9px) 0;
        font-size: clamp(0.8rem, 2.8vw, 0.9rem);
        gap: clamp(8px, 3vw, 14px);
    }

    .breakup-row-highlight {
        margin: 0 clamp(-8px, -2vw, -10px);
        padding: clamp(6px, 2vw, 9px) clamp(8px, 2.5vw, 10px);
        border-radius: 5px;
    }

    .breakup-note {
        font-size: clamp(0.68rem, 2.3vw, 0.76rem);
        margin-top: clamp(4px, 1.5vw, 6px);
    }

    .breakup-row-subtotal {
        padding-top: clamp(10px, 3vw, 12px);
        margin-top: clamp(2px, 1vw, 4px);
    }

    .breakup-row-grand {
        padding: clamp(10px, 3.5vw, 14px) clamp(10px, 3vw, 12px);
        margin: 0 clamp(-8px, -2vw, -10px);
        border-radius: 6px;
        font-size: clamp(0.88rem, 3vw, 0.98rem);
    }

    .breakup-value-grand {
        font-size: clamp(1rem, 3.5vw, 1.15rem);
    }

    .breakup-label,
    .breakup-value {
        font-size: clamp(0.78rem, 2.7vw, 0.88rem);
    }

    /* Gift Option Responsive */
    .gift-option {
        padding: clamp(10px, 3vw, 14px);
        border-radius: clamp(6px, 1.8vw, 8px);
        flex-wrap: wrap;
        gap: clamp(8px, 2.5vw, 12px);
    }

    .custom-checkbox {
        gap: clamp(6px, 2vw, 10px);
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        padding-left: clamp(24px, 7vw, 28px);
    }

    .custom-checkbox .checkmark {
        height: clamp(16px, 5vw, 18px);
        width: clamp(16px, 5vw, 18px);
        border-radius: 3px;
    }

    .custom-checkbox input:checked~.checkmark:after {
        left: clamp(5px, 1.5vw, 6px);
        top: clamp(2px, 0.8vw, 3px);
        width: clamp(4px, 1.2vw, 5px);
        height: clamp(8px, 2.5vw, 9px);
    }

    .custom-checkbox .label-text {
        font-size: clamp(0.75rem, 2.4vw, 0.85rem);
    }

    .custom-checkbox .label-text i {
        font-size: clamp(0.7rem, 2.2vw, 0.8rem);
    }

    .gift-price {
        font-size: clamp(0.72rem, 2.3vw, 0.82rem);
        margin-left: 0;
    }
}

/* Price Breakup Responsive - Very Small Screens (320px and below) */
@media (max-width: 320px) {
    .price-breakup-wrapper {
        padding: 10px;
        border-radius: 8px;
    }

    .breakup-section {
        margin-bottom: 12px;
    }

    .breakup-section-title {
        font-size: 0.6rem;
        margin-bottom: 6px;
        padding-bottom: 3px;
    }

    .breakup-row {
        padding: 5px 0;
        font-size: 0.75rem;
        gap: 6px;
        flex-wrap: wrap;
    }

    .breakup-row-highlight {
        margin: 0 -6px;
        padding: 5px 6px;
        border-radius: 4px;
    }

    .breakup-note {
        font-size: 0.62rem;
        margin-top: 3px;
    }

    .breakup-row-subtotal {
        padding-top: 8px;
    }

    .breakup-row-grand {
        padding: 8px;
        margin: 0 -6px;
        border-radius: 5px;
        font-size: 0.82rem;
    }

    .breakup-value-grand {
        font-size: 0.95rem;
    }

    .breakup-label,
    .breakup-value {
        font-size: 0.72rem;
    }

    /* Gift Option - Very Small Screens */
    .gift-option {
        padding: 8px;
        border-radius: 5px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .custom-checkbox {
        gap: 6px;
        font-size: 0.75rem;
        padding-left: 22px;
    }

    .custom-checkbox .checkmark {
        height: 14px;
        width: 14px;
        border-radius: 2px;
    }

    .custom-checkbox input:checked~.checkmark:after {
        left: 4px;
        top: 1px;
        width: 3px;
        height: 7px;
        border-width: 0 1.5px 1.5px 0;
    }

    .custom-checkbox .label-text {
        font-size: 0.7rem;
    }

    .custom-checkbox .label-text i {
        font-size: 0.65rem;
    }

    .gift-price {
        font-size: 0.68rem;
        margin-left: 22px;
    }
}

/* --- Write a Review Modal (Multi-step) --- */
.review-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(6px);
    padding: 20px;
}

.review-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.review-modal-container {
    background: var(--floral-white, #fffbf7);
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.review-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--text-saddle-brown, #5c4033);
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s, transform 0.2s;
}

.review-modal-close:hover {
    color: var(--accent-gold-med, #b8860b);
    transform: scale(1.1);
}

.review-modal-track {
    display: flex;
    width: 100%;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-modal-step {
    min-width: 100%;
    padding: 56px 32px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Centered body block for step 1: heading + stars in the middle of the popup */
.review-modal-step-body {
    width: 100%;
}

.review-modal-step-body-centered {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.review-modal-step-body-centered .review-modal-step-title {
    margin: 0;
}

.review-modal-step-body-centered .review-stars-wrap {
    margin: 0;
}

/* Give step 1 a min-height so the centered body has space to center into */
.review-modal-step[data-step="1"] {
    min-height: 360px;
}

.review-modal-step-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.5rem;
    color: var(--text-dark-brown, #2c1810);
    margin: 0 0 20px;
    font-weight: 600;
}

.review-modal-step-sub {
    font-size: 0.95rem;
    color: var(--text-sienna, #6b4423);
    margin: 0 0 20px;
}

.review-stars-wrap {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 24px 0 32px;
}

.review-star {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 2.2rem;
    color: #ddd;
    transition: color 0.2s, transform 0.15s;
}

.review-star:hover,
.review-star.filled {
    color: #f0c14b;
}

.review-star.filled i {
    font-weight: 900;
}

.review-star:hover {
    transform: scale(1.15);
}

.review-star i {
    display: block;
    color: #f0c14b;
}

.review-upload-zone {
    width: 100%;
    margin: 16px 0 24px;
}

.review-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 20px;
    border: 2px dashed rgba(184, 134, 11, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.review-upload-label:hover {
    background: rgba(255, 248, 240, 0.9);
    border-color: var(--accent-gold-med, #b8860b);
}

.review-upload-label i {
    font-size: 2rem;
    color: var(--accent-gold-med, #b8860b);
}

.review-upload-label span {
    font-size: 0.95rem;
    color: var(--text-saddle-brown, #5c4033);
}

.review-upload-label small {
    font-size: 0.8rem;
    color: #888;
}

.review-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    min-height: 0;
}

.review-upload-preview img,
.review-upload-preview video {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.review-textarea {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(139, 69, 19, 0.25);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    margin: 16px 0 24px;
    box-sizing: border-box;
    resize: vertical;
    min-height: 120px;
}

.review-textarea:focus {
    outline: none;
    border-color: var(--accent-gold-med, #b8860b);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.review-form-fields {
    width: 100%;
    text-align: left;
    margin: 16px 0 20px;
}

.review-form-fields label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-saddle-brown, #5c4033);
    margin: 8px 0 4px;
}

.review-form-fields input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(139, 69, 19, 0.25);
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
    margin-bottom: 4px;
}

.review-form-fields input:focus {
    outline: none;
    border-color: var(--accent-gold-med, #b8860b);
}

.review-modal-about-text {
    font-size: 0.9rem;
    color: var(--text-sienna, #6b4423);
    margin: 0;
    line-height: 1.5;
    max-width: 360px;
}

.review-modal-about-text-bottom {
    margin-top: 16px;
}

.review-modal-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 24px;
    gap: 12px;
}

.review-modal-back {
    order: 0;
}

.review-modal-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    order: 1;
    flex: 1;
}

.review-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.25s;
}

.review-dot.active {
    background: var(--accent-gold-med, #b8860b);
    transform: scale(1.15);
}

.review-modal-next,
.review-modal-done {
    order: 2;
}

@media (max-width: 560px) {
    .review-modal-step {
        padding: 48px 20px 20px;
    }

    .review-modal-step-title {
        font-size: 1.25rem;
    }

    .review-stars-wrap .review-star {
        font-size: 1.8rem;
    }
}

/* Out of stock + Book This Product */
.product-stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 4px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(184, 134, 11, 0.15);
}

.stock-status {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #b42318;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.stock-status i {
    font-size: 0.85rem;
    opacity: 0.9;
}

.book-product-link {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-gold-med, #b8860b);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.book-product-link:hover {
    color: var(--accent-gold-dark, #8b6914);
}

.book-product-link:focus-visible {
    outline: 2px solid var(--accent-gold-med, #b8860b);
    outline-offset: 3px;
    border-radius: 2px;
}

/* --- Book This Product Modal --- */
.book-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2600;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(6px);
    padding: 20px;
}

.book-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.book-modal-container {
    background: var(--floral-white, #fffbf7);
    width: 100%;
    max-width: 480px;
    max-height: min(92vh, 640px);
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 48px 28px 28px;
    border: 1px solid rgba(184, 134, 11, 0.2);
    box-sizing: border-box;
}

.book-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-saddle-brown, #5c4033);
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s, transform 0.2s;
}

.book-modal-close:hover {
    color: var(--accent-gold-med, #b8860b);
    transform: scale(1.08);
}

.book-modal-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.45rem;
    color: var(--text-dark-brown, #2c1810);
    margin: 0 0 8px;
    font-weight: 600;
    text-align: left;
}

.book-modal-sub {
    font-size: 0.9rem;
    color: var(--text-sienna, #6b4423);
    margin: 0 0 20px;
    line-height: 1.5;
    text-align: left;
}

.book-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.book-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.book-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark-brown, #2c1810);
}

.book-form-group .required {
    color: #b42318;
}

.book-form-group input,
.book-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0d5c5;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark-brown, #2c1810);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.book-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.book-form-group input:focus,
.book-form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold-med, #b8860b);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.book-form-group input.input-invalid,
.book-form-group textarea.input-invalid {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.book-field-error {
    font-size: 0.78rem;
    color: #b42318;
    min-height: 1em;
    line-height: 1.3;
}

.book-modal-submit {
    width: 100%;
    margin-top: 6px;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 900px) {
    .product-stock-row {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .product-stock-row {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .stock-status {
        justify-content: center;
        width: 100%;
    }

    .book-modal-container {
        padding: 44px 18px 22px;
    }

    .book-modal-title {
        font-size: 1.25rem;
    }
}

/* Product Description Collapse */
.desc-content {
    max-height: 180px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.desc-content.expanded {
    max-height: none;
}