/* ═══════════════════════════════════════════════════
   products_style.css  —  Product Detail Page
   Matches: Outfitters-style minimal white aesthetic
   ═══════════════════════════════════════════════════ */

/* ── Reset & base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: #fff;
    color: #111;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── Topbar spacing ──────────────────────────────── */
.page-wrapper {
    padding-top: 0px; /* matches topbar height; adjust to match user_topbar_1 */
}

/* ══════════════════════════════════════════════════
   PRODUCT DETAIL LAYOUT
   ══════════════════════════════════════════════════ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px 24px 60px;
    margin-top: 0px;
    align-items: start;
    
}


.product-detail {
    margin-top: 20px; /* small breathing space */
}
/* ── LEFT: image gallery ─────────────────────────── */
/* ── LEFT: image gallery ─────────────────────────── */

/* Container */
.pd-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 12px;

    position: sticky;
    top: 0px;

    padding-right: 30px;

    max-height: calc(100vh - 90px);
    overflow-y: auto;

    scrollbar-width: none;
}
.pd-gallery::-webkit-scrollbar {
    display: none;
}

/* Image card */


/* Hover effect */
.pd-img-box:hover img {
    transform: scale(1.03);
}

/* Zoom icon */
.pd-zoom-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;

    width: 36px;
    height: 36px;

    background: rgba(255,255,255,0.9);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: opacity 0.2s;

    pointer-events: none;

    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.pd-img-box:hover .pd-zoom-icon {
    opacity: 1;
}

.pd-zoom-icon svg {
    width: 17px;
    height: 17px;
}






/* ── RIGHT: info panel ───────────────────────────── */
.pd-info {
    padding-left: 32px;
    border-left: 1px solid #e8e8e8;
}

.pd-info__tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
}

.pd-info__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 6px;
}

.pd-info__fit {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 18px;
}

/* Price */
.pd-info__price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.pd-info__price {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.pd-info__strike {
    font-size: 14px;
    color: #aaa;
    text-decoration: line-through;
}

/* Installment badge */
.pd-info__install {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f2f0ff;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    margin-bottom: 24px;
}
.pd-info__install-brand {
    font-weight: 700;
    color: #5a4fcf;
    font-size: 13px;
}
.pd-info__install span { color: #555; }
.pd-info__install strong { color: #5a4fcf; }

/* Divider */
.pd-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 20px 0;
}

/* ── Color / Size specs ───────────────────────────── */
.pd-spec-section { margin-bottom: 20px; }

.pd-spec-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 10px;
}

/* Color swatches */
.pd-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pd-swatch {
    width: 36px;
    height: 36px;
    border-radius: 3px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s;
    outline: none;
}
.pd-swatch.selected,
.pd-swatch:hover {
    border-color: #111;
}
.pd-swatch.selected::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid #111;
    border-radius: 4px;
    pointer-events: none;
}

