/**
 * Perfume detail — NoseTime-style layout (xiangshui page)
 * https://www.nosetime.com/xiangshui/449262-aimashi-dadi-hermes-terre-d.html
 */

.pd-nosetime.pd-page {
    max-width: 1080px;
    padding: 20px 16px 40px;
    color: var(--lux-text);
}

.pd-nosetime .pd-card.pd-top,
.pd-nosetime .pd-section,
.pd-nosetime .pd-side-card {
    background: var(--lux-panel-card, var(--lux-panel));
    border: 1px solid var(--lux-line);
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(42, 36, 28, 0.06);
}

/* —— Top card: image | meta | score (NoseTime 3-col) —— */
.pd-nosetime .pd-top {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) 236px !important;
    gap: 0 !important;
    padding: 22px 24px !important;
    align-items: stretch !important;
}

.pd-nosetime .pd-image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-inline-end: 22px;
    border-inline-end: 1px solid var(--lux-line);
}

.pd-nosetime .pd-main-image {
    width: 100% !important;
    max-width: 220px;
    height: 280px !important;
    margin: 0 auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f3ee;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.pd-nosetime .pd-main-image img {
    max-width: 88%;
    max-height: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pd-nosetime .pd-user-rate {
    margin-top: 12px;
    text-align: center;
    font-size: 11px;
    color: var(--lux-muted);
    line-height: 1.5;
}

.pd-nosetime .pd-user-rate-label {
    display: block;
    margin-bottom: 4px;
}

.pd-nosetime .pd-user-rate-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--lux-link-gold, var(--lux-gold));
    text-decoration: none;
    font-size: 11px;
}

.pd-nosetime .pd-user-rate-link:hover {
    text-decoration: underline;
}

.pd-nosetime .pd-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-inline: 24px;
    border-inline-end: 1px solid var(--lux-line);
}

.pd-nosetime .pd-title {
    color: var(--lux-heading, var(--lux-gold));
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 14px;
    line-height: 1.35;
}

.pd-nosetime .pd-title small {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 400;
    color: var(--lux-text);
}

.pd-nosetime .pd-meta--nosetime {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.pd-nosetime .pd-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
    margin: 0 0 6px;
    padding: 0;
    font-size: 13px;
    line-height: 1.65;
}

.pd-nosetime .pd-meta-row .label {
    flex-shrink: 0;
    color: var(--lux-muted);
    font-weight: 400;
}

.pd-nosetime .pd-meta-row .value {
    flex: 1;
    min-width: 0;
    color: var(--lux-text);
}

.pd-nosetime .pd-meta-row a {
    color: var(--lux-link-gold, var(--lux-gold));
    text-decoration: none;
}

.pd-nosetime .pd-meta-row a:hover {
    text-decoration: underline;
}

.pd-nosetime .pd-actions--inline {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--lux-line);
}

.pd-nosetime .pd-actions--inline .pd-action {
    flex: 1 1 0;
    min-height: 46px;
    min-width: 90px;
    border-radius: 4px;
    border-color: var(--lux-line);
    background: var(--lux-panel-2, rgba(255, 255, 255, 0.04));
    color: var(--lux-text);
    font-size: 11px;
    flex-direction: row;
    gap: 6px;
    padding: 8px 10px;
}

.pd-nosetime .pd-actions--inline .pd-action i {
    font-size: 14px;
}

.pd-nosetime .pd-action.buy {
    background: linear-gradient(135deg, #e4c978, #a67c3d);
    border-color: transparent;
    color: #1a1510;
    font-weight: 600;
}

/* Score panel (right column) */
.pd-nosetime .pd-score-panel {
    padding-inline-start: 22px;
    min-width: 0;
}

.pd-nosetime .pd-score-title {
    font-size: 12px;
    color: var(--lux-muted);
    margin-bottom: 8px;
}

.pd-nosetime .pd-score-line {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.pd-nosetime .pd-score-num {
    color: var(--lux-gold);
    font-size: 40px !important;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pd-nosetime .pd-score-stars {
    padding-bottom: 2px;
}

.pd-nosetime .pd-score-sub {
    color: var(--lux-muted);
    font-size: 11px;
    margin-top: 4px;
}

.pd-nosetime .pd-rating-bars {
    margin-top: 6px;
}

.pd-nosetime .pd-bar-row {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--lux-muted);
    margin: 4px 0;
}

.pd-nosetime .pd-bar-label,
.pd-nosetime .pd-bar-pct {
    font-variant-numeric: tabular-nums;
}

.pd-nosetime .pd-bar {
    height: 8px;
    background: var(--lux-line);
    border-radius: 4px;
    overflow: hidden;
}

.pd-nosetime .pd-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #e8c98a, var(--lux-gold));
    border-radius: 4px;
}

.pd-nosetime .pd-longevity-row {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--lux-line);
}

