/* Professional Product Page Styles */

/* 
  Inherits base styles from style.css
  Uses 'Inspired Layout' philosophy: Rounded Sheet over Content
*/

/* Reset / Base overrides */
body {
    background: #000;
    /* Darker back for product to pop */
}

/* 1. Hero Gallery (Immersive) */
.product-hero-gallery {
    width: 100%;
    height: 50vh;
    /* Half screen height */
    position: relative;
    background: #111;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.gallery-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Gradient overlay at bottom of image for seamless transition */
.gallery-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to top, #111 0%, transparent 100%);
    pointer-events: none;
}

.gallery-indicators {
    position: absolute;
    bottom: 40px;
    /* Above the rounded sheet start */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.indicator-dot {
    width: 24px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: all 0.3s;
}

.indicator-dot.active {
    background: #fff;
    width: 40px;
}

/* 2. Floating Header Actions */
.product-floating-header {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    z-index: 50;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

.icon-btn-round {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: auto;
    /* Re-enable clicks */
    cursor: pointer;
    transition: transform 0.1s;
}

.icon-btn-round:active {
    transform: scale(0.95);
}

/* 3. Product Content Sheet (Rounded Top) */
.product-content-sheet {
    margin-top: -24px;
    /* Slight overlap */
    background: #111;
    border-radius: 24px 24px 0 0;
    position: relative;
    z-index: 10;
    padding: 32px 24px 120px;
    /* Bottom padding for sticky button */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 60vh;
}

/* Content Typography */
.product-brand {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title-large {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
}

.product-price-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-discount {
    font-size: 0.9rem;
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
}

/* Options (Size/Color) */
.selection-section {
    margin-top: 32px;
    margin-bottom: 24px;
}

.section-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 12px;
    font-weight: 500;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.size-option {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.size-option.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Description Text */
.description-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #bbb;
    margin-bottom: 32px;
}

/* 4. Sticky Action Bar */
.sticky-footer-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    /* Limit width for desktop */
    padding: 16px 24px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: rgba(17, 17, 17, 0.85);
    /* More glass like */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(15px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    border-radius: 24px 24px 0 0;
    /* Rounded top corners only */
}

/* On mobile, remove border radius and ensure full width */
@media (max-width: 480px) {
    .sticky-footer-bar {
        border-radius: 0;
        max-width: 100%;
    }
}

.btn-add-large {
    flex: 1;
    height: 52px;
    /* Slightly shorter */
    border-radius: 16px;
    /* Less round, more modern */
    background: #fff;
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: transform 0.1s;
    cursor: pointer;
    max-width: 300px;
    /* Prevent button from getting too wide */
    margin: 0 auto;
}

.btn-add-large:active {
    transform: scale(0.98);
}

.btn-fav-large {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    /* Match add button */
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-fav-large:hover {
    background: rgba(255, 255, 255, 0.1);
}