/* ==========================================================================
   NIRNTH PRODUCT DETAIL PAGE & RECOMMENDATION CAROUSEL STYLES
   ========================================================================== */

.product-detail-page {
    padding-top: 2.5rem;
    padding-bottom: 5rem;
}

.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.pdp-media-wrap {
    position: relative;
}

.pdp-main-viewport {
    position: relative;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    border: 1px solid var(--n-border, rgba(139,0,0,0.4));
    aspect-ratio: 4 / 5;
    background: #090505;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-thumb-strip {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.pdp-thumb-pill {
    position: relative;
    width: 72px;
    height: 90px;
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
    border: 2px solid var(--n-border, rgba(255,255,255,0.1));
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
    background: #000;
}

.pdp-thumb-pill.active {
    border-color: var(--n-gold, #c5a059) !important;
}

.pdp-size-pill {
    display: block;
    padding: 0.85rem;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid var(--n-border, rgba(255,255,255,0.12));
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: var(--radius-sm, 6px);
    transition: var(--transition-fast, all 0.2s ease);
    text-align: center;
    cursor: pointer;
}

.pdp-size-pill.active {
    background: var(--n-gold, #c5a059) !important;
    color: #000 !important;
    border-color: var(--n-gold, #c5a059) !important;
}

/* ── Size Guide Popover on Hover ── */
.pdp-size-guide-wrap {
    position: relative;
    display: inline-block;
}

.size-guide-hover-popover {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #0d0909;
    border: 1px solid var(--n-gold, #c5a059);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.9), 0 0 20px rgba(197,160,89,0.15);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.pdp-size-guide-wrap:hover .size-guide-hover-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.size-chart-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    text-align: center;
    color: #fff;
}

.size-chart-mini-table th {
    padding: 0.4rem 0.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--n-gold, #c5a059);
    font-weight: 800;
}

.size-chart-mini-table td {
    padding: 0.4rem 0.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.size-chart-disclaimer {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.6rem;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.02em;
}

/* ── Sticky Bottom Add-To-Bag Action Bar (Ahankar Inspired) ── */
.pdp-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: rgba(10, 6, 6, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(197, 160, 89, 0.35);
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.9);
    padding: 0.65rem 1.5rem;
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdp-sticky-bar.visible {
    transform: translateY(0);
}

.pdp-sticky-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.pdp-sticky-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.pdp-sticky-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--n-border, rgba(139,0,0,0.4));
    flex-shrink: 0;
    background: #000;
}

.pdp-sticky-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.pdp-sticky-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    display: block;
}

.pdp-sticky-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--n-gold, #c5a059);
    white-space: nowrap;
    line-height: 1.2;
}

.pdp-sticky-mrp {
    font-size: 0.72rem;
    color: var(--n-muted, #737373);
    text-decoration: line-through;
}

.pdp-sticky-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.pdp-sticky-size-wrap {
    flex-shrink: 0;
}

.pdp-sticky-select {
    background: #140d0d;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    min-width: 52px;
}

.pdp-sticky-select:focus {
    outline: none;
    border-color: var(--n-gold, #c5a059);
}

.pdp-sticky-btn {
    padding: 0.6rem 1.4rem !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Sleek Minimal Pre-Booked Reserved Button Design ── */
.pdp-prebooked-btn {
    width: 100%;
    height: 46px;
    padding: 0 1.25rem;
    background: #140f12;
    border: 1px solid rgba(197, 160, 89, 0.35);
    color: #e5e5e5;
    font-family: var(--font-body, 'Inter', -apple-system, sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    user-select: none;
}

.pdp-prebooked-btn .check-icon,
.pdp-sticky-prebooked-btn .check-icon {
    color: var(--n-gold, #c5a059);
    font-size: 0.92rem;
    font-weight: 900;
}

.pdp-sticky-prebooked-btn {
    height: 38px;
    padding: 0 1.1rem !important;
    background: #140f12 !important;
    border: 1px solid rgba(197, 160, 89, 0.35) !important;
    color: #e5e5e5 !important;
    font-family: var(--font-body, 'Inter', -apple-system, sans-serif) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    cursor: default !important;
    white-space: nowrap !important;
    user-select: none !important;
}

.pdp-sticky-prebooked-btn .check-icon {
    color: var(--n-gold, #c5a059);
    font-size: 0.85rem;
    font-weight: 900;
}

/* Related Drops Slider Track */
.related-slider-wrap {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1.2rem;
}

.related-slider-wrap::-webkit-scrollbar {
    display: none;
}

.related-slider-card {
    flex: 0 0 calc((100% - 4 * 1.2rem) / 5);
    min-width: calc((100% - 4 * 1.2rem) / 5);
    max-width: calc((100% - 4 * 1.2rem) / 5);
}

/* Tablet & Mobile Optimizations */
@media screen and (max-width: 1024px) {
    .related-slider-wrap {
        gap: 0.75rem;
    }
    .related-slider-card {
        flex: 0 0 calc((100% - 3 * 0.75rem) / 4);
        min-width: calc((100% - 3 * 0.75rem) / 4);
        max-width: calc((100% - 3 * 0.75rem) / 4);
    }
    .related-slider-card .product-title {
        font-size: 0.8rem;
    }
    .related-slider-card .price-final {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    .pdp-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .pdp-sticky-bar {
        padding: 0.5rem 0.85rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }

    .pdp-sticky-container {
        gap: 0.6rem;
    }

    .pdp-sticky-title {
        max-width: 130px;
        font-size: 0.78rem;
    }

    .pdp-sticky-price {
        font-size: 0.82rem;
    }

    .pdp-sticky-btn {
        padding: 0.55rem 0.95rem !important;
        font-size: 0.76rem !important;
    }
}

@media screen and (max-width: 600px) {
    .related-slider-wrap {
        gap: 0.5rem;
    }
    .related-slider-card {
        flex: 0 0 calc((100% - 3 * 0.5rem) / 4);
        min-width: calc((100% - 3 * 0.5rem) / 4);
        max-width: calc((100% - 3 * 0.5rem) / 4);
    }
    .related-slider-card .badge-pill {
        font-size: 0.48rem;
        padding: 0.12rem 0.3rem;
    }
    .related-slider-card .product-title {
        font-size: 0.72rem;
    }
    .related-slider-card .price-final {
        font-size: 0.82rem;
    }
}

@media screen and (max-width: 480px) {
    .pdp-sticky-bar {
        padding: 0.45rem 0.6rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    }

    .pdp-sticky-container {
        gap: 0.4rem;
    }

    .pdp-sticky-thumb {
        width: 36px;
        height: 36px;
    }

    .pdp-sticky-title {
        max-width: 95px;
        font-size: 0.72rem;
    }

    .pdp-sticky-price {
        font-size: 0.78rem;
        gap: 0.2rem;
    }

    .pdp-sticky-mrp {
        display: none;
    }

    .pdp-sticky-right {
        gap: 0.3rem;
    }

    .pdp-sticky-select {
        padding: 0.42rem 0.3rem;
        font-size: 0.75rem;
        min-width: 40px;
    }

    .pdp-sticky-btn {
        padding: 0.48rem 0.7rem !important;
        font-size: 0.72rem !important;
        letter-spacing: 0.02em !important;
    }
}

@media screen and (max-width: 360px) {
    .pdp-sticky-title {
        display: none;
    }
}
