/* Product Detail Page Styles */

/* Main Layout */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
    margin-top: 5rem;
    /* Fix header overlap */
    padding-top: 1rem;
}

/* Ensure section titles have breathing room */
.section-title {
    margin-top: 3rem;
    margin-bottom: 2rem !important;
    display: block;
}

@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 0 1rem;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .product-gallery {
        flex-direction: column-reverse;
    }

    .gallery-thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .thumbnail-img {
        width: 70px;
        flex-shrink: 0;
    }

    .product-info-column {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-order-now-detail {
        width: 100%;
        font-size: 1.1rem;
        padding: 0.8rem;
    }

    .btn-add-cart-detail {
        width: 100%;
    }
}


/* Image Gallery */
.product-gallery {
    display: flex;
    gap: 1rem;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 80px;
    flex-shrink: 0;
}

.thumbnail-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

.thumbnail-img:hover,
.thumbnail-img.active {
    border-color: var(--primary-color);
    opacity: 0.8;
}

.main-image-container {
    flex-grow: 1;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    object-position: top center;
}

/* Product Info */
.product-info-column {
    padding-left: 1rem;
}

.product-info-column .product-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.1rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.product-info-column .product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-price .currency {
    font-size: 1.5rem;
}

/* Size Selector */
.size-selector {
    margin-bottom: 1rem;
}

.size-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--dark-color);
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-option {
    width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .size-option {
        width: 40px;
        height: 35px;
        font-size: 0.8rem;
    }
}

.size-option:hover {
    border-color: var(--dark-color);
}

.size-option.active {
    background: var(--dark-color);
    color: white;
    border-color: var(--dark-color);
}

.size-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
    background: #f3f4f6;
}

.size-chart-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--gray);
    text-decoration: underline;
    font-size: 0.9rem;
    cursor: pointer;
}

@media (max-width: 480px) {
    .size-chart-link {
        display: block;
        margin-top: 1rem;
    }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.btn-add-cart-detail {
    background: #e5e7eb;
    color: black;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
}

.btn-add-cart-detail:hover {
    background: #d1d5db;
}

.btn-order-now-detail {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 180px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 106, 78, 0.2);
}

.btn-order-now-detail:hover {
    background: #005a42;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 106, 78, 0.3);
}

.btn-wishlist-detail {
    width: 45px;
    height: 45px;
    border: 1px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--gray);
    transition: all 0.2s;
}

.btn-wishlist-detail:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-wishlist-detail.active {
    color: #ef4444;
    border-color: #ef4444;
}

/* Meta Info */
.product-meta {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.8;
}

.product-meta strong {
    color: var(--dark-color);
    margin-right: 0.5rem;
}

.meta-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.share-icon {
    color: var(--dark-color);
    font-size: 1.1rem;
    cursor: pointer;
}

.find-store-btn {
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: var(--gray);
    cursor: pointer;
    font-size: 0.9rem;
}

/* Product Tabs */
.product-tabs {
    margin-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.tab-headers {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--dark-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--dark-color);
}

.tab-content {
    display: none;
    color: #4b5563;
    line-height: 1.6;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tab-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}