/* ==========================================================================
   Storefront Product Variants & Media Gallery Styling
   ========================================================================== */

/* Product Card Color Swatches - Square with 5px radius */
.product-card-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 8px 0 10px 0;
    align-items: center;
}

.card-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 5px !important;
    border: 1.5px solid #e2e8f0;
    background-color: #ffffff;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    outline: none;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.card-color-swatch:hover {
    transform: translateY(-2px);
    border-color: #7a1530;
    box-shadow: 0 3px 6px rgba(122, 21, 48, 0.18);
}

.card-color-swatch.active {
    border-color: #7a1530 !important;
    box-shadow: 0 0 0 1.5px #7a1530, 0 2px 5px rgba(122, 21, 48, 0.25) !important;
    transform: translateY(-1px);
}

.card-color-swatch .swatch-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3.5px;
    display: block;
}

.card-color-swatch .swatch-color-box {
    width: 100%;
    height: 100%;
    border-radius: 3.5px;
    display: block;
}

.card-color-swatch.sold-out {
    opacity: 0.45;
    cursor: not-allowed;
}

.card-color-swatch.sold-out::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #ef4444;
    transform: rotate(-45deg);
}

/* Card Top Multi-Image Hover Slideshow */
.card-img-holder {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 12px;
}

.card-img-holder img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: opacity 0.25s ease, transform 0.35s ease;
    display: block;
}

.card-hover-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 7px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

.card-img-holder:hover .card-hover-dots {
    opacity: 1;
}

.card-hover-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.25s ease;
}

.card-hover-dot.active {
    background: #ffffff;
    width: 12px;
    border-radius: 4px;
}

/* More colors indicator */
.card-more-swatches {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-left: 2px;
}

/* Card Price Transitions */
.card-price-transition {
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Product Detail Page Media & Variants
   ========================================================================== */

/* Main Media Viewer */
.product-main-media {
    position: relative;
    width: 100%;
    height: 520px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
}

.product-main-media img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease;
    display: block;
}

