:root {
    --color-sand: #F5F1E8;
    --color-charcoal: #1A1A1A;
    --color-slate: #4A4A4A;
    --color-accent: #D4A574;
    --color-accent-dark: #B8935F;
    --color-success: #2D7A4F;
    --color-border: #E6E1D6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal Base */
.tp-product-modal .modal-xl {
    max-width: 100%;
    height: 100vh;
}

.tp-product-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
    padding: 0px;
}

/* Close Button - Refined Minimalism */
.product-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.product-close-btn:hover {
    transform: rotate(90deg);
    background: var(--color-sand);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.product-close-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-charcoal);
    transition: var(--transition);
}

/* Container */
.product-popup {
    display: flex;
    min-height: 600px;
    background: white;
    /* font-family: 'DM Sans', sans-serif; */
}

/* Left Side - Image Gallery */
.product-popup-left {
    flex: 0 0 50%;
    padding: 50px;
    background: var(--color-sand);
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: relative;
}

.product-popup-left::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Main Image */
.product-main-image {
    width: 100%;
    height: 450px;
    /* background: white; */
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: var(--shadow-md); */
    position: relative;
    transition: var(--transition);
}

/* .product-main-image:hover {
    box-shadow: var(--shadow-lg);
} */

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-main-image:hover img {
    transform: scale(1.05);
}

/* Thumbnails Slider */
.product-thumbnails-wrapper {
    position: relative;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2px;
    scrollbar-width: none;
}

.product-thumbnails::-webkit-scrollbar {
    display: none;
}

.product-thumb {
    flex: 0 0 72px;
    height: 72px;
    background: #ffffff25;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-thumb:hover {
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: #ffffff25;
}

.product-thumb.active {
    border-color: #fff;
    background: #ffffff50;
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.3);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* Right Side - Details */
.product-popup-right {
    flex: 0 0 50%;
    padding: 50px;
    background: var(--color-sand);
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: relative;
    overflow-y: auto;
    max-height: 600px;
    background: white;
}

.product-popup-right::-webkit-scrollbar {
    width: 6px;
}

.product-popup-right::-webkit-scrollbar-track {
    background: var(--color-sand);
}

.product-popup-right::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
}

/* Header Section */
.product-header {
    margin-bottom: 0px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-success);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 15px;
}

.product-badge svg {
    width: 12px;
    height: 12px;
}

.product-title {
    /* font-family: 'Playfair Display', serif; */
    font-size: 35px;
    font-weight: 700;
    color: var(--color-charcoal);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0 0 6px 0;
}

.product-tagline {
    font-size: 16px;
    color: #c77836;
    line-height: 1.6;
    margin-bottom: 6px;
    font-weight: 400;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--color-slate);
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.product-category::before,
.category-list-dot {
    width: 6px !important;
    height: 6px !important;
    background: var(--color-accent);
    border-radius: 50%;
    font-weight: 500;
}


/* Price Section */
.product-price-section {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 0px;
    margin-bottom: 0px;
    /* border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border); */
}

.product-price {
    /* font-family: 'DM Sans', sans-serif; */
    font-size: 25px;
    font-weight: 700;
    color: var(--color-charcoal);
    letter-spacing: -1px;
}

.product-old-price {
    font-size: 25px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.product-discount {
    background: var(--color-accent);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Tabs */
.product-tabs {
    margin-bottom: 0px;
}

.product-tabs-nav {
    display: flex;
    gap: 3px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0px;
}

.product-tab-btn {
    padding: 10px 25px;
    background: #f6f6f6;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-slate);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    letter-spacing: 0.3px;
    border-radius: 5px 5px 0px 0px;
}

.product-tab-btn:hover {
    color: var(--white);
    background: var(--color-accent);
    border-radius: 5px 5px 0px 0px;
}

.product-tab-btn.active {
    color: var(--white);
    background: var(--color-accent);
    border-radius: 5px 5px 0px 0px;
}

.product-tab-btn.active::after,
.product-tab-btn:hover::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ba6b29;
}

/* Tab Content */
.product-tab-content {
    display: none;
    background: #f6f6f6;
    padding: 25px;
    border-radius: 0px 0px 5px 5px;
    overflow: hidden;
}

.product-tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Description Tab */
.product-description {
    font-size: 15px;
    color: var(--color-slate);
    line-height: 1.7;
    font-weight: 400;
}

/* Features Tab */
.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--color-slate);
    transition: var(--transition);
    font-weight: 400;
}

.product-features li:hover {
    background: #EDE9DE;
    transform: translateX(4px);
}

.product-features li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--color-success);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 11px;
    flex-shrink: 0;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 0px;
    padding-top: 0px;
    /* border-top: 1px solid var(--color-border); */
}

.product-btn {
    flex: 1;
    padding: 16px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    letter-spacing: 0.3px;
    /* font-family: 'DM Sans', sans-serif; */
}

.product-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-btn:active {
    transform: translateY(0);
}

.product-btn svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: 1px solid #25D366;
}

.btn-whatsapp:hover {
    background: #20BA59;
    border-color: #20BA59;
}

.btn-whatsapp:hover svg {
    transform: scale(1.1);
}

.btn-contact {
    background: var(--color-charcoal);
    color: white;
    border: 1px solid var(--color-charcoal);
}

.btn-contact:hover {
    background: #2A2A2A;
    border-color: #2A2A2A;
}

.btn-contact:hover svg {
    transform: translateX(2px);
}

/* Loading State */
.product-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--color-slate);
}

.spinner-border {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-sand);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .product-popup {
        flex-direction: column;
        min-height: auto;
    }

    .product-popup-left {
        padding: 40px 32px;
    }

    .product-popup-right {
        padding: 40px 32px;
    }

    .product-main-image {
        height: 360px;
    }

    .product-title {
        font-size: 32px;
    }

    .product-price {
        font-size: 36px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-close-btn {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {

    .product-popup-left,
    .product-popup-right {
        padding: 32px 24px;
    }

    .product-title {
        font-size: 28px;
    }

    .product-price {
        font-size: 32px;
    }

    .product-tabs-nav {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .product-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .product-tab-btn {
        padding-bottom: 12px;
        font-size: 14px;
        white-space: nowrap;
    }

    .product-main-image {
        height: 300px;
    }

    .product-thumb {
        flex: 0 0 64px;
        height: 64px;
    }
}