.rpm-standard-product {
    --rpm-gold: #a67c2d;
    --rpm-ink: #171717;
    --rpm-line: #e9e3d9;
    --rpm-blue: #4f7ed8;
    --rpm-paper: #fff;
    --rpm-soft: #fcfaf5;
}

body.rpm-standard-product main.wp-block-group {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

body.rpm-standard-product header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(30, 25, 18, .06);
}

body.admin-bar.rpm-standard-product header.wp-block-template-part { top: 32px; }
body.rpm-standard-product .woocommerce-breadcrumb { margin-top: 0 !important; margin-bottom: 10px !important; }
body.rpm-standard-product footer.wp-block-template-part { margin-block-start: 12px !important; padding-top: 0 !important; }

body.rpm-standard-product .ruydar-product-hero {
    padding: 18px !important;
    border: 1px solid #eee6d9;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff 0%, #fcfaf5 55%, #f5efe4 100%) !important;
    box-shadow: 0 18px 48px rgba(43, 34, 20, .07);
    align-items: center !important;
    min-height: 500px;
}

body.rpm-standard-product .ruydar-product-hero > .wp-block-column { align-self: center !important; }
body.rpm-standard-product .ruydar-product-hero h1 {
    margin: 0 0 10px !important;
    color: #111;
    font-size: 34px !important;
    line-height: 1.35 !important;
    letter-spacing: -.6px;
}
body.rpm-standard-product .ruydar-product-hero .wp-block-post-excerpt { margin: 0 !important; }
body.rpm-standard-product .ruydar-product-hero .wp-block-woocommerce-product-price { display: none !important; }