.pd-nosetime .pd-longevity-chip {
    display: inline-block;
    margin: 6px 0 8px;
    font-size: 11px;
    color: var(--lux-gold);
}

.pd-nosetime .pd-bar--longevity {
    margin-top: 2px;
}

/* —— Lower layout: main + sidebar —— */
.pd-nosetime .pd-layout {
    grid-template-columns: minmax(0, 1fr) 220px !important;
    gap: 16px !important;
    align-items: start;
    margin-top: 14px;
}

.pd-nosetime aside {
    min-width: 0;
}

.pd-nosetime .pd-section {
    padding: 14px 16px !important;
    margin-bottom: 14px !important;
}

.pd-nosetime .pd-section-title {
    color: var(--lux-heading, var(--lux-text));
    border-bottom: 1px solid var(--lux-line);
    font-size: 14px !important;
    font-weight: 600;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
}

/* Note block — NoseTime-style horizontal row */
.pd-nosetime .pd-note-section {
    background: var(--lux-panel-card, var(--lux-panel)) !important;
}

.pd-nosetime .pd-note-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.pd-nosetime .pd-note-head-title {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.pd-nosetime .pd-note-head-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px !important;
    color: var(--lux-gold);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.pd-nosetime .pd-note-head-link:hover {
    opacity: 0.85;
}

.pd-nosetime .pd-note-sub {
    margin: 0 0 14px;
    font-size: 12px !important;
    line-height: 1.6;
    color: var(--lux-muted);
}

.pd-nosetime .pd-note-row {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 12px 8px;
    align-items: start;
    overflow: visible;
    padding: 0;
    margin: 0;
}

.pd-nosetime .pd-note-tile {
    width: auto;
    min-width: 0;
    text-align: center;
    background: transparent;
}

.pd-nosetime .pd-note-tile-media {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    margin: 0 auto 8px;
    display: block;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(184, 145, 78, 0.18);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pd-nosetime .pd-note-tile:hover .pd-note-tile-media {
    transform: scale(1.05);
    border-color: var(--lux-gold);
}

.pd-nosetime .pd-note-tile-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.pd-nosetime .pd-note-tile--add .pd-note-tile-media--add {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(184, 145, 78, 0.4);
    background: rgba(184, 145, 78, 0.03);
    color: rgba(184, 145, 78, 0.6);
    font-size: 24px;
    border-radius: 12px;
}

.pd-nosetime .pd-note-tile--add:hover .pd-note-tile-media--add,
.pd-nosetime .pd-note-tile--add:focus-visible .pd-note-tile-media--add {
    border-color: var(--lux-gold);
    color: var(--lux-gold);
    background: rgba(184, 145, 78, 0.06);
}

.pd-nosetime .pd-note-tile--add .pd-note-tile-label {
    color: var(--lux-muted);
}

.pd-nosetime .pd-note-tile--add:hover .pd-note-tile-label,
.pd-nosetime .pd-note-tile--add:focus-visible .pd-note-tile-label {
    color: var(--lux-gold);
}

.pd-nosetime .pd-note-tile-label {
    font-size: 11px !important;
    padding: 0 1px;
    color: var(--lux-text);
    line-height: 1.35;
    text-align: center;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-nosetime .pd-note-tile-strength {
    margin-top: 4px;
    font-size: 10px !important;
    color: var(--lux-gold);
    opacity: 0.85;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.pd-nosetime .pd-note-tile-bar {
    width: 32px;
    height: 3px;
    background: rgba(184, 145, 78, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.pd-performance-bar {
    display: inline-block;
    vertical-align: middle;
    width: 60px;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-right: 8px;
    margin-left: 8px;
    overflow: hidden;
}

.pd-performance-bar i {
    display: block;
    height: 100%;
    background: var(--lux-gold);
    border-radius: 3px;
}

.pd-performance-text {
    font-size: 12px;
    color: var(--lux-text-muted);
}

/* Fragrance Notes (Visual Breakdown) */
.pd-visual-notes {
    margin-top: 10px;
}

.pd-visual-phase {
    margin-bottom: 24px;
}

.pd-visual-phase:last-child {
    margin-bottom: 0;
}

.pd-visual-phase-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--lux-gold);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-visual-phase-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(184, 145, 78, 0.2), transparent);
}

.pd-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 16px 12px;
}

.pd-visual-note {
    text-align: center;
}

.pd-visual-note-media {
    width: 54px;
    height: 54px;
    margin: 0 auto 6px;
    border-radius: 8px;
    border: 1px solid rgba(184, 145, 78, 0.15);
    background: #fff;
    overflow: hidden;
    padding: 2px;
}

.pd-visual-note-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.pd-visual-note-name {
    font-size: 11px;
    color: var(--lux-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pd-nosetime .pd-side-card {
    padding: 12px 12px !important;
    margin-bottom: 12px !important;
    overflow: hidden;
}

.pd-nosetime .pd-side-title {
    font-size: 12px !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: var(--lux-heading, var(--lux-gold));
}

.pd-nosetime .pd-side-link {
    display: flex;
    gap: 10px !important;
    padding: 6px 0 !important;
    margin-bottom: 0 !important;
    align-items: flex-start;
    text-decoration: none;
    width: 100%;
    min-width: 0;
    border-bottom: 1px solid rgba(184, 145, 78, 0.1);
}

.pd-nosetime .pd-side-link:last-child {
    border-bottom: 0;
    padding-bottom: 0 !important;
}

.pd-nosetime .pd-side-link:first-of-type {
    padding-top: 0 !important;
}

.pd-nosetime .pd-side-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pd-nosetime .pd-side-link .img-wrap {
    width: 42px !important;
    height: 52px !important;
    flex: 0 0 42px !important;
    border-radius: 4px;
    overflow: hidden;
    background: var(--lux-panel-2, #f5f3f0);
    border: 1px solid rgba(184, 145, 78, 0.12);
}

.pd-nosetime .pd-side-link .img-wrap--square {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
}

.pd-nosetime .pd-side-link .img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.pd-nosetime .pd-side-brand {
    display: block;
    font-size: 10px !important;
    color: var(--lux-muted);
    line-height: 1.25 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-nosetime .pd-side-name {
    font-size: 11px !important;
    line-height: 1.45 !important;
    color: var(--lux-text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.pd-nosetime .pd-side-link .rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 9px !important;
    margin-top: 2px;
    color: var(--lux-gold);
    line-height: 1;
}

.pd-nosetime .pd-side-link:hover .pd-side-name {
    color: var(--lux-gold);
}

/* Intro */
.pd-nosetime .pd-intro-body {
    font-size: 13px;
    line-height: 1.8;
    color: var(--lux-text);
}

.pd-nosetime .pd-intro-body.is-collapsed {
    max-height: 7.5em;
    overflow: hidden;
    position: relative;
}

.pd-nosetime .pd-intro-body.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5em;
    background: linear-gradient(transparent, var(--lux-panel-card, var(--lux-panel)));
}

.pd-nosetime .pd-intro-toggle {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--lux-gold);
    font-size: 12px;
    cursor: pointer;
}

/* SKU + buy bar */
.pd-nosetime .pd-sku-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px !important;
    margin-bottom: 14px !important;
}

.pd-nosetime .pd-sku {
    min-width: 68px !important;
    padding: 8px 12px 6px !important;
    border-radius: 4px !important;
    border: 1px solid var(--lux-line) !important;
    background: transparent !important;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
}

.pd-nosetime .pd-sku strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--lux-text);
}

.pd-nosetime .pd-sku-price {
    font-size: 11px !important;
    color: var(--lux-muted) !important;
}

.pd-nosetime .pd-sku.active {
    border-color: var(--lux-gold) !important;
    border-bottom-width: 2px !important;
    background: rgba(184, 145, 78, 0.1) !important;
}

.pd-nosetime .pd-sku:hover:not(.active) {
    border-color: rgba(184, 145, 78, 0.35) !important;
    background: var(--lux-panel-2, rgba(255, 255, 255, 0.03)) !important;
}

.pd-nosetime .pd-buybar--lux {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px !important;
    background: var(--lux-bg-2, rgba(255, 255, 255, 0.04)) !important;
    border-radius: 4px;
    border: 1px solid var(--lux-line);
}

.pd-nosetime .pd-buybar-label {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--lux-muted);
    white-space: nowrap;
}

.pd-nosetime .qty-control--lux,
.pd-nosetime .pd-buybar--lux .pd-buy-btn {
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
}

.pd-nosetime .qty-control--lux {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--lux-line);
    border-radius: 4px;
    overflow: hidden;
}

