/*
Theme Name: Dayan Bazar Reference
Theme URI: https://example.com/
Author: Dayan Bazar
Description: قالب فروشگاهی راست‌چین بازسازی‌شده بر اساس تصاویر مرجع؛ سازگار با WooCommerce، Elementor و Dokan.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dayan-bazar
*/

*{box-sizing:border-box}
:root{--pink:#d71972;--dark:#202124;--blue:#2477e8;--bg:#f6f6f7;--card:#fff;--muted:#777}
body{margin:0;background:var(--bg);color:#242424;font-family:Tahoma,"Vazirmatn",Arial,sans-serif}
a{text-decoration:none;color:inherit}
button{font-family:inherit;border:0;cursor:pointer}
.topbar{height:58px;background:#d71972;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20px}
.topbar .arrow{position:absolute;right:28px;background:#fff;color:#222;width:54px;height:54px;top:4px;border-radius:0 0 7px 7px;text-align:center;padding-top:10px;font-size:22px}
.blackbar{height:42px;background:#202020;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;font-size:13px}
.blackbar .links{display:flex;gap:26px}
.header{height:88px;background:#fff;border-bottom:1px solid #eee;display:grid;grid-template-columns:220px 1fr 240px;align-items:center;gap:22px;padding:0 28px}
.logo{font-size:34px;font-weight:900;color:#f19a00;text-align:right}
.logo span{color:#171717}
.search{height:50px;background:#f1f2f4;border-radius:14px;display:flex;align-items:center;padding:0 18px;color:#8a8a8a}
.account{display:flex;justify-content:flex-start;align-items:center;gap:12px;font-size:13px}
.login{border:1px solid #ddd;border-radius:8px;padding:11px 18px;background:#fff}
.nav{height:44px;background:#fff;border-bottom:1px solid #ddd;display:flex;align-items:center;justify-content:flex-start;gap:27px;padding:0 28px;font-size:13px;white-space:nowrap}
.nav .category{font-weight:800;margin-right:0}.nav .special{color:#d71972;font-weight:700}
.wrap{max-width:1290px;margin:auto;padding:8px 0}
.hero{display:grid;grid-template-columns:1fr 2.2fr;gap:24px;margin-top:0}
.hero-side{display:grid;grid-template-rows:1fr 1fr 1fr;gap:18px}
.hero-side a,.hero-main{position:relative;overflow:hidden;border-radius:14px}
.hero-side a{min-height:115px}
.hero-side img,.hero-main img{width:100%;height:100%;object-fit:cover;display:block}
.hero-main{height:410px}
.hero-main .overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.05),rgba(0,0,0,.12))}
.hero-main .caption{position:absolute;right:8%;top:24%;color:#fff;text-align:right;text-shadow:0 2px 8px #333}
.hero-main h1{font-size:29px;margin:0 0 10px}.hero-main p{font-size:16px}.hero-main button{background:#fff;border-radius:20px;padding:9px 28px;color:#333;font-weight:700}
.dots{text-align:center;padding:9px}.dots i{display:inline-block;width:7px;height:7px;background:#ddd;border-radius:50%;margin:0 4px}.dots i.active{background:#efb400}
.services{background:#fff;border-radius:0 0 14px 14px;display:grid;grid-template-columns:repeat(4,1fr);padding:22px 12px;margin-bottom:22px}
.service{display:flex;gap:12px;align-items:center;justify-content:center;border-left:1px solid #eee;min-height:65px}.service:last-child{border:0}
.service .ico{font-size:34px}.service b{display:block;font-size:15px;margin-bottom:6px}.service small{color:#777}
.strip{height:72px;border-radius:12px;margin:18px 0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:23px;font-weight:900;overflow:hidden;position:relative}
.strip.pink{background:linear-gradient(90deg,#d61978,#b81cd1)}.strip.blue{background:linear-gradient(90deg,#3982dd,#2b70ca)}
.section{background:#fff;border:1px solid #eee;border-radius:3px;padding:22px;margin:18px 0}
.title{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.title h2{font-size:20px;margin:0}.title a{font-size:13px;color:#246dd1}
.category-row{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.cat{height:165px;border-radius:12px;overflow:hidden;position:relative;background:#eee}
.cat img{width:100%;height:100%;object-fit:cover}.cat:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 48%,rgba(0,0,0,.72))}
.cat b{position:absolute;z-index:2;bottom:15px;right:0;left:0;text-align:center;color:#fff;font-size:15px}
.products-row{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.product{background:#fff;border:1px solid #eee;border-radius:10px;overflow:hidden;position:relative;min-width:0}
.product .pic{height:190px;display:flex;align-items:center;justify-content:center;background:#fff;position:relative}
.product .pic img{width:100%;height:100%;object-fit:contain}.share{position:absolute;top:10px;right:10px;font-size:18px}
.product .body{padding:10px 11px}.product .name{height:44px;overflow:hidden;font-size:12px;line-height:1.8}
.rating{font-size:11px;color:#777;margin-top:8px}.rating b{color:#e7b400;font-size:14px}
.price{font-weight:900;font-size:14px;margin-top:9px}.old{font-size:11px;color:#aaa;text-decoration:line-through;margin-left:5px}
.actionbar{border-top:1px solid #eee;margin-top:9px;padding-top:8px;display:flex;justify-content:space-between;color:#333;font-size:17px}
.feature{display:grid;grid-template-columns:270px 1fr;gap:0;background:#e71dbe;border-radius:0;overflow:hidden;margin:22px 0}
.feature .side{background:#e71dbe;color:#fff;padding:45px 35px;display:flex;flex-direction:column;justify-content:center}.feature .side h2{font-size:30px;line-height:1.6;margin:0}.feature .side p{font-size:14px}
.feature .products-row{background:#e71dbe;padding:22px;grid-template-columns:repeat(4,1fr)}
.feature .product{border:0}
.shocking{background:#f52f25}
.shocking .side{background:#f52f25}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.blog-card{background:#fff;border:1px solid #eee;border-radius:10px;overflow:hidden}
.blog-card img{width:100%;height:165px;object-fit:cover}.blog-body{padding:14px}.blog-body h3{font-size:14px;line-height:1.8;margin:0 0 12px}.meta{font-size:11px;color:#777}
.archive{display:flex;justify-content:center;margin:18px}.archive a{border:1px solid #2477e8;color:#2477e8;padding:10px 24px;border-radius:8px}
.widget-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.widget{background:#fff;border:1px solid #ddd;border-radius:4px;padding:22px}.widget h3{margin:0 0 18px;font-size:17px}.widget li{list-style:none;margin:14px 0;font-size:13px;display:flex;gap:10px;align-items:center}.widget ul{padding:0;margin:0}.avatar{width:40px;height:40px;border-radius:50%;object-fit:cover}
.backtop{text-align:center;padding:24px;background:#fff}.backtop .up{border:2px solid #222;border-radius:7px;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:26px}
.footer{background:#252936;color:#fff;margin-top:0}.footer-main{max-width:1290px;margin:auto;padding:36px 28px;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:45px}.footer h3{font-size:16px}.footer p,.footer li{color:#c3c6cf;font-size:12px;line-height:2.2}.footer ul{padding:0;list-style:none}.newsletter{display:flex;background:#fff;border-radius:8px;overflow:hidden;margin-top:18px}.newsletter input{border:0;padding:12px;flex:1;min-width:0}.newsletter button{background:#3277ee;color:#fff;padding:0 18px}.copyright{text-align:center;background:#171c28;padding:16px;color:#8f96a6;font-size:12px}
@media(max-width:1000px){.header{grid-template-columns:150px 1fr}.account{display:none}.products-row{grid-template-columns:repeat(3,1fr)}.feature .products-row{grid-template-columns:repeat(2,1fr)}.widget-grid{grid-template-columns:1fr 1fr}.hero{grid-template-columns:1fr}.hero-side{grid-template-columns:repeat(3,1fr);grid-template-rows:150px}.hero-main{height:330px}}
@media(max-width:650px){.topbar{font-size:14px}.blackbar{display:none}.header{height:72px;grid-template-columns:1fr}.logo{text-align:center}.search{display:none}.nav{overflow:auto}.wrap{padding:5px 10px}.services{grid-template-columns:1fr 1fr}.category-row{grid-template-columns:repeat(2,1fr)}.products-row{grid-template-columns:repeat(2,1fr)}.hero-side{grid-template-columns:1fr;grid-template-rows:repeat(3,100px)}.hero-main{height:250px}.feature{grid-template-columns:1fr}.feature .side{text-align:center}.blog-grid,.widget-grid{grid-template-columns:1fr}.footer-main{grid-template-columns:1fr}.service{font-size:11px}.service .ico{font-size:25px}}


/* WordPress / WooCommerce integration */
.admin-bar .topbar{margin-top:32px}
.site-main{min-height:300px}
.woocommerce .products-row{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce .woocommerce-breadcrumb{display:none}
.woocommerce .quantity input{max-width:80px}
.woocommerce div.product .product_title{font-size:24px}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:10px}
.elementor-page .site-shell{width:100%}
@media(max-width:1000px){.woocommerce .products-row{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.woocommerce .products-row{grid-template-columns:repeat(2,1fr)}}

/* Homepage safety: raw shortcode text should never be the intended visual layout. */
.page-content .entry-content{line-height:2}
.page-content .entry-content .elementor{width:100%}
.elementor-page .page-content{max-width:none;padding:0;border:0;background:transparent}
