/* LuxSleep Professional Color System - Product Page */
/* LuxSleep Professional Color System - Product Page */
/* Variables are now inherited from luxsleep-shared.css */

@keyframes spin { to { transform: rotate(360deg); } }

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.trial-policy {
    margin-top: 16px;
    border: 1px solid var(--color-badge-border);
    border-radius: 12px;
    background: #f8faff;
    color: var(--color-heading);
}

.trial-policy summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
}

.trial-policy__content {
    padding: 0 16px 16px;
    display: grid;
    gap: 9px;
    color: var(--color-body);
    font-size: 13px;
    line-height: 1.55;
}

.trial-policy__content strong { color: var(--color-heading); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 200ms ease-in-out;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-cta-primary);
    color: var(--color-cta-text);
}

.btn-primary:hover {
    background: var(--color-cta-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 58, 175, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn:focus,
.btn-primary:focus,
.btn-outline:focus,
.btn-secondary:focus {
    outline: 3px solid var(--color-cta-primary);
    outline-offset: 3px;
}

.btn-outline {
    background: var(--color-cta-secondary);
    color: var(--color-cta-secondary-text);
    border: 1.5px solid var(--color-cta-secondary-border);
}

.btn-outline:hover {
    background: var(--color-cta-primary);
    color: var(--color-cta-text);
}

.btn-secondary {
    background: var(--color-text-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-text-primary);
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-success:hover {
    background: var(--color-success);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--color-success);
    color: white;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.breadcrumb a {
    color: var(--color-cta-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Product Details */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: rgba(26, 58, 175, 0.06);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.thumbnail {
    opacity: 0.65;
    transition: border-color 0.15s, opacity 0.15s, box-shadow 0.15s;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--color-cta-primary);
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(26,58,175,0.15);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    color: var(--color-stars);
}

.rating-text {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.product-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge.featured {
    background: var(--color-cta-primary);
    color: var(--color-cta-text);
}

.badge.sale {
    background: var(--color-discount);
    color: white;
}

/* Product Pricing */
.product-pricing {
    margin-bottom: 2rem;
}

/* 3-row pricing layout */
.pricing-rows {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pricing-row.row-1 .current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-success);
}

.pricing-row.row-2 .savings-message {
    display: inline-block;
    background: var(--gradient-section);
    color: var(--color-success);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.pricing-row.row-3 {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.pricing-row .price-unit {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.pricing-row .original-price {
    font-size: 1rem;
    color: var(--color-text-secondary);
    text-decoration: line-through;
}

/* legacy price-display (kept for compatibility) */
.price-display {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-success);
}

.sale-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-price-sale);
}

.regular-price {
    font-size: 1.8rem;
    color: var(--color-text-secondary);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--color-discount);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-success);
    font-size: 0.9rem;
    font-weight: 500;
}

.price-unit {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-left: 0.5rem;
}

.bulk-pricing {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--gradient-section);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--color-success);
}

.bulk-savings {
    color: var(--color-success);
    font-weight: 600;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-input button {
    background: rgba(26, 58, 175, 0.06);
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: background 0.3s ease;
}

.quantity-input button:hover {
    background: var(--color-border);
}

.quantity-input input {
    border: none;
    padding: 0.75rem;
    width: 60px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.contact-options {
    text-align: center;
}

/* Prevent CLS */
.aspect-w-4 {
    position: relative;
    padding-bottom: 75%;
}

/* Bundle & Save Section - Modern Subtle Design */
.bundle-save-section {
    margin: 1.5rem 0;
}

.bundle-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.bundle-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main-light);
}

.dark .bundle-title {
    color: var(--color-text-main-dark);
}

.bundle-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bundle-option {
    background: var(--color-surface-light);
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark .bundle-option {
    background: var(--color-surface-dark);
    border-color: var(--color-gray-700);
}

.bundle-option:hover {
    border-color: var(--color-cta-primary);
    background-color: var(--color-background-light);
}

.dark .bundle-option:hover {
    background-color: var(--color-heading);
}

.bundle-option.selected {
    border-color: var(--color-heading);
    background: rgba(11, 29, 58, 0.05);
    box-shadow: 0 0 0 1px var(--color-cta-primary);
}

.dark .bundle-option.selected {
    background: rgba(37, 99, 235, 0.1);
    /* Blue tint for dark mode */
}

.radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--color-gray-300);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.dark .radio-circle {
    border-color: var(--color-gray-600);
}

