@font-face {
    font-family: Vazirmatn;
    src: url("../fonts/Vazirmatn[wght].woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --theme-accent: #0f9f8f;
    --theme-ink: #24182b;
    --theme-paper: #faf9f6;
    --theme-white: #fff;
    --theme-line: color-mix(in srgb, var(--theme-ink) 12%, transparent);
    --theme-muted: color-mix(in srgb, var(--theme-ink) 58%, transparent);
    --theme-soft: color-mix(in srgb, var(--theme-accent) 8%, var(--theme-paper));
    --theme-radius: 24px;
    --theme-shadow: 0 24px 70px color-mix(in srgb, var(--theme-ink) 12%, transparent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--theme-paper);
    color: var(--theme-ink);
    font-family: Vazirmatn, Tahoma, sans-serif;
    line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.theme-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.theme-skip { position: fixed; z-index: 100; top: -80px; right: 16px; background: #fff; color: #111; padding: 10px 16px; border-radius: 0 0 12px 12px; }
.theme-skip:focus { top: 0; }

.demo-notice {
    position: relative;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    padding: 7px max(20px, calc((100vw - 1180px) / 2));
    background: #24182b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.demo-notice b { color: #9de5d8; }
.demo-back { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #fff; }
.demo-back:hover { color: #ffc785; }

.shop-announcement { padding: 7px 20px; background: var(--theme-accent); color: #fff; text-align: center; font-size: 10px; font-weight: 800; }
.shop-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--theme-line); background: color-mix(in srgb, var(--theme-paper) 93%, transparent); backdrop-filter: blur(18px); }
.shop-nav { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.shop-brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; font-size: 19px; font-weight: 950; }
.shop-brand img { width: 42px; height: 52px; object-fit: contain; padding: 3px; background: #fff; }
.shop-brand small { display: block; margin-top: -5px; color: var(--theme-muted); font-size: 8px; font-weight: 700; }
.shop-links { display: flex; align-items: center; gap: 22px; font-size: 12px; font-weight: 800; }
.shop-links a { position: relative; }
.shop-links a::after { position: absolute; right: 0; bottom: -8px; width: 0; height: 2px; background: var(--theme-accent); content: ""; transition: width .2s; }
.shop-links a:hover::after { width: 100%; }
.shop-actions { margin-right: auto; display: flex; align-items: center; gap: 8px; }
.shop-action { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--theme-line); border-radius: 999px; padding: 8px 14px; background: var(--theme-white); color: var(--theme-ink); font-size: 10px; font-weight: 900; }
.shop-action.primary { border-color: var(--theme-accent); background: var(--theme-accent); color: #fff; }
.shop-action:hover { transform: translateY(-1px); box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-ink) 11%, transparent); }
.mobile-nav { display: none; margin-right: auto; }
.mobile-nav summary { display: grid; width: 42px; height: 42px; cursor: pointer; list-style: none; place-items: center; border: 1px solid var(--theme-line); border-radius: 50%; background: var(--theme-white); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-panel { position: absolute; top: 100%; right: 20px; left: 20px; display: grid; gap: 4px; border: 1px solid var(--theme-line); border-radius: 18px; padding: 12px; background: var(--theme-white); box-shadow: var(--theme-shadow); }
.mobile-panel a { border-radius: 12px; padding: 9px 12px; font-size: 11px; font-weight: 800; }
.mobile-panel a:hover { background: var(--theme-soft); }

.shop-hero { position: relative; overflow: hidden; min-height: 570px; display: grid; align-items: center; margin: 30px auto 72px; border-radius: calc(var(--theme-radius) * 1.6); background: linear-gradient(125deg, var(--theme-ink), color-mix(in srgb, var(--theme-accent) 70%, var(--theme-ink))); color: #fff; }
.shop-hero::before { position: absolute; inset: 0; background: radial-gradient(circle at 18% 20%, #ffffff1e, transparent 30%), linear-gradient(90deg, transparent, #0004); content: ""; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 50px; padding: clamp(50px, 8vw, 95px); }
.hero-kicker { display: inline-flex; border-radius: 999px; padding: 7px 12px; background: #ffffff14; color: #fff; font-size: 10px; font-weight: 900; }
.hero-copy h1 { max-width: 680px; margin: 20px 0 14px; font-size: clamp(38px, 5vw, 68px); line-height: 1.28; letter-spacing: -.04em; }
.hero-copy p { max-width: 590px; margin: 0; color: #ffffffb0; font-size: 14px; line-height: 2; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.theme-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 10px 21px; background: var(--theme-accent); color: #fff; font-size: 11px; font-weight: 950; transition: .2s; }
.theme-button.light { border-color: #ffffff35; background: #ffffff12; }
.theme-button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.hero-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.hero-orbit { position: absolute; width: 330px; aspect-ratio: 1; border: 1px solid #ffffff25; border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after { position: absolute; inset: 12%; border: 1px solid #ffffff1e; border-radius: inherit; content: ""; }
.hero-orbit::after { inset: 25%; }
.hero-product { position: relative; z-index: 2; width: min(300px, 80%); transform: rotate(-4deg); filter: drop-shadow(0 38px 35px #0005); }
.hero-note { position: absolute; z-index: 3; bottom: 10px; left: 0; border: 1px solid #ffffff22; border-radius: 18px; padding: 13px 17px; background: #ffffff13; backdrop-filter: blur(12px); font-size: 10px; font-weight: 800; }

.product-art { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(145deg, #fff9, transparent), var(--art-bg, #ead7cb); color: var(--art-color, #9d6549); }
.product-art::before { position: absolute; width: 70%; height: 70%; border: 1px solid #fff8; border-radius: 50%; background: #fff3; content: ""; }
.art-shadow { position: absolute; z-index: 1; bottom: 15%; width: 50%; height: 8%; border-radius: 50%; background: #20172225; filter: blur(9px); }
.art-object { position: relative; z-index: 2; display: block; width: 42%; height: 58%; background: currentColor; }
.shape-vase { border-radius: 38% 38% 46% 46% / 18% 18% 65% 65%; }
.shape-vase::before { position: absolute; top: -12%; right: 31%; width: 38%; height: 22%; border-radius: 5px 5px 40% 40%; background: currentColor; content: ""; }
.shape-candle { width: 25%; height: 57%; border-radius: 10px 10px 28px 28px; }
.shape-candle::before { position: absolute; top: -22%; right: 25%; width: 50%; aspect-ratio: .72; border-radius: 60% 40% 55% 45%; background: #ffbd48; transform: rotate(42deg); content: ""; }
.shape-jewel { width: 52%; height: 52%; border: 12px solid currentColor; border-radius: 50%; background: transparent; }
.shape-jewel::after { position: absolute; top: 80%; right: 36%; width: 28%; aspect-ratio: 1; background: currentColor; clip-path: polygon(50% 100%, 0 35%, 23% 0, 77% 0, 100% 35%); content: ""; }
.shape-bag { width: 52%; height: 46%; align-self: end; margin-bottom: 18%; border-radius: 12px 12px 28px 28px; }
.shape-bag::before { position: absolute; top: -35%; right: 22%; width: 56%; height: 55%; border: 8px solid currentColor; border-bottom: 0; border-radius: 50% 50% 0 0; background: transparent; content: ""; }
.shape-plate { width: 58%; height: 58%; border: 18px double currentColor; border-radius: 50%; background: #ffffff70; }
.shape-lamp { width: 58%; height: 35%; background: currentColor; clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); transform: translateY(-26%); }
.shape-lamp::before { position: absolute; top: 100%; right: 47%; width: 6%; height: 105%; background: currentColor; content: ""; }
.shape-lamp::after { position: absolute; top: 190%; right: 29%; width: 42%; height: 13%; border-radius: 50%; background: currentColor; content: ""; }
.tone-clay { --art-bg: #ead8cb; --art-color: #a66f51; }
.tone-mint { --art-bg: #d9eee7; --art-color: #4f8f7d; }
.tone-gold { --art-bg: #f1e4bd; --art-color: #bd8b35; }
.tone-rose { --art-bg: #f4dce2; --art-color: #bd657b; }
.tone-plum { --art-bg: #e3d9ea; --art-color: #70527e; }
.tone-sky { --art-bg: #dbe8ee; --art-color: #527d91; }

.shop-section { padding: 34px 0 78px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-kicker { color: var(--theme-accent); font-size: 10px; font-weight: 950; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(26px, 4vw, 42px); line-height: 1.4; }
.section-heading p { max-width: 470px; margin: 0; color: var(--theme-muted); font-size: 12px; }
.category-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-item { position: relative; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; justify-content: end; border: 1px solid var(--theme-line); border-radius: var(--theme-radius); padding: 22px; background: var(--theme-white); transition: .25s; }
.category-item::before { position: absolute; top: -45px; left: -35px; width: 150px; height: 150px; border-radius: 46% 54% 67% 33%; background: color-mix(in srgb, var(--theme-accent) 14%, transparent); content: ""; transform: rotate(20deg); }
.category-item:hover { transform: translateY(-5px); box-shadow: var(--theme-shadow); }
.category-item b { position: relative; font-size: 16px; }
.category-item small { position: relative; color: var(--theme-muted); font-size: 9px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { position: relative; overflow: hidden; display: flex; height: 100%; flex-direction: column; border: 1px solid var(--theme-line); border-radius: var(--theme-radius); background: var(--theme-white); transition: .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--theme-shadow); }
.product-media { position: relative; overflow: hidden; }
.product-media .product-art { aspect-ratio: 1.12 / 1; transition: transform .4s; }
.product-card:hover .product-art { transform: scale(1.025); }
.product-badge { position: absolute; z-index: 3; top: 13px; right: 13px; border-radius: 999px; padding: 5px 9px; background: #fff; color: #24182b; box-shadow: 0 7px 20px #24182b20; font-size: 8px; font-weight: 900; }
.product-copy { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.product-copy small { color: var(--theme-muted); font-size: 9px; }
.product-copy h3 { margin: 5px 0 14px; font-size: 14px; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.product-price { color: var(--theme-accent); font-size: 12px; font-weight: 950; }
.add-cart { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: var(--theme-ink); color: #fff; cursor: pointer; font-weight: 900; }
.add-cart:hover { background: var(--theme-accent); }

.story { overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; border-radius: calc(var(--theme-radius) * 1.2); background: var(--theme-ink); color: #fff; }
.story-art { min-height: 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #ffffff1a; }
.story-art .product-art { aspect-ratio: auto; min-height: 210px; }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(35px, 7vw, 80px); }
.story-copy span { color: color-mix(in srgb, var(--theme-accent) 62%, #fff); font-size: 10px; font-weight: 900; }
.story-copy h2 { margin: 12px 0; font-size: clamp(28px, 4vw, 45px); line-height: 1.45; }
.story-copy p { margin: 0; color: #ffffffa0; font-size: 12px; }

.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin: 10px auto 70px; border: 1px solid var(--theme-line); border-radius: var(--theme-radius); background: var(--theme-line); }
.service-item { padding: 22px; background: var(--theme-white); text-align: center; transition: transform .25s, box-shadow .25s, background-color .25s; }
.service-item b { display: block; font-size: 12px; }
.service-item small { color: var(--theme-muted); font-size: 9px; }
.newsletter { margin-bottom: 70px; border: 1px solid var(--theme-line); border-radius: calc(var(--theme-radius) * 1.25); padding: clamp(30px, 6vw, 65px); background: var(--theme-soft); text-align: center; }
.newsletter h2 { margin: 0; font-size: clamp(25px, 4vw, 40px); }
.newsletter p { margin: 8px 0 22px; color: var(--theme-muted); font-size: 11px; }
.newsletter-form { width: min(540px, 100%); display: flex; gap: 8px; margin: auto; }
.newsletter-form input { width: 100%; border: 1px solid var(--theme-line); border-radius: 999px; padding: 13px 18px; background: var(--theme-white); outline: none; }
.newsletter-form input:focus { border-color: var(--theme-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-accent) 12%, transparent); }
.shop-footer { padding: 60px 0 22px; background: var(--theme-ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 950; }
.footer-brand img { width: 48px; height: 62px; object-fit: contain; padding: 3px; background: #fff; }
.footer-grid p, .footer-grid a { color: #ffffff8f; font-size: 10px; }
.footer-grid h3 { margin-top: 0; font-size: 12px; }
.footer-links { display: grid; gap: 7px; }
.footer-copy { margin-top: 35px; border-top: 1px solid #ffffff1c; padding-top: 18px; color: #ffffff68; font-size: 9px; }

@media (hover: hover) and (pointer: fine) {
    .service-item:hover { position: relative; z-index: 2; transform: translateY(-5px); background: var(--theme-soft); box-shadow: var(--theme-shadow); }
    .story:hover, .newsletter:hover { transform: translateY(-5px); box-shadow: var(--theme-shadow); }
}
.story, .newsletter { transition: transform .25s, box-shadow .25s; }

/* Free themes */
.theme-atelier { --theme-radius: 30px; }
.theme-atelier .shop-hero { background: linear-gradient(125deg, #3a263e, #a45b42); }
.theme-atelier .category-item:nth-child(even), .theme-atelier .newsletter { transform: rotate(.45deg); }
.theme-modern { --theme-radius: 3px; --theme-shadow: 0 20px 55px #10182012; }
.theme-modern .shop-announcement { background: var(--theme-ink); }
.theme-modern .shop-hero { width: 100%; max-width: none; margin-top: 0; border-radius: 0; background: linear-gradient(110deg, #1d2728, #568982); }
.theme-modern .hero-grid { width: min(1180px, calc(100% - 40px)); margin: auto; }
.theme-modern .section-heading { border-bottom: 1px solid var(--theme-line); padding-bottom: 18px; }
.theme-modern .product-media .product-art { aspect-ratio: .82 / 1; }
.theme-market { --theme-radius: 13px; }
.theme-market .shop-hero { min-height: 430px; border-radius: 16px; }
.theme-market .hero-grid { padding-top: 45px; padding-bottom: 45px; }
.theme-market .product-grid { grid-template-columns: repeat(4, 1fr); gap: 13px; }
.theme-market .product-copy { padding: 13px; }
.theme-market .category-list { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.theme-market .category-item { min-height: 160px; }

/* Converted paid themes */
.theme-classic { --theme-radius: 18px; }
.theme-classic .shop-header { background: #fffdf9ed; }
.theme-classic .shop-hero { background: linear-gradient(120deg, #3c3036, #b74d5f); }
.theme-classic .category-item { border-top: 4px solid var(--theme-accent); }

.theme-showcase { --theme-radius: 8px; }
.theme-showcase .shop-header { border-bottom: 3px solid var(--theme-accent); background: #18151df2; color: #fff; }
.theme-showcase .shop-brand small { color: #ffffff78; }
.theme-showcase .shop-action:not(.primary) { border-color: #ffffff28; background: #ffffff10; color: #fff; }
.theme-showcase .shop-hero { border-radius: 8px; background: linear-gradient(115deg, #18151d 0 52%, #d93570 52%); }
.theme-showcase .hero-grid { grid-template-columns: .9fr 1.1fr; }
.theme-showcase .hero-copy { order: 2; }
.theme-showcase .hero-visual { order: 1; }
.theme-showcase .category-list { gap: 4px; }
.theme-showcase .category-item { border: 0; border-radius: 0; background: var(--theme-ink); color: #fff; }
.theme-showcase .category-item small { color: #ffffff80; }
.theme-showcase .product-card { border-width: 0 0 3px; border-bottom-color: var(--theme-accent); border-radius: 0; }

.theme-studio { --theme-radius: 0px; --theme-shadow: 0 18px 45px #173d3414; }
.theme-studio .shop-announcement { background: var(--theme-paper); color: var(--theme-ink); border-bottom: 1px solid var(--theme-line); }
.theme-studio .shop-header { position: relative; background: var(--theme-paper); }
.theme-studio .shop-nav { min-height: 96px; }
.theme-studio .shop-hero { min-height: 650px; margin-top: 0; border-radius: 0; background: linear-gradient(270deg, #20332f 0 58%, #d5ddd1 58%); }
.theme-studio .hero-copy h1 { font-size: clamp(48px, 7vw, 86px); font-weight: 500; }
.theme-studio .section-heading h2, .theme-studio .story-copy h2 { font-weight: 500; }
.theme-studio .category-item { min-height: 250px; border-width: 0 0 1px; }
.theme-studio .product-card { border-width: 0; background: transparent; }
.theme-studio .product-copy { padding-inline: 0; }

.theme-luxe { --theme-line: #ffffff18; --theme-muted: #ffffff8b; --theme-soft: #222326; --theme-white: #202125; --theme-shadow: 0 26px 75px #0007; color-scheme: dark; }
.theme-luxe .demo-notice { background: #090a0b; }
.theme-luxe .shop-announcement { background: #c7a15a; color: #121315; }
.theme-luxe .shop-header { background: #121315ed; }
.theme-luxe .shop-action { color: #fff; }
.theme-luxe .shop-hero { border: 1px solid #c7a15a44; background: radial-gradient(circle at 23% 45%, #c7a15a35, transparent 30%), #121315; }
.theme-luxe .hero-copy h1 { font-weight: 500; letter-spacing: 0; }
.theme-luxe .category-item, .theme-luxe .product-card { border-color: #c7a15a33; }
.theme-luxe .product-copy h3, .theme-luxe .category-item b { color: #fff; }
.theme-luxe .story { border: 1px solid #c7a15a55; }
.theme-luxe .newsletter input { color: #fff; }

.theme-boutique { --theme-radius: 34px; }
.theme-boutique .shop-announcement { background: #453436; }
.theme-boutique .shop-hero { min-height: 520px; background: linear-gradient(115deg, #e47770, #f4b49f); }
.theme-boutique .hero-copy { text-align: center; }
.theme-boutique .hero-copy p { margin-inline: auto; }
.theme-boutique .hero-buttons { justify-content: center; }
.theme-boutique .hero-grid { grid-template-columns: 1fr 1fr; }
.theme-boutique .category-item { min-height: 180px; justify-content: center; text-align: center; }
.theme-boutique .product-card:nth-child(3n+2) { transform: translateY(18px); }
.theme-boutique .product-card:nth-child(3n+2):hover { transform: translateY(12px); }

@media (max-width: 920px) {
    .shop-links, .shop-actions .shop-action:first-child { display: none; }
    .mobile-nav { display: block; }
    .shop-actions { margin-right: 0; }
    .hero-grid, .theme-showcase .hero-grid, .theme-boutique .hero-grid { grid-template-columns: 1fr; gap: 20px; padding: 58px 8%; }
    .theme-showcase .hero-copy, .theme-showcase .hero-visual { order: initial; }
    .hero-visual { min-height: 290px; }
    .category-list { grid-template-columns: repeat(2, 1fr); }
    .product-grid, .theme-market .product-grid { grid-template-columns: repeat(2, 1fr); }
    .story { grid-template-columns: 1fr; }
    .story-art { min-height: 320px; }
    .theme-studio .shop-hero { background: linear-gradient(160deg, #20332f 0 65%, #d5ddd1 65%); }
}

@media (max-width: 620px) {
    .theme-wrap { width: min(100% - 24px, 1180px); }
    .demo-notice { align-items: flex-start; padding: 9px 12px; font-size: 9px; }
    .demo-notice span { max-width: 70%; }
    .shop-nav { min-height: 66px; gap: 10px; }
    .shop-brand { font-size: 14px; }
    .shop-brand img { width: 34px; height: 34px; }
    .shop-actions .shop-action { padding-inline: 11px; }
    .shop-hero { min-height: 620px; margin-top: 12px; margin-bottom: 40px; border-radius: 22px; }
    .hero-grid { padding: 44px 24px; }
    .hero-copy h1 { font-size: 35px; }
    .hero-copy p { font-size: 12px; }
    .hero-visual { min-height: 245px; }
    .hero-orbit { width: 240px; }
    .hero-product { width: 210px; }
    .hero-note { bottom: -8px; }
    .shop-section { padding-bottom: 55px; }
    .section-heading { align-items: start; flex-direction: column; }
    .category-list { grid-template-columns: 1fr 1fr; gap: 9px; }
    .category-item, .theme-studio .category-item { min-height: 145px; padding: 15px; }
    .product-grid, .theme-market .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product-copy { padding: 12px; }
    .product-copy h3 { font-size: 11px; }
    .product-price { font-size: 9px; }
    .add-cart { width: 30px; height: 30px; }
    .story-art { min-height: 260px; }
    .story-art .product-art { min-height: 130px; }
    .service-strip { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .theme-modern .hero-grid { width: 100%; }
    .theme-market .shop-hero, .theme-showcase .shop-hero { border-radius: 8px; }
    .theme-studio .shop-hero { min-height: 680px; }
    .theme-studio .hero-copy h1 { font-size: 44px; }
    .theme-boutique .product-card:nth-child(3n+2), .theme-boutique .product-card:nth-child(3n+2):hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
