/* ==============================
   SHOP & PRODUCT PAGE STYLES
   Extracted for performance optimization
   ============================== */

/* --- NIKE-STYLE PRODUCT PAGE --- */
.nike-gallery-layout {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
}
.nike-main-image-wrap {
    flex: 1;
    min-width: 0;
}
.main-image-slider {
    position: relative;
    border-radius: 0 !important;
    overflow: hidden;
    background: var(--light-gray);
    box-shadow: var(--shadow-md);
    width: 100%;
    display: block;
}
.product-main-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border-radius: 0 !important;
}
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s;
    opacity: 0;
    font-size: 0.9rem;
}
.main-image-slider:hover .slider-nav-btn { opacity: 1; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.slider-dot.active {
    background: var(--white);
    width: 24px;
    border-radius: 4px;
}
.nike-size-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.nike-size-btn {
    padding: 14px 10px;
    border: 1.5px solid var(--border-color);
    border-radius: 0 !important;
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}
.nike-size-btn.active {
    border-color: var(--dark);
    border-width: 2px;
    font-weight: 700;
}
.nike-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nike-color-swatch-btn {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0 !important;
    background: transparent;
    cursor: pointer;
    width: 58px;
    height: 58px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nike-color-swatch-btn.active { border-color: var(--text-main); transform: scale(1.05); }

/* Sticky sidebar for desktop */
@media (min-width: 992px) {
    .nike-product-info {
        position: sticky;
        top: 90px;
        align-self: flex-start;
    }
}

/* Shop filters & grid */
.shop-filter-bar, .filter-sort-row {
    flex-wrap: wrap;
    gap: 8px;
}
.shop-filter-bar .form-select, .filter-sort-row .form-select {
    min-width: 0;
    flex: 1 1 120px;
}

/* Animations */
@keyframes slideInLeft { from { transform: translateX(-30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.slide-ltr { opacity: 0; animation: slideInLeft 1s ease forwards; }
.slide-rtl { opacity: 0; animation: slideInRight 1s ease forwards; }