.bundle-option.selected .radio-circle {
    border-color: var(--color-cta-primary);
    background: var(--color-cta-primary);
}

.radio-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    display: none;
}

.bundle-option.selected .radio-circle::after {
    display: block;
}

.option-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-info {
    display: flex;
    flex-direction: column;
}

.option-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-main-light);
}

.dark .option-name {
    color: var(--color-text-main-dark);
}

.option-price {
    font-weight: 700;
    color: var(--color-text-main-light);
}

.dark .option-price {
    color: var(--color-text-main-dark);
}

.bundle-option.selected .option-price {
    color: var(--color-cta-primary);
}

.save-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 0.25rem;
    width: fit-content;
}

.most-popular-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--color-cta-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-success);
}

.original-price {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-decoration: line-through;
    font-weight: 400;
}

/* Product Meta */
.product-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(26, 58, 175, 0.06);
    border-radius: 8px;
    margin-top: 1rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.meta-item strong {
    color: var(--color-text-primary);
}

.meta-item span {
    color: var(--color-text-secondary);
}

/* Product Tabs */
.product-tabs {
    margin-top: 3rem;
}

.tab-navigation {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--color-cta-primary);
    border-bottom: 2px solid var(--color-cta-primary);
    background: transparent;
}

.tab-btn:focus {
    outline: 2px solid var(--color-cta-primary);
    outline-offset: -2px;
}

.tab-btn:hover {
    color: var(--color-cta-primary);
    background: rgba(26, 58, 175, 0.05);
}

.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Description Tab */
.description-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.description-content h3 {
    color: var(--color-text-primary);
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.description-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.description-content li {
    margin-bottom: 0.5rem;
}

/* Specifications Tab */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.spec-table th,
.spec-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.spec-table th {
    background: rgba(26, 58, 175, 0.06);
    font-weight: 600;
    color: var(--color-text-primary);
    width: 30%;
}

.spec-table td {
    color: var(--color-text-secondary);
}

/* Reviews Tab */
.review-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: rgba(26, 58, 175, 0.06);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.review-overview {
    text-align: center;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-stars);
}

.overall-rating .stars {
    font-size: 1.5rem;
}

.total-reviews {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* Review Form */
.review-form-container {
    background: rgba(26, 58, 175, 0.06);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.review-form h3 {
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-cta-primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}

.rating-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rating-input .star {
    font-size: 2rem;
    color: var(--color-border);
    cursor: pointer;
    transition: color 0.3s ease;
}

.rating-input .star:hover,
.rating-input .star.active {
    color: var(--color-stars);
}

.review-media-preview {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.media-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--color-border);
}

.media-preview img,
.media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview .remove-media {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--color-discount);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Mobile Responsive Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }

    /* Header Mobile */
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 0;
    }

    .nav {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Product Layout Mobile */
    .product-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1rem 0;
    }

    .product-gallery {
        order: 1;
    }

    .product-info {
        order: 2;
        padding: 1rem;
    }

    /* Gallery Mobile */
    .main-image {
        height: 300px;
    }

    .thumbnail-nav {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    /* Product Info Mobile */
    .product-header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .product-pricing {
        margin: 1rem 0;
    }

    .pricing-row.row-1 .current-price {
        font-size: 1.8rem;
    }

    /* Bundle & Save Mobile */
    .bundle-save-section {
        margin: 1rem 0;
    }

    .bundle-header {
        margin-bottom: 0.75rem;
    }

    .bundle-title {
        font-size: 0.9rem;
        padding: 0.2rem 0.6rem;
        letter-spacing: 0.3px;
    }

    .bundle-option {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .option-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .option-left {
        align-items: center;
    }

    .option-right {
        align-items: center;
        text-align: center;
    }

    .current-price {
        font-size: 1rem;
    }

    .original-price {
        font-size: 0.8rem;
    }

    .most-popular-badge {
        top: -6px;
        right: 10px;
        padding: 0.2rem 0.6rem;
        font-size: 0.65rem;
    }

    .radio-button {
        align-self: center;
    }

    /* Action Buttons Mobile */
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .action-buttons .btn {
        min-width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    /* Product Meta Mobile */
    .product-meta {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
        margin-top: 1rem;
    }

    /* Tabs Mobile */
    .product-tabs {
        margin: 1.5rem 0;
    }

    .tab-navigation {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }

    .tab-content {
        padding: 1rem;
    }

    /* Review Form Mobile */
    .review-form {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 1rem;
        /* Prevent zoom on iOS */
    }

    .rating-input {
        justify-content: center;
    }

    .rating-input .star {
        font-size: 1.5rem;
    }

    /* Review Media Mobile */
    .review-media-preview {
        gap: 0.5rem;
    }

    .media-preview {
        width: 80px;
        height: 80px;
    }
}

/* Product page navigation, knowledge content, and complementary upsells */
.product-breadcrumb {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin-bottom: 12px;
    color: var(--color-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.product-breadcrumb a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: var(--color-cta-primary);
    text-decoration: none;
}

nav[aria-label="Breadcrumb"] a {
    min-height: 44px;
}

.product-breadcrumb a:hover,
.product-breadcrumb a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-breadcrumb svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: none;
    stroke: var(--color-body);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .55;
}

.product-breadcrumb__current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-heading);
}

