/*
Theme Name: Digi20 Store
Theme URI: https://digi20store.ir/
Author: OpenAI
Description: A lightweight Persian RTL WooCommerce starter theme designed for Digi20 Store.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: digi20
*/
:root{--ink:#171923;--muted:#707584;--line:#eceef2;--paper:#fff;--soft:#f6f7f9;--accent:#ef3340;--accent2:#c9162b;--radius:18px;--shadow:0 12px 35px rgba(20,25,40,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Tahoma,Arial,sans-serif;font-size:15px;line-height:1.9;direction:rtl}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}img{max-width:100%;height:auto}button,input{font:inherit}.container{width:min(1180px,calc(100% - 36px));margin-inline:auto}.site-top{background:#171923;color:#e9eaf0;font-size:12px;padding:7px 0}.top-inner{display:flex;justify-content:space-between;gap:15px}.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}.header-main{min-height:88px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:10px;min-width:190px}.brand-mark{width:45px;height:45px;border-radius:14px;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:900;font-size:17px;box-shadow:0 7px 18px rgba(239,51,64,.22)}.brand-name{font-size:21px;font-weight:900;line-height:1.2;letter-spacing:-.6px}.brand-name small{display:block;color:var(--muted);font-size:10px;font-weight:500;letter-spacing:1.4px;margin-top:4px;direction:ltr;text-align:right}.search-wrap{flex:1;position:relative}.search-wrap input{width:100%;height:48px;border:1px solid var(--line);border-radius:13px;background:var(--soft);padding:0 18px 0 55px;outline:0}.search-wrap input:focus{border-color:#f3a1a7;background:#fff}.search-wrap button{position:absolute;left:6px;top:6px;height:36px;width:42px;border:0;border-radius:10px;background:var(--accent);color:#fff;cursor:pointer}.header-actions{display:flex;align-items:center;gap:10px}.header-action{border:1px solid var(--line);border-radius:12px;padding:9px 13px;font-size:13px;white-space:nowrap}.header-action strong{color:var(--accent)}.main-nav{border-top:1px solid #f5f5f6}.nav-inner{display:flex;align-items:center;gap:25px;min-height:48px;overflow-x:auto;white-space:nowrap;font-size:13px;font-weight:700}.nav-inner a:first-child{color:var(--accent)}.nav-inner a:hover{color:var(--accent)}.mobile-menu{display:none}.hero{padding:32px 0 22px}.hero-panel{position:relative;overflow:hidden;border-radius:25px;background:linear-gradient(115deg,#171923 0%,#272b3a 62%,#3b1d2a 100%);color:#fff;min-height:315px;display:flex;align-items:center;padding:45px 6%;box-shadow:var(--shadow)}.hero-panel:after{content:'20';position:absolute;left:5%;top:-95px;font-size:330px;line-height:1;font-weight:900;color:rgba(255,255,255,.045);direction:ltr}.hero-copy{position:relative;z-index:1;max-width:570px}.eyebrow{display:inline-block;background:rgba(239,51,64,.17);color:#ff929a;border:1px solid rgba(255,255,255,.1);padding:4px 12px;border-radius:30px;font-size:12px;margin-bottom:12px}.hero h1{font-size:clamp(28px,4vw,46px);line-height:1.45;margin:0 0 10px;font-weight:900;letter-spacing:-1px}.hero p{color:#d1d3dc;margin:0 0 22px;font-size:15px}.hero-btn{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:#fff!important;padding:11px 22px;border-radius:12px;font-weight:700}.section{padding:24px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:17px}.section-title{margin:0;font-size:21px;font-weight:900}.section-sub{color:var(--muted);font-size:12px;margin:2px 0 0}.text-link{font-size:13px;color:var(--accent);font-weight:700}.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:13px}.category-card{border:1px solid var(--line);border-radius:17px;padding:18px 10px;text-align:center;transition:.2s;background:#fff}.category-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#f5b5ba}.category-icon{width:52px;height:52px;border-radius:16px;background:#fff0f1;color:var(--accent);display:grid;place-items:center;margin:0 auto 10px;font-size:23px;font-weight:700}.category-card b{font-size:13px}.benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:10px 0 24px}.benefit{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:15px;padding:13px}.benefit-icon{width:39px;height:39px;flex:0 0 39px;border-radius:12px;background:var(--soft);display:grid;place-items:center;color:var(--accent);font-size:18px}.benefit b{display:block;font-size:12px}.benefit small{display:block;color:var(--muted);font-size:10px}.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.product-card{border:1px solid var(--line);border-radius:17px;overflow:hidden;background:#fff;transition:.2s}.product-card:hover{box-shadow:var(--shadow);transform:translateY(-3px)}.product-image{height:190px;background:var(--soft);display:grid;place-items:center;color:#a3a7b2;font-size:13px}.product-image img{width:100%;height:100%;object-fit:contain;padding:15px}.product-info{padding:13px}.product-info h3{font-size:13px;line-height:1.7;margin:0 0 7px}.price{font-weight:900;color:var(--accent);font-size:15px}.price del{font-size:11px;color:#999;font-weight:400;margin-left:5px}.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0!important}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;border:1px solid var(--line);border-radius:17px;padding:12px!important;overflow:hidden;transition:.2s}.woocommerce ul.products li.product:hover{box-shadow:var(--shadow);transform:translateY(-3px)}.woocommerce ul.products li.product a img{height:185px;object-fit:contain;margin:0 0 12px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px;line-height:1.8;padding:0 0 7px}.woocommerce ul.products li.product .price{color:var(--accent);font-weight:900}.woocommerce ul.products li.product .button{background:var(--ink);color:#fff;border-radius:9px;font-size:11px;padding:9px 12px}.woocommerce span.onsale{background:var(--accent);min-height:30px;min-width:30px;line-height:30px}.woocommerce div.product div.images img{border-radius:15px}.woocommerce div.product .product_title{font-size:25px}.woocommerce a{transition:.2s}.woocommerce .quantity .qty{height:40px;border:1px solid var(--line);border-radius:8px}.woocommerce button.button.alt,.woocommerce a.button.alt{background:var(--accent);border-radius:9px}.woocommerce button.button.alt:hover,.woocommerce a.button.alt:hover{background:var(--accent2)}.site-footer{margin-top:45px;background:#171923;color:#d9dbe2;padding:40px 0 20px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:35px}.footer-title{font-size:17px;color:#fff;font-weight:900;margin:0 0 10px}.footer-copy{color:#aeb2bf;font-size:12px;max-width:440px}.footer-links{display:grid;gap:7px;font-size:12px;color:#c4c7d0}.footer-bottom{border-top:1px solid #343744;margin-top:28px;padding-top:15px;color:#9da2b1;font-size:11px;display:flex;justify-content:space-between;gap:12px}.content-area{padding:30px 0 55px;min-height:40vh}.content-area h1,.content-area h2{line-height:1.5}.pagination{margin-top:25px}.menu-toggle{display:none}
@media(max-width:900px){.category-grid{grid-template-columns:repeat(3,1fr)}.benefits{grid-template-columns:repeat(2,1fr)}.products-grid,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}.header-main{gap:13px}.brand{min-width:auto}.header-action{padding:8px}.footer-grid{grid-template-columns:1fr 1fr}.hero-panel{min-height:280px}}
@media(max-width:600px){.container{width:min(100% - 24px,1180px)}.top-inner{justify-content:center}.top-inner span:last-child{display:none}.header-main{min-height:72px;flex-wrap:wrap;padding:10px 0;gap:10px}.brand{flex:1}.brand-mark{width:39px;height:39px}.brand-name{font-size:18px}.search-wrap{order:3;flex:0 0 100%}.header-actions{gap:6px}.header-action{font-size:11px;padding:6px 8px}.main-nav .nav-inner{gap:18px;min-height:42px;font-size:12px}.hero{padding-top:18px}.hero-panel{min-height:260px;padding:28px 22px;border-radius:19px}.hero-panel:after{font-size:220px;top:-35px;left:-8%}.hero h1{font-size:27px}.hero p{font-size:13px}.section{padding:18px 0}.section-title{font-size:18px}.category-grid{gap:8px}.category-card{padding:12px 5px;border-radius:13px}.category-icon{width:43px;height:43px;font-size:19px}.category-card b{font-size:11px}.benefits{gap:8px}.benefit{padding:9px;gap:8px}.benefit-icon{width:33px;height:33px;flex-basis:33px}.benefit b{font-size:11px}.benefit small{font-size:9px}.products-grid,.woocommerce ul.products{gap:9px!important}.product-image{height:145px}.product-info{padding:10px}.footer-grid{grid-template-columns:1fr;gap:20px}.footer-bottom{flex-direction:column}.woocommerce ul.products li.product{padding:9px!important}.woocommerce ul.products li.product a img{height:145px}}