.rpm-hero-copy { font-family: Vazirmatn, Tahoma, sans-serif; }
.rpm-hero-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 9px;
    padding: 7px 12px;
    border: 1px solid #dfc89f;
    border-radius: 999px;
    background: #fffaf1;
    color: #9a6c20;
    font-size: 13px;
    font-weight: 800;
}
.rpm-hero-en {
    direction: ltr;
    margin-bottom: 10px;
    color: #8b6528;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.25;
    text-align: right;
}
.rpm-hero-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.rpm-hero-chips span {
    padding: 5px 10px;
    border-radius: 9px;
    background: #f0efed;
    color: #4d4a45;
    font-size: 12px;
    font-weight: 600;
}
.rpm-hero-short { margin: 0 0 9px !important; color: #5c5851; font-size: 13px; line-height: 1.75; }
.rpm-hero-facts { display: flex; flex-wrap: wrap; gap: 10px 18px; color: #28251f; font-size: 13px; font-weight: 700; }
.rpm-hero-facts span + span { padding-right: 18px; border-right: 1px solid #d7c39f; }
.rpm-hero-facts span:last-child { color: #795a27; font-weight: 800; }
.rpm-hero-facts span:last-child::before { content: "✦"; display: inline-block; margin-left: 6px; color: #b58a3b; }

body.rpm-standard-product .wp-block-woocommerce-product-image-gallery { position: relative; margin: 0 !important; }
body.rpm-standard-product .woocommerce-product-gallery { min-height: 430px; }
body.rpm-standard-product .woocommerce-product-gallery .flex-viewport { position: relative !important; height: 405px !important; }
body.rpm-standard-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 405px !important;
    object-fit: contain !important;
    filter: saturate(1.12) contrast(1.05);
}
body.rpm-standard-product .woocommerce-product-gallery .flex-control-thumbs {
    position: absolute !important;
    top: 68px;
    right: 4px;
    z-index: 5;
    display: flex !important;
    flex-direction: column;
    gap: 9px !important;
    width: 66px;
    margin: 0 !important;
}
body.rpm-standard-product .woocommerce-product-gallery .flex-control-thumbs li { float: none !important; width: 66px !important; margin: 0 !important; }
body.rpm-standard-product .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 66px !important;
    height: 66px !important;
    border: 1px solid #ddd4c7 !important;
    border-radius: 11px !important;
    background: #fff !important;
    object-fit: cover !important;
    box-shadow: 0 5px 14px rgba(35, 29, 20, .06);
}
body.rpm-standard-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active { border: 2px solid #b58a3b !important; }

.rpm-volume-cards-wrap { flex: 0 0 100%; margin: 10px 0 6px; direction: rtl; font-family: Vazirmatn, Tahoma, sans-serif; }
.rpm-volume-cards-title { margin-bottom: 7px; color: #24211d; font-size: 14px; font-weight: 800; }
.rpm-volume-cards { display: grid; grid-template-columns: repeat(var(--rpm-columns, 5), minmax(0, 1fr)); gap: 7px; direction: ltr !important; }
.rpm-volume-card {
    position: relative;
    display: flex;
    min-height: 66px;
    padding: 7px 4px;
    appearance: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border: 1px solid #ded8ce;
    border-radius: 12px;
    background: #fff;
    color: #24211d;
    cursor: pointer;
    direction: rtl;
    font-family: Vazirmatn, Tahoma, sans-serif;
    transition: .2s;
}
.rpm-volume-card:hover { border-color: var(--rpm-gold); transform: translateY(-1px); }
.rpm-volume-card.is-active { border: 2px solid var(--rpm-gold); background: #fffaf1; box-shadow: 0 7px 18px rgba(166, 124, 45, .13); }
.rpm-volume-card.is-active::after {
    content: "✓";
    position: absolute;
    top: 5px;
    left: 6px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #b58a3b;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}
.rpm-volume-card.is-special { border-color: #d6b06b; background: #fff7e8; }
.rpm-volume-card__badge { color: var(--rpm-gold); font-size: 9px; font-weight: 900; line-height: 1; }
.rpm-volume-card__size { font-size: 14px; font-weight: 800; white-space: nowrap; }
.rpm-volume-card__price { color: #8b8274; font-size: 11px; font-weight: 600; white-space: nowrap; }
.rpm-native-volume-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.rpm-special-action {
    display: none;
    flex: 0 0 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 4px;
}
.rpm-special-action.is-visible { display: flex; }
.rpm-special-action strong { color: var(--rpm-gold); font-size: 18px; }
.rpm-special-action a { padding: 12px 20px; border-radius: 12px; background: #111; color: #fff !important; text-decoration: none !important; font-weight: 700; }

body.rpm-standard-product .ruydar-product-hero form.cart { display: flex !important; flex-wrap: wrap !important; align-items: stretch !important; gap: 8px !important; }
body.rpm-standard-product .ruydar-product-hero .single_variation_wrap.rpm-special-hidden { display: none !important; }
body.rpm-standard-product .ruydar-product-hero .single_variation_wrap {
    display: grid !important;
    min-height: 64px;
    flex: 0 0 100%;
    grid-template-columns: minmax(150px, .75fr) minmax(250px, 1.45fr);
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border: 1px solid #e8e0d4;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(40, 32, 20, .08);
    direction: ltr;
}
body.rpm-standard-product .woocommerce-variation { grid-column: 1; grid-row: 1; min-height: 0 !important; margin: 0 !important; direction: rtl; }
body.rpm-standard-product .woocommerce-variation-description,
body.rpm-standard-product .woocommerce-variation-availability { display: none !important; }
body.rpm-standard-product .woocommerce-variation-price { display: block !important; text-align: center; }
body.rpm-standard-product .woocommerce-variation-price .price { color: #171717 !important; font-size: 22px !important; font-weight: 900 !important; }
body.rpm-standard-product .woocommerce-variation-add-to-cart { display: block !important; grid-column: 2; grid-row: 1; margin: 0 !important; direction: rtl; }
body.rpm-standard-product .woocommerce-variation-add-to-cart .quantity { display: none !important; }
body.rpm-standard-product .single_add_to_cart_button {
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .13);
}

body.rpm-standard-product .woocommerce-tabs { margin-top: 14px !important; }
body.rpm-standard-product .woocommerce-tabs .tabs { margin-bottom: 10px !important; }
body.rpm-standard-product .woocommerce-Tabs-panel--description > h2 { display: none; }
.rpm-product-description { color: #202020; direction: rtl; font-family: Vazirmatn, Tahoma, sans-serif; line-height: 1.75; }
.rpm-scent-card,
.rpm-detail-card,
.rpm-recommendations { border: 1px solid #ece7de; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(40, 35, 25, .04); }
.rpm-scent-card { margin-bottom: 9px; padding: 13px 15px; }
.rpm-scent-card h2,
.rpm-detail-card h2,
.rpm-recommendations h2 { margin: 0 0 6px !important; color: #171717; font-size: 19px !important; line-height: 1.5 !important; }
.rpm-scent-card p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.rpm-fragrance-id { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 0; margin-top: 9px; padding-top: 8px; border-top: 1px solid #eee8df; color: #4b4842; font-size: 13.5px; }
.rpm-fragrance-id span { display: inline-flex; align-items: center; white-space: nowrap; }
.rpm-fragrance-id span + span { margin-right: 14px; padding-right: 14px; border-right: 1px solid #dfd3bf; }
.rpm-fragrance-id b { margin-left: 4px; color: #9a6d25; font-weight: 800; }

.rpm-traits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 10px; padding: 7px 10px; overflow: visible; border: 1px solid #ebe6dd; border-radius: 16px; background: #fff; box-shadow: 0 7px 22px rgba(40, 35, 25, .045); }
.rpm-trait { display: flex; min-height: 86px; align-items: center; justify-content: center; flex-direction: column; gap: 1px; padding: 8px 12px; border-left: 1px solid #eee8df; text-align: center; }
.rpm-trait:last-child { border-left: 0; }
.rpm-trait i { height: 27px; margin-bottom: 3px; color: #b27d2b; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-style: normal; line-height: 1; }
.rpm-trait strong { color: #b27d2b; font-size: 17px; line-height: 1.5; }
.rpm-trait span { color: #292621; font-size: 16px; line-height: 1.55; white-space: nowrap; }

.rpm-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.rpm-detail-card { padding: 12px 14px; }
.rpm-notes-card > div { display: grid; gap: 2px; padding: 4px 0; border-bottom: 1px solid #f0ece5; font-size: 14px; line-height: 1.55; }
.rpm-notes-card > div:last-child { border-bottom: 0; }
.rpm-notes-card strong { color: var(--rpm-gold); }
.rpm-personality-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 34px; align-items: center; gap: 9px; margin: 8px 0; font-size: 14px; line-height: 1.4; }
.rpm-personality-row > span:first-child { color: #37332d; font-weight: 600; }
.rpm-personality-row > b { color: #777; font-size: 11px; font-weight: 700; text-align: left; direction: ltr; }
.rpm-personality-track { display: block; height: 8px; overflow: hidden; border-radius: 99px; background: #eef1f5; box-shadow: inset 0 1px 2px rgba(45, 57, 74, .07); }
.rpm-personality-track > i { display: block; width: var(--score); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8bb5e8, var(--rpm-blue)); box-shadow: 0 2px 7px rgba(79, 126, 216, .22); }

.rpm-recommendations { margin: 0 0 8px; padding: 11px 13px; }
.rpm-recommendations__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.rpm-recommendations__head h2 { margin: 0 !important; }
.rpm-recommendations__head a { color: #276b91 !important; font-size: 12px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.rpm-recommendations__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rpm-rec-card { display: grid; min-width: 0; min-height: 100px; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e9e4dc; border-radius: 14px; background: linear-gradient(145deg, #fff, #fdfcf9); color: inherit !important; text-decoration: none !important; box-shadow: 0 5px 16px rgba(35, 29, 20, .035); }
.rpm-rec-visual { display: grid; width: 62px; height: 82px; place-items: center; overflow: hidden; border-radius: 11px; background: #f8f6f1; }
.rpm-rec-visual img { width: 100%; height: 100%; object-fit: contain; }
.rpm-rec-copy strong { display: block; color: #171717; font-size: 15px; line-height: 1.5; }
.rpm-rec-copy small { display: block; overflow: hidden; color: #777; font-family: Georgia, "Times New Roman", serif; font-size: 10px; line-height: 1.35; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.rpm-rec-desc { display: block; margin-top: 3px; color: #595650; font-size: 11.5px; line-height: 1.55; }
.rpm-rec-bottle { position: relative; display: block; width: 38px; height: 58px; border: 1px solid rgba(38, 65, 67, .18); border-radius: 7px 7px 10px 10px; background: linear-gradient(90deg, #c8dfe1, #effafa 50%, #a7ced3); box-shadow: 0 7px 12px rgba(33, 42, 40, .12); }
.rpm-rec-bottle::before { content: ""; position: absolute; top: -11px; left: 50%; width: 23px; height: 11px; border-radius: 3px 3px 1px 1px; background: #1c1b19; transform: translateX(-50%); box-shadow: 0 3px 0 #444; }
.rpm-rec-bottle--1 { background: linear-gradient(90deg, #ddd5ad, #fffbe5 48%, #cfc18a); }
.rpm-rec-bottle--2 { background: linear-gradient(90deg, #0288bd, #40c9ed 50%, #007ba7); }
.rpm-rec-bottle--3 { width: 48px; height: 52px; border-radius: 4px; background: linear-gradient(135deg, #07111c, #15324d 55%, #03080e); }

@media (min-width: 701px) {
    body.rpm-standard-product header.wp-block-template-part + main.wp-block-group { margin-top: -18px !important; }
}

@media (max-width: 900px) and (min-width: 701px) {
    body.rpm-standard-product .ruydar-product-hero { gap: 12px !important; padding: 14px !important; }
    body.rpm-standard-product .ruydar-product-hero h1 { font-size: 27px !important; }
    .rpm-hero-en { font-size: 20px; }
    body.rpm-standard-product .ruydar-product-hero .single_variation_wrap { grid-template-columns: minmax(125px, .7fr) minmax(180px, 1.3fr); }
}

@media (max-width: 700px) {
    body.admin-bar.rpm-standard-product header.wp-block-template-part { top: 46px; }
    body.rpm-standard-product header.wp-block-template-part + main.wp-block-group { margin-top: -8px !important; }
    body.rpm-standard-product .ruydar-product-hero { min-height: 0; padding: 13px !important; border-radius: 18px; }
    body.rpm-standard-product .ruydar-product-hero h1 { font-size: 28px !important; }
    .rpm-hero-en { font-size: 21px; }
    .rpm-hero-facts { gap: 7px 12px; font-size: 12px; }
    .rpm-hero-facts span + span { padding-right: 12px; }
    body.rpm-standard-product .woocommerce-product-gallery { min-height: 375px; }
    body.rpm-standard-product .woocommerce-product-gallery .flex-viewport,
    body.rpm-standard-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image img { height: 350px !important; }
    body.rpm-standard-product .woocommerce-product-gallery .flex-control-thumbs { top: 52px; width: 58px; }
    body.rpm-standard-product .woocommerce-product-gallery .flex-control-thumbs li,
    body.rpm-standard-product .woocommerce-product-gallery .flex-control-thumbs li img { width: 58px !important; height: 58px !important; }
    .rpm-volume-cards { grid-template-columns: repeat(var(--rpm-columns, 5), minmax(66px, 1fr)); gap: 5px; overflow-x: auto; }
    .rpm-volume-card { min-height: 62px; padding: 6px 3px; }
    .rpm-volume-card__size { font-size: 12px; }
    .rpm-volume-card__price { font-size: 9px; }
    .rpm-special-action.is-visible { display: grid; grid-template-columns: 1fr auto; }
    .rpm-special-action a { grid-column: 1 / -1; text-align: center; }
    body.rpm-standard-product .ruydar-product-hero .single_variation_wrap { grid-template-columns: 1fr; gap: 8px; }
    body.rpm-standard-product .woocommerce-variation,
    body.rpm-standard-product .woocommerce-variation-add-to-cart { grid-column: 1; }
    body.rpm-standard-product .woocommerce-variation { grid-row: 1; }
    body.rpm-standard-product .woocommerce-variation-add-to-cart { grid-row: 2; }
    .rpm-fragrance-id { font-size: 12.5px; }
    .rpm-fragrance-id span + span { margin-right: 9px; padding-right: 9px; }
    .rpm-traits { grid-template-columns: repeat(4, minmax(132px, 1fr)); overflow-x: auto; padding: 6px; }
    .rpm-trait { min-height: 82px; padding: 7px 9px; }
    .rpm-details-grid { grid-template-columns: 1fr; }
    .rpm-personality-row { grid-template-columns: 56px minmax(0, 1fr) 31px; gap: 7px; margin: 7px 0; font-size: 13px; }
    .rpm-recommendations { padding: 12px; }
    .rpm-recommendations__grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
}