#productKnowledge {
    margin-top: 48px;
}

.product-knowledge-content {
    min-height: 300px;
    padding: 32px;
    border: 1px solid var(--color-badge-border);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: var(--color-section-alt);
}

.product-knowledge-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 24px;
    align-items: start;
}

.product-story-stack {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.product-story,
.product-specifications,
.product-details-card {
    border: 1px solid var(--color-badge-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 39, 92, 0.05);
}

.product-story {
    padding: 28px;
}

.product-story__eyebrow,
.product-section-heading p,
.related-products-section__heading p {
    margin: 0 0 6px;
    color: var(--color-cta-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.product-story__title {
    margin: 0 0 14px;
    color: var(--color-heading);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
}

.product-story__description {
    max-width: 70ch;
    margin: 0;
    color: var(--color-body-dark, #334155);
    font-size: 16px;
    line-height: 1.7;
}

.product-story__description section + section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-badge-border);
}

.product-story__description h2 {
    margin: 0 0 8px;
    color: var(--color-heading);
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.3;
}

.product-story__description p {
    margin: 0;
}

.product-faq {
    padding: 28px;
    border: 1px solid var(--color-badge-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 39, 92, 0.05);
}

.product-faq__list {
    display: grid;
    gap: 10px;
}

.product-faq__list details {
    padding: 0 16px;
    border: 1px solid var(--color-badge-border);
    border-radius: 12px;
    background: var(--color-section-alt);
}

.product-faq__list summary {
    min-height: 52px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--color-heading);
    font-weight: 700;
}

.product-faq__list details p {
    margin: 0;
    padding: 0 0 16px;
    color: var(--color-body-dark, #334155);
    line-height: 1.65;
}

.product-story__feature-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 14px;
    padding-top: 22px;
    border-top: 1px solid var(--color-badge-border);
}

.product-story__feature-heading > span {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(45, 106, 47, .1);
    color: var(--color-badge-icon);
}

.product-story__feature-heading svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-story__feature-heading h3 {
    margin: 0;
    color: var(--color-heading);
    font-size: 18px;
    line-height: 1.3;
}

.product-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-feature-item {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(29, 78, 216, .1);
    border-radius: 11px;
    background: rgba(29, 78, 216, .035);
    color: var(--color-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.product-feature-item__icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    border-radius: 50%;
    background: rgba(45, 106, 47, .1);
    color: var(--color-badge-icon);
}

.product-feature-item__icon svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-specifications {
    padding: 24px 28px;
    overflow: hidden;
}

.product-section-heading h2 {
    margin: 0 0 16px;
    color: var(--color-heading);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    line-height: 1.25;
}

.product-specifications__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.specification-row {
    border-top: 1px solid var(--color-badge-border);
}

.specification-label,
.specification-value {
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.specification-label {
    width: 42%;
    color: var(--color-heading);
    font-weight: 700;
}

.specification-value {
    color: var(--color-body);
}

.product-details-card {
    position: sticky;
    top: 24px;
    padding: 24px;
}

.product-details-card h3 {
    margin: 0 0 5px;
    color: var(--color-heading);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    line-height: 1.25;
}

.product-details-card__intro {
    margin: 0 0 18px;
    color: var(--color-body);
    font-size: 13px;
    line-height: 1.45;
}

.product-details-card dl,
.product-details-card dl div {
    margin: 0;
}

.product-details-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid var(--color-badge-border);
}

.product-details-card dt,
.product-details-card dd {
    font-size: 13px;
    line-height: 1.4;
}

.product-details-card dt {
    color: var(--color-body);
}

.product-details-card dd {
    margin: 0;
    color: var(--color-heading);
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.product-details-card__stock {
    color: var(--color-in-stock) !important;
}

.product-details-card__stock--out {
    color: var(--color-error) !important;
}

.related-products-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--color-border);
}

.related-products-section__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.related-products-section__heading h2 {
    margin: 0 0 5px;
    color: var(--color-heading);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.2;
}

.related-products-section__heading > div > span {
    display: block;
    color: var(--color-body);
    font-size: 14px;
    line-height: 1.45;
}

.related-products-section__heading > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: var(--color-cta-primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.related-products-section__heading > a:hover,
.related-products-section__heading > a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.related-products-scroller {
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.related-products-track {
    display: flex;
    gap: 14px;
    padding: 2px 2px 12px;
    scroll-snap-type: x mandatory;
}

.upsell-card {
    flex: 0 0 min(82vw, 320px);
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid var(--color-badge-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 39, 92, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.upsell-card:hover,
.upsell-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(29, 78, 216, .3);
    box-shadow: 0 14px 32px rgba(15, 39, 92, .12);
}

.upsell-card__image-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-section-alt);
}

.upsell-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.upsell-card:hover .upsell-card__image {
    transform: scale(1.035);
}

.upsell-card__reason {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 3px 12px rgba(15, 39, 92, .12);
    color: var(--color-heading);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.upsell-card__body {
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.upsell-card__title {
    min-height: 44px;
    margin: 0 0 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--color-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.upsell-card__title a {
    color: inherit;
    text-decoration: none;
}

.upsell-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.upsell-card__price strong {
    color: var(--color-price);
    font-size: 15px;
    line-height: 1.3;
}

.upsell-card__price span {
    color: var(--color-price-old);
    font-size: 12px;
    text-decoration: line-through;
}

.upsell-card__action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 10px 14px;
    border: 1.5px solid var(--color-cta-secondary-border);
    border-radius: 9px;
    color: var(--color-cta-secondary-text);
    background: var(--color-cta-secondary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.upsell-card__action:hover,
.upsell-card__action:focus-visible {
    background: var(--color-cta-primary);
    color: var(--color-cta-text);
}

@media (min-width: 768px) {
    .related-products-scroller {
        overflow: visible;
    }

    .related-products-track {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .upsell-card {
        width: auto;
    }
}

@media (max-width: 860px) {
    .product-knowledge-layout {
        grid-template-columns: 1fr;
    }

    .product-details-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .product-page-main {
        padding-top: 4px !important;
    }

    .product-breadcrumb {
        margin-bottom: 8px;
    }

    #productKnowledge {
        margin-top: 32px;
    }

    .product-knowledge-content {
        padding: 14px;
        border-radius: 0 0 14px 14px;
    }

    .product-story,
    .product-specifications,
    .product-details-card {
        padding: 18px;
        border-radius: 13px;
    }

    .product-feature-grid {
        grid-template-columns: 1fr;
    }

    .product-feature-item {
        font-size: 15px;
    }

    .specification-label,
    .specification-value {
        padding: 11px 6px;
        font-size: 13px;
    }

    .related-products-section {
        margin-top: 36px;
        padding-top: 28px;
    }

    .related-products-section__heading {
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .related-products-section__heading > a {
        display: none;
    }

    .related-products-scroller {
        margin-inline: 0;
        padding-inline: 0;
    }

    .related-products-track {
        padding-right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .upsell-card,
    .upsell-card__image,
    .upsell-card__action {
        transition: none;
    }
}

/* Order confirmation and purchase assurance */
.order-confirmation-card {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.07), rgba(255, 255, 255, 0.98));
}

.order-confirmation-card__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.order-confirmation-card__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    border-radius: 50%;
    background: var(--color-primary, #1D4ED8);
    color: #fff;
}

.order-confirmation-card h2 {
    margin: 0 0 3px;
    color: var(--color-heading);
    font-size: 16px;
    line-height: 1.3;
}

.order-confirmation-card__header p {
    margin: 0;
    color: var(--color-body);
    font-size: 13px;
    line-height: 1.45;
}

.order-confirmation-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-confirmation-list li {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(29, 78, 216, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--color-primary, #1D4ED8);
}

.order-confirmation-list li > svg {
    display: block;
    margin-bottom: 7px;
}

.order-confirmation-list strong,
.order-confirmation-list small {
    display: block;
}

.order-confirmation-list strong {
    color: var(--color-heading);
    font-size: 12px;
    line-height: 1.3;
}

.order-confirmation-list small {
    margin-top: 3px;
    color: var(--color-body);
    font-size: 12px;
    line-height: 1.35;
}

.purchase-assurance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--color-badge-border);
    list-style: none;
}

.purchase-assurance-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--color-badge-border);
    border-radius: 10px;
    background: rgba(45, 106, 47, 0.04);
}

.purchase-assurance-item__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    border-radius: 9px;
    background: rgba(45, 106, 47, 0.1);
    color: var(--color-badge-icon);
}

.purchase-assurance-item strong {
    display: block;
    color: var(--color-badge-text);
    font-size: 13px;
    line-height: 1.3;
}

.purchase-assurance-item p {
    margin: 3px 0 0;
    color: var(--color-body);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 480px) {
    .order-confirmation-list {
        grid-template-columns: 1fr;
    }

    .purchase-assurance-grid {
        grid-template-columns: 1fr;
    }

    .order-confirmation-card {
        padding: 16px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .main-image {
        height: 250px;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .product-header h1 {
        font-size: 1.3rem;
    }

    .current-price {
        font-size: 1.6rem;
    }

    .bundle-save-section {
        padding: 0.5rem;
    }

    .bundle-option {
        padding: 0.6rem;
    }

    .bundle-title {
        font-size: 0.85rem;
        padding: 0.15rem 0.5rem;
    }

    .option-title {
        font-size: 0.85rem;
    }

    .free-shipping-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
    }

    .current-price {
        font-size: 0.95rem;
    }

    .original-price {
        font-size: 0.75rem;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        min-width: 100%;
        margin-bottom: 0.5rem;
    }

    .tab-navigation {
        flex-direction: column;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {

    .header,
    .breadcrumb,
    .action-buttons,
    .contact-options,
    .review-form-container {
        display: none !important;
    }

    .product-container {
        grid-template-columns: 1fr;
    }

    .bulk-discount-section {
        page-break-inside: avoid;
    }
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: white;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info h4 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 1.1rem;
}

.reviewer-info .stars {
    margin-top: 0.25rem;
}

.review-date {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.review-comment {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--color-text-primary);
}

.review-media {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.review-media img,
.review-media video {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.review-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.helpful-btn {
    background: none;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.helpful-btn:hover {
    border-color: var(--color-cta-primary);
    color: var(--color-cta-primary);
}

/* Care Instructions */
.care-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.care-content h3 {
    color: var(--color-text-primary);
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.care-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.care-content li {
    margin-bottom: 0.5rem;
}

/* Responsive Design for Product Page */
@media (max-width: 992px) {
    .product-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 20px;
        font-size: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .product-header h1 {
        font-size: 1.5rem;
    }

    .product-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .product-meta {
        grid-template-columns: 1fr;
    }

    .tab-navigation {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tab-navigation::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .spec-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .spec-table th {
        width: auto;
        min-width: 120px;
    }

    .review-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* =============================================
   SPACING FIXES — Scoped to .product-detail only
   Does NOT affect header, nav, footer, or global styles
   ============================================= */

/* --- Image Gallery: Contain height on desktop --- */
/* FIX: Left image column was too tall, dominating the layout */
.product-detail>div:first-child .relative {
    max-height: 560px;
}

.product-detail>div:first-child .relative img {
    object-fit: contain;
    /* Show full product without cropping */
}

/* --- Bundle Cards: Proper Padding & Spacing --- */
/* FIX: Cards were too cramped at 12px; restored to 16px w/ 10px gap */
.product-detail .bundle-options {
    gap: 10px;
}

.product-detail .bundle-option {
    padding: 14px 16px;
    border-radius: 12px;
    gap: 12px;
    position: relative;
    /* Ensure badge can position absolutely inside */
}

/* FIX: "MOST POPULAR" badge misaligned — repositioned inside card */
.product-detail .most-popular-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 10px;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* --- Pricing Rows: Clean vertical spacing --- */
/* FIX: Price rows were at 4px gap, too tight; restored to 6px */
.product-detail .pricing-rows {
    gap: 6px;
}

/* FIX: Discount badges colliding with price text */
.product-detail .pricing-row.row-3 {
    margin-top: 4px;
}

/* --- Right Column Line Heights --- */
/* FIX: Title line-height too tight causing collision with badge */
.product-detail h1 {
    line-height: 1.2;
}

/* FIX: Description text was pressed against bundles */
.product-detail .prose {
    line-height: 1.65;
}

/* --- Responsive: Tablet (≤1024px) --- */
@media (max-width: 1024px) {
    .product-detail {
        gap: 24px !important;
    }
}

/* --- Responsive: Mobile (≤768px) --- */
@media (max-width: 768px) {

    /* FIX: Bundle cards slightly tighter on mobile but not cramped */
    .product-detail .bundle-option {
        padding: 12px 14px;
    }

    .product-detail .bundle-options {
        gap: 8px;
    }

    /* FIX: Image container unconstrained on mobile */
    .product-detail>div:first-child .relative {
        max-height: none;
    }
}

/* Review dialog: self-contained styles, independent of utility CSS. */
.review-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
}

#reviewFormContainer.hidden {
    display: none;
}

.review-modal-shell {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.review-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(2px);
}

.review-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
}

.review-dialog {
    color: var(--color-heading);
    background: #fff;
}

.review-dialog__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--color-badge-border);
    background: linear-gradient(135deg, #f7f9ff 0%, #fff 72%);
}

.review-dialog__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--color-cta-primary);
    background: rgba(26, 58, 175, 0.1);
}

.review-dialog__icon svg,
.review-dialog__close svg {
    width: 22px;
    height: 22px;
}

.review-dialog__heading {
    min-width: 0;
    flex: 1;
}

.review-dialog__heading p {
    margin: 0 0 3px;
    color: var(--color-cta-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.review-dialog__heading h3 {
    margin: 0;
    color: var(--color-heading);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.review-dialog__heading span {
    display: block;
    margin-top: 6px;
    color: var(--color-body);
    font-size: 13px;
    line-height: 1.45;
}

.review-dialog__close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--color-badge-border);
    border-radius: 12px;
    color: var(--color-body);
    background: #fff;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.review-dialog__close:hover {
    color: var(--color-heading);
    border-color: #a8b7d7;
    background: #f7f9ff;
}

.review-form {
    display: grid;
    gap: 18px;
    padding: 22px 24px 24px;
}

.review-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.review-form__field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.review-form__field label,
.review-form__label {
    color: var(--color-heading);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 750;
}

.review-form__field label span {
    margin-left: 5px;
    color: var(--color-body);
    font-size: 11px;
    font-weight: 600;
}

.review-form__field input:not([type="file"]),
.review-form__field textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    color: var(--color-heading);
    background: #fff;
    font: inherit;
    font-size: 15px;
    line-height: 1.45;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.review-form__field textarea {
    min-height: 112px;
    resize: vertical;
}

.review-form__field input::placeholder,
.review-form__field textarea::placeholder {
    color: #8793a7;
}

.review-form__field input:not([type="file"]):focus,
.review-form__field textarea:focus {
    border-color: var(--color-cta-primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 175, 0.14);
}

.review-rating-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
}

.review-rating .star {
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #cbd5e1;
    background: transparent;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.review-rating .star:hover {
    color: var(--color-stars);
    background: #fff7e6;
}

.review-rating .star.text-orange-400 {
    color: var(--color-stars);
}

.review-rating .star:focus-visible,
.review-dialog__close:focus-visible,
.review-button:focus-visible {
    outline: 3px solid rgba(26, 58, 175, 0.28);
    outline-offset: 2px;
}

.review-form__hint {
    margin: 3px 0 0;
    color: var(--color-body);
    font-size: 11px;
    line-height: 1.4;
}

.review-form__upload {
    padding: 14px;
    border: 1px dashed #b8c5de;
    border-radius: 12px;
    background: #f8faff;
}

.review-form__upload input[type="file"] {
    max-width: 100%;
    color: var(--color-body);
    font-size: 13px;
}

.review-form__upload input[type="file"]::file-selector-button {
    min-height: 40px;
    margin-right: 12px;
    padding: 0 15px;
    border: 1px solid #c9d7f3;
    border-radius: 9px;
    color: var(--color-cta-primary);
    background: #edf3ff;
    font-weight: 750;
    cursor: pointer;
}

.review-form__actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    padding-top: 2px;
}

.review-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.review-button--secondary {
    border: 1px solid #cbd5e1;
    color: var(--color-heading);
    background: #fff;
}

.review-button--secondary:hover {
    border-color: #9aa9c1;
    background: #f8fafc;
}

.review-button--primary {
    border: 1px solid var(--color-cta-primary);
    color: #fff;
    background: var(--color-cta-primary);
    box-shadow: 0 8px 18px rgba(26, 58, 175, 0.2);
}

.review-button--primary:hover {
    border-color: var(--color-cta-primary-hover);
    background: var(--color-cta-primary-hover);
}

@media (max-width: 640px) {
    .review-modal-shell {
        align-items: flex-end;
        padding: 12px;
    }

    .review-modal-panel {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 18px;
    }

    .review-dialog__header {
        gap: 11px;
        padding: 18px 16px 15px;
    }

    .review-dialog__icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .review-dialog__heading h3 {
        font-size: 21px;
    }

    .review-dialog__heading span {
        font-size: 12px;
    }

    .review-form {
        gap: 15px;
        padding: 17px 16px 18px;
    }

    .review-form__grid,
    .review-form__actions {
        grid-template-columns: 1fr;
    }

    .review-form__actions .review-button--primary {
        grid-row: 1;
    }

    .review-rating {
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    .review-dialog__close,
    .review-rating .star,
    .review-form__field input,
    .review-form__field textarea,
    .review-button {
        transition: none;
    }
}
/* ==========================================================
   PUMPKINSEEDS-INSPIRED PRODUCT EXPERIENCE
   ========================================================== */
.product-page {
    color: var(--lp-text);
    background: var(--lp-white);
}

.product-page .product-page-main {
    max-width: 1180px !important;
    padding-top: 20px !important;
}

.product-page .product-breadcrumb {
    color: var(--lp-muted);
    font-size: 12px;
}

.product-page .product-detail {
    gap: clamp(30px, 5vw, 68px);
}

.product-page #productImageCol > div:last-child > div:first-child {
    border-color: var(--lp-border) !important;
    border-radius: var(--lp-radius-lg) !important;
    background: var(--lp-surface) !important;
    box-shadow: none !important;
}

.product-page #productBuyBox {
    max-width: 570px;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 10px 0 0 !important;
    background: transparent !important;
}

.product-page #productTitle {
    color: var(--lp-navy) !important;
    font-size: clamp(30px, 3vw, 44px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
    max-width: 18ch !important;
}

.product-page #productSummary {
    display: block;
    color: var(--lp-muted);
    font-size: 15px;
    line-height: 1.7;
}

.product-page #productPrice {
    margin: 18px 0 20px !important;
    padding: 16px 0 !important;
    border-block: 1px solid var(--lp-border) !important;
}

.product-page #productPrice > :first-child:not(.animate-pulse),
.product-page #productPrice .text-3xl,
.product-page #productPrice .text-4xl {
    color: var(--lp-navy) !important;
    font-variant-numeric: tabular-nums;
}

.product-page .bundle-selector {
    margin-bottom: 16px;
}

.product-page .bundle-selector__legend {
    color: var(--lp-navy);
    font-size: 14px;
}

.product-page .bundle-option__visual {
    min-height: 78px;
    padding: 12px 14px;
    border-color: var(--lp-border);
    border-radius: var(--lp-radius-sm);
    background: var(--lp-white);
}

.product-page .bundle-radio:checked + .bundle-option__visual,
.product-page .bundle-option--selected .bundle-option__visual {
    border-color: var(--lp-blue);
    background: var(--lp-surface);
    box-shadow: 0 0 0 1px rgba(26, 58, 175, 0.1);
}

.product-page .bundle-option__indicator {
    width: 22px;
    height: 22px;
}

.product-page .bundle-option__title,
.product-page .bundle-option__price {
    color: var(--lp-navy);
}

.product-page .bundle-option__saving {
    color: var(--lp-green);
}

.purchase-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
    padding: 14px 0;
    border-block: 1px solid var(--lp-border);
}

