/* ============================================
   PRODUCT PAGE - PREMIUM ARTIST THEME
   ============================================ */

:root {
    --product-accent: #8B5A5A;
    --product-accent-secondary: #D4A574;
    --product-bg-card: rgba(255, 255, 255, 0.85);
    --product-bg-body: #FAF7F5;
    --product-text-primary: #2D2D2D;
    --product-text-secondary: #5A7B8B;
    --product-text-muted: #8E8E8E;
    --product-border: rgba(139, 90, 90, 0.08);
    --product-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    --product-glass-shadow: 0 8px 32px 0 rgba(139, 90, 90, 0.1);
}

/* Page Background */
.product-page-wrapper {
    background-color: var(--product-bg-body);
    min-height: 100vh;
}

/* Breadcrumb */
.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--product-text-muted);
    margin-bottom: 2rem;
}

.product-breadcrumb a {
    color: var(--product-text-secondary);
    transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
    color: var(--product-accent);
}

.product-breadcrumb .separator {
    color: var(--product-text-muted);
    opacity: 0.5;
}

.product-breadcrumb .current {
    color: var(--product-text-primary);
    font-weight: 500;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: 55% 45%;
        gap: 2.5rem;
    }
}

/* Image Section */
.product-image-card {
    background: var(--product-bg-card);
    backdrop-filter: blur(15px);
    border-radius: 1.5rem;
    padding: 0.75rem;
    box-shadow: var(--product-glass-shadow);
    border: 1px solid var(--product-border);
    position: relative;
    overflow: hidden;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image-card:hover .product-main-image {
    transform: scale(1.03);
}

.product-badge {
    position: absolute;
    top: 1.25rem;
    z-index: 10;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-badge.featured {
    left: 1.25rem;
    background: linear-gradient(135deg, #D4A574, #C4956D);
    color: white;
}

.product-badge.sale {
    right: 1.25rem;
    background: linear-gradient(135deg, #8B5A5A, #A67C7C);
    color: white;
}

.zoom-hint {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    background: rgba(45, 45, 45, 0.7);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Gallery Thumbnails */
.product-gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-top: 1rem;
}

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

.product-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.product-gallery::-webkit-scrollbar-thumb {
    background: var(--product-border);
    border-radius: 999px;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--product-accent-secondary);
}

.gallery-thumb.active {
    border-color: var(--product-accent) !important;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(139, 90, 90, 0.2);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Details */
.product-details {
    display: flex;
    flex-direction: column;
}

.product-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, rgba(139, 90, 90, 0.1), rgba(212, 165, 116, 0.1));
    border: 1px solid rgba(139, 90, 90, 0.15);
    border-radius: 999px;
    color: var(--product-accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
}

.product-category-badge:hover {
    background: linear-gradient(135deg, rgba(139, 90, 90, 0.15), rgba(212, 165, 116, 0.15));
    transform: translateY(-1px);
}

.product-sku {
    font-size: 0.8rem;
    color: var(--product-text-muted);
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--product-text-primary);
    line-height: 1.25;
    margin: 0.75rem 0;
}

@media (min-width: 768px) {
    .product-title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .product-title {
        font-size: 2.25rem;
    }
}

/* Stock Status */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stock-badge.low-stock {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Pricing */
.product-price {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--product-accent), var(--product-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .product-price {
        font-size: 2.25rem;
    }
}

.product-original-price {
    font-size: 1rem;
    color: var(--product-text-muted);
    text-decoration: line-through;
}

.product-savings-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.5rem;
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-gst-info {
    font-size: 0.85rem;
    color: var(--product-text-muted);
    margin-top: 0.5rem;
}

.product-gst-info.inclusive {
    color: #10b981;
}

.product-gst-info.exclusive {
    color: #f59e0b;
}

.product-short-desc {
    font-size: 0.9rem;
    color: var(--product-text-secondary);
    line-height: 1.6;
    margin: 1rem 0;
}

/* Size & Color Selectors */
.selector-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--product-text-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.selector-label span {
    font-weight: 400;
    color: var(--product-text-muted);
}

.size-options,
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-btn {
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--product-border);
    border-radius: 0.75rem;
    background: white;
    color: var(--product-text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: var(--product-accent-secondary);
    color: var(--product-accent);
}

.size-btn.active {
    border-color: var(--product-accent);
    background: rgba(139, 90, 90, 0.08);
    color: var(--product-accent);
}

.color-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--product-border);
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-btn:hover {
    border-color: var(--product-accent-secondary);
}

.color-btn.active {
    border-color: var(--product-accent);
    background: rgba(139, 90, 90, 0.05);
}

.color-swatch {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--product-text-primary);
}

/* Quantity & Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--product-border);
    border-radius: 0.75rem;
    overflow: hidden;
    width: fit-content;
}

.quantity-btn {
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--product-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: rgba(139, 90, 90, 0.05);
    color: var(--product-accent);
}

.quantity-input {
    width: 3.5rem;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    color: var(--product-text-primary);
}

.quantity-input:focus {
    outline: none;
}

.btn-add-cart {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--product-accent), #A67C7C);
    color: white !important;
    -webkit-text-fill-color: white !important;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 90, 90, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 90, 90, 0.4);
}

.btn-add-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-add-cart i {
    color: white !important;
}

.btn-wishlist {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: white;
    border: 2px solid var(--product-border);
    color: var(--product-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    border-color: #ec4899;
    color: #ec4899;
}

.btn-wishlist.active {
    background: rgba(236, 72, 153, 0.1);
    border-color: #ec4899;
    color: #ec4899;
}

.btn-buy-now {
    width: 100%;
    padding: 1rem 2rem;
    background: white;
    border: 2px solid var(--product-accent);
    color: var(--product-accent);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-buy-now:hover {
    background: var(--product-accent);
    color: white !important;
    -webkit-text-fill-color: white !important;
}

.btn-buy-now:hover i {
    color: white !important;
}

/* Shipping Info Card */
.shipping-info-card {
    background: var(--product-bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--product-border);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: var(--product-shadow);
}

.shipping-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.shipping-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.shipping-info-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.shipping-info-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.shipping-info-icon.amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.shipping-info-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.shipping-info-icon.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.shipping-info-text {
    font-size: 0.75rem;
    color: var(--product-text-secondary);
    line-height: 1.3;
}

/* Share Section */
.product-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--product-border);
}

