/* ═══════════════════════════════════════
   SINGLE PRODUCT PAGE — Chethi Batik 2026
═══════════════════════════════════════ */

/* ─── Main Content Wrapper ─── */
.main-content {
    padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(4rem, 8vw, 7rem);
}

.product-view-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ─── Breadcrumbs ─── */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { color: var(--border); }
.breadcrumbs .current { color: var(--text-main); font-weight: 500; }

/* ─── Product Layout ─── */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* ─── Image Gallery ─── */
.product-gallery {
    position: sticky;
    top: 90px;
}

.main-image-wrapper {
    position: relative;
    background: var(--bg-2);
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 3/4;
    border: 1px solid var(--border);
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s var(--ease);
}

.main-image-wrapper:hover img {
    transform: scale(1.04);
}

#mainProductImage {
    cursor: zoom-in;
}

/* Discount Badge on Image */
.main-image-wrapper .product-label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 3;
}

.main-image-wrapper .product-label.sale {
    background: var(--red);
    color: var(--white);
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.25s;
}

.main-image-wrapper:hover .gallery-nav { opacity: 1; }

.gallery-prev,
.gallery-next {
    width: 36px;
    height: 36px;
    background: rgba(8,8,8,0.75);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    pointer-events: all;
    transition: background 0.2s;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--red);
}

/* Thumbnails */
.thumbnail-strip {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    scrollbar-width: thin;
}

.thumbnail-strip::-webkit-scrollbar { height: 3px; }
.thumbnail-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.thumb-item {
    flex-shrink: 0;
    width: 72px;
    height: 90px;
    border-radius: 3px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
    background: var(--bg-2);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--red);
}

/* ─── Product Details ─── */
.product-details {
    padding-top: 0.5rem;
}

.product-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.product-meta {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.meta-tag {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.8rem;
}

.product-rating {
    font-size: 0.9rem;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.product-rating a {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: underline;
    margin-left: 0.3rem;
}

.product-sku, .product-stock {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.product-sku span, .product-stock span {
    color: var(--text-main);
    font-weight: 500;
}

.hashtag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.hashtag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--red);
    background: rgba(211,47,47,0.07);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    border: 1px solid rgba(211,47,47,0.15);
    transition: all 0.2s;
}

.hashtag:hover {
    background: var(--red);
    color: var(--white);
}

/* Pricing */
.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.current-price {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-main);
}

.original-price {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-short-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

/* Option Label */
.option-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 0.7rem;
}

/* Product Options */
.product-options {
    margin-bottom: 1.4rem;
}

/* Size Selector */
.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-option {
    min-width: 48px;
    height: 44px;
    padding: 0 0.8rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 2px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.size-option:hover {
    border-color: var(--red);
    color: var(--red);
}

.size-option.selected {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.size-option:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Color Selector */
.color-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.color-option {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2.5px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    outline: none;
}

.color-option:hover {
    transform: scale(1.12);
    border-color: var(--text-muted);
}

.color-option.selected {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(211,47,47,0.25);
}

/* Actions */
.product-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 48px;
    background: var(--bg-2);
    border: none;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font-body);
}

.qty-btn:hover { background: var(--bg-3); }

.quantity-selector input[type="number"] {
    width: 56px;
    height: 48px;
    border: none;
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--bg-card);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -moz-appearance: textfield;
}


.quantity-selector input::-webkit-inner-spin-button,
.quantity-selector input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.btn-add-to-cart {
    flex: 1;
    min-width: 160px;
    justify-content: center;
    height: 48px;
    padding: 0 1.8rem;
    font-size: 0.82rem;
}

.btn-wishlist {
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-wishlist:hover,
.btn-wishlist.active {
    background: #fee2e2;
    border-color: #fca5a5;
    color: var(--red);
}

.btn-buy-now {
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
    background: var(--text-main);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s var(--ease);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-buy-now:hover {
    background: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.25);
}

.main-action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .main-action-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Extra Info */
.product-extra-info {
    background: var(--bg-2);
    border-radius: 4px;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.product-extra-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.product-extra-info p i {
    color: var(--red);
    width: 16px;
    flex-shrink: 0;
}

.product-extra-info a {
    color: var(--red);
    text-decoration: underline;
}

/* ─── Product Info Tabs ─── */
.product-info-tabs {
    margin-top: clamp(2rem, 4vw, 3.5rem);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-headers::-webkit-scrollbar { display: none; }

.tab-header-item {
    flex-shrink: 0;
    padding: 1rem 1.8rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-header-item:hover {
    color: var(--text-main);
}

.tab-header-item.active {
    color: var(--red);
    border-bottom-color: var(--red);
}

.tab-content-wrapper {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.tab-content {
    display: none;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.tab-content.active { display: block; }

.tab-content p { margin-bottom: 1rem; }

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.specs-table tr {
    border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child { border-bottom: none; }

.specs-table td {
    padding: 0.85rem 1rem;
    vertical-align: top;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-main);
    width: 35%;
    background: var(--bg-2);
}

/* ─── Related Products ─── */
.related-products-section {
    margin-top: 0;
}

.related-products-section .section-header {
    margin-bottom: 2rem;
    text-align: left;
}

.related-products-section .section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.related-products-section .section-title span {
    color: var(--red);
    font-style: italic;
}

.related-products-section .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}


/* ─── Responsive ─── */
@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery {
        position: relative;
        top: auto;
    }

    .main-image-wrapper {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 600px) {
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-add-to-cart {
        width: 100%;
    }

    .btn-wishlist {
        width: 100%;
        height: 44px;
    }

    .quantity-selector {
        width: 100%;
        justify-content: center;
    }

    .tab-header-item {
        padding: 0.8rem 1.1rem;
        font-size: 0.75rem;
    }
}

/* WhatsApp Button Styling */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #fff !important;
}

.btn-whatsapp i {
    font-size: 1.1em;
}

/* ─── Reviews & Ratings ─── */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.reviews-summary-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem;
    background: var(--bg-2);
    border-radius: 8px;
    gap: 2rem;
    flex-wrap: wrap;
    border: 1px solid var(--border);
}

.summary-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-num {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    font-family: var(--font-display);
}

.stars-outer {
    color: #f59e0b;
    display: flex;
    gap: 0.2rem;
}

.stars-outer.large {
    font-size: 1.25rem;
}

.total-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Write Review Button */
.btn-write-rev {
    height: 48px;
    padding: 0 2rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease);
}

/* Review Form */
.review-form-wrapper {
    background: #fff;
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    animation: fadeInDown 0.4s var(--ease);
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-weight: 700;
}

.rev-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rev-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.rev-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
    background: #fcfcfc;
}

.rev-input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(186, 32, 38, 0.05);
}

.rev-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-submit-rev {
    padding: 0.85rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 2.25rem;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #fbbf24;
    transform: scale(1.15);
}

.star-rating-input input:checked ~ label {
    color: #f59e0b;
}

/* Review Items */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.review-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reviewer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reviewer-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-display);
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-rating {
    color: #f59e0b;
    font-size: 0.9rem;
    display: flex;
    gap: 0.15rem;
}

.review-body p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .reviews-summary-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
}

