/* Product Detail Overlay — Shell (backdrop, container, close, page wrapper) */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* ================== OVERLAY BACKDROP ================== */
.product-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.9);
}

@supports not (backdrop-filter: blur(12px)) {
    .overlay-backdrop {
        background-color: rgba(0, 0, 0, 0.7);
    }
}

/* ================== OVERLAY CONTENT ================== */
.overlay-content {
    position: relative;
    z-index: 10000;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 2rem;
    box-sizing: border-box;
}

.overlay-close-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.overlay-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* ================== PAGE WRAPPER ================== */
.item-details-page-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 12px;
}

/* ================== RESPONSIVE (shell) ================== */
@media (max-width: 1024px) {
    .item-details-page-wrapper {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .overlay-content {
        padding: 1rem;
    }

    .overlay-close-btn {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .item-details-page-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin: 0;
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    .overlay-content {
        padding: 0.5rem;
    }

    .item-details-page-wrapper {
        padding: 0.5rem;
    }
}

/* ================== ACCESSIBILITY (shell) ================== */
.product-detail-overlay:focus-within {
    outline: 2px solid #ff6b35;
}

.overlay-close-btn:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}