.product-main-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Thumbnails Carousel / Strip */
.product-gallery-strip {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.product-gallery-strip::-webkit-scrollbar {
    height: 5px;
}

.product-gallery-strip::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.gallery-thumbnail-item {
    position: relative;
    width: 78px;
    height: 78px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    background: #f1f5f9;
    transition: all 0.2s ease;
}

.gallery-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumbnail-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.gallery-thumbnail-item.active {
    border-color: #7a1530;
    box-shadow: 0 0 0 2px rgba(122, 21, 48, 0.2);
}

.thumb-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(122, 21, 48, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    pointer-events: none;
}

/* Color Variant Swatches in Detail Page */
.detail-option-group {
    margin-bottom: 22px;
}

.detail-option-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-option-title span {
    color: #7a1530;
    font-weight: 700;
    text-transform: none;
}

.detail-swatches-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.detail-color-swatch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: 25px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.detail-color-swatch-btn:hover {
    border-color: #7a1530;
    background: #fff5f7;
}

.detail-color-swatch-btn.active {
    border-color: #7a1530;
    background: #fff5f7;
    box-shadow: 0 0 0 1px #7a1530;
}

.detail-swatch-dot {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
    object-fit: cover;
    display: inline-block;
}

.detail-swatch-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

/* Size Pills in Detail Page */
.detail-sizes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-size-btn {
    min-width: 52px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.detail-size-btn:hover {
    border-color: #7a1530;
    color: #7a1530;
}

.detail-size-btn.active {
    border-color: #7a1530;
    background: #7a1530;
    color: #ffffff;
}

.detail-size-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: #cbd5e1;
}

/* Discount Badge */
.discount-badge-detail {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .product-main-media {
        height: 380px;
    }
    .gallery-thumbnail-item {
        width: 65px;
        height: 65px;
    }
}

/* Product Actions & Quantity Selector */
.product-actions-group {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.product-qty-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    height: 48px;
    overflow: hidden;
}

.qty-btn {
    width: 38px;
    height: 100%;
    background: #f8fafc;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #e2e8f0;
    color: #7a1530;
}

.qty-input {
    width: 44px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    background: transparent;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    flex: 1;
    min-width: 140px;
    height: 48px;
    background: #ffffff;
    color: #7a1530;
    border: 2px solid #7a1530;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    background: #fff1f4;
    transform: translateY(-1px);
}

.buy-now-btn {
    flex: 1;
    min-width: 140px;
    height: 48px;
    background: #7a1530;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(122, 21, 48, 0.25);
}

.buy-now-btn:hover {
    background: #901938;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(122, 21, 48, 0.35);
}

.whatsapp-enquiry-btn {
    width: 48px;
    height: 48px;
    background: #25D366;
    color: white;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.whatsapp-enquiry-btn:hover {
    transform: scale(1.05);
}

/* Formatted Description Styles */
.product-desc-bullets {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.product-desc-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

.product-desc-bullets li i {
    color: #7a1530;
    margin-top: 3px;
    font-size: 13px;
    flex-shrink: 0;
}

.product-desc-para {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    margin: 8px 0;
}

.product-desc-para strong,
.product-desc-bullets strong {
    color: #0f172a;
    font-weight: 700;
}

/* Reviews Section */
.product-reviews-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1.5px solid #e2e8f0;
}

.reviews-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.reviews-summary-card {
    background: #fdfbf7;
    border: 1.5px solid #f1e5cb;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.reviews-avg-score {
    font-size: 42px;
    font-weight: 900;
    color: #7a1530;
    line-height: 1;
}

.reviews-avg-stars {
    color: #f59e0b;
    font-size: 18px;
    margin-bottom: 4px;
}

.review-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-item-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.review-star-picker {
    display: flex;
    gap: 6px;
    font-size: 24px;
    color: #cbd5e1;
    cursor: pointer;
    margin-bottom: 8px;
}

.review-star-picker i.selected,
.review-star-picker i.hovered {
    color: #f59e0b;
}

/* Header Cart Count Badge */
.header-cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #7a1530;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(122,21,48,0.3);
}

/* Toast Notification */
.store-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Quantity Selector & Action Area */
.product-action-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.quantity-picker {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    height: 48px;
}

.qty-btn {
    width: 40px;
    height: 100%;
    background: transparent;
    border: none;
    color: #334155;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.qty-btn:hover {
    background: #e2e8f0;
    color: #7a1530;
}

.qty-input {
    width: 45px;
    height: 100%;
    border: none;
    background: #ffffff;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.buy-now-btn {
    flex: 1;
    min-width: 140px;
    height: 48px;
    background: #c59b27;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
    transition: all 0.25s ease;
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.35);
    color: #ffffff;
}

.whatsapp-action-btn {
    width: 48px;
    height: 48px;
    background: #25D366;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.25);
    transition: transform 0.2s;
}

.whatsapp-action-btn:hover {
    transform: scale(1.05);
}

/* Reviews Expandable Form */
.review-form-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.review-form-card .form-group {
    margin-bottom: 16px;
}

.review-form-card label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.review-form-card input[type="text"],
.review-form-card input[type="email"],
.review-form-card textarea {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.review-form-card input:focus,
.review-form-card textarea:focus {
    border-color: #7a1530;
}

.reviews-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
}

.reviews-empty-state i {
    font-size: 40px;
    color: #94a3b8;
    margin-bottom: 12px;
}

/* ==========================================================================
   Product Detail Mobile Responsiveness
   ========================================================================== */
@media (max-width: 600px) {
    .product-action-row {
        gap: 10px;
    }
    .quantity-picker {
        height: 44px;
    }
    .add-to-cart-btn,
    .buy-now-btn {
        height: 44px;
        font-size: 14px;
    }
    .whatsapp-action-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .review-form-card {
        padding: 16px;
    }
}