.purchase-quantity__label,
.purchase-quantity__hint {
    display: block;
}

.purchase-quantity__label {
    color: var(--lp-navy);
    font-size: 14px;
    font-weight: 750;
}

.purchase-quantity__hint {
    margin-top: 2px;
    color: var(--lp-muted);
    font-size: 11px;
}

.purchase-quantity__stepper {
    display: grid;
    grid-template-columns: 44px 48px 44px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-sm);
    background: var(--lp-white);
}

.purchase-quantity__button {
    min-width: 44px;
    min-height: 44px;
    border: 0;
    background: var(--lp-white);
    color: var(--lp-navy);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.purchase-quantity__button:hover:not(:disabled) {
    background: var(--lp-surface);
}

.purchase-quantity__button:disabled {
    color: #B6C0D3;
    cursor: not-allowed;
}

.purchase-quantity__value {
    display: grid;
    min-height: 44px;
    place-items: center;
    border-inline: 1px solid var(--lp-border);
    color: var(--lp-navy);
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.product-page #orderNowBtn {
    border-color: var(--lp-blue) !important;
    background: var(--lp-blue) !important;
    color: var(--lp-white) !important;
}

.product-page #addToCartBtn {
    border-color: var(--lp-blue) !important;
    background: var(--lp-white) !important;
    color: var(--lp-blue) !important;
}