.product-share-label {
    font-size: 0.85rem;
    color: var(--product-text-muted);
}

.product-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.share-btn.facebook {
    background: rgba(59, 89, 152, 0.1);
    color: #3b5998;
}

.share-btn.twitter {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}

.share-btn.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.share-btn.copy {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook:hover {
    background: #3b5998;
    color: white;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #25d366;
    color: white;
}

.share-btn.copy:hover {
    background: #6b7280;
    color: white;
}

/* Tabs Section */
.product-tabs-container {
    margin-top: 2.5rem;
}

.product-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--product-border);
    overflow-x: auto;
}

.product-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--product-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
}

.tab-btn:hover {
    color: var(--product-accent);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: 3px 3px 0 0;
    transition: background 0.3s ease;
}

.tab-btn.active {
    color: var(--product-accent);
}

.tab-btn.active::after {
    background: linear-gradient(90deg, var(--product-accent), var(--product-accent-secondary));
}

.product-tab-content {
    background: var(--product-bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--product-border);
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    padding: 1.5rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content-text {
    color: var(--product-text-secondary);
    line-height: 1.8;
}

.tab-content-text h4 {
    color: var(--product-text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tab-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tab-info-item i {
    color: var(--product-accent);
    margin-top: 0.25rem;
}

/* Tags */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.product-tags-label {
    font-size: 0.85rem;
    color: var(--product-text-muted);
}

.product-tag {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--product-border);
    border-radius: 999px;
    color: var(--product-text-secondary);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.product-tag:hover {
    background: rgba(139, 90, 90, 0.05);
    border-color: var(--product-accent);
    color: var(--product-accent);
}

/* Related Products */
.related-products {
    margin-top: 2.5rem;
}

.related-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.related-products-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--product-text-primary);
}

.related-products-link {
    color: var(--product-accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.related-products-link:hover {
    text-decoration: underline;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .related-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.related-product-card {
    background: var(--product-bg-card);
    border: 1px solid var(--product-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-product-card:hover {
    border-color: var(--product-accent-secondary);
    box-shadow: var(--product-glass-shadow);
    transform: translateY(-4px);
}

.related-product-image {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.related-product-sale-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--product-accent);
    color: white;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.related-product-info {
    padding: 1rem;
}

.related-product-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--product-text-primary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-price {
    font-weight: 700;
    color: var(--product-accent);
}

.related-product-original-price {
    font-size: 0.85rem;
    color: var(--product-text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* Sticky Mobile Cart */
.mobile-sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: var(--product-bg-card);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--product-border);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .mobile-sticky-cart {
        display: none;
    }
}

.mobile-qty-selector {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--product-border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.mobile-qty-btn {
    padding: 0.625rem 0.875rem;
    background: transparent;
    border: none;
    color: var(--product-text-muted);
    cursor: pointer;
}

.mobile-qty-input {
    width: 2.5rem;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--product-text-primary);
}

.mobile-add-cart-btn {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--product-accent), #A67C7C);
    color: white !important;
    -webkit-text-fill-color: white !important;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-add-cart-btn i {
    color: white !important;
}

.mobile-wishlist-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: white;
    border: 1px solid var(--product-border);
    color: var(--product-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-wishlist-btn.active {
    background: rgba(236, 72, 153, 0.1);
    border-color: #ec4899;
    color: #ec4899;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    background: var(--product-bg-card);
    border: 1px solid var(--product-border);
    color: var(--product-text-primary);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    box-shadow: var(--product-glass-shadow);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.toast.success {
    border-color: #10b981;
}

.toast.error {
    border-color: #ef4444;
}

/* Utility: Hide scrollbar */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}