.pd-nosetime .qty-control--lux button,
.pd-nosetime .qty-control--lux .qty-input {
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--lux-text);
}

.pd-nosetime .qty-control--lux .qty-input {
    width: 44px;
    text-align: center;
    font-size: 14px;
}

.pd-nosetime .pd-buybar--lux .pd-buy-btn {
    flex: 1;
    min-width: 0;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 600;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(135deg, #e4c978 0%, #a67c3d 100%) !important;
    color: #1a1510 !important;
}

.pd-nosetime .pd-buybar--lux .pd-buy-btn:hover {
    filter: brightness(1.06);
}

/* Day theme tweaks */
body.elfer-day .pd-nosetime .pd-bar {
    background: #ebe6de;
}

body.elfer-day .pd-nosetime .pd-main-image {
    background: var(--lux-panel-2, #f5f3f0);
}

body.elfer-day .pd-nosetime .pd-intro-body.is-collapsed::after {
    background: linear-gradient(transparent, var(--lux-panel, #fff));
}

body.elfer-day .pd-nosetime .pd-note-tile-media {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(184, 145, 78, 0.22);
}

/* RTL (Uyghur) — keep NoseTime column order: image | info | score */
html[dir="rtl"] .pd-nosetime .pd-meta-row {
    flex-direction: row;
}

html[dir="rtl"] .pd-nosetime .pd-meta-row .label {
    text-align: start;
}

@media (max-width: 960px) {
    .pd-nosetime .pd-top {
        grid-template-columns: 200px minmax(0, 1fr) 210px !important;
        padding: 18px 16px !important;
    }

    .pd-nosetime .pd-main-image {
        height: 240px !important;
    }
}

@media (max-width: 820px) {
    .pd-nosetime .pd-top {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .pd-nosetime .pd-image-col {
        border-inline-end: 0;
        border-bottom: 1px solid var(--lux-line);
        padding-inline-end: 0;
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .pd-nosetime .pd-info {
        border-inline-end: 0;
        border-bottom: 1px solid var(--lux-line);
        padding-inline: 0;
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .pd-nosetime .pd-score-panel {
        padding-inline-start: 0;
    }

    .pd-nosetime .pd-main-image {
        max-width: 180px;
        height: 220px !important;
    }

    .pd-nosetime .pd-layout {
        grid-template-columns: 1fr !important;
    }

    .pd-nosetime .pd-actions--inline .pd-action {
        flex: 1 1 calc(33% - 8px);
    }
}

@media (max-width: 1200px) {
    .pd-nosetime .pd-note-row {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .pd-nosetime .pd-note-row {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

/* Final layout pass: stable perfume actions, purchase area and notes */
.pd-nosetime .pd-info {
    justify-content: space-between;
}

.pd-nosetime .pd-actions--inline {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px !important;
    width: 100%;
    margin-top: 18px !important;
}

.pd-nosetime .pd-actions--inline .pd-action {
    width: 100%;
    min-width: 0 !important;
    min-height: 46px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 5px;
}

.pd-nosetime .pd-layout #buy-section {
    display: none !important;
}

.pd-nosetime .pd-top-buy-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--lux-line);
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: auto !important;
}

.pd-nosetime .pd-sku-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 12px;
    scrollbar-width: none;
}

.pd-nosetime .pd-sku-list--top {
    margin-bottom: 4px;
}

.pd-nosetime .pd-sku {
    flex: 0 0 78px;
    min-height: 72px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pd-nosetime .pd-buybar--lux {
    display: grid !important;
    grid-template-columns: auto 122px minmax(160px, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    justify-content: stretch !important;
}

.pd-nosetime .pd-buybar--top {
    margin-top: 2px;
    padding: 12px;
    border: 1px solid rgba(216, 173, 106, .2);
    border-radius: 6px;
    background: rgba(216, 173, 106, .045);
}

.pd-nosetime .qty-control--lux {
    width: 118px;
}

.pd-nosetime .qty-control--lux button {
    width: 36px;
    flex: 0 0 36px;
}

.pd-nosetime .pd-buybar--lux .pd-buy-btn {
    width: 100%;
}

.pd-nosetime .pd-note-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 4px 2px 12px !important;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.pd-nosetime .pd-note-tile {
    flex: 0 0 86px !important;
    width: 86px !important;
    scroll-snap-align: start;
}

.pd-nosetime .pd-note-tile-media {
    width: 86px !important;
    height: 86px !important;
    aspect-ratio: auto !important;
    background:
        radial-gradient(circle at 34% 34%, rgba(255,255,255,.28), transparent 18%),
        linear-gradient(135deg, rgba(216,173,106,.18), rgba(118,96,180,.2)),
        #201a15 !important;
}

.pd-nosetime .pd-note-tile-media img,
.pd-visual-note-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    padding: 0 !important;
    border-radius: inherit !important;
}

.pd-nosetime .pd-note-tile-label {
    min-height: 32px;
    font-size: 10.8px !important;
}

.pd-visual-notes {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pd-visual-notes--single {
    display: block !important;
}

.pd-visual-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 2px 14px;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
}

.pd-visual-note {
    flex: 0 0 76px;
}

.pd-visual-notes--single .pd-visual-note::before {
    content: attr(data-phase);
    display: block;
    min-height: 16px;
    margin-bottom: 5px;
    color: rgba(216, 173, 106, .72);
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
}

.pd-visual-grid::-webkit-scrollbar,
.pd-nosetime .pd-note-row::-webkit-scrollbar,
.pd-nosetime .pd-sku-list::-webkit-scrollbar {
    height: 7px;
}

.pd-visual-grid::-webkit-scrollbar-track,
.pd-nosetime .pd-note-row::-webkit-scrollbar-track,
.pd-nosetime .pd-sku-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .05);
    border-radius: 999px;
}

.pd-visual-grid::-webkit-scrollbar-thumb,
.pd-nosetime .pd-note-row::-webkit-scrollbar-thumb,
.pd-nosetime .pd-sku-list::-webkit-scrollbar-thumb {
    background: rgba(216, 173, 106, .45);
    border-radius: 999px;
}

@media (max-width: 760px) {
    .pd-nosetime .pd-layout > main,
    .pd-nosetime .pd-layout > aside {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .pd-nosetime .pd-note-row,
    .pd-nosetime .pd-visual-grid,
    .pd-nosetime .pd-sku-list {
        width: 100% !important;
        max-width: 100% !important;
    }

    .pd-nosetime .pd-actions--inline,
    .pd-nosetime .pd-buybar--lux {
        grid-template-columns: 1fr;
    }

    .pd-nosetime .qty-control--lux {
        width: 100%;
        justify-content: center;
    }
}

/* 2026 product-detail layout: every option wraps in rows; no horizontal rails. */
.pd-nosetime .pd-sku-list,
.pd-nosetime .pd-note-row,
.pd-nosetime .pd-visual-grid,
.pd-similar-scroll {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    scrollbar-width: none !important;
}

.pd-nosetime .pd-sku-list::-webkit-scrollbar,
.pd-nosetime .pd-note-row::-webkit-scrollbar,
.pd-nosetime .pd-visual-grid::-webkit-scrollbar,
.pd-similar-scroll::-webkit-scrollbar {
    display: none !important;
}

.pd-nosetime .pd-sku-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)) !important;
    gap: 10px !important;
    padding: 2px 0 10px !important;
}

.pd-nosetime .pd-sku {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 68px !important;
    flex: none !important;
}

.pd-nosetime .pd-note-row {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 14px 12px !important;
    padding: 6px 0 !important;
}

.pd-nosetime .pd-note-tile {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
}

.pd-nosetime .pd-note-tile-media {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
}

.pd-nosetime .pd-intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 30%);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
}

.pd-nosetime .pd-intro-poster {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9 / 16;
    justify-self: center;
    overflow: hidden;
    border: 1px solid rgba(216, 173, 106, .24);
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 36%, rgba(216,173,106,.2), transparent 34%),
        linear-gradient(155deg, #282018, #0c0b0a 58%, #17100d);
    box-shadow: 0 24px 70px rgba(0,0,0,.26);
}

.pd-nosetime .pd-intro-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 12% 8% 22%;
}