.product-page #orderNowBtn:hover {
    background: var(--lp-blue-hover) !important;
}

.product-page #addToCartBtn:hover {
    background: var(--lp-surface) !important;
    box-shadow: none !important;
}

.product-page :is(#orderNowBtn, #addToCartBtn, #stickyAddToCart):disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

.product-page .product-price-unavailable {
    padding: 12px 14px;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-sm);
    background: var(--lp-surface);
    color: var(--lp-muted);
    font-size: 14px;
    font-weight: 700;
}

.product-page .whatsapp-support-btn {
    border-radius: var(--lp-radius-sm);
}

.product-page #mobileStickyBar {
    border-color: var(--lp-border);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
}

@media (max-width: 767px) {
    .product-page #productBuyBox {
        padding: 6px 0 0 !important;
    }

    .product-page #productTitle {
        font-size: clamp(27px, 8.4vw, 36px) !important;
    }

    .purchase-quantity {
        align-items: flex-end;
    }
}

/* Reviews share the same restrained card and action language. */
.product-page .review-summary {
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-md);
    background: var(--lp-surface);
    box-shadow: none;
}

.product-page .review-item {
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-md);
    background: var(--lp-white);
    box-shadow: 0 1px 2px rgba(21, 43, 122, 0.03);
}

.product-page .review-modal-panel {
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    background: var(--lp-white);
    box-shadow: 0 24px 70px rgba(21, 43, 122, 0.2);
}

.product-page .review-form__field input:not([type="file"]),
.product-page .review-form__field textarea {
    border-color: var(--lp-border);
    border-radius: var(--lp-radius-sm);
}

.product-page .review-button {
    min-height: 44px;
    border-radius: var(--lp-radius-sm);
    font-weight: 750;
}

.product-page .review-button--primary {
    border-color: var(--lp-blue);
    background: var(--lp-blue);
}

.product-page .review-button--secondary {
    border-color: var(--lp-blue);
    background: var(--lp-white);
    color: var(--lp-blue);
}

