/* Product Modern CSS */

/* Layout & Typography */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.product-meta-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9E9E9E;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-details-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Gallery */
.gallery-wrapper {
    position: sticky;
    top: 2rem;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 1/1;
    background: #FAFAFA;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.gallery-thumbs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumb-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    background: #f9f9f9;
    flex-shrink: 0;
    transition: all 0.2s;
}

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

.thumb-img:hover {
    transform: translateY(-2px);
}

.thumb-img.active-thumb {
    border-color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Price Block */
.product-price-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed #eee;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
}

.review-badge {
    background: #FFF8E1;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D2720;
}

/* Description */
.product-description-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Variant Selectors */
.variant-selector label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 0.8rem !important;
    font-weight: 700;
}

.variant-options {
    gap: 0.8rem !important;
}

.variant-pill {
    padding: 10px 20px !important;
    border-radius: 6px !important;
    /* Square-ish */
    border: 1px solid #e0e0e0;
    font-size: 0.95rem !important;
    position: relative;
    overflow: hidden;
    background: #fff;
    color: var(--color-text);
    transition: all 0.2s;
}

.variant-pill:hover {
    border-color: #bbb;
}

.variant-pill.active {
    background: #2D2720 !important;
    /* Proper Dark Active State */
    color: #fff !important;
    border-color: #2D2720 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Pincode */
.check-availability-box {
    background: #FAFAFA;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
}

/* Actions Bar */
.add-to-cart-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
    background: #fff;
    position: sticky;
    bottom: 0;
    padding: 1rem 0;
    /* Sticky only on mobile really, but keeping layout */
    z-index: 10;
}

/* Quantity Control Group */
.qty-control-group {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    height: 56px;
    /* Match button height */
    overflow: hidden;
}

.qty-btn-minus,
.qty-btn-plus {
    width: 40px;
    height: 100%;
    border: none;
    background: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn-minus:hover,
.qty-btn-plus:hover {
    background: #f5f5f5;
}

.qty-input {
    width: 40px;
    height: 100%;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    background: #fff;
    padding: 0;
    margin: 0;
    appearance: textfield;
    -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Button Refinements */
.btn-add-cart {
    height: 56px;
    flex: 1;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    background: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 179, 3, 0.25);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 3, 0.35);
}

.btn-wishlist {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-wishlist:hover {
    border-color: #ffcdd2;
    background: #ffebee;
}

/* Accordion Modern */
.product-accordion details {
    border-bottom: 1px solid #eee;
    padding: 1.2rem 0;
}

.product-accordion summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: var(--color-secondary);
}

.product-accordion summary span {
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.product-accordion .content {
    margin-top: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}