/* =====================================================
   SCENTARA — SINGLE PRODUCT PAGE
   css/single-product.css
   Loaded only on single product pages
===================================================== */

.scentara-single-product { padding-bottom: 0; }

/* =====================================================
   STICKY ATC BAR
===================================================== */
.sticky-atc {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    background: rgba(42, 31, 45, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201, 169, 110, 0.18);
    padding: 0.9rem var(--gutter);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.sticky-atc.visible { transform: translateY(0); }
.sticky-atc-info { flex: 1; min-width: 100px; }
.sticky-atc-brand {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}
.sticky-atc-name {
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--ivory);
}
.sticky-atc-price {
    font-family: var(--display);
    font-size: 1.3rem;
    color: var(--ivory);
}
.sticky-atc-btn {
    padding: 0.82rem 2.2rem;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: var(--radius);
    font-family: var(--body);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--ease);
    white-space: nowrap;
}
.sticky-atc-btn:hover { background: var(--gold-lt); }

/* =====================================================
   TWO-COLUMN LAYOUT
===================================================== */
.scentara-single-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(2rem, 4vw, 4rem) 0 clamp(2.5rem, 4vw, 4rem);
    align-items: start;
}

/* =====================================================
   GALLERY
===================================================== */
.scentara-gallery-col {}

.gallery-main {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background: radial-gradient(ellipse at 40% 30%, #3D2040 0%, #1A0E1F 55%, #0D0B0E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: clamp(5rem, 15vw, 9rem);
    opacity: 1;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(201, 169, 110, 0.1);
}
.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease;
}
.gallery-sale-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--rose);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.28rem 0.7rem;
    border-radius: 2px;
}

.gallery-thumbs {
    display: flex;
    gap: 0.6rem;
}
.g-thumb {
    flex: 1;
    aspect-ratio: 1;
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--plum-lt);
    border: 1px solid rgba(201, 169, 110, 0.1);
    overflow: hidden;
    padding: 0;
    transition: border-color var(--ease);
}
.g-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.g-thumb.on,
.g-thumb:hover { border-color: var(--gold); }

/* Share row */
.scentara-share-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.2rem;
}
.share-row-label {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.35);
}
.share-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 110, 0.2);
    background: transparent;
    color: rgba(245, 239, 230, 0.5);
    display: grid;
    place-items: center;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--ease), color var(--ease);
}
.share-social-btn:hover { border-color: var(--gold); color: var(--gold); }
.share-social-btn.copied { border-color: var(--green); color: var(--green); }

/* =====================================================
   PRODUCT DETAILS / SUMMARY
===================================================== */
.scentara-summary-col {}

.pd-brand {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.28rem;
    text-decoration: none;
}
.pd-brand:hover { color: var(--gold-lt); }

.pd-name {
    font-family: var(--display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--ivory);
    margin: 0 0 0.6rem;
}

.pd-rating {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.pd-rating .stars {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.pd-rating .rating-n {
    font-size: 0.74rem;
    color: rgba(245, 239, 230, 0.45);
}
.pd-rating-link {
    font-size: 0.72rem;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    padding-bottom: 1px;
    transition: color var(--ease), border-color var(--ease);
}
.pd-rating-link:hover { color: var(--gold-lt); border-color: var(--gold-lt); }

/* Delivery estimate */
.delivery-estimate {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: rgba(93, 187, 138, 0.08);
    border: 1px solid rgba(93, 187, 138, 0.2);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1.4rem;
}
.de-icon { font-size: 1.1rem; flex-shrink: 0; line-height: 1.4; }
.de-text {
    font-size: 0.78rem;
    color: rgba(245, 239, 230, 0.7);
    line-height: 1.55;
}
.de-text strong { color: var(--green); }

/* Price */
.pd-price {
    font-family: var(--display);
    font-size: 2rem;
    color: var(--ivory);
    margin-bottom: 1.6rem;
}
.pd-price del { font-size: 1.2rem; color: var(--dusk); opacity: 1; margin-right: 0.5rem; text-decoration: line-through; }
.pd-price ins { text-decoration: none; }
.pd-price .woocommerce-Price-amount { font-family: var(--display); }
.pd-price .woocommerce-Price-currencySymbol { font-size: 0.7em; }

/* Scent notes */
.scent-notes {
    background: var(--plum);
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: var(--radius);
    padding: 1.3rem;
    margin-bottom: 1.6rem;
}
.sn-title {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
}
.sn-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    text-align: center;
}
.sn-layer {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.36);
    margin-bottom: 0.28rem;
}
.sn-list {
    font-family: var(--display);
    font-style: italic;
    font-size: 0.92rem;
    color: var(--ivory);
    line-height: 1.45;
}

