/* ========================================
   HavenSync Robe Product Page
   Uses the original HavenSync styling
======================================== */

.robe-product-page {
    position: relative;
    z-index: 2;
    max-width: 75rem;
    margin: 0 auto;
    padding: 30px 22px 50px;
}


/* Back to Shop */

.back-to-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 24px;

    color: var(--tiffany2);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;

    padding: 10px 14px;

    border: 1px solid rgba(111, 243, 232, .25);
    border-radius: 999px;

    background: rgba(7, 27, 51, .35);
    backdrop-filter: blur(10px);

    transition: all .2s ease;
}

.back-to-shop:hover {
    color: var(--white);
    border-color: var(--tiffany);
    background: rgba(10, 186, 181, .18);
}


/* Product Layout */

.robe-product {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 32px;
    align-items: start;
}


/* ========================================
   Product Gallery
======================================== */

.robe-gallery {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(7, 27, 51, .45);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    padding: 18px;
}


/* Main Image */

.robe-main-image {
    position: relative;
    width: 100%;
   
    overflow: hidden;

    border-radius: var(--radius2);
    border: 1px solid rgba(111, 243, 232, .20);

    background: rgba(3, 12, 24, .35);

    box-shadow: var(--shadow2);
}

.robe-main-image img {
    width: 100%;
    height: auto;
    display: block;
}


/* Thumbnails */

.robe-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;

    margin-top: 14px;
}

.robe-thumbnails button {
    padding: 0;

    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;

    overflow: hidden;

    background: rgba(3, 12, 24, .35);

    cursor: pointer;

    transition: all .2s ease;
}

.robe-thumbnails button:hover {
    border-color: var(--tiffany);
    box-shadow: 0 0 14px rgba(10, 186, 181, .20);
    transform: translateY(-2px);
}

.robe-thumbnails img {
    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;
}


/* ========================================
   Product Information Card
======================================== */

.robe-info {
    border-radius: var(--radius);
    border: 1px solid var(--border);

    background: rgba(7, 27, 51, .55);
    backdrop-filter: blur(16px);

    box-shadow: var(--shadow);

    padding: 28px;
}


/* Collection Label */

.robe-label {
    margin: 0 0 10px;

    color: var(--tiffany2);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .12em;
    text-transform: uppercase;
}


/* Product Name */

.robe-info h1 {
    margin: 0;

    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;

    letter-spacing: -.02em;
}


/* Price */

.robe-price {
    margin: 18px 0;

    color: var(--tiffany2);

    font-size: 25px;
    font-weight: 800;
}


/* Description */

.robe-description {
    margin: 0;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.65;
}


/* ========================================
   Product Details
======================================== */

.robe-details {
    margin-top: 28px;

    padding-top: 24px;

    border-top: 1px solid var(--border);
}

.robe-details h2 {
    margin: 0 0 12px;

    font-size: 20px;
}

.robe-details ul {
    margin: 0;

    padding-left: 20px;

    color: var(--muted);

    line-height: 1.8;
}

.robe-details li {
    margin: 3px 0;
}


/* ========================================
   Quantity
======================================== */

.robe-quantity {
    margin-top: 28px;
}

.robe-quantity label {
    display: block;

    margin-bottom: 9px;

    color: rgba(255, 255, 255, .88);

    font-size: 12px;
    font-weight: 700;
}


.quantity-controls {
    display: inline-flex;
    align-items: center;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(3, 12, 24, .35);

    overflow: hidden;
}


.quantity-controls button {
    width: 42px;
    height: 42px;

    border: none;

    background: transparent;

    color: var(--white);

    font-size: 20px;

    cursor: pointer;

    transition: background .2s ease;
}

.quantity-controls button:hover {
    background: rgba(10, 186, 181, .18);
}


.quantity-controls span {
    min-width: 45px;

    text-align: center;

    color: var(--white);

    font-weight: 800;
}


/* ========================================
   Add To Cart
======================================== */

.add-to-cart-button {
    width: 100%;

    margin-top: 20px;

    padding: 14px 16px;

    border-radius: 16px;

    border: 1px solid rgba(255, 255, 255, .18);

    background: linear-gradient(
        135deg,
        var(--tiffany) 0%,
        var(--tiffany2) 100%
    );

    color: #062030;

    font-size: 15px;
    font-weight: 800;

    box-shadow: var(--shadow2);

    cursor: pointer;

    transition: filter .2s ease, transform .2s ease;
}

.add-to-cart-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}


/* ========================================
   Mobile
======================================== */

@media (max-width: 1024px) {

    .robe-product {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .robe-gallery {
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
    }

    .robe-info {
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
    }
}


@media (max-width: 768px) {

    .robe-product-page {
        padding: 20px 16px 40px;
    }

    .robe-gallery,
    .robe-info {
        padding: 18px;
        border-radius: var(--radius2);
    }

    .robe-info h1 {
        font-size: 34px;
    }
}


@media (max-width: 480px) {

    .robe-thumbnails {
        gap: 7px;
    }

    .robe-info h1 {
        font-size: 30px;
    }

    .robe-price {
        font-size: 23px;
    }
}

.view-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    color: rgba(255, 255, 255, .92);
    background: rgba(7, 27, 51, .35);
    border: 1px solid var(--border);
    box-shadow: var(--shadow2);
    transition: background .2s ease, border-color .2s ease;
}

.view-cart-button:hover {
    background: rgba(7, 27, 51, .50);
    border-color: rgba(111, 243, 232, .45);
}

.music-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(111, 243, 232, .45);
    border-radius: 50%;
    background: rgba(7, 27, 51, .85);
    color: var(--tiffany2);
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow2);
    z-index: 1000;
    transition: background .2s ease, transform .2s ease;
}

.music-toggle:hover {
    background: rgba(7, 27, 51, .98);
    transform: scale(1.05);
}

.music-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}