/* Option pills (size etc) */
.pd-opts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pd-opt-btn {
    min-width: 44px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pd-opt-btn:hover { border-color: #111; }
.pd-opt-btn.selected { border-color: #111; background: #111; color: #fff; }
.pd-opt-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Quantity ─────────────────────────────────────── */
.pd-qty-row {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: fit-content;
    overflow: hidden;
    margin-bottom: 20px;
}
.pd-qty-btn {
    width: 40px;
    height: 44px;
    font-size: 18px;
    font-weight: 300;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    transition: background 0.15s;
}
.pd-qty-btn:hover { background: #f5f5f5; }
.pd-qty-val {
    width: 50px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    -moz-appearance: textfield;
}
.pd-qty-val::-webkit-inner-spin-button,
.pd-qty-val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ── CTA buttons ──────────────────────────────────── */
.pd-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.pd-btn-cart {
    width: 100%;
    height: 52px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.pd-btn-cart:hover { background: #333; }
.pd-btn-cart svg { width: 18px; height: 18px; fill: #fff; }

.pd-btn-checkout {
    width: 100%;
    height: 52px;
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1.5px solid #111;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.pd-btn-checkout:hover { background: #111; color: #fff; }

/* ── Accordion (specs, details) ──────────────────── */
.pd-accordion { border-top: 1px solid #e8e8e8; }
.pd-accordion-item { border-bottom: 1px solid #e8e8e8; }
.pd-accordion-hdr {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    background: none;
    border: none;
    color: #111;
}
.pd-accordion-hdr .pd-acc-icon {
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: #888;
    transition: transform 0.2s;
}
.pd-accordion-item.open .pd-acc-icon { transform: rotate(45deg); }
.pd-accordion-body {
    display: none;
    padding: 0 0 18px;
    font-size: 13px;
    line-height: 1.7;
    color: #444;
}
.pd-accordion-item.open .pd-accordion-body { display: block; }
.pd-accordion-body p { margin-bottom: 8px; }
.pd-accordion-body ul { padding-left: 18px; }
.pd-accordion-body ul li { margin-bottom: 4px; }

/* ── Product description text ────────────────────── */
.pd-description {
    font-size: 14px;
    line-height: 1.75;
    color: #444;
    margin-bottom: 16px;
}
.pd-description .pd-model-note {
    margin-top: 12px;
    font-size: 12px;
    color: #888;
}

/* ══════════════════════════════════════════════════
   YOU MAY ALSO LIKE
   ══════════════════════════════════════════════════ */
.related-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    border-top: 1px solid #e8e8e8;
}
.related-section__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #111;
}




/* ══════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════ */
#toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 9999;
    white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════════════
   SCROLL TOP
   ══════════════════════════════════════════════════ */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s;
    z-index: 100;
    border: none;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 24px;
    }
    .pd-gallery {
        position: static;
        padding-right: 0;
    }
    .pd-info {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e8e8e8;
        padding-top: 24px;
    }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .pd-info__name { font-size: 20px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .related-section { padding: 24px 12px 40px; }
}













.pd-gallery::-webkit-scrollbar { display: none; }

.pd-img-box {
    position: relative;
    width: 100%;
    min-width: 285px;
    min-height: 430px;
    background: #f4f4f2;
        background: #f4f4f2;

    overflow: hidden;
    cursor: zoom-in;
        aspect-ratio: 4 / 4; /* 🔥 keeps width & height consistent */


}
.pd-img-box img {
    width: 100%;
    height: 100%;
object-fit: contain;
    display: block;
    min-height: 430px;
    transition: transform 0.4s ease, opacity 0.18s;
}





.pd-img-box:hover img { transform: scale(1.02); }

/* Zoom icon */
.pd-zoom-icon {
    position: absolute;
    bottom: 12px; right: 12px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.pd-img-box:hover .pd-zoom-icon { opacity: 1; }
.pd-zoom-icon svg { width: 17px; height: 17px; }

/* ── Mobile swipe gallery ── */
.pd-gallery-mobile {
    display: none;
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f4f4f2;
    user-select: none;
}
.pd-gallery-mobile__track {
    display: flex;
    will-change: transform;
    touch-action: pan-y;
}





.pd-gallery-mobile__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* change here too */
    background: #f4f4f2;
}

/* Dot indicators */
.pd-gallery-mobile__dots {
    position: absolute;
    bottom: 12px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 5px; z-index: 2;
}
.pd-dot {
    height: 3px; width: 22px;
    border-radius: 2px;
    background: rgba(255,255,255,0.45);
    transition: background 0.2s, width 0.25s;
    cursor: pointer;
}
.pd-dot.active { background: #fff; width: 34px; }

/* ── LIGHTBOX ── */
.pd-lightbox {
    display: none;
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.93);
    align-items: center; justify-content: center;
}
.pd-lightbox.open { display: flex; }

.pd-lightbox__img {
    max-width: 82vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 2px;
    display: block;
    transition: opacity 0.18s;
}

.pd-lightbox__arrow {
    position: fixed; top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff; font-size: 26px;
    backdrop-filter: blur(4px); z-index: 2001;
    transition: background 0.15s;
    line-height: 1;
}
.pd-lightbox__arrow:hover { background: rgba(255,255,255,0.2); }
.pd-lightbox__arrow.lb-left  { left: 20px; }
.pd-lightbox__arrow.lb-right { right: 20px; }

.pd-lightbox__close {
    position: fixed; top: 16px; right: 18px;
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    font-size: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2001; transition: background 0.15s;
}
.pd-lightbox__close:hover { background: rgba(255,255,255,0.22); }

.pd-lightbox__counter {
    position: fixed; bottom: 18px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.55); font-size: 13px; z-index: 2001;
    letter-spacing: 0.06em;
}




/* ── Spec Block ── */
.pd-spec {
    margin-bottom: 22px;
}

/* Title */
.pd-spec__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #111;
}

/* List */
.pd-spec__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Item */
.pd-spec__list li {
    position: relative;
    padding-left: 32px;   /* more space for icon */
    font-size: 14px;
    color: #333;
    line-height: 1.9;
}

/* 🔥 Circle + tick */
.pd-spec__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 4px;

    width: 18px;
    height: 18px;

    font-size: 11px;
    font-weight: 600;

    color: #fff;
    background: #111;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Hover (subtle premium feel) */
.pd-spec__list li:hover {
    transform: translateX(3px);
    color: #000;
    transition: all 0.2s ease;
}

/* Normal (non-bulleted fields) */
.pd-spec-line {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.7;
}


/* You May Also Like - same behavior as index cards */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.related-grid .product-card {
    width: 100%;
    height: 100%;
    margin: 0;
}

.related-grid .product-card__img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.related-grid .product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-grid .product-card__info {
    min-height: 100px;
}












@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}






/* ── Responsive ── */
@media (max-width: 768px) {
    .pd-gallery          { display: none !important; }
    .pd-gallery-mobile   { display: block !important; }
    .pd-gallery-mobile__slide,
    .pd-gallery-mobile__slide img { min-height: 400px; }
}
@media (min-width: 769px) {
    .pd-gallery-mobile { display: none !important; }
}



@media (max-width: 768px) {
    .page-wrapper {
        padding-top: 0 !important;
    }

    body.no-hero .page-wrapper {
        padding-top: 0 !important;
    }
}

