/* assets/css/product.css - Product details page styles */

/* ===== Product Details Section ===== */
.product-details {
    padding: 32px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 48px;
    align-items: start;
}

/* ===== Product Gallery ===== */
.product-gallery {
    position: static;
}

.main-image-container {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

/* ===== Image Navigation ===== */
.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #c0c0c0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.image-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.prev-image {
    left: 12px;
}

.next-image {
    right: 12px;
}

/* ===== Thumbnail Gallery ===== */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #c0c0c0;
    cursor: pointer;
    position: relative;
    background: #f8f9fa;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    border-color: var(--color-accent);
}

.thumbnail.active {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(173, 130, 66, 0.25);
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 12px;
}

/* ===== Product Info ===== */
.product-info {
    position: relative;
}

.product-header {
    margin-bottom: 12px;
}

.product-name {
    font-size: clamp(1.85rem, 3.2vw, 2.35rem);
    font-weight: 700;
    font-family: var(--font-family-heading);
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stars {
    color: var(--color-accent);
    font-size: 16px;
}

.rating-value {
    font-weight: 600;
    color: #2c3e50;
}

.review-count {
    font-size: 14px;
    color: var(--color-primary);
    text-decoration: none;
}

.review-count:hover {
    color: var(--color-accent);
}

.product-sku {
    font-size: 14px;
    color: #6c757d;
}

.sku-label {
    font-weight: 500;
}

.sku-value {
    color: #2c3e50;
}

/* ===== Capacity / size selector ===== */
/* Server-rendered (Customer::productVariants) so it exists before JS and for
   crawlers. It shows only the options configured for THIS product: no options
   means no element at all, and a single option renders as plain text rather
   than a control with nothing to choose between. */
.capacity-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--color-primary-soft, #f4f8ff);
    border: 1px solid rgba(23, 74, 58, 0.14);
    border-radius: 10px;
}

.capacity-label {
    flex: 0 0 100%;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.capacity-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* Take the whole row the label vacated, otherwise the flex basis of the
       options resolves against the wrapped-content width (~140px) and two
       options squeeze into ~66px each instead of sharing the card. */
    flex: 1 1 100%;
}

.capacity-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 84px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #2c3e50;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.capacity-option:hover {
    border-color: var(--color-accent);
}

.capacity-option:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.capacity-option.is-selected {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    box-shadow: inset 0 0 0 1px var(--color-primary);
}

.capacity-option-name {
    font-size: 14px;
    font-weight: 600;
}

.capacity-option-price {
    font-size: 13px;
    color: #6c757d;
}

.capacity-option-was {
    font-size: 12px;
    color: #adb5bd;
    text-decoration: line-through;
}

.capacity-option.is-out-of-stock {
    opacity: 0.6;
}

.capacity-option-note {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #dc3545;
}

