/* ═══════════════════════════════════════════════
   CHROME UNIVERSE — Product Page Styles
   Editorial gothic luxury — mobile-first
   Reuses variables from styles.css
   ═══════════════════════════════════════════════ */

/* ─── Base offset (sticky nav clearance) ─── */
.product-page {
    padding-top: clamp(5rem, 10vw, 7rem);
    min-height: 100vh;
    position: relative;
}

/* ═══ BREADCRUMB ═══ */
.breadcrumb {
    padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--silver-muted);
    border-bottom: 1px solid rgba(192, 192, 192, 0.06);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.breadcrumb::-webkit-scrollbar { display: none; }

.breadcrumb-list {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
}
.breadcrumb-list a {
    color: var(--silver-muted);
    transition: color 0.3s var(--ease);
    position: relative;
}
.breadcrumb-list a:hover { color: var(--silver-bright); }
.breadcrumb-sep {
    color: var(--silver-muted);
    opacity: 0.4;
    font-size: 0.55rem;
}
.breadcrumb-current {
    color: var(--silver);
    font-style: italic;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: none;
}

/* ═══ PRODUCT MAIN — split layout ═══ */
.product-main {
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Decorative ornament corners (luxury touch) */
.product-main::before,
.product-main::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(192, 192, 192, 0.1);
    pointer-events: none;
}
.product-main::before {
    top: 0;
    left: clamp(1.25rem, 4vw, 3rem);
    border-right: none;
    border-bottom: none;
}
.product-main::after {
    bottom: 0;
    right: clamp(1.25rem, 4vw, 3rem);
    border-left: none;
    border-top: none;
}

/* ─── Gallery (LEFT on desktop) ─── */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}
.product-gallery::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(10,10,10,0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.product-main-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--black-card);
    border: 1px solid rgba(192, 192, 192, 0.08);
    overflow: hidden;
    cursor: zoom-in;
}
.product-main-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(192, 192, 192, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 80%, rgba(201, 168, 76, 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}
.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: clamp(1rem, 4vw, 2.5rem);
    transition: transform 0.6s var(--ease-dramatic);
    will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
    .product-main-image:hover img { transform: scale(1.06); }
}

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}
.product-thumb {
    aspect-ratio: 1 / 1;
    background: var(--black-card);
    border: 1px solid rgba(192, 192, 192, 0.08);
    cursor: pointer;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
    overflow: hidden;
    padding: 0;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}
.product-thumb:hover { border-color: rgba(192, 192, 192, 0.3); }
.product-thumb.active {
    border-color: var(--silver);
    box-shadow: 0 0 0 1px var(--silver);
}
@media (hover: none) and (pointer: coarse) {
    .product-thumb:active { transform: scale(0.96); }
}

/* ─── Product info (RIGHT on desktop) ─── */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 0.5rem;
}

.product-eyebrow {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--silver-dark);
    display: inline-block;
}

.product-name {
    font-family: var(--font-gothic);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    color: var(--silver-bright);
    line-height: 1;
    letter-spacing: 0.01em;
    text-shadow: 0 0 60px rgba(192, 192, 192, 0.06);
}

.product-price {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    color: var(--white);
    letter-spacing: 0.08em;
    margin-top: -0.25rem;
    position: relative;
    padding-bottom: 1.25rem;
}
.product-price::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, var(--silver) 0%, transparent 100%);
}

/* ─── Sale Pricing ─── */
.product-pricing {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    letter-spacing: 0.08em;
    margin-top: -0.25rem;
    position: relative;
    padding-bottom: 1.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.product-pricing::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, var(--silver) 0%, transparent 100%);
}
.product-price-original {
    text-decoration: line-through;
    color: var(--silver-dark);
    font-size: 0.85em;
    margin-right: 0.5rem;
}
.product-price-sale {
    color: #e74c3c;
    font-weight: 600;
}
.product-discount-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    font-family: var(--font-display);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5rem;
    margin-left: 0.75rem;
    font-weight: 600;
}

.related-card-price .price-original {
    text-decoration: line-through;
    color: var(--silver-dark);
    font-size: 0.85em;
    margin-right: 0.3rem;
}
.related-card-price .price-sale {
    color: #e74c3c;
    font-weight: 600;
}

.product-short-desc {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.6;
    color: var(--silver);
    max-width: 55ch;
}

/* ─── Size selector ─── */
.product-sizes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.product-sizes-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--silver-dark);
}
.product-one-size {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--silver);
    padding: 0.5rem 0;
    display: block;
}
.product-sizes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.size-btn {
    min-width: 48px;
    min-height: 48px;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(192, 192, 192, 0.2);
    background: transparent;
    color: var(--silver);
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.size-btn:hover {
    border-color: var(--silver);
    color: var(--white);
}
.size-btn.active {
    background: var(--silver) !important;
    color: var(--black) !important;
    border-color: var(--silver) !important;
    box-shadow: 0 0 10px rgba(192,192,192,0.3);
}
.size-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ─── Quantity selector ─── */
.product-quantity {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.product-quantity-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--silver-dark);
}
.qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(192, 192, 192, 0.2);
    width: fit-content;
}
.qty-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--silver);
    font-family: var(--font-display);
    font-size: 1.1rem;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.qty-btn:hover {
    background: rgba(192, 192, 192, 0.06);
    color: var(--white);
}
.qty-btn:active { transform: scale(0.95); }
.qty-input {
    width: 56px;
    height: 48px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(192, 192, 192, 0.2);
    border-right: 1px solid rgba(192, 192, 192, 0.2);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1rem;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input:focus { outline: none; }

/* ─── CTAs ─── */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}
.btn-add-cart {
    width: 100%;
    min-height: 56px;
    background: var(--silver);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    padding: 1.2rem 2rem;
    transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.3s var(--ease-bounce);
    position: relative;
    overflow: hidden;
}
.btn-add-cart:hover {
    background: var(--white);
}
.btn-add-cart:active { transform: scale(0.98); }
.btn-add-cart .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}
.btn-add-cart:hover .btn-shine { animation: btnShine 0.6s ease forwards; }

