/* 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;
}

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;
    }
}

/* 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;
    }
}