/* Product Detail Page Styles */

.product-detail-section {
    padding: 150px 5% 80px;
    display: flex;
    gap: 80px;
}

.product-gallery {
    flex: 1.2;
    display: flex;
    gap: 20px;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumb-item {
    width: 80px;
    height: 100px;
    background: #f4f4f4;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.thumb-item.active {
    border-color: var(--primary);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.thumb-item:hover img {
    transform: scale(1.1);
}

.main-image-container {
    width: 600px;
    /* 🔥 FIXED WIDTH FOR 4:5 RATIO (600x750) */
    height: 750px;
    /* 🔥 UP TO ADD TO BAG BUTTON */
    background: #f8f8f8;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* 🔥 SHOW FULL IMAGE */
    transition: transform 0.5s ease;
}

.product-summary {
    flex: 0.8;
}

.breadcrumb {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

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

.product-detail-name {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-detail-price {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary);
}

.product-description {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 1.8;
}

.product-options {
    margin-bottom: 40px;
}

.option-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

.size-options {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.size-btn {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.size-btn:hover,
.size-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.color-options {
    display: flex;
    gap: 15px;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.color-btn.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--primary);
    border-radius: 50%;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-add-bag {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px; /* 🔥 MATCH WHATSAPP BUTTON HEIGHT */
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: var(--transition);
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
}

.btn-add-bag:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-whatsapp-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px; /* 🔥 EXACTLY MATCH ADD TO BAG BUTTON */
    border: 1px solid #25D366;
    border-radius: 50%;
    font-size: 2rem; /* 🔥 LARGER ICON */
    color: #25D366;
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.btn-whatsapp-action:hover {
    background-color: rgba(37, 211, 102, 0.05);
    /* Very light green tint */
    transform: scale(1.05);
}

.btn-large {
    flex: 1;
    padding: 1.2rem;
    text-align: center;
}

.btn-wishlist {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

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

.product-meta {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.meta-item {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.meta-item span {
    font-weight: 600;
    margin-right: 10px;
}

/* Tabs Section */
.product-tabs {
    padding: 0 5% 100px;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 60px;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.tab-link {
    padding: 20px 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    color: var(--text-muted);
}

.tab-link.active {
    color: var(--primary);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    max-width: 800px;
    margin: 0 auto;
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .product-detail-section {
        flex-direction: column;
        gap: 40px;
        padding-top: 100px;
    }

    .product-gallery {
        flex-direction: column-reverse;
    }

    .product-thumbnails {
        flex-direction: row;
        justify-content: center;
    }

    .main-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        /* Maintain ratio on mobile */
    }

    .product-detail-name {
        font-size: 2.5rem;
    }
}

/* Size Chart Styles */
.size-chart-container {
    margin: 5px 0 15px;
    /* Ultra-compact margin */
    border: 1px solid #eee;
    border-radius: 4px;
    overflow-x: auto;
    background: #fdfdfd;
    max-width: 330px;
    /* 🔥 TRULY SMALL WIDTH */
}

.size-chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.65rem;
    /* 🔥 ULTRA SMALL FONT */
    color: var(--primary);
}

.size-chart-table th,
.size-chart-table td {
    padding: 3px;
    /* 🔥 MINIMAL PADDING */
    text-align: center;
    border: 1px solid #eee;
}

.size-chart-table th {
    background-color: #f9f9f9;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0px;
}

.size-chart-table tr:last-child td {
    border-bottom: none;
}

.size-options {
    flex-wrap: wrap;
    /* Allow many sizes to wrap */
}