/* Digital Store RTL — original, independent WordPress adaptation of the store UI. */
:root {
  color-scheme: light;
  --ds-page: #f8f9fa;
  --ds-surface: #fff;
  --ds-raised: #f1f3f4;
  --ds-text: #202124;
  --ds-muted: #5f6368;
  --ds-line: #dadce0;
  --ds-accent: #1a73e8;
  --ds-accent-text: #fff;
  --ds-shadow: 0 4px 20px rgba(32,33,36,.06);
  --ds-glass: rgba(255,255,255,.84);
  --ds-spark-1: #4285f4;
  --ds-spark-2: #ea4335;
  --ds-spark-3: #fbbc05;
  --ds-spark-4: #34a853;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ds-page: #111315; --ds-surface: #1b1d20; --ds-raised: #25282c;
    --ds-text: #f1f3f4; --ds-muted: #aeb4bd; --ds-line: #383c42;
    --ds-accent: #8ab4f8; --ds-accent-text: #061121;
    --ds-shadow: 0 4px 24px rgba(0,0,0,.35);
    --ds-glass: rgba(27,29,32,.85);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ds-page: #111315; --ds-surface: #1b1d20; --ds-raised: #25282c;
  --ds-text: #f1f3f4; --ds-muted: #aeb4bd; --ds-line: #383c42;
  --ds-accent: #8ab4f8; --ds-accent-text: #061121;
  --ds-shadow: 0 4px 24px rgba(0,0,0,.35);
  --ds-glass: rgba(27,29,32,.85);
}
* {box-sizing:border-box}
html {scroll-behavior:smooth;scroll-padding-top:100px}
body {background:var(--ds-page);color:var(--ds-text);font:400 16px/1.75 Vazirmatn,Tahoma,"Segoe UI",sans-serif;min-width:320px;margin:0;direction:rtl}
body.admin-bar .ds-header{top:32px}
body, input, button, select, textarea {font-family:Vazirmatn,Tahoma,"Segoe UI",sans-serif}
button,input,select,textarea{font-size:inherit}
a{color:inherit;text-decoration:none}
button{cursor:pointer}
a:hover{color:var(--ds-accent)}
img{max-width:100%;height:auto}
:focus-visible {outline:3px solid var(--ds-accent);outline-offset:4px}
[hidden] {display:none!important}
.ds-site{overflow:clip;min-height:100vh;display:flex;flex-direction:column}
.ds-container{width:min(100% - 48px,1200px);margin-inline:auto}
.ds-skip{position:fixed;inset-block-start:-100px;inset-inline-start:20px;z-index:1000;background:var(--ds-text);color:var(--ds-page);padding:10px 18px;border-radius:8px}
.ds-skip:focus{inset-block-start:12px}
.ds-header{position:sticky;top:0;z-index:50;border-bottom:1px solid var(--ds-line);background:var(--ds-glass);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.ds-header-inner{min-height:74px;width:min(100% - 48px,1200px);margin:auto;display:flex;align-items:center;gap:32px;transition:min-height .22s}
.ds-header.is-condensed .ds-header-inner{min-height:60px}
.ds-brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px;white-space:nowrap}
.ds-brand-mark{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--ds-line);background:var(--ds-raised);color:var(--ds-accent);border-radius:10px;font-size:25px}
.ds-nav{display:flex;align-items:center;gap:3px;margin-inline-start:auto;padding:4px;border:1px solid var(--ds-line);border-radius:999px;background:color-mix(in srgb,var(--ds-surface) 80%,transparent);box-shadow:0 2px 10px rgba(0,0,0,.04)}
.ds-nav a{border-radius:999px;min-height:37px;display:grid;place-items:center;padding:6px 16px;font-size:13.5px;font-weight:600;color:var(--ds-muted);transition:background .2s,color .2s}
.ds-nav a:hover,.ds-nav a:focus-visible,.ds-nav a[aria-current="page"]{background:var(--ds-raised);color:var(--ds-text)}
.ds-theme-button{flex:none;width:44px;height:44px;border:1px solid var(--ds-line);border-radius:50%;display:grid;place-items:center;background:var(--ds-surface);color:var(--ds-text);font-size:24px}
.ds-main{flex:1;padding-block:55px 90px}
.ds-kicker,.ds-eyebrow,.ds-overline{font-weight:750;color:var(--ds-accent);font-size:13px;letter-spacing:.015em}
.ds-hero{position:relative;overflow:hidden;isolation:isolate;background:var(--ds-surface);border-bottom:1px solid var(--ds-line)}
.ds-hero-inner{position:relative;min-height:585px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:center;gap:36px;padding-block:88px 82px}
.ds-hero-copy{position:relative;z-index:2}
.ds-hero h1{margin:20px 0 18px;line-height:1.14;font-weight:850;font-size:clamp(47px,5vw,84px);letter-spacing:-.045em}
.ds-gradient-word{font-family:Arial,"Segoe UI",sans-serif;direction:ltr;display:inline-block;white-space:nowrap;background:linear-gradient(105deg,var(--ds-spark-1) 8%,var(--ds-spark-2) 40%,var(--ds-spark-3) 63%,var(--ds-spark-4) 90%);background-clip:text;-webkit-background-clip:text;color:transparent;letter-spacing:-.06em}
.ds-hero-subtitle{display:block;margin-top:23px;font-size:clamp(23px,2.8vw,37px);letter-spacing:-.02em;font-weight:750;color:var(--ds-text)}
.ds-hero-lead{font-size:clamp(15px,1.7vw,20px);color:var(--ds-muted);max-width:550px}
.ds-hero-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;margin-top:26px;margin-bottom:23px}
.ds-hero-price-label{font-size:13px;color:var(--ds-muted)}
.ds-hero-price strong{font-size:clamp(23px,2.2vw,32px);color:var(--ds-text)}
.ds-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:22px}
.ds-primary-button,.woocommerce a.button,.woocommerce button.button{display:inline-flex;justify-content:center;align-items:center;gap:14px;min-height:51px;padding:12px 25px;border:1px solid var(--ds-accent);background:var(--ds-accent);border-radius:10px;color:var(--ds-accent-text);font-weight:750;font-size:14px;box-shadow:0 5px 15px color-mix(in srgb,var(--ds-accent) 19%,transparent);transition:transform .2s,filter .2s}
.ds-primary-button:hover,.woocommerce a.button:hover{transform:translateY(-2px);filter:brightness(1.04);color:var(--ds-accent-text)}
.ds-secondary-link,.ds-link{display:inline-flex;gap:7px;align-items:center;color:var(--ds-accent);font-weight:700;font-size:14px}
.ds-secondary-link:hover,.ds-link:hover{text-decoration:underline}
.ds-hero-disclaimer{color:var(--ds-muted);font-size:12px;margin-top:25px;max-width:520px}
.ds-hero-visual{min-width:0;position:relative;aspect-ratio:1;display:grid;place-items:center}
.ds-hero-visual-glow{position:absolute;inset:5%;border-radius:50%;background:conic-gradient(from 0deg,rgba(66,133,244,.18),rgba(234,67,53,.08),rgba(251,188,5,.13),rgba(52,168,83,.16),rgba(66,133,244,.18));filter:blur(42px)}
.ds-hero-visual-frame{position:relative;display:grid;place-items:center;overflow:hidden;width:min(100%,450px);aspect-ratio:1;border-radius:40px;background:var(--ds-raised);box-shadow:var(--ds-shadow)}
.ds-hero-visual-frame img{object-fit:contain;width:100%;height:100%}
.ds-hero-decor{position:absolute;inset:0;pointer-events:none;opacity:.55}
.ds-hero-decor span{position:absolute;border-radius:50%;background:var(--ds-accent);width:4px;height:4px;animation:ds-float 9s ease-in-out infinite}
.ds-hero-decor span:nth-child(1){top:18%;left:16%}
.ds-hero-decor span:nth-child(2){top:62%;left:58%;animation-delay:2s}
.ds-hero-decor span:nth-child(3){top:35%;left:72%;animation-delay:4s}
@keyframes ds-float{50%{transform:translateY(-14px);opacity:.25}}
.ds-hero-bottom{display:flex;align-items:center;gap:20px;padding-block:18px;font:700 11px/1.5 Arial,sans-serif;letter-spacing:.13em;direction:ltr;color:var(--ds-muted);border-top:1px solid var(--ds-line)}
.ds-hero-line{height:1px;flex:1;background:var(--ds-line)}
.ds-featured,.ds-catalog{padding-block:76px 45px}
.ds-heading-row{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:30px}
.ds-heading-row h2{font-size:clamp(25px,2.6vw,37px);letter-spacing:-.02em;line-height:1.35;margin:10px 0 0}
.ds-small-status,.ds-catalog-count{color:var(--ds-muted);font-size:13px}
.ds-featured-grid,.ds-product-grid,.ds-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.ds-card,.ds-post-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;background:var(--ds-surface);border:1px solid var(--ds-line);border-radius:19px;box-shadow:var(--ds-shadow);transition:transform .23s,border-color .23s}
.ds-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--ds-accent) 32%,var(--ds-line))}
.ds-card-featured{border-color:var(--ds-accent)}
.ds-card-media{position:relative;display:grid;place-items:center;height:220px;overflow:hidden;background:var(--ds-raised)}
.ds-card-media img{width:100%;height:100%;object-fit:contain;padding:18px}
.ds-card-symbol{font-size:67px;background:linear-gradient(100deg,var(--ds-spark-1),var(--ds-spark-4));background-clip:text;color:transparent}
.ds-card-content{padding:22px;display:flex;flex:1;flex-direction:column;gap:8px}
.ds-card-title{font-size:22px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.ds-card-summary{font-size:13px;color:var(--ds-muted);line-height:1.9;min-height:45px;margin:0}
.ds-card-bottom{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-top:auto;padding-top:16px;border-top:1px solid var(--ds-line)}
.ds-card-price{font-weight:750;font-size:14px;overflow-wrap:anywhere}
.ds-preview-badge{position:absolute;top:12px;right:12px;z-index:1;border-radius:999px;background:var(--ds-surface);padding:5px 12px;color:var(--ds-muted);font-size:11px}
.ds-filter-bar{display:flex;justify-content:space-between;gap:18px;margin:0 0 25px;flex-wrap:wrap}
.ds-filter-chips{display:flex;gap:6px;flex-wrap:wrap;background:var(--ds-surface);border:1px solid var(--ds-line);border-radius:40px;padding:5px}
.ds-chip{color:var(--ds-muted);background:transparent;border:0;padding:9px 17px;border-radius:999px;font-weight:700;font-size:13px;min-height:40px}
.ds-chip.is-active{background:var(--ds-raised);color:var(--ds-text);box-shadow:0 1px 5px rgba(0,0,0,.06)}
.ds-search{display:flex;align-items:center;gap:8px;background:var(--ds-surface);border:1px solid var(--ds-line);border-radius:12px;padding:0 16px;min-height:51px;min-width:min(100%,270px)}
.ds-search input{color:var(--ds-text);background:none;border:0;outline:0;min-width:0;width:100%;font-size:14px}
.ds-empty-state,.ds-catalog-empty{text-align:center;color:var(--ds-muted);border:1px dashed var(--ds-line);background:var(--ds-surface);border-radius:15px;padding:50px 22px}
.ds-catalog-empty>span{font-size:50px;color:var(--ds-accent)}
.ds-catalog-empty h3{color:var(--ds-text);margin-bottom:6px}
.ds-see-all{text-align:center;margin-top:24px}
.ds-page-title{font-size:clamp(29px,3.5vw,46px);margin:0 0 32px}
.ds-content,.ds-readable{max-width:850px;line-height:2}
.ds-post-card{padding:26px}
.ds-footer{background:var(--ds-text);color:var(--ds-page);margin-top:auto;padding:64px 0 25px}
.ds-footer-grid{display:flex;justify-content:space-between;gap:30px}
.ds-footer p,.ds-footer-note{font-size:13px;opacity:.8}
.ds-footer-links{display:flex;gap:20px;align-items:center}
.ds-footer-note{border-top:1px solid rgba(255,255,255,.18);margin-top:36px;padding-top:22px}
.ds-mobile-dock{display:none}
.ds-woo .woocommerce{color:var(--ds-text)}
.ds-woo .woocommerce ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:20px 0}
.ds-woo .woocommerce ul.products::before,.ds-woo .woocommerce ul.products::after{display:none}
.ds-woo .woocommerce ul.products li.product{float:none;width:auto!important;margin:0!important;background:var(--ds-surface);border:1px solid var(--ds-line);border-radius:18px;padding:14px;box-shadow:var(--ds-shadow)}
.ds-woo .woocommerce ul.products li.product img{border-radius:12px;object-fit:contain}
.ds-woo .woocommerce ul.products li.product .woocommerce-loop-product__title{color:var(--ds-text);font-size:19px}
.ds-woo .woocommerce ul.products li.product .price{font-size:15px;color:var(--ds-accent);font-weight:700}
.ds-woo .woocommerce div.product .product_title{font-size:clamp(29px,3vw,42px)}
.ds-woo .woocommerce .woocommerce-breadcrumb{color:var(--ds-muted)}
.ds-woo input,.ds-woo select,.ds-woo textarea{background:var(--ds-surface);color:var(--ds-text);border:1px solid var(--ds-line);border-radius:8px;padding:10px}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:var(--ds-raised);border-color:var(--ds-line)}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--ds-text)}
.woocommerce-message,.woocommerce-info{border-top-color:var(--ds-accent);background:var(--ds-surface);color:var(--ds-text)}
@media(max-width:900px){
  .ds-header-inner{gap:14px}
  .ds-nav a{padding:6px 11px}
  .ds-hero-inner{grid-template-columns:1.15fr .85fr;gap:5px;min-height:510px}
  .ds-hero-visual-frame{border-radius:22px}
  .ds-featured-grid,.ds-product-grid,.ds-post-grid,.ds-woo .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:768px){
  body.admin-bar .ds-header{top:46px}
  .ds-header-inner{min-height:65px}
  .ds-nav{display:none}
  .ds-theme-button{margin-inline-start:auto}
  .ds-mobile-dock{position:fixed;inset-inline:0;bottom:0;z-index:80;display:flex;justify-content:space-around;gap:6px;background:var(--ds-glass);border-top:1px solid var(--ds-line);backdrop-filter:blur(18px);padding:9px 15px max(9px,env(safe-area-inset-bottom))}
  .ds-mobile-dock a{display:flex;flex-direction:column;align-items:center;gap:0;min-width:70px;min-height:50px;font-size:12px;color:var(--ds-muted);font-weight:650}
  .ds-mobile-dock a span{font-size:21px}
  .ds-footer{padding-bottom:115px}
  .ds-hero-inner{grid-template-columns:1fr;gap:18px;padding-top:50px;padding-bottom:45px}
  .ds-hero-visual{max-width:310px;margin:auto}
  .ds-hero h1{font-size:clamp(46px,9vw,72px)}
  .ds-hero-subtitle{font-size:clamp(23px,5vw,29px);margin-top:12px}
  .ds-hero-price{margin-top:18px}
  .ds-featured,.ds-catalog{padding-block:55px 30px}
}
@media(max-width:540px){
  .ds-container,.ds-header-inner{width:min(100% - 32px,1200px)}
  .ds-brand{font-size:14px;gap:8px}
  .ds-brand-mark{width:36px;height:36px}
  .ds-hero h1{font-size:clamp(43px,9vw,57px)}
  .ds-gradient-word{white-space:normal;overflow-wrap:anywhere}
  .ds-hero-visual{max-width:245px}
  .ds-featured-grid,.ds-product-grid,.ds-post-grid,.ds-woo .woocommerce ul.products{grid-template-columns:1fr}
  .ds-heading-row{align-items:start;flex-direction:column;gap:7px}
  .ds-card-media{height:205px}
  .ds-filter-bar{display:block}
  .ds-filter-chips{margin-bottom:12px}
  .ds-search{width:100%}
  .ds-footer-grid{flex-direction:column;gap:15px}
  .ds-hero-actions{gap:14px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
  .ds-card:hover,.ds-primary-button:hover{transform:none}
}

/* Accessible product preview: content set via textContent, not HTML injection. */
.ds-card-bottom{align-items:center}
.ds-card-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.ds-quick-view{padding:6px 10px;border:1px solid var(--ds-line);border-radius:7px;background:var(--ds-surface);color:var(--ds-text);font-size:12px;font-weight:650}
.ds-quick-view:hover{border-color:var(--ds-accent)}
.ds-quick-dialog{width:min(100% - 30px,560px);max-height:min(85vh,700px);overflow:auto;color:var(--ds-text);background:var(--ds-surface);border:1px solid var(--ds-line);border-radius:20px;box-shadow:0 25px 90px rgba(0,0,0,.22);padding:36px;direction:rtl}
.ds-quick-dialog::backdrop{background:rgba(10,15,22,.62);backdrop-filter:blur(4px)}
.ds-quick-dialog h2{font-size:clamp(23px,4vw,33px);margin:12px 0}
.ds-quick-dialog p{color:var(--ds-muted)}
.ds-dialog-price{display:block;margin:20px 0 8px;font-size:21px}
.ds-dialog-close-form{position:absolute;top:11px;left:12px}
.ds-dialog-close{display:grid;place-items:center;background:var(--ds-raised);color:var(--ds-text);border:1px solid var(--ds-line);width:38px;height:38px;border-radius:50%;font-size:24px}
@media(max-width:540px){.ds-quick-dialog{padding:28px 20px}.ds-card-bottom{align-items:start;flex-direction:column}.ds-card-actions{width:100%;justify-content:space-between}}

/* Clear, theme-consistent WooCommerce product legal disclosures. */
.ds-product-disclosures{margin:26px 0 8px;padding:18px 20px;border:1px solid var(--ds-line);border-radius:14px;background:var(--ds-raised);color:var(--ds-text)}
.ds-product-disclosures h2{font-size:17px;line-height:1.5;margin:0 0 8px}
.ds-product-disclosures p{font-size:13px;line-height:1.9;margin:0 0 10px;color:var(--ds-muted)}
.ds-product-disclosures ul{padding-inline-start:22px;margin:10px 0 0}
.ds-product-disclosures a{color:var(--ds-accent);text-decoration:underline;text-underline-offset:3px}
.ds-content a{color:var(--ds-accent);text-decoration:underline;text-underline-offset:3px}
.ds-woo .woocommerce-page .woocommerce-error{color:var(--ds-text);background:var(--ds-surface)}
.ds-woo .woocommerce nav.woocommerce-pagination ul{border:0;display:flex;gap:8px}
.ds-woo .woocommerce nav.woocommerce-pagination ul li{float:none;border:1px solid var(--ds-line);border-radius:9px;background:var(--ds-surface)}
.ds-woo .woocommerce nav.woocommerce-pagination ul li a,.ds-woo .woocommerce nav.woocommerce-pagination ul li span{min-width:42px;min-height:42px;display:grid;place-items:center;color:var(--ds-text)}
.ds-woo .woocommerce .woocommerce-MyAccount-navigation ul{list-style:none;padding:0}
.ds-woo .woocommerce .woocommerce-MyAccount-navigation li a{display:block;padding:10px 14px;border:1px solid var(--ds-line);background:var(--ds-surface);color:var(--ds-text)}
.ds-woo .woocommerce table.shop_table{border-color:var(--ds-line);background:var(--ds-surface);color:var(--ds-text)}
.ds-woo .woocommerce .quantity .qty{width:80px}
@media(max-width:768px){.ds-woo .woocommerce .col2-set .col-1,.ds-woo .woocommerce .col2-set .col-2{float:none;width:100%}}
