/* ============================================================
   Julyem · Trang chi tiết sản phẩm (dark / gold)
   Scope toàn bộ trong .jl-pdp để không ảnh hưởng phần khác.
   ============================================================ */

.jl-pdp {
    --jl-navy-0: #061528;
    --jl-navy-1: #0a2342;
    --jl-navy-2: #0e2c52;
    --jl-card:   #0c2747;
    --jl-card-2: #102f57;
    --jl-line:   rgba(207, 165, 106, .28);
    --jl-line-soft: rgba(255, 255, 255, .08);
    --jl-gold:   #cfa56a;
    --jl-gold-2: #e7c690;
    --jl-heading:#f0e2c6;
    --jl-text:   #d7e0ea;
    --jl-muted:  #8ea3bb;

    /* full-bleed nền tối ra mép màn hình */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background:
        radial-gradient(120% 80% at 80% 0%, rgba(207, 165, 106, .10), transparent 60%),
        radial-gradient(100% 70% at 0% 100%, rgba(207, 165, 106, .06), transparent 55%),
        linear-gradient(180deg, var(--jl-navy-1), var(--jl-navy-0));
    color: var(--jl-text);
    padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 40px);
    font-feature-settings: "liga" 1;
}

.jl-pdp * { box-sizing: border-box; }

/* Ẩn tiêu đề/banner mặc định của Flatsome trên trang sản phẩm
   (tên SP đã nằm trong layout tùy biến) */
.jl-pdp-page .shop-page-title { display: none !important; }

.jl-pdp-inner {
    max-width: 1280px;
    margin: 0 auto;
}

/* ---------- TOP: gallery + summary ---------- */
.jl-pdp-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

/* ---------- GALLERY ---------- */
.jl-gallery-main {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(160deg, #0d2b4f, #081c34);
    border: 1px solid var(--jl-line-soft);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.jl-gal-stage {
    position: relative;
    aspect-ratio: 1 / 1;
}

.jl-gal-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.jl-gal-slide.is-active { opacity: 1; pointer-events: auto; }
.jl-gal-placeholder { display: flex; align-items: center; justify-content: center; opacity: 1; }
.jl-gal-placeholder img { width: 60%; height: auto; opacity: .5; }

.jl-badge-sale {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    background: linear-gradient(135deg, var(--jl-gold-2), var(--jl-gold));
    color: #2a1c06;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    padding: 7px 16px;
    border-radius: 0 0 12px 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}

.jl-gal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--jl-line);
    background: rgba(8, 22, 40, .55);
    backdrop-filter: blur(4px);
    color: var(--jl-gold-2);
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.jl-gal-arrow svg { width: 20px !important; height: 20px !important; flex: none; }
.jl-gal-arrow:hover { background: rgba(207, 165, 106, .2); }
.jl-gal-prev { left: 12px; }
.jl-gal-next { right: 12px; }

.jl-gal-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 7px;
}
.jl-gal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: background .2s, width .2s;
}
.jl-gal-dot.is-active { background: var(--jl-gold-2); width: 18px; border-radius: 4px; }

.jl-gal-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.jl-gal-thumb {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--jl-line-soft);
    background: #0a2138;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}
.jl-gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jl-gal-thumb:hover { transform: translateY(-2px); }
.jl-gal-thumb.is-active { border-color: var(--jl-gold); box-shadow: 0 0 0 1px var(--jl-gold); }

