/* =========================================================
   شهر کفش — Main Stylesheet
   Mobile-first, RTL, Marketplace design system
   ========================================================= */

:root{
  --skf-navy-900:#0b1a24;
  --skf-navy-800:#0f2027;
  --skf-navy-700:#16323d;
  --skf-navy-600:#1e3c72;
  --skf-blue-500:#2a5298;
  --skf-gold-500:#d4a017;
  --skf-gold-600:#b8860b;
  --skf-gold-400:#f2c744;
  --skf-red-500:#e0403a;
  --skf-green-500:#2e9e5b;
  --skf-bg:#f6f7f9;
  --skf-bg-alt:#eef1f4;
  --skf-white:#ffffff;
  --skf-text:#1c2530;
  --skf-text-muted:#6b7685;
  --skf-border:#e3e7ec;
  --skf-radius-sm:8px;
  --skf-radius-md:14px;
  --skf-radius-lg:20px;
  --skf-shadow:0 4px 18px rgba(15,32,39,.07);
  --skf-shadow-hover:0 10px 30px rgba(15,32,39,.14);
  --skf-container:1240px;
  --skf-header-h:64px;
  --skf-bottomnav-h:62px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:'Vazirmatn', Tahoma, 'Segoe UI', Arial, sans-serif;
  background:var(--skf-bg);
  color:var(--skf-text);
  direction:rtl;
  text-align:right;
  line-height:1.75;
  font-size:15px;
  padding-bottom: var(--skf-bottomnav-h);
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{ margin:0 0 .5em; font-weight:700; line-height:1.4; }
p{ margin:0 0 1em; color:var(--skf-text-muted); }
.screen-reader-text{ position:absolute; left:-9999px; }

.container{ max-width:var(--skf-container); margin:0 auto; padding:0 16px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:12px 22px; border-radius:999px; font-weight:600; font-size:14px;
  border:2px solid transparent; transition:.2s ease; cursor:pointer; white-space:nowrap;
}
.btn-gold{ background:linear-gradient(135deg,var(--skf-gold-400),var(--skf-gold-600)); color:#231a00; }
.btn-gold:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.btn-outline{ border-color:var(--skf-navy-600); color:var(--skf-navy-600); background:transparent; }
.btn-outline:hover{ background:var(--skf-navy-600); color:#fff; }
.btn-outline-light{ border-color:rgba(255,255,255,.7); color:#fff; background:rgba(255,255,255,.06); }
.btn-outline-light:hover{ background:#fff; color:var(--skf-navy-800); }
.btn-lg{ padding:15px 30px; font-size:16px; }
.btn-block{ width:100%; }
.btn-add-to-cart{ background:var(--skf-navy-600); color:#fff; width:100%; padding:10px 14px; border-radius:10px; font-size:13px; }
.btn-add-to-cart:hover{ background:var(--skf-blue-500); }
.btn-add-to-cart:disabled{ background:#c9cfd6; cursor:not-allowed; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--skf-white); border-bottom:1px solid var(--skf-border);
}
.header-top{
  display:flex; align-items:center; gap:14px; height:var(--skf-header-h);
}
.mobile-menu-toggle{
  display:flex; flex-direction:column; justify-content:center; gap:4px;
  width:34px; height:34px; background:none; border:none; padding:0;
}
.mobile-menu-toggle span{ display:block; width:100%; height:2px; background:var(--skf-text); border-radius:2px; }

.site-logo{ display:flex; align-items:center; }
.logo-text{ font-size:20px; font-weight:800; color:var(--skf-navy-800); letter-spacing:-.5px; }
.logo-text em{ font-style:normal; color:var(--skf-gold-600); }

.main-navigation{ display:none; }
.primary-menu{ display:flex; gap:22px; }
.primary-menu a{ font-weight:600; font-size:14.5px; color:var(--skf-text); }
.primary-menu a:hover{ color:var(--skf-gold-600); }

.header-actions{ display:flex; align-items:center; gap:10px; margin-inline-start:auto; }
.header-search{ display:none; position:relative; }
.header-search .search-field{
  width:260px; padding:9px 40px 9px 14px; border-radius:999px; border:1px solid var(--skf-border);
  background:var(--skf-bg); font-family:inherit; font-size:13.5px;
}
.header-search .search-submit{
  position:absolute; inset-inline-start:6px; top:50%; transform:translateY(-50%);
  background:none; border:none; color:var(--skf-text-muted); padding:4px;
}
.header-icon-link{ position:relative; display:none; flex-direction:column; align-items:center; gap:2px; font-size:10px; color:var(--skf-text); }
.header-icon-link .icon-label{ display:none; }
.cart-count{
  position:absolute; top:-6px; left:-8px; background:var(--skf-red-500); color:#fff;
  font-size:10px; min-width:16px; height:16px; border-radius:999px; display:flex; align-items:center; justify-content:center; padding:0 3px;
}
.header-shop-btn{ display:none; padding:9px 18px; font-size:13px; }

@media (min-width:1024px){
  .header-top{ height:76px; }
  .mobile-menu-toggle{ display:none; }
  .main-navigation{ display:block; }
  .header-search{ display:block; }
  .header-icon-link{ display:flex; }
  .header-icon-link .icon-label{ display:block; font-size:10px; }
  .header-shop-btn{ display:inline-flex; }
  .logo-text{ font-size:24px; }
}
@media (max-width:1023px){
  .main-navigation.mobile-open{ display:block; position:absolute; top:100%; inset-inline:0; background:#fff; border-bottom:1px solid var(--skf-border); box-shadow:var(--skf-shadow); }
  .main-navigation.mobile-open .primary-menu{ flex-direction:column; gap:0; padding:8px 16px; }
  .main-navigation.mobile-open .primary-menu li{ border-bottom:1px solid var(--skf-border); }
  .main-navigation.mobile-open .primary-menu a{ display:block; padding:13px 0; }
}

/* ---------- Mobile Bottom Nav ---------- */
.mobile-bottom-nav{
  position:fixed; bottom:0; inset-inline:0; z-index:200;
  background:var(--skf-white); border-top:1px solid var(--skf-border);
  display:flex; height:var(--skf-bottomnav-h);
  box-shadow:0 -6px 20px rgba(0,0,0,.06);
}
.mobile-bottom-nav a{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; font-size:11px; color:var(--skf-text-muted); position:relative;
}
.mobile-bottom-nav a.active{ color:var(--skf-navy-600); }
.mobile-bottom-nav a.active svg{ stroke:var(--skf-gold-600); }
.mobile-bottom-nav .cart-count{ top:-2px; left:calc(50% - 18px); }

@media (min-width: 1024px){
  .mobile-bottom-nav{ display:none; }
  body{ padding-bottom:0; }
}

/* ---------- Hero ---------- */
.hero-section{ position:relative; overflow:hidden; color:#fff; }
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; }
.hero-section::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(11,26,36,.55), rgba(11,26,36,.9));
}
.hero-content{ position:relative; z-index:1; padding:70px 16px 60px; text-align:center; max-width:760px; margin:0 auto; }
.hero-content h1{ font-size:26px; margin-bottom:14px; }
.hero-content p{ color:rgba(255,255,255,.85); font-size:15px; margin-bottom:26px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }

@media (min-width:768px){
  .hero-content{ padding:110px 20px 90px; }
  .hero-content h1{ font-size:38px; }
  .hero-content p{ font-size:18px; }
}

/* ---------- Sections ---------- */
.section{ padding:36px 0; }
.alt-bg{ background:var(--skf-bg-alt); }
.section-title{ font-size:20px; margin-bottom:18px; }
.section-title.light{ color:#fff; text-align:center; margin-bottom:6px; }
.section-sub{ text-align:center; color:var(--skf-text-muted); margin-bottom:26px; }
.section-sub.light{ color:rgba(255,255,255,.75); }
.section-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.section-more{ font-size:13.5px; font-weight:600; color:var(--skf-navy-600); white-space:nowrap; }

@media (min-width:768px){ .section{ padding:56px 0; } .section-title{ font-size:26px; } }

/* ---------- Categories ---------- */
.categories-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:12px;
}
@media (min-width:640px){ .categories-grid{ grid-template-columns:repeat(4,1fr);} }
@media (min-width:1024px){ .categories-grid{ grid-template-columns:repeat(6,1fr); gap:16px; } }

.category-card{
  display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center;
  background:var(--skf-white); border-radius:var(--skf-radius-md); padding:10px;
  box-shadow:var(--skf-shadow); transition:.2s;
}
.category-card:hover{ transform:translateY(-3px); box-shadow:var(--skf-shadow-hover); }
.category-card-img{ width:100%; aspect-ratio:1/1; border-radius:var(--skf-radius-sm); overflow:hidden; }
.category-card-img img{ width:100%; height:100%; object-fit:cover; }
.category-card-title{ font-size:12.5px; font-weight:600; }

/* ---------- Product Grid / Cards ---------- */
.products-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
@media (min-width:640px){ .products-grid{ grid-template-columns:repeat(3,1fr);} }
@media (min-width:1024px){ .products-grid{ grid-template-columns:repeat(4,1fr); gap:20px; } }

.product-card{
  background:var(--skf-white); border-radius:var(--skf-radius-md); overflow:hidden;
  box-shadow:var(--skf-shadow); transition:.2s; display:flex; flex-direction:column;
}
.product-card:hover{ transform:translateY(-4px); box-shadow:var(--skf-shadow-hover); }
.product-card-img{ position:relative; aspect-ratio:1/1; overflow:hidden; }
.product-card-img img{ width:100%; height:100%; object-fit:cover; transition:.3s; }
.product-card:hover .product-card-img img{ transform:scale(1.05); }
.badge{
  position:absolute; top:8px; inset-inline-start:8px; font-size:10.5px; font-weight:700;
  padding:4px 9px; border-radius:999px; color:#fff;
}
.badge-sale{ background:var(--skf-red-500); }
.badge-outofstock{ background:#7c8896; inset-inline-start:auto; inset-inline-end:8px; top:8px; }
.product-card.out-of-stock .product-card-img img{ opacity:.55; }

.product-card-body{ padding:12px; display:flex; flex-direction:column; gap:4px; flex:1; }
.product-card-brand{ font-size:11px; color:var(--skf-gold-600); font-weight:700; }
.product-card-title{ font-size:13.5px; margin:0; line-height:1.5; }
.product-card-title a{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.product-card-seller{ font-size:11px; color:var(--skf-text-muted); }
.skf-stars{ color:var(--skf-gold-500); font-size:12px; letter-spacing:1px; }
.product-card-price{ margin:4px 0 8px; display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.price-old{ font-size:11.5px; color:var(--skf-text-muted); text-decoration:line-through; }
.price-new{ font-size:14.5px; font-weight:800; color:var(--skf-navy-800); }
.skf-product-seller{ display:block; font-size:11px; color:var(--skf-text-muted); }

.products-grid-scroll{
  display:flex; overflow-x:auto; gap:14px; padding-bottom:8px; scroll-snap-type:x proximity;
}
.products-grid-scroll .product-card{ min-width:170px; scroll-snap-align:start; }
@media (min-width:1024px){
  .products-grid-scroll{ display:grid; grid-template-columns:repeat(6,1fr); overflow:visible; }
}

/* ---------- Brands ---------- */
.brands-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
@media (min-width:640px){ .brands-grid{ grid-template-columns:repeat(4,1fr);} }
.brand-card{
  background:var(--skf-white); border-radius:var(--skf-radius-md); padding:16px; text-align:center;
  box-shadow:var(--skf-shadow); display:flex; flex-direction:column; align-items:center; gap:6px; transition:.2s;
}
.brand-card:hover{ transform:translateY(-3px); box-shadow:var(--skf-shadow-hover); }
.brand-card img{ border-radius:var(--skf-radius-sm); margin-bottom:6px; }
.brand-name{ font-weight:700; font-size:13.5px; }
.brand-count{ font-size:11.5px; color:var(--skf-text-muted); }

/* ---------- Market Section (homepage) ---------- */
.market-section{
  background:linear-gradient(135deg,var(--skf-navy-900),var(--skf-navy-600));
  color:#fff;
}
.market-cards{ display:grid; grid-template-columns:1fr; gap:14px; margin:26px 0; }
@media (min-width:768px){ .market-cards{ grid-template-columns:repeat(3,1fr);} }
.market-card{
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14);
  border-radius:var(--skf-radius-md); padding:22px; text-align:center;
}
.market-card h3{ color:var(--skf-gold-400); margin-bottom:6px; }
.market-card p{ color:rgba(255,255,255,.75); margin:0; }
.market-cta{ text-align:center; }

/* ---------- Sellers / Producers ---------- */
.sellers-grid{ display:grid; grid-template-columns:1fr; gap:16px; margin-bottom:30px; }
@media (min-width:640px){ .sellers-grid{ grid-template-columns:repeat(2,1fr);} }
@media (min-width:1024px){ .sellers-grid{ grid-template-columns:repeat(3,1fr);} }
.seller-card{
  background:var(--skf-white); border-radius:var(--skf-radius-md); overflow:hidden;
  box-shadow:var(--skf-shadow); transition:.2s;
}
.seller-card:hover{ transform:translateY(-3px); box-shadow:var(--skf-shadow-hover); }
.seller-card-img{ position:relative; aspect-ratio:16/9; }
.seller-card-img img{ width:100%; height:100%; object-fit:cover; }
.seller-status-badge{
  position:absolute; top:10px; inset-inline-start:10px; background:var(--skf-green-500);
  color:#fff; font-size:10.5px; font-weight:700; padding:4px 10px; border-radius:999px;
}
.seller-card-body{ padding:16px; }
.seller-card-title{ font-size:15.5px; margin-bottom:2px; }
.seller-card-type{ display:inline-block; font-size:11.5px; font-weight:700; color:var(--skf-gold-600); margin-bottom:2px; }
.seller-card-city{ display:block; font-size:12px; color:var(--skf-text-muted); margin-bottom:8px; }
.seller-card-meta{ display:flex; justify-content:space-between; align-items:center; font-size:12.5px; color:var(--skf-text-muted); margin-bottom:12px; }

/* ---------- Promo Banners ---------- */
.promo-banners-grid{ display:grid; grid-template-columns:1fr; gap:14px; }
@media (min-width:768px){ .promo-banners-grid{ grid-template-columns:repeat(3,1fr);} }
.promo-banner{ position:relative; border-radius:var(--skf-radius-md); overflow:hidden; box-shadow:var(--skf-shadow); }
.promo-banner img{ width:100%; aspect-ratio:16/9; object-fit:cover; }
.promo-banner-title{
  position:absolute; bottom:14px; inset-inline-start:14px; color:#fff; font-weight:700; font-size:14px;
  text-shadow:0 2px 6px rgba(0,0,0,.5);
}

/* ---------- Become a Seller CTA ---------- */
.become-seller-section{ background:var(--skf-navy-800); color:#fff; }
.become-seller-inner{
  display:flex; flex-direction:column; gap:18px; align-items:flex-start; text-align:right;
}
.become-seller-inner h2{ color:#fff; font-size:20px; margin-bottom:6px; }
.become-seller-inner p{ color:rgba(255,255,255,.75); margin:0; }
@media (min-width:768px){
  .become-seller-inner{ flex-direction:row; align-items:center; justify-content:space-between; }
}

/* ---------- Market page ---------- */
.market-hero{ background:linear-gradient(135deg,var(--skf-navy-900),var(--skf-navy-600)); color:#fff; padding:50px 0; text-align:center; }
.market-hero h1{ color:#fff; font-size:26px; }
.market-hero p{ color:rgba(255,255,255,.8); max-width:560px; margin:0 auto; }
.market-filter-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin:26px 0; }
.tab-btn{
  background:var(--skf-white); border:1px solid var(--skf-border); border-radius:999px;
  padding:9px 18px; font-size:13px; font-weight:600; color:var(--skf-text-muted);
}
.tab-btn.active{ background:var(--skf-navy-600); color:#fff; border-color:var(--skf-navy-600); }
.market-cta-section{ background:var(--skf-bg-alt); }

/* ---------- Become-seller page ---------- */
.seller-types-grid{ display:grid; grid-template-columns:1fr; gap:16px; margin:30px 0; }
@media (min-width:768px){ .seller-types-grid{ grid-template-columns:repeat(3,1fr);} }
.seller-type-card{
  background:var(--skf-white); border-radius:var(--skf-radius-lg); padding:30px 20px; text-align:center;
  box-shadow:var(--skf-shadow);
}
.seller-type-icon{ font-size:38px; margin-bottom:10px; }
.seller-cta-final{ text-align:center; padding:30px 0 10px; }
.seller-cta-note{ margin-top:10px; font-size:12.5px; }

/* ---------- Shop page ---------- */
.shop-page{ padding:26px 0 50px; }
.shop-header h1{ font-size:22px; }
.notice-inline{ background:#fff7e0; border:1px solid #f0dca0; color:#7a5b00; padding:10px 14px; border-radius:10px; font-size:13px; }
.shop-layout{ display:flex; flex-direction:column; gap:22px; }
@media (min-width:1024px){ .shop-layout{ flex-direction:row; align-items:flex-start;} }
.shop-filters{ background:#fff; border-radius:var(--skf-radius-md); padding:18px; box-shadow:var(--skf-shadow); }
@media (min-width:1024px){ .shop-filters{ width:260px; flex-shrink:0; position:sticky; top:calc(var(--skf-header-h) + 16px);} }
.filter-group{ margin-bottom:18px; }
.filter-group h4{ font-size:13.5px; margin-bottom:8px; }
.filter-group label{ display:block; font-size:13px; color:var(--skf-text-muted); margin-bottom:6px; }
.shop-results{ flex:1; }
.shop-toolbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; font-size:13px; color:var(--skf-text-muted); }
.sort-select{ border:1px solid var(--skf-border); border-radius:8px; padding:8px 10px; background:#fff; font-family:inherit; }

/* ---------- Standard page / posts ---------- */
.standard-page{ padding:30px 0 50px; }
.page-title{ font-size:24px; }
.page-thumb{ border-radius:var(--skf-radius-md); overflow:hidden; margin-bottom:20px; }
.posts-grid{ display:grid; grid-template-columns:1fr; gap:20px; }
@media (min-width:768px){ .posts-grid{ grid-template-columns:repeat(3,1fr);} }
.post-card{ background:#fff; border-radius:var(--skf-radius-md); overflow:hidden; box-shadow:var(--skf-shadow); }
.post-card-body{ padding:14px; }
.pagination{ margin-top:26px; display:flex; gap:8px; justify-content:center; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--skf-navy-900); color:rgba(255,255,255,.8); margin-top:20px; }
.footer-cta{ background:linear-gradient(135deg,var(--skf-navy-800),var(--skf-blue-500)); }
.footer-cta-inner{
  display:flex; flex-direction:column; gap:14px; align-items:flex-start; padding:26px 16px; text-align:right;
}
.footer-cta-inner h3{ color:#fff; margin-bottom:4px; font-size:17px; }
.footer-cta-inner p{ color:rgba(255,255,255,.8); margin:0; font-size:13px; }
@media (min-width:768px){ .footer-cta-inner{ flex-direction:row; align-items:center; justify-content:space-between; } }

.footer-main{ display:grid; grid-template-columns:1fr; gap:26px; padding:40px 16px; }
@media (min-width:640px){ .footer-main{ grid-template-columns:repeat(2,1fr);} }
@media (min-width:1024px){ .footer-main{ grid-template-columns:2fr repeat(3,1fr);} }
.footer-col h4{ color:#fff; font-size:14px; margin-bottom:12px; }
.footer-col ul li{ margin-bottom:8px; }
.footer-col ul a{ font-size:13.5px; color:rgba(255,255,255,.7); }
.footer-col ul a:hover{ color:var(--skf-gold-400); }
.footer-about .logo-text{ color:#fff; font-size:19px; }
.footer-about .logo-text em{ color:var(--skf-gold-400); }
.footer-about p{ font-size:13px; color:rgba(255,255,255,.65); margin:10px 0 14px; }
.social-links{ display:flex; gap:10px; }
.social-links a{
  width:34px; height:34px; border-radius:50%; border:1px solid rgba(255,255,255,.25);
  display:flex; align-items:center; justify-content:center; font-size:11px; color:#fff;
}
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding:16px; text-align:center; font-size:12.5px; }

/* ---------- WooCommerce compatibility styling ---------- */
.woocommerce-wrapper{ padding:26px 0 50px; }
.woocommerce ul.products{ display:grid !important; grid-template-columns:repeat(2,1fr); gap:16px; list-style:none; }
@media (min-width:640px){ .woocommerce ul.products{ grid-template-columns:repeat(3,1fr) !important;} }
@media (min-width:1024px){ .woocommerce ul.products{ grid-template-columns:repeat(4,1fr) !important; gap:20px;} }
.woocommerce ul.products li.product{
  background:#fff; border-radius:var(--skf-radius-md); padding:12px; box-shadow:var(--skf-shadow); transition:.2s;
}
.woocommerce ul.products li.product:hover{ transform:translateY(-4px); box-shadow:var(--skf-shadow-hover); }
.woocommerce ul.products li.product img{ border-radius:var(--skf-radius-sm); }
.woocommerce span.onsale{
  background:var(--skf-red-500) !important; border-radius:999px !important; font-size:10.5px !important;
  min-height:auto !important; line-height:1.6 !important; padding:3px 9px !important; top:8px !important; right:8px !important; left:auto !important;
}
.woocommerce .price{ color:var(--skf-navy-800); font-weight:800; }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit{
  background:var(--skf-navy-600) !important; color:#fff !important; border-radius:999px !important; border:none !important;
  padding:10px 20px !important; font-weight:600 !important; font-family:inherit !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover{ background:var(--skf-blue-500) !important; }
.woocommerce div.product form.cart .button{ background:var(--skf-gold-500) !important; color:#231a00 !important; }
.woocommerce nav.woocommerce-pagination ul{ border:none; }
.woocommerce nav.woocommerce-pagination ul li{ border:none; margin-inline-end:4px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span{
  border-radius:8px; border:1px solid var(--skf-border);
}
.woocommerce-checkout, .woocommerce-cart, .woocommerce-account{ background:#fff; border-radius:var(--skf-radius-md); padding:20px; box-shadow:var(--skf-shadow); }
.woocommerce table.shop_table{ border-radius:var(--skf-radius-sm); overflow:hidden; }

/* ---------- Dokan compatibility ---------- */
.skf-dokan-dashboard .site-header,
.skf-dokan-store .mobile-bottom-nav{ z-index:9999; }

/* Utility */
.error-404-page{ text-align:center; padding:80px 0; }
.error-404-page .page-title{ font-size:64px; color:var(--skf-navy-600); margin-bottom:6px; }
