/*
Theme Name: Roshna
Description: قالب فارسی فروشگاه آرایش و مراقبت پوست روشنا
Version: 1.2.0
Text Domain: roshna
*/
@font-face { font-family: Vazirmatn; src: url(assets/vazirmatn.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
    color-scheme: light;
    --ink: #321b28;
    --muted: #674d5b;
    --wine: #77304e;
    --wine-deep: #542037;
    --canvas: #fffaf8;
    --pink: #f7e6ea;
    --line: #ead9df;
    --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Vazirmatn, Tahoma, Arial, sans-serif; line-height: 1.85; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #a34a71; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.5; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; z-index: 20; inset-inline-start: 1rem; top: .5rem; transform: translateY(-200%); background: white; padding: 8px 18px; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: #fffdfb; }
.top-ribbon { background: var(--wine-deep); color: #fff4f6; text-align: center; padding: 7px 12px; font-size: .75rem; }
.header-inner { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 18px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: bold; font-size: 1.28rem; line-height: 1.25; }
.brand small { display: block; font-size: .54rem; direction: ltr; letter-spacing: .18em; margin-top: 6px; }
.brand-mark { display: block; width: 44px; height: 44px; flex: 0 0 44px; }
.site-nav { display: flex; order: 2; width: 100%; justify-content: center; gap: clamp(16px, 6vw, 36px); font-size: .83rem; }
.site-nav a, .browse-link { min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a[aria-current] { color: var(--wine); box-shadow: inset 0 -2px var(--wine); font-weight: bold; }
.browse-link { gap: 7px; color: var(--wine); font-size: .77rem; font-weight: bold; }
.hero { display: grid; margin-block: 22px 18px; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: #f9eeed; }
.hero-copy { padding: clamp(24px, 5vw, 64px); align-self: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--wine); font-size: .76rem; font-weight: bold; }
.eyebrow > span { width: 7px; height: 7px; background: #aa5a78; border-radius: 50%; }
.hero h1 { margin: 10px 0 14px; font-size: clamp(2.5rem, 8vw, 5.25rem); letter-spacing: -.055em; line-height: 1.24; }
.hero h1 em { color: var(--wine); font-style: normal; }
.hero p { max-width: 36ch; color: var(--muted); font-size: clamp(.85rem, 2vw, .98rem); }
.button-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; padding: 10px 18px; min-height: 46px; border-radius: 10px; margin-top: 22px; background: var(--wine); color: white; font-size: .86rem; font-weight: bold; }
.button-primary:hover { background: var(--wine-deep); }
.art { --back: #f3e0e9; --glow: #fff9f9; --light: #f4bbc9; --base: #a44f6b; position: relative; display: grid; place-items: center; isolation: isolate; container-type: inline-size; min-width: 0; aspect-ratio: 1.32; overflow: hidden; background: radial-gradient(ellipse at 35% 20%, var(--glow), var(--back) 66%); direction: ltr; }
.art-floor { position: absolute; bottom: 12%; inset-inline: 8%; height: 17%; border-radius: 50%; background: #7e486647; filter: blur(1.7cqw); transform: rotate(-6deg); }
.pack { position: absolute; width: 27%; height: 58%; bottom: 20%; border-radius: 8% 8% 10% 10%; box-shadow: 1cqw 2cqw 3cqw #4b1f3a43, inset .6cqw 0 1.1cqw #ffffff70; background: linear-gradient(95deg,var(--base),var(--light) 25%,var(--light) 46%,var(--base) 97%); }
.pack-cap { position: absolute; width: 100%; bottom: -9%; left: 0; height: 24%; border-radius: 4cqw 4cqw 3cqw 3cqw; background: linear-gradient(90deg,#4d2335, #9b5b71 34%,#71384f 70%,#492638); box-shadow: inset 0 .45cqw .65cqw #fff4; }
.pack-label { position: absolute; inset: 34% 0 auto; display: grid; place-items: center; gap: .3cqw; color: #5c2d42; font: bold 8cqw Georgia,serif; line-height: 1; text-align: center; }
.pack-label > span { font: bold 1.9cqw Arial,sans-serif; letter-spacing: .13em; }
.art--cream { --back: #eee2d8; --glow: #fffcf6; --light: #fff0dd; --base: #cc9f93; }
.art--cream .pack, .art--blush .pack { width: 47%; height: 29%; bottom: 23%; border-radius: 8% 8% 16% 16%; }
.art--cream .pack-cap, .art--blush .pack-cap { bottom: auto; top: -25%; height: 37%; border-radius: 50% 50% 10% 10% / 36% 36% 14% 14%; }
.art--cream .pack-label, .art--blush .pack-label { inset-block-start: 28%; }
.art--cleanser { --back: #e8e4ed; --glow: #fffafd; --base: #ac9fb9; --light: #f8f2f8; }
.art--cleanser .pack { transform: rotate(-12deg); border-radius: 4% 4% 24% 24% / 4% 4% 10% 10%; }
.art--cleanser .pack::before { content: ''; position: absolute; inset: 4% 0 auto; height: 2%; background: #ffffff9e; }
.art--lip .pack, .art--balm .pack { width: 18%; height: 46%; bottom: 18%; background: linear-gradient(90deg,#422337,#985c75 31%,#6e3750 67%,#472637); transform: rotate(12deg); }
.art--lip .pack-label, .art--balm .pack-label { color: #ffebf5; font-size: 5cqw; }
.art--lip .pack-cap, .art--balm .pack-cap { bottom: auto; top: -40%; height: 45%; width: 72%; left: 14%; border-radius: 54% 26% 3% 3% / 35% 16% 4% 4%; background: linear-gradient(110deg,#742b4e,#b7507d 50%,#7f3159); z-index: -1; }
.art--balm { --back: #ecd6c9; }
.art--balm .pack-cap { background: linear-gradient(110deg,#c69076,#f5c5ae 50%,#c68871); }
.art--blush { --back: #f3d9d4; --light: #f0ad9d; --base: #b76c65; }
.art--serum { --back: #eadcd4; --light: #f9cca7; --base: #a3644e; }
.art--serum .pack { height: 43%; width: 26%; border-radius: 20% 20% 12% 12%; }
.art--serum .pack-cap { bottom: auto; top: -30%; left: 18%; width: 64%; height: 36%; border-radius: 40% 40% 8% 8%; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.35rem, 4vw, 2rem); }
.section-head a { color: var(--wine); font-size: .8rem; font-weight: bold; }
.product-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.product-card { overflow: hidden; background: #fffefd; border: 1px solid var(--line); border-radius: 18px; }
.product-card:hover { border-color: #b97d97; }
.product-card a { display: block; }
.product-image { display: block; width: 100%; aspect-ratio: 1.32; object-fit: cover; }
.product-card-copy { padding: 14px 16px 16px; }
.product-card h3 { font-size: 1rem; }
.product-card p { margin-top: 5px; font-size: .8rem; color: var(--muted); }
.product-card-copy > span { display: block; margin-top: 12px; color: var(--wine); font-size: .77rem; font-weight: bold; }
.site-footer { padding-block: 26px 15px; background: #f6e8eb; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner p, .footer-bottom { color: var(--muted); font-size: .77rem; }
.footer-inner p { margin-top: 8px; }
.footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom { margin-top: 18px; padding-top: 11px; border-top: 1px solid #e4cdd5; }
.prose, .catalog { min-height: 55vh; padding-block: 30px 50px; }
.prose article { max-width: 780px; }
.prose h1, .catalog h1 { margin-bottom: 18px; }
.prose h2 { margin: 22px 0 8px; font-size: 1.2rem; }
.prose p { margin-bottom: 12px; color: var(--muted); }
.catalog-notice { background: #f8e9ec; border: 1px solid var(--line); padding: 11px 15px; border-radius: 10px; font-size: .82rem; margin-bottom: 22px; }
.woocommerce .woocommerce-breadcrumb { color: var(--muted); }
.woocommerce .woocommerce-breadcrumb a { color: var(--wine); }
.woocommerce ul.products[class] { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 15px; margin-top: 14px; clear: both; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products[class] li.product { float: none; width: auto; margin: 0; border: 1px solid var(--line); background: #fffefd; overflow: hidden; border-radius: 16px; }
.woocommerce ul.products li.product a { display: block; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 15px; font-size: .97rem; }
.woocommerce ul.products li.product a img { margin: 0; }
.woocommerce div.product .single-art { border-radius: 18px; overflow: hidden; margin-bottom: 22px; }
.woocommerce div.product .summary p { margin-bottom: 14px; color: var(--muted); }
.woocommerce div.product .woocommerce-tabs { margin-top: 24px; }
.woocommerce div.product .related { margin-top: 28px; }
@media (min-width: 650px) {
    .wrap { width: min(var(--wrap), 100% - 52px); }
    .site-nav { width: auto; order: 0; }
    .hero { grid-template-columns: 1fr 1.04fr; margin-top: 28px; }
    .woocommerce div.product .single-art { float: right; width: 47%; }
    .woocommerce div.product .woocommerce-tabs { clear: both; }
}
@media (min-width: 980px) {
}

.product-card .product-image, .woocommerce ul.products li.product a img.product-image {
    display: block;
    width: 100%;
    aspect-ratio: 1.24;
    object-fit: contain;
    padding: 14px;
    background: #f7eef0;
}
.woocommerce div.product .woocommerce-product-gallery__image > a img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #f7eef0;
    border-radius: 16px;
}
.reference-price { color: var(--wine-deep); font-size: .88rem; line-height: 1.7; }
.reference-price small { color: var(--muted); font-size: .73rem; }
.product-card .reference-price { margin-block: 9px 3px; }
.woocommerce ul.products .reference-price { padding-inline: 15px; padding-block-end: 8px; }
.woocommerce ul.products li.product .button { margin: 0 15px 15px; }
.woocommerce div.product .summary .reference-price {
    display: inline-block;
    background: #f8e9ec;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 1rem;
}
.woocommerce div.product .summary .reference-price-source { font-size: .78rem; margin: 4px 0 0; }
.reference-price-source a, .product-photo-credit a { color: var(--wine); text-decoration: underline; text-underline-offset: .15em; }
.product-specs { width: min(100%, 520px); margin-block: 10px 16px; border-collapse: collapse; }
.product-specs th, .product-specs td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: start; }
.product-photo-credit { color: var(--muted); font-size: .78rem; }

/* Storefront */
.home-store { --home-gap: clamp(44px, 7vw, 88px); }
.home-store .hero { margin-block: 18px 0; background: linear-gradient(135deg,#fff3ef,#f5dce2); align-items: stretch; }
.home-store .hero-copy { padding: clamp(24px, 5vw, 62px); }
.home-store .hero h1 { margin-top: 0; font-size: clamp(2.6rem, 8vw, 5rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 23px; }
.hero-actions .button-primary { margin: 0; }
.text-link { color: var(--wine); font-size: .85rem; font-weight: bold; text-decoration: underline; text-underline-offset: .24em; }
.hero-display {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
    gap: 9px;
    padding: 14px;
    min-width: 0;
    background: radial-gradient(ellipse at 68% 12%,#fdf1ec,#ecd0d7 73%);
}
.hero-product { position: relative; display: grid; min-width: 0; min-height: 120px; overflow: hidden; border-radius: 14px; background: var(--tile); border: 1px solid #fff9; }
.hero-product:first-child { grid-row: span 2; }
.hero-product .product-image { width: 100%; height: 100%; aspect-ratio: auto; max-height: 138px; object-fit: contain; padding: 10px 12px 41px; mix-blend-mode: multiply; }
.hero-product:first-child .product-image { max-height: 285px; padding: 16px 14px 58px; }
.hero-product-caption {
    position: absolute;
    inset: auto 7px 7px;
    display: grid;
    align-content: center;
    min-height: 38px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #fffaf7eb;
    font-size: .69rem;
    line-height: 1.6;
}
.hero-product-caption small { color: var(--muted); font-size: .63rem; }
.hero-product:first-child .hero-product-caption { min-height: 47px; font-size: .78rem; }
.tone-rose { --tile: #f4dce4; }
.tone-peach { --tile: #f7ded8; }
.tone-linen { --tile: #f2e7dc; }
.tone-mint { --tile: #dcece5; }
.tone-lilac { --tile: #e8e4f2; }
.tone-blush { --tile: #fae7e9; }
.home-section, .home-routine { margin-block: var(--home-gap); }
#browse-categories { scroll-margin-top: 22px; }
.home-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.home-category { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--tile); }
.home-category .product-image { width: 100%; height: 104px; object-fit: contain; padding: 10px; mix-blend-mode: multiply; }
.home-category > span:last-child { display: flex; justify-content: space-between; gap: 5px; align-items: center; min-height: 44px; padding: 8px 10px; background: #fffcfa; font-size: .75rem; font-weight: bold; }
.home-category > span:last-child span { color: var(--wine); }
.home-shelf .section-head { flex-wrap: wrap; align-items: end; gap: 4px 16px; }
.home-shelf .section-head p, .home-faq > div > p { margin-top: 4px; color: var(--muted); font-size: .86rem; }
.home-product-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.home-product-list .product-card > a { display: flex; height: 100%; flex-direction: column; }
.home-product-list .product-card-copy { display: flex; flex: 1; flex-direction: column; padding: 11px 10px 13px; }
.home-product-list .product-card h3 { font-size: .86rem; overflow-wrap: anywhere; }
.home-product-list .product-card-copy > span:last-child { margin-top: auto; padding-top: 5px; }
.home-product-list .reference-price { margin-block: 7px 4px; }
.home-routine { padding-block: clamp(28px, 5vw, 60px); background: #642b47; color: #fff9f6; }
.routine-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 19px; }
.routine-heading p { max-width: 36ch; margin-block: 8px 11px; color: #f8e2eb; font-size: .87rem; }
.routine-heading .text-link { color: #fff5f7; }
.routine-cards { display: grid; gap: 9px; }
.routine-card { display: block; min-width: 0; padding: 14px 15px; border: 1px solid #e8b3c95e; border-radius: 12px; background: #ffffff10; }
.routine-card h3 { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.routine-card p { margin-top: 5px; color: #faeaf0; font-size: .8rem; }
.home-faq { display: grid; grid-template-columns: minmax(0,1fr); gap: 15px; padding: clamp(18px, 4vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: #fbf0f1; }
.faq-items { min-width: 0; }
.faq-items details + details { border-top: 1px solid var(--line); }
.faq-items summary { padding: 10px 0; cursor: pointer; font-size: .87rem; font-weight: bold; }
.faq-items details p { padding-block-end: 10px; color: var(--muted); font-size: .84rem; }
.woocommerce .product_meta > span { display: block; }
.woocommerce .product_meta .sku { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.woocommerce .product_meta { margin-block-start: 10px; font-size: .82rem; }
@media (min-width: 650px) {
    .hero-display { gap: 14px; padding: 20px; }
    .hero-product .product-image { max-height: 192px; }
    .hero-product:first-child .product-image { max-height: 390px; padding-bottom: 65px; }
    .home-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
    .home-product-list { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
    .routine-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .home-faq { grid-template-columns: minmax(0,.8fr) minmax(0,1.3fr); gap: 28px; }
}
@media (min-width: 960px) {
    .hero-display { padding: 28px; }
    .hero-product-caption { inset-inline: 12px; inset-block-end: 9px; font-size: .8rem; }
    .hero-product-caption small { font-size: .73rem; }
    .home-category-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
    .home-category .product-image { height: 124px; }
    .routine-layout { grid-template-columns: minmax(0,.75fr) minmax(0,1.5fr); align-items: center; gap: 22px; }
    .routine-card { height: 100%; }
    .home-product-list .product-card-copy { padding: 14px 16px; }
    .home-product-list .product-card h3 { font-size: .97rem; }
}