.btn-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    color: var(--silver);
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid transparent;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
    padding: 0.75rem 1rem;
}
.btn-wishlist:hover {
    color: var(--white);
    border-color: rgba(192, 192, 192, 0.15);
}
.btn-wishlist svg {
    width: 14px;
    height: 14px;
    transition: fill 0.3s var(--ease);
}
.btn-wishlist:hover svg { fill: var(--silver); }

/* ─── Trust line ─── */
.product-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 1.25rem 1rem;
    margin-top: 0.75rem;
    border-top: 1px solid rgba(192, 192, 192, 0.08);
    border-bottom: 1px solid rgba(192, 192, 192, 0.08);
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--silver-muted);
    text-align: center;
}
.product-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.product-trust .trust-sep {
    color: var(--silver-dark);
    opacity: 0.4;
}

/* ═══ ACCORDION — Product Details ═══ */
.product-details {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
    border-top: 1px solid rgba(192, 192, 192, 0.08);
}

.product-details-title {
    font-family: var(--font-gothic);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--silver-bright);
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.accordion {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(192, 192, 192, 0.08);
}
.accordion-item {
    border-bottom: 1px solid rgba(192, 192, 192, 0.08);
}
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0.5rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--silver-bright);
    background: transparent;
    text-align: left;
    transition: color 0.3s var(--ease);
    min-height: 56px;
}
.accordion-header:hover { color: var(--white); }
.accordion-icon {
    width: 14px;
    height: 14px;
    position: relative;
    flex-shrink: 0;
}
.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform 0.4s var(--ease-dramatic);
}
.accordion-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}
.accordion-icon::after {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}
.accordion-item.open .accordion-icon::after { transform: translateX(-50%) scaleY(0); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-dramatic);
}
.accordion-item.open .accordion-content { max-height: 1000px; }
.accordion-body {
    padding: 0 0.5rem 1.75rem;
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.7;
    color: var(--silver);
    max-width: 65ch;
}

/* ═══ RELATED PRODUCTS ═══ */
.related {
    padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
    border-top: 1px solid rgba(192, 192, 192, 0.08);
    max-width: 1400px;
    margin: 0 auto;
}

.related-title {
    font-family: var(--font-gothic);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--silver-bright);
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.related-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}
.related-grid::-webkit-scrollbar { display: none; }
.related-grid > * {
    flex: 0 0 75%;
    scroll-snap-align: center;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.related-card-img {
    aspect-ratio: 1 / 1;
    background: var(--black-card);
    border: 1px solid rgba(192, 192, 192, 0.08);
    overflow: hidden;
    position: relative;
}
.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.6s var(--ease-dramatic);
}
.related-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.25rem;
}
.related-card-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--silver-bright);
    text-transform: uppercase;
}
.related-card-price {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1rem;
    color: var(--silver-muted);
}

@media (hover: hover) and (pointer: fine) {
    .related-card:hover { transform: translateY(-4px); }
    .related-card:hover .related-card-img { border-color: rgba(192, 192, 192, 0.25); }
    .related-card:hover .related-card-img img { transform: scale(1.05); }
    .related-card:hover .related-card-name { color: var(--white); }
}
@media (hover: none) and (pointer: coarse) {
    .related-card:active { transform: scale(0.98); }
}

/* ═══ ENTRANCE ANIMATIONS ═══ */
@keyframes productFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-info > * {
    animation: productFadeUp 0.7s var(--ease-dramatic) both;
}
.product-info > *:nth-child(1) { animation-delay: 0.05s; }
.product-info > *:nth-child(2) { animation-delay: 0.12s; }
.product-info > *:nth-child(3) { animation-delay: 0.19s; }
.product-info > *:nth-child(4) { animation-delay: 0.26s; }
.product-info > *:nth-child(5) { animation-delay: 0.33s; }
.product-info > *:nth-child(6) { animation-delay: 0.40s; }
.product-info > *:nth-child(7) { animation-delay: 0.47s; }
.product-info > *:nth-child(8) { animation-delay: 0.54s; }
.product-info > *:nth-child(9) { animation-delay: 0.61s; }

.product-gallery {
    animation: productFadeUp 0.8s var(--ease-dramatic) both;
}

/* ═══ TABLET (≥ 768px) ═══ */
@media (min-width: 768px) {
    .product-trust {
        font-size: 0.65rem;
    }
    .product-trust span:not(:last-child)::after {
        content: '·';
        margin-left: 1rem;
        color: var(--silver-dark);
        opacity: 0.5;
    }
    .related-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        overflow: visible;
    }
    .related-grid > * { flex: initial; }
}

/* ═══ DESKTOP (≥ 1024px) ═══ */
@media (min-width: 1024px) {
    .product-main {
        grid-template-columns: 1.15fr 1fr;
        gap: clamp(3rem, 5vw, 5rem);
        align-items: start;
    }
    .product-gallery {
        position: sticky;
        top: 100px;
    }
    .product-info {
        padding-top: 1rem;
        gap: 1.5rem;
    }
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    .accordion-header {
        padding: 1.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* ═══ LARGE DESKTOP (≥ 1400px) ═══ */
@media (min-width: 1400px) {
    .product-main {
        gap: 6rem;
    }
}

/* ═══ Reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {
    .product-info > *,
    .product-gallery,
    .accordion-content,
    .product-main-image img,
    .related-card-img img {
        animation: none !important;
        transition: none !important;
    }
}