/* One configured option: shown, never offered as a choice. */
.capacity-static {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

/* ===== Product Pricing ===== */
.product-pricing {
    margin-bottom: 12px;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.original-price {
    font-size: 16px;
    color: #6c757d;
    text-decoration: line-through;
}

.sale-price {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.discount-badge {
    padding: 4px 8px;
    background: #dc3545;
    color: white;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

/* ===== Stock Status ===== */
.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.stock-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28a745;
}

.stock-text {
    font-weight: 600;
    color: #28a745;
}

.stock-count {
    font-size: 14px;
    color: #6c757d;
}

/* ===== Product Description Short ===== */
.product-description-short {
    margin-bottom: 12px;
    font-size: 15px;
    color: #6c757d;
    line-height: 1.5;
}

/* ===== Quantity Selector ===== */
.quantity-selector {
    margin-bottom: 12px;
}

.quantity-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 180px;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: white;
    border: 2px solid #c0c0c0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.quantity-input {
    flex: 1;
    height: 44px;
    border: 2px solid #c0c0c0;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    background: white;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ===== Per-product delivery fee ===== */
/* products.delivery_fee is charged per unit and summed across the order's lines,
   and the view omits this row entirely when the column is absent -- so a missing
   migration shows no fee rather than an invented one. Deliberately a plain rule,
   not a `u-*` utility: nothing here is animated or toggled by script. */
.product-delivery-fee {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-light-gray);
    color: var(--color-dark-gray);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    flex-wrap: wrap;
}

.product-delivery-fee svg {
    flex: 0 0 auto;
    color: var(--color-accent);
}

.delivery-fee-label {
    color: var(--color-medium-gray);
}

.delivery-fee-value {
    font-weight: var(--font-weight-semibold);
    color: var(--color-charcoal);
}

/* ===== Product Actions ===== */
/* The Product Details purchase stack. `home.css`, `shop.css` and `search.css`
   also style a `.product-actions` element, but that is the hover overlay on the
   product CARD; those rules are now scoped to `.product-card`. The position /
   opacity / transform resets below are deliberate defence in depth: a card rule
   leaking here once made this block absolutely positioned and invisible, so an
   unseen WhatsApp link floated over the capacity selector and stole taps. */
.product-actions {
    position: static;
    opacity: 1;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.add-to-cart,
.buy-now,
.checkout-now {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 150ms ease-in-out;
    border: none;
    height: 48px;
}

.add-to-cart {
    background: var(--color-primary);
    color: white;
}

.add-to-cart:hover {
    background: var(--color-primary-dark);
}

.buy-now {
    background: white;
    color: #2c3e50;
    border: 2px solid #c0c0c0;
}

.buy-now:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-primary-soft);
}

.checkout-now {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #c9a227 0%, #a8812a 100%);
    color: #ffffff;
    font-weight: 700;
}

.checkout-now:hover {
    background: linear-gradient(135deg, #b08d1f 0%, #8a6a20 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -8px rgba(201, 162, 39, 0.7);
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #25D366;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 150ms ease-in-out;
    height: 48px;
}

.whatsapp-button:hover {
    background: #128C7E;
}

/* ===== Trust Badges ===== */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6c757d;
}

.trust-item svg {
    color: var(--color-accent);
}

/* ===== Product Description Section ===== */
.product-description-section {
    padding: 32px 0;
    background: #f8f9fa;
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
}

.description-content p {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* ===== Key Features Section ===== */
.key-features-section {
    padding: 32px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.feature-item {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.feature-text {
    font-size: 14px;
    color: #6c757d;
}

/* ===== Specifications Section ===== */
.specifications-section {
    padding: 32px 0;
    background: #f8f9fa;
}

.specs-table {
    max-width: 600px;
    margin: 24px auto 0;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: #2c3e50;
}

.spec-value {
    color: #6c757d;
    text-align: right;
}

/* ===== Delivery Section ===== */
.delivery-section {
    padding: 32px 0;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.delivery-item {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.delivery-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.delivery-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.delivery-text {
    font-size: 14px;
    color: #6c757d;
}

/* ===== Reviews Section ===== */
.reviews-section {
    padding: 32px 0;
    background: #f8f9fa;
}

.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.overall-rating {
    text-align: center;
    padding: 24px;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.rating-stars {
    color: var(--color-accent);
    font-size: 20px;
    margin: 8px 0;
}

.total-reviews {
    font-size: 14px;
    color: #6c757d;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-label {
    width: 60px;
    font-size: 14px;
    color: #6c757d;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0;
    background: var(--color-accent);
    border-radius: 4px;
}

.bar-count {
    width: 30px;
    font-size: 14px;
    color: #6c757d;
    text-align: right;
}

.reviews-list {
    margin-bottom: 24px;
}

.review-item {
    display: flex;
    gap: 12px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.reviewer-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.reviewer-name {
    font-weight: 600;
    color: #2c3e50;
}

.review-rating {
    color: var(--color-accent);
}

.review-date {
    font-size: 14px;
    color: #6c757d;
}

.review-text {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 12px;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.verified-badge {
    padding: 4px 8px;
    background: rgba(34, 197, 94, 0.1);
    color: #28a745;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.helpful-count {
    font-size: 14px;
    color: #6c757d;
}

.helpful-btn,
.report-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 14px;
    cursor: pointer;
}

.helpful-btn:hover,
.report-btn:hover {
    color: #2c3e50;
}

.load-more-reviews {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: white;
    border: 2px solid #c0c0c0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
}

.load-more-reviews:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.review-title {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.reviews-empty {
    padding: 32px 24px;
    background: white;
    border-radius: 12px;
    text-align: center;
    color: #6c757d;
    font-size: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.reviews-loading {
    padding: 32px 24px;
    background: white;
    border-radius: 12px;
    text-align: center;
    color: #6c757d;
    font-size: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.review-form-container {
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.review-form-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.review-form-note {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 16px;
}

.review-form-row {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.review-form-row .form-select,
.review-form-row .form-input,
.review-form-row .form-textarea {
    width: 100%;
}

.review-form-message {
    font-size: 14px;
    margin-bottom: 12px;
    display: none;
}

.review-form-message.show {
    display: block;
}

.review-form-message.success {
    color: #28a745;
}

.review-form-message.error {
    color: #dc3545;
}

.review-login-prompt {
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    text-align: center;
    font-size: 15px;
    color: #6c757d;
}

.review-login-prompt a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

/* ===== Related Products Section ===== */
.related-products-section {
    padding: 32px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.related-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card:hover .related-product-image {
    transform: scale(1.05);
}

/* ===== Mobile Sticky Bar ===== */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    padding: 12px;
    display: none;
    border-top: 1px solid var(--color-border);
}

.sticky-bar-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-price {
    display: flex;
    flex-direction: column;
}

.sticky-original-price {
    font-size: 12px;
    color: #6c757d;
    text-decoration: line-through;
}

.sticky-sale-price {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.sticky-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-quantity-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: white;
    border: 2px solid #c0c0c0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.sticky-quantity-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.sticky-quantity-value {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 30px;
    text-align: center;
}

.sticky-add-cart {
    flex: 1;
    padding: 8px 16px;
    font-size: 14px;
}

.sticky-checkout-btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 14px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .product-details {
        padding: 24px 0;
    }
    
    .product-name {
        font-size: 28px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .features-grid,
    .delivery-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-sticky-bar {
        display: block;
    }
    
    .product-actions {
        padding-bottom: 80px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .capacity-option {
        flex: 1 1 140px;
    }
}

@media (max-width: 480px) {
    .product-name {
        font-size: 24px;
    }
    
    .capacity-selector {
        padding: 10px 12px;
    }
    
    /* Two options per row on the narrowest screens, still fully tappable. */
    .capacity-option {
        min-width: 0;
        flex: 1 1 calc(50% - 4px);
    }
    
    .sale-price {
        font-size: 24px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    
    .thumbnail {
        border-radius: 6px;
    }
    
    .image-nav {
        width: 36px;
        height: 36px;
    }
    
    .review-item {
        flex-direction: column;
    }
    
    .reviewer-avatar {
        align-self: flex-start;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Product Error State ===== */
.product-error-section {
    padding: var(--spacing-3xl) 0;
}

.product-error-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.product-error-icon {
    color: var(--color-silver);
    margin-bottom: var(--spacing-lg);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--color-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-error-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-sm);
}

.product-error-text {
    font-size: var(--font-size-base);
    color: var(--color-medium-gray);
    margin-bottom: var(--spacing-lg);
    max-width: 400px;
    line-height: var(--line-height-relaxed);
}

.product-error-btn {
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-fast);
}

/* ===== Print Styles ===== */
@media print {
    .product-breadcrumb,
    .image-nav,
    .thumbnail-gallery,
    .quantity-selector,
    .product-actions,
    .trust-badges,
    .mobile-sticky-bar,
    .helpful-btn,
    .report-btn,
    .load-more-reviews {
        display: none;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
    }
    
    .review-item {
        page-break-inside: avoid;
    }
}

/* Relocated from a JavaScript <style> injection: style-src has no
 * 'unsafe-inline', so a created style element is blocked and the rules
 * below never applied. */

.confetti-piece {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: confettiFall 1s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--vx, 0), calc(var(--vy, 0) + 100px)) rotate(360deg);
        opacity: 0;
    }
}