.pd-nosetime .pd-intro-poster.has-poster img {
    object-fit: cover;
    padding: 0;
}

.pd-nosetime .pd-intro-poster figcaption {
    position: absolute;
    inset-inline: 20px;
    bottom: 28px;
    text-align: center;
    color: #f6e7cb;
}

.pd-nosetime .pd-intro-poster figcaption small {
    display: block;
    margin-bottom: 8px;
    color: rgba(216,173,106,.78);
    font: 9px/1.2 Arial,sans-serif;
    letter-spacing: .22em;
}

.pd-nosetime .pd-intro-poster figcaption strong {
    display: block;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
}

.pd-nosetime .pd-similar-scroll {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

@media (max-width: 1180px) {
    .pd-nosetime .pd-note-row { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}

@media (max-width: 900px) {
    .pd-nosetime .pd-note-row { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .pd-nosetime .pd-intro-layout { grid-template-columns: 1fr; }
    .pd-nosetime .pd-intro-poster { max-width: 310px; grid-row: 1; }
    .pd-nosetime .pd-similar-scroll { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 560px) {
    .pd-nosetime .pd-note-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .pd-nosetime .pd-sku-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .pd-nosetime .pd-buybar--lux { grid-template-columns: 1fr !important; }
    .pd-nosetime .pd-similar-scroll { grid-template-columns: 1fr !important; }
}

/* Final product composition: balanced hero, full-width score strip, no cramped rails. */
.pd-nosetime.pd-page{max-width:1180px}
.pd-nosetime .pd-top{
    grid-template-columns:minmax(250px,31%) minmax(0,1fr)!important;
    grid-template-areas:"image info" "score score";
    gap:0 28px!important;padding:clamp(20px,3vw,34px)!important;border-radius:18px!important
}
.pd-nosetime .pd-image-col{grid-area:image;padding-inline-end:28px}
.pd-nosetime .pd-main-image{width:100%!important;max-width:320px;height:auto!important;aspect-ratio:1/1;border-radius:14px}
.pd-nosetime .pd-main-image img{width:100%;height:100%;max-width:none;max-height:none;padding:8%;object-fit:contain}
.pd-nosetime .pd-info{grid-area:info;padding-inline:0;border-inline-end:0}
.pd-nosetime .pd-title{font-size:clamp(22px,2.3vw,31px);margin-bottom:20px}
.pd-nosetime .pd-title small{font-size:14px}
.pd-nosetime .pd-meta--nosetime{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 22px;align-content:start}
.pd-nosetime .pd-meta-row{display:grid;grid-template-columns:minmax(74px,auto) minmax(0,1fr);padding:8px 0;margin:0;border-bottom:1px solid rgba(216,173,106,.09)}
.pd-nosetime .pd-actions--inline{margin-top:22px!important;padding-top:18px}
.pd-nosetime .pd-actions--inline .pd-action{min-height:48px;border-radius:12px}
.pd-nosetime .pd-top-buy-panel{margin-top:18px;padding:18px;border:1px solid rgba(216,173,106,.15);border-radius:14px;background:rgba(216,173,106,.035)}
.pd-nosetime .pd-score-panel{grid-area:score;margin-top:28px;padding:22px 0 0;border-top:1px solid var(--lux-line)}
.pd-nosetime .pd-score{display:grid;grid-template-columns:minmax(150px,.75fr) minmax(250px,1.35fr) repeat(2,minmax(150px,1fr));grid-template-rows:auto 1fr;gap:8px 24px;align-items:center}
.pd-nosetime .pd-score-title{grid-column:1;grid-row:1;margin:0}
.pd-nosetime .pd-score-line{grid-column:1;grid-row:2;margin:0}
.pd-nosetime .pd-rating-bars{grid-column:2;grid-row:1/3;margin:0}
.pd-nosetime .pd-score .pd-meta-item{min-height:86px;padding:16px;border:1px solid rgba(216,173,106,.12);border-radius:12px;background:rgba(255,255,255,.018)}
.pd-nosetime .pd-score .pd-meta-item:nth-of-type(1){grid-column:3;grid-row:1/3}
.pd-nosetime .pd-score .pd-meta-item:nth-of-type(2){grid-column:4;grid-row:1/3}
.pd-nosetime .pd-note-section,.pd-nosetime .pd-intro-section{border-radius:16px;padding:clamp(18px,2.6vw,28px)!important}
.pd-nosetime .pd-note-tile--add{display:none!important}
.pd-nosetime .pd-note-tile-media{border-radius:14px!important}
.pd-nosetime .pd-note-tile-media img{transition:transform .25s ease}
.pd-nosetime .pd-note-tile:hover img{transform:scale(1.035)}

@media(max-width:900px){
    .pd-nosetime .pd-top{grid-template-columns:minmax(210px,34%) minmax(0,1fr)!important;grid-template-areas:"image info" "score score";gap:0 20px!important}
    .pd-nosetime .pd-meta--nosetime{grid-template-columns:1fr}
    .pd-nosetime .pd-score{grid-template-columns:repeat(2,minmax(0,1fr))}
    .pd-nosetime .pd-score-title{grid-column:1;grid-row:1}
    .pd-nosetime .pd-score-line{grid-column:1;grid-row:2}
    .pd-nosetime .pd-rating-bars{grid-column:2;grid-row:1/3}
    .pd-nosetime .pd-score .pd-meta-item:nth-of-type(1){grid-column:1;grid-row:3}
    .pd-nosetime .pd-score .pd-meta-item:nth-of-type(2){grid-column:2;grid-row:3}
}
@media(max-width:680px){
    .pd-nosetime .pd-top{grid-template-columns:1fr!important;grid-template-areas:"image" "info" "score";padding:18px!important}
    .pd-nosetime .pd-image-col{padding:0 0 20px;margin:0 0 20px;border-inline-end:0;border-bottom:1px solid var(--lux-line)}
    .pd-nosetime .pd-main-image{max-width:280px}
    .pd-nosetime .pd-info{padding:0;margin:0;border-bottom:0}
    .pd-nosetime .pd-score{grid-template-columns:1fr}
    .pd-nosetime .pd-score-title,.pd-nosetime .pd-score-line,.pd-nosetime .pd-rating-bars,
    .pd-nosetime .pd-score .pd-meta-item:nth-of-type(1),.pd-nosetime .pd-score .pd-meta-item:nth-of-type(2){grid-column:1;grid-row:auto}
}


/* ============================================================================
   ELFER fix 2026-10-13 — RTL .pd-meta-row: label collapsed to 0px
   ----------------------------------------------------------------------------
   site-bundle.css gives the label "order: 2" (needed by the older flex layout).
   Under the grid definition below the value is therefore auto-placed into the
   minmax(74px, auto) track and the label into minmax(0, 1fr). When the value is
   long (scent-note lists) the auto track consumes the whole row, the label track
   resolves to 0px and its letters stack vertically, one per line.
   Mirror the column order for RTL so the label always keeps a readable column
   and give the value a shrinkable, wrappable column.
   ========================================================================= */
html[dir="rtl"] .pd-nosetime .pd-meta-row,
[dir="rtl"] .pd-nosetime .pd-meta-row {
    grid-template-columns: minmax(0, 1fr) minmax(74px, max-content);
}
.pd-nosetime .pd-meta-row > .label {
    min-width: 74px;
    overflow-wrap: normal;
    word-break: normal;
}
.pd-nosetime .pd-meta-row > .value {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}