/* Fragrance profile bars */
.fragrance-bars {
    background: var(--plum);
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: var(--radius);
    padding: 1.3rem;
    margin-bottom: 1.6rem;
}
.fb-title {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.fb-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.fb-row:last-child { margin-bottom: 0; }
.fb-label { font-size: 0.72rem; color: rgba(245, 239, 230, 0.55); width: 80px; flex-shrink: 0; }
.fb-track { flex: 1; height: 4px; background: rgba(245, 239, 230, 0.08); border-radius: 2px; overflow: hidden; }
.fb-fill { height: 100%; background: linear-gradient(to right, var(--gold), var(--gold-lt)); border-radius: 2px; }
.fb-value { font-size: 0.68rem; color: rgba(245, 239, 230, 0.4); width: 60px; text-align: right; flex-shrink: 0; }

/* =====================================================
   SIZE SELECTOR (swatches)
===================================================== */
.size-selector { margin-bottom: 1.6rem; }
.s-label {
    font-size: 0.63rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.42);
    margin-bottom: 0.75rem;
    display: block;
}
.size-opts { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.size-opt {
    padding: 0.52rem 1.05rem;
    background: transparent;
    border: 1px solid rgba(201, 169, 110, 0.2);
    color: var(--ivory);
    border-radius: var(--radius);
    font-family: var(--body);
    font-size: 0.76rem;
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.size-opt.on,
.size-opt:hover { border-color: var(--gold); background: rgba(201, 169, 110, 0.1); color: var(--gold); }
.size-opt.unavailable { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* Hidden native variation form */
.scentara-hidden-variation-selects { display: none !important; }

/* =====================================================
   QTY + ADD TO CART
===================================================== */
.qty-atc {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}
.qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}
.qty-btn2 {
    width: 40px;
    height: 52px;
    background: var(--plum);
    border: none;
    color: var(--ivory);
    font-size: 1rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background var(--ease);
}
.qty-btn2:hover { background: var(--plum-lt); }
.qty-n-input {
    width: 50px;
    height: 52px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--ivory);
    background: transparent;
    border: none;
    border-left: 1px solid rgba(201, 169, 110, 0.1);
    border-right: 1px solid rgba(201, 169, 110, 0.1);
    outline: none;
    -moz-appearance: textfield;
    font-family: var(--body);
}
.qty-n-input::-webkit-outer-spin-button,
.qty-n-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-atc-big {
    flex: 1;
    min-width: 160px;
    height: 52px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: var(--radius);
    font-family: var(--body);
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--ease);
}
.btn-atc-big:hover:not(:disabled) { background: var(--gold-lt); }
.btn-atc-big.added { background: var(--green); }

.btn-wish-big {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(201, 169, 110, 0.26);
    background: transparent;
    color: var(--gold);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background var(--ease), color var(--ease);
    flex-shrink: 0;
}
.btn-wish-big:hover { background: rgba(201, 169, 110, 0.1); }
.btn-wish-big.in-wishlist { color: var(--rose); border-color: var(--rose); }