/* ---------- SUMMARY ---------- */
.jl-tagline {
    display: inline-block;
    color: var(--jl-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.jl-title {
    color: var(--jl-heading);
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.18;
    font-weight: 600;
    margin: 0 0 14px;
}
.jl-short-desc {
    color: var(--jl-muted);
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 16px;
}
.jl-short-desc p { margin: 0; }

/* Rating */
.jl-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.jl-stars {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 2px;
}
.jl-stars-bg { color: rgba(255, 255, 255, .18); display: block; line-height: 1; }
.jl-stars-fg {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    color: var(--jl-gold-2);
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
    width: var(--rate, 0%);
}
.jl-rating-count { color: var(--jl-muted); font-size: 14px; line-height: 1; }

/* Price */
.jl-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.jl-price-now { color: var(--jl-gold-2); font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.jl-price-now .woocommerce-Price-amount { color: inherit; }
.jl-price-old { color: var(--jl-muted); text-decoration: line-through; font-size: 18px; }
.jl-price-old .woocommerce-Price-amount { color: inherit; }
.jl-price-off {
    background: rgba(207, 165, 106, .16);
    color: var(--jl-gold-2);
    border: 1px solid var(--jl-line);
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

/* Specs */
.jl-specs { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.jl-spec { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; }
.jl-spec-k { display: flex; align-items: center; gap: 9px; color: var(--jl-muted); font-size: 15px; }
.jl-row-ic { width: 18px; height: 18px; color: var(--jl-gold); flex: none; }
.jl-spec-v { color: var(--jl-heading); font-size: 15px; font-weight: 500; }
.jl-spec-size .jl-spec-v { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Select (override style mặc định của Flatsome/WooCommerce) */
.jl-select { position: relative; display: inline-flex; align-items: center; min-width: 220px; }
.jl-pdp .jl-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 46px;
    line-height: 1.4;
    background: var(--jl-navy-2) !important;
    background-image: none !important;
    color: var(--jl-heading) !important;
    border: 1px solid var(--jl-line) !important;
    border-radius: 10px !important;
    padding: 0 38px 0 14px !important;
    margin: 0 !important;
    font-size: 14.5px;
    box-shadow: none !important;
    text-shadow: none;
    cursor: pointer;
}
.jl-pdp .jl-select select:focus {
    border-color: var(--jl-gold) !important;
    box-shadow: 0 0 0 1px var(--jl-gold) !important;
    outline: none;
}
/* Danh sách option khi mở (nền sáng để đọc rõ trên mọi OS) */
.jl-pdp .jl-select select option { color: #0b3f66; background: #fff; }
.jl-select svg { position: absolute; right: 12px; color: var(--jl-gold); pointer-events: none; z-index: 1; }
.jl-size-guide { display: inline-flex; align-items: center; gap: 6px; color: var(--jl-gold); font-size: 13.5px; text-decoration: none; }
.jl-size-guide:hover { color: var(--jl-gold-2); }

/* Quantity */
.jl-qty {
    display: inline-flex;
    align-items: stretch;
    height: 46px;
    border: 1px solid var(--jl-line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--jl-navy-2);
}
.jl-pdp .jl-qty .jl-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    min-height: 0;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--jl-gold-2) !important;
    font-size: 22px;
    font-weight: 400;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background .2s;
}
.jl-pdp .jl-qty .jl-qty-btn:hover { background: rgba(207, 165, 106, .14) !important; }
.jl-pdp .jl-qty .jl-qty-input {
    width: 56px;
    height: 100%;
    line-height: 44px !important;
    padding: 0 !important;
    border: none;
    border-left: 1px solid var(--jl-line-soft) !important;
    border-right: 1px solid var(--jl-line-soft) !important;
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--jl-heading) !important;
    text-align: center;
    font-size: 16px;
    margin: 0 !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
    appearance: textfield;
}
.jl-pdp .jl-qty .jl-qty-input:focus { outline: none; box-shadow: none !important; }
.jl-qty-input::-webkit-outer-spin-button,
.jl-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Actions */
.jl-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.jl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s;
    border: 1px solid transparent;
}
.jl-btn:active { transform: translateY(1px); }
.jl-btn-cart {
    background: transparent;
    color: var(--jl-gold-2);
    border-color: var(--jl-gold);
}
.jl-btn-cart:hover { background: rgba(207, 165, 106, .12); }
.jl-btn-buy {
    background: linear-gradient(135deg, var(--jl-gold-2), var(--jl-gold));
    color: #2a1c06;
    box-shadow: 0 12px 26px rgba(207, 165, 106, .25);
}
.jl-btn-buy:hover { box-shadow: 0 16px 34px rgba(207, 165, 106, .4); color: #2a1c06; }
.jl-btn-ghost {
    background: transparent;
    color: var(--jl-gold-2);
    border-color: var(--jl-line);
    height: 48px;
    padding: 0 26px;
    font-size: 13px;
}
.jl-btn-ghost:hover { background: rgba(207, 165, 106, .1); border-color: var(--jl-gold); }

/* Trust badges */
.jl-trust {
    list-style: none;
    margin: 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--jl-line-soft);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.jl-trust li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 9px;
    color: var(--jl-muted);
    font-size: 12.5px;
    line-height: 1.4;
}
.jl-trust-ic {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--jl-line);
    color: var(--jl-gold);
}
.jl-trust-ic svg { width: 20px; height: 20px; }

/* ---------- CARDS ---------- */
.jl-cards {
    margin-top: clamp(28px, 4vw, 48px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(18px, 2.5vw, 28px);
}
.jl-card {
    background:
        radial-gradient(120% 100% at 100% 0%, rgba(207, 165, 106, .08), transparent 55%),
        linear-gradient(160deg, var(--jl-card-2), var(--jl-card));
    border: 1px solid var(--jl-line-soft);
    border-radius: 18px;
    padding: clamp(22px, 2.6vw, 32px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.jl-card-title {
    color: var(--jl-gold);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 18px;
}
.jl-card-subtitle {
    color: var(--jl-gold);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

/* Checklist */
.jl-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.jl-checklist li {
    position: relative;
    padding-left: 32px;
    color: var(--jl-text);
    font-size: 15px;
    line-height: 1.6;
}
.jl-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--jl-gold);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfa56a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Card: ý nghĩa (có hình minh hoạ) */
.jl-card-meaning { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
.jl-card-figure {
    align-self: stretch;
    min-height: 200px;
    border-radius: 14px;
    background:
        radial-gradient(60% 50% at 50% 38%, rgba(207, 165, 106, .35), transparent 70%),
        linear-gradient(160deg, #0e3057, #081d34);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.jl-crystal {
    width: 72px;
    height: 110px;
    background: linear-gradient(160deg, rgba(231, 198, 144, .9), rgba(207, 165, 106, .45));
    clip-path: polygon(50% 0, 100% 26%, 84% 100%, 16% 100%, 0 26%);
    box-shadow: 0 0 50px rgba(207, 165, 106, .6);
    position: relative;
}
.jl-crystal::after {
    content: "";
    position: absolute;
    left: -34px;
    bottom: 6px;
    width: 46px;
    height: 74px;
    background: linear-gradient(160deg, rgba(231, 198, 144, .7), rgba(207, 165, 106, .3));
    clip-path: polygon(50% 0, 100% 26%, 84% 100%, 16% 100%, 0 26%);
}

/* Card: hợp mệnh + chakra */
.jl-elements { display: flex; gap: 22px; margin-bottom: 16px; }
.jl-el { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.jl-el-coin {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
    border: 1px solid var(--jl-line-soft);
    background: rgba(255, 255, 255, .05);
    color: var(--jl-muted);
}
.jl-el.is-primary .jl-el-coin {
    background: linear-gradient(150deg, var(--jl-gold-2), var(--jl-gold));
    color: #2a1c06;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(207, 165, 106, .35);
}
.jl-el-name { font-size: 13px; color: var(--jl-muted); }
.jl-el.is-primary .jl-el-name { color: var(--jl-gold-2); }
.jl-el-avoid { color: var(--jl-muted); font-size: 14px; margin: 0; }
.jl-el-avoid span { color: var(--jl-text); }

.jl-chakra { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--jl-line-soft); }
.jl-chakra-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.jl-chakra-text { display: grid; gap: 6px; }
.jl-chakra-text strong { color: var(--jl-heading); font-size: 15.5px; font-weight: 600; }
.jl-chakra-text span { color: var(--jl-muted); font-size: 14px; line-height: 1.5; }
.jl-chakra-fig { width: 62px; height: 78px; color: var(--jl-gold); flex: none; opacity: .85; }

/* Card: giấy kiểm định */
.jl-card-cert { display: grid; grid-template-columns: 1fr 200px; gap: 24px; align-items: center; }
.jl-cert-desc { color: var(--jl-muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 22px; }
.jl-cert-figure { position: relative; height: 150px; }
.jl-cert-paper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 140px;
    border-radius: 6px;
    background: linear-gradient(160deg, #f4f6fb, #d8e0ee);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
    background-image:
        repeating-linear-gradient(180deg, rgba(10, 35, 66, .14) 0 1px, transparent 1px 9px);
}
.jl-cert-paper:nth-child(1) { transform: translate(-72%, -52%) rotate(-12deg); }
.jl-cert-paper:nth-child(2) { transform: translate(-50%, -50%) rotate(-2deg); }
.jl-cert-paper:nth-child(3) { transform: translate(-28%, -48%) rotate(9deg); }

/* Card: cam kết */
.jl-card-promise { display: grid; grid-template-columns: 1fr 200px; gap: 24px; align-items: center; }
.jl-promise-figure { display: flex; align-items: center; justify-content: center; }
.jl-promise-box {
    width: 170px;
    height: 130px;
    border-radius: 12px;
    background: linear-gradient(155deg, #0f3057, #0a2038);
    border: 1px solid var(--jl-line);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .4), inset 0 0 30px rgba(207, 165, 106, .08);
}
.jl-promise-logo-img {
    width: 76%;
    height: auto;
    max-height: 84px;
    object-fit: contain;
    display: block;
}

/* ---------- Sản phẩm thường mua cùng ---------- */
.jl-fbt { margin-top: clamp(36px, 5vw, 64px); }
.jl-fbt-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 0 28px;
}
.jl-fbt-title {
    color: var(--jl-gold);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-align: center;
}
.jl-fbt-orn {
    flex: 1 1 auto;
    max-width: 220px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--jl-line), transparent);
}

.jl-fbt-carousel { position: relative; }
.jl-fbt-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 22px) / 4);
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 10px;
    scrollbar-width: none;
}
.jl-fbt-track::-webkit-scrollbar { display: none; }

.jl-fbt-card {
    scroll-snap-align: start;
    background: linear-gradient(160deg, var(--jl-card-2), var(--jl-card));
    border: 1px solid var(--jl-line-soft);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.jl-fbt-card:hover {
    transform: translateY(-4px);
    border-color: var(--jl-line);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .38);
}
.jl-fbt-thumb { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.jl-fbt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.jl-fbt-card:hover .jl-fbt-thumb img { transform: scale(1.05); }
.jl-fbt-body { padding: 16px 16px 18px; }
.jl-fbt-name {
    margin: 0 0 8px;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
    min-height: 2.8em;
}
.jl-fbt-name a {
    color: var(--jl-heading);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.jl-fbt-name a:hover { color: var(--jl-gold-2); }
.jl-fbt-price { color: var(--jl-gold-2); font-size: 16px; font-weight: 700; }
.jl-fbt-price .woocommerce-Price-amount { color: inherit; }
.jl-fbt-price del { color: var(--jl-muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.jl-fbt-price ins { text-decoration: none; }

.jl-fbt-arrow {
    position: absolute;
    top: calc(50% - 30px);
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--jl-line);
    background: rgba(8, 22, 40, .75);
    color: var(--jl-gold-2);
    cursor: pointer;
    transition: background .2s, opacity .2s;
}
.jl-fbt-arrow svg { width: 20px !important; height: 20px !important; flex: none; }
.jl-fbt-arrow:hover { background: rgba(207, 165, 106, .2); }
.jl-fbt-arrow[disabled] { opacity: .3; cursor: default; }
.jl-fbt-prev { left: -14px; }
.jl-fbt-next { right: -14px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .jl-pdp-top { grid-template-columns: 1fr; }
    .jl-cards { grid-template-columns: 1fr; }
    .jl-card-meaning,
    .jl-card-cert,
    .jl-card-promise { grid-template-columns: 1fr; }
    .jl-card-figure { min-height: 170px; }
    .jl-cert-figure { order: -1; }
    .jl-fbt-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px; }
    .jl-fbt-prev { left: 0; }
    .jl-fbt-next { right: 0; }
}
@media (max-width: 680px) {
    .jl-fbt-track { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; }
}
@media (max-width: 560px) {
    .jl-spec { grid-template-columns: 1fr; gap: 6px; }
    .jl-actions { grid-template-columns: 1fr; }
    .jl-trust { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .jl-gal-thumbs { grid-template-columns: repeat(5, 1fr); gap: 8px; }
    .jl-select { min-width: 0; width: 100%; }
    .jl-fbt-track { grid-auto-columns: 70%; }
}