/* Sample button */
.btn-sample {
    display: block;
    width: 100%;
    padding: 0.78rem;
    background: transparent;
    border: 1px solid rgba(201, 169, 110, 0.16);
    color: var(--ivory);
    border-radius: var(--radius);
    font-family: var(--body);
    font-size: 0.73rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    text-align: center;
    text-decoration: none;
    transition: border-color var(--ease), background var(--ease);
}
.btn-sample:hover { border-color: var(--gold); background: rgba(201, 169, 110, 0.06); color: var(--ivory); }

/* Gift wrap */
.gift-wrap-opt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--plum);
    border: 1px solid rgba(201, 169, 110, 0.12);
    border-radius: var(--radius);
    margin-bottom: 1.3rem;
    cursor: pointer;
    transition: border-color var(--ease);
}
.gift-wrap-opt:hover { border-color: rgba(201, 169, 110, 0.3); }
.gift-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 3px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--black);
    transition: background var(--ease), border-color var(--ease);
}
.gift-wrap-opt[aria-checked="true"] .gift-checkbox {
    background: var(--gold);
    border-color: var(--gold);
}
.gift-wrap-text { font-size: 0.8rem; color: rgba(245, 239, 230, 0.7); flex: 1; }
.gift-wrap-price { font-size: 0.76rem; color: var(--gold); font-weight: 500; }

/* Product meta */
.pd-meta {
    font-size: 0.74rem;
    color: rgba(245, 239, 230, 0.38);
    line-height: 2.1;
    border-top: 1px solid rgba(201, 169, 110, 0.1);
    padding-top: 1.2rem;
    margin-top: 0.3rem;
}
.pd-meta span { color: rgba(245, 239, 230, 0.62); }
.pd-meta a { color: var(--gold); text-decoration: none; }
.pd-meta a:hover { color: var(--gold-lt); }
.in-stock { color: var(--green) !important; }
.out-of-stock { color: var(--rose) !important; }

/* =====================================================
   FREQUENTLY BOUGHT TOGETHER
===================================================== */
.fbt-section { padding: 0 0 3rem; }
.fbt-inner {
    background: var(--plum);
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: var(--radius);
    padding: 2rem;
}
.fbt-title {
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}
.fbt-products {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.fbt-item { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 180px; }
.fbt-img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    background: var(--plum-lt);
    border: 1px solid rgba(201, 169, 110, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}
.fbt-img img { width: 100%; height: 100%; object-fit: cover; }
.fbt-brand { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.15rem; }
.fbt-name { font-family: var(--display); font-size: 1rem; color: var(--ivory); }
.fbt-price { font-size: 0.82rem; color: rgba(245, 239, 230, 0.55); margin-top: 0.15rem; }
.fbt-price .woocommerce-Price-amount { font-size: inherit; }
.fbt-plus { font-size: 1.5rem; color: rgba(201, 169, 110, 0.3); flex-shrink: 0; }
.fbt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(201, 169, 110, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}
.fbt-total { font-size: 0.85rem; color: rgba(245, 239, 230, 0.6); }
.fbt-total strong { font-family: var(--display); font-size: 1.4rem; color: var(--ivory); margin-left: 0.4rem; }

/* =====================================================
   PRODUCT TABS
===================================================== */
.tabs-section { padding: 0 0 4rem; }
.tab-nav {
    display: flex;
    border-bottom: 1px solid rgba(201, 169, 110, 0.12);
    margin-bottom: 2rem;
    overflow-x: auto;
    gap: 0;
}
.tab-btn {
    padding: 0.78rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.38);
    cursor: pointer;
    margin-bottom: -1px;
    transition: color var(--ease), border-color var(--ease);
    white-space: nowrap;
}
.tab-btn.on { color: var(--gold); border-bottom-color: var(--gold); }
.tab-content {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.9;
    color: rgba(245, 239, 230, 0.6);
    max-width: 680px;
}
.tab-content p + p { margin-top: 1.1rem; }
.tab-panel[hidden] { display: none; }

/* =====================================================
   REVIEWS
===================================================== */
.review-summary {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 1.8rem;
    background: var(--plum);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    scroll-margin-top: 100px;
}
.rs-score { text-align: center; }
.rs-number { font-family: var(--display); font-size: 3.5rem; font-weight: 300; color: var(--ivory); line-height: 1; }
.rs-stars { color: var(--gold); font-size: 1rem; margin: 0.3rem 0; }
.rs-count { font-size: 0.72rem; color: rgba(245, 239, 230, 0.4); }
.rs-bars { flex: 1; min-width: 180px; }
.rs-bar-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; }
.rs-bar-label { font-size: 0.7rem; color: rgba(245, 239, 230, 0.5); width: 50px; flex-shrink: 0; }
.rs-bar-track { flex: 1; height: 5px; background: rgba(245, 239, 230, 0.08); border-radius: 3px; overflow: hidden; }
.rs-bar-fill { height: 100%; background: var(--gold); border-radius: 3px; }
.rs-bar-n { font-size: 0.68rem; color: rgba(245, 239, 230, 0.38); width: 28px; text-align: right; }

.review-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
    margin-top: 1.5rem;
}
.review-card {
    background: var(--plum);
    border-radius: var(--radius);
    padding: 1.3rem;
    border: 1px solid rgba(201, 169, 110, 0.08);
}
.review-stars { color: var(--gold); font-size: 0.78rem; margin-bottom: 0.5rem; }
.review-text { font-size: 0.8rem; font-weight: 300; color: rgba(245, 239, 230, 0.6); line-height: 1.7; margin-bottom: 0.7rem; }
.review-author { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245, 239, 230, 0.3); }
.review-verified { color: var(--green); }

/* Review form */
#scentara-review-form-wrap #respond {
    background: var(--plum);
    border-radius: var(--radius);
    padding: 1.8rem;
    border: 1px solid rgba(201, 169, 110, 0.1);
}
#scentara-review-form-wrap #reply-title {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--ivory);
    margin-bottom: 1.2rem;
}
#scentara-review-form-wrap label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.5);
    margin-bottom: 0.5rem;
}
#scentara-review-form-wrap select,
#scentara-review-form-wrap textarea,
#scentara-review-form-wrap input[type="text"],
#scentara-review-form-wrap input[type="email"] {
    width: 100%;
    background: var(--plum-lt);
    border: 1px solid rgba(201, 169, 110, 0.16);
    border-radius: var(--radius);
    color: var(--ivory);
    font-family: var(--body);
    padding: 0.7rem 0.9rem;
    outline: none;
    transition: border-color var(--ease);
    margin-bottom: 1rem;
}
#scentara-review-form-wrap select:focus,
#scentara-review-form-wrap textarea:focus,
#scentara-review-form-wrap input:focus { border-color: var(--gold); }
#scentara-review-form-wrap .comment-form-rating { margin-bottom: 0.5rem; }

/* =====================================================
   RELATED PRODUCTS
===================================================== */
.related-section { background: var(--plum); padding: clamp(3rem, 6vw, 5rem) 0; }
.related-section .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
    .related-section .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 840px) {
    .scentara-single-wrap { grid-template-columns: 1fr; gap: 2rem; }
    .review-list { grid-template-columns: 1fr; }
    .fbt-products { flex-direction: column; align-items: flex-start; }
    .fbt-plus { display: none; }
    .related-section .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .sticky-atc { padding: 0.75rem 1rem; }
    .sn-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 540px) {
    .qty-atc { flex-wrap: wrap; }
    .btn-atc-big { min-width: 100%; }
    .review-summary { flex-direction: column; text-align: center; }
    .rs-bars { width: 100%; }
    .related-section .grid-4 { grid-template-columns: 1fr; }
    .sn-row { grid-template-columns: 1fr; gap: 0.5rem; text-align: left; }
    .gallery-thumbs { flex-wrap: wrap; }
    .g-thumb { flex: 0 0 calc(25% - 0.45rem); }
    .sticky-atc-name { font-size: 1rem; }
    .sticky-atc-price { font-size: 1.1rem; }
}
