*{margin:0;padding:0;box-sizing:border-box}
body{font-family:"Vazirmatn",sans-serif;background:#fff;color:#111}
button,input{font-family:inherit}

:root{--pink:#ff4f9a;--purple:#7b61ff;--cyan:#20c9c5;--orange:#ff9b45;--ink:#272238;--soft:#fff0f7}




/* header{width:100%;height:75px;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between;padding:0 5%}
.logo{font-size:27px;font-weight:800}
nav{display:flex;gap:40px}
nav a{text-decoration:none;color:#222;font-size:14px;transition:.3s}
nav a:hover{color:#777}
.header-icons{display:flex;gap:20px}.header-icons i{font-size:19px;cursor:pointer;transition:.3s}
.header-icons i:hover{transform:translateY(-2px)} */
.products-header{text-align:center;padding-top:55px}
.products-header h1{font-size:34px;font-weight:800;margin-bottom:10px}
.products-header p{color:#999;font-size:14px}
.categories{width:90%;max-width:1250px;margin:45px auto;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.category{height:170px;border:1px solid #eee;border-radius:16px;display:flex;align-items:center;justify-content:space-between;padding:25px;cursor:pointer;transition:.35s;background:#fff}
.category:hover,.category.active{transform:translateY(-5px);border-color:#111;box-shadow:0 15px 40px rgba(0,0,0,.06)}
.category-info{text-align:right}.category-info h3{font-size:18px;margin-bottom:10px}.category-info span{color:#999;font-size:12px}
.category-image{width:100px;height:100px;object-fit:contain}
.products-section{border-top:1px solid #f0f0f0;padding:50px 5% 80px;margin-top:20px}
.section-top{max-width:1300px;margin:auto;display:flex;align-items:center;justify-content:space-between;margin-bottom:40px}
.section-title{text-align:center;flex:1}.section-title h2{font-size:30px;margin-bottom:8px}.section-title p{color:#999;font-size:13px}
.back-button,.filter-button{background:#fff;cursor:pointer}.back-button{border:0;font-size:14px}.filter-button{border:1px solid #ddd;padding:10px 18px;border-radius:8px}
.search-box{max-width:1300px;margin:0 auto 35px;position:relative}
.search-box input{width:100%;height:48px;border:1px solid #eee;border-radius:10px;padding:0 50px 0 20px;outline:none;font-size:14px}
.search-box input:focus{border-color:#111}.search-box i{position:absolute;right:18px;top:15px;color:#888}
.products-grid{max-width:1300px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.product-card{border:1px solid #eee;border-radius:15px;padding:18px;background:#fff;text-align:center;transition:.35s}
.product-card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(0,0,0,.07)}
.product-image{width:100%;height:230px;object-fit:contain;margin-bottom:10px}
.product-name{font-size:16px;font-weight:600;margin-bottom:10px}.product-price{font-size:14px;color:#555;margin-bottom:18px}
.product-buttons{display:flex;gap:8px;justify-content:center}.view-product{flex:1;height:42px;border-radius:8px;border:1px solid #111; background:linear-gradient(135deg,var(--pink),var(--purple));;color:#fff;cursor:pointer}
.cart-btn{width:45px;height:42px;border-radius:8px;border:1px solid #ddd;background:#fff;cursor:pointer}
.cart-btn:hover{color:var(--purple);border-color:#d9cef0}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;align-items:center;justify-content:center;z-index:9999;padding:20px}
.modal.show{display:flex}.modal-content{width:100%;max-width:900px;max-height:90vh;overflow-y:auto;background:#fff;border-radius:20px;position:relative;padding:35px}
.close-modal{position:absolute;top:18px;left:20px;width:38px;height:38px;border-radius:50%;border:1px solid #ddd;background:#fff;cursor:pointer;z-index:5}
.close-modal:hover{background:#111;color:#fff}
.modal-product{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:center}
.modal-product-image{width:100%;height:400px;object-fit:contain}.modal-info h2{font-size:30px;margin-bottom:15px}
.modal-price{font-size:22px;font-weight:700;margin-bottom:25px}.modal-description{color:#666;line-height:2;font-size:14px;margin-bottom:25px}
.specifications{border-top:1px solid #eee;margin-top:20px;padding-top:20px}.specifications h3{margin-bottom:15px}
.spec-item{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #f1f1f1;font-size:13px}
.spec-item span:first-child{color:#888}
.add-cart-large{width:100%;height:50px;             background:linear-gradient(135deg,var(--pink),var(--purple));color: #fff        ;border:0;border-radius:9px;cursor:pointer;margin-top:25px;font-size:14px}
footer{border-top:1px solid #eee;text-align:center;padding:30px;color:#999;font-size:13px}
.empty{grid-column:1/-1;text-align:center;padding:60px;color:#888}
@media(max-width:1000px){.categories{grid-template-columns:repeat(2,1fr)}.products-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){header{height:auto;padding:20px;flex-wrap:wrap;gap:20px}nav{order:3;width:100%;justify-content:center;gap:20px}.products-header h1{font-size:28px}.categories{grid-template-columns:1fr;width:92%}.category{height:140px}.products-grid{grid-template-columns:1fr}.section-top{flex-wrap:wrap;gap:20px}.section-title{order:-1;width:100%}.modal-product{grid-template-columns:1fr;gap:20px}.modal-product-image{height:250px}.modal-content{padding:25px 18px}}

























   .nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
  }
  
  /* دکمه دسته‌بندی */
  .nav-dropdown .dropdown-btn {
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
  
    display: flex;
    align-items: center;
    gap: 6px;
  
    padding: 10px 12px;
  }
  
  /* فلش */
  .nav-dropdown .dropdown-btn span {
    font-size: 14px;
    transition: transform 0.25s ease;
  }
  
  /* منوی بازشونده */
  .nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
  
    width: 850px;
    max-width: calc(100vw - 30px);
  
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  
    padding: 25px;
  
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
  
    box-shadow:
      0 15px 45px rgba(0, 0, 0, 0.45),
      0 0 25px rgba(120, 60, 255, 0.12);
  
    z-index: 9999;
  
    /* مخفی */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
  
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      transform 0.2s ease;
  }
  
  
  /* باز شدن منو با Hover */
  .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* چرخش فلش */
  .nav-dropdown:hover .dropdown-btn span {
    transform: rotate(180deg);
  }
  
  
  /* =========================
     ستون‌های دسته‌بندی
     ========================= */
  
  .nav-dropdown .dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  /* عنوان دسته */
  .nav-dropdown .dropdown-column h4 {
    margin: 0 0 10px;
  
    color: purple;
    font-size: 15px;
    font-weight: 700;
  
    padding-bottom: 8px;
  
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  
  /* لینک‌های داخل دسته‌بندی */
  .nav-dropdown .dropdown-column a {
    display: block;
  
    padding: 6px 8px;
  
    color: black;
    text-decoration: none;
  
    font-size: 13px;
  
    border-radius: 6px;
  
    transition:
      color 0.2s ease,
      background 0.2s ease,
      padding-right 0.2s ease;
  }
  
  
  /* Hover لینک */
  .nav-dropdown .dropdown-column a:hover {
    color: #ffffff;
  
    background: rgba(130, 70, 255, 0.12);
  
    padding-right: 13px;
  }
  
  
  /* =========================
     موبایل
     ========================= */
  
  @media (max-width: 768px) {
  
    .nav-dropdown {
      width: 100%;
      display: block;
    }
  
    .nav-dropdown .dropdown-btn {
      width: 100%;
      justify-content: space-between;
    }
  
    .nav-dropdown .dropdown-menu {
      position: static;
  
      width: 100%;
      max-width: none;
  
      grid-template-columns: 1fr;
  
      gap: 15px;
  
      margin-top: 8px;
      padding: 15px;
  
      border-radius: 10px;
  
      display: none;
  
      opacity: 1;
      visibility: visible;
      transform: none;
    }
  
    .nav-dropdown:hover .dropdown-menu {
      display: grid;
    }
  
  }







  /* -------------------------finish------------------- */






































































a{text-decoration:none;color:inherit}button{font:inherit;cursor:pointer}img{max-width:100%;display:block}:root{--pink:#ff4f9a;--purple:#7b61ff;--cyan:#20c9c5;--orange:#ff9b45;--ink:#272238;--soft:#fff0f7}









.navbar{position:fixed;top:0;right:0;left:0;height:74px;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:0 5%;background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border-bottom:1px solid #f0e4ed}.logo{font-size:23px;font-weight:900;color:var(--ink)}.logo span{color:var(--pink)}nav{display:flex;gap:30px;align-items:center}nav a{font-size:14px;font-weight:600;color:#665d73;transition:.2s}nav a:hover,nav a.active{color:var(--purple)}.nav-actions{display:flex;align-items:center;gap:14px}.cart-link{position:relative;font-size:21px}.cart-link b{position:absolute;top:-8px;right:-11px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--pink);color:#fff;font-size:10px}.menu-btn{display:none;border:0;background:none;font-size:25px;color:var(--ink)}
.hero{height:760px;min-height:100vh;position:relative;overflow:hidden}.slider,.slide{position:absolute;inset:0}.slide{opacity:0;transition:opacity .7s ease}.slide.active{opacity:1}.slide img{width:100%;height:100%;object-fit:cover}.slide-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.8) 35%,rgba(255,255,255,.12) 72%),linear-gradient(0deg,rgba(123,97,255,.12),transparent)}.hero-content{position:relative;z-index:4;width:min(560px,88%);padding-top:180px;margin-right:10%;}.tag{color:var(--pink);font-size:12px;letter-spacing:3px;font-weight:800}.hero h1{font-size:clamp(42px,5vw,70px);line-height:1.35;margin:14px 0;font-weight:900;color:var(--ink)}.hero h1 strong{background:linear-gradient(90deg,var(--pink),var(--purple));-webkit-background-clip:text;color:transparent}.hero p{color:#665d73;line-height:2;font-size:15px;max-width:480px;margin-bottom:24px}.buttons{display:flex;gap:12px}.btn{padding:12px 24px;border-radius:12px;font-size:14px;font-weight:700;transition:.25s}.primary{color:#fff;background:linear-gradient(135deg,var(--pink),var(--purple));box-shadow:0 12px 28px rgba(123,97,255,.25)}.ghost{border:1px solid #eadbea;background:#fff;color:var(--purple)}.btn:hover{transform:translateY(-3px)}.slider-arrow{position:absolute;z-index:6;top:50%;transform:translateY(-50%);width:45px;height:45px;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:var(--purple);font-size:35px;line-height:1;box-shadow:0 10px 25px rgba(60,35,90,.12)}.slider-arrow.prev{left:3%}.slider-arrow.next{right:3%}.slider-dots{position:absolute;z-index:6;bottom:125px;right:10%;display:flex;gap:7px}.slider-dots button{width:28px;height:7px;border:0;border-radius:20px;background:#d8cfe0;transition:.3s}.slider-dots button.active{width:45px;background:linear-gradient(90deg,var(--pink),var(--purple))}
.trust-bar{position:relative;z-index:10;width:min(1120px,92%);margin:-65px auto 0;padding:18px 24px;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid #f1dfeb;border-radius:20px;box-shadow:0 18px 45px rgba(75,44,89,.10)}.trust-bar div{text-align:center;border-left:1px solid #eee3ec}.trust-bar div:last-child{border-left:0}.trust-bar strong{display:block;color:var(--purple);font-size:17px}.trust-bar span{font-size:11px;color:#8a8194}
.section{width:min(1200px,92%);margin:80px auto}.section-heading{text-align:center;margin-bottom:30px}.section-heading span{font-size:12px;color:var(--pink);font-weight:800}.section-heading h2{font-size:28px;color:var(--ink);margin-top:5px}.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.category-card{height:190px;border-radius:20px;padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;overflow:hidden;color:#fff;box-shadow:0 10px 25px rgba(55,33,72,.08);transition:.25s}.category-card:hover{transform:translateY(-7px)}.category-card img{width:100%;height:140px;object-fit:contain}.category-card b{font-size:13px}.c1{background:linear-gradient(145deg,#ff78b5,#ff4f9a)}.c2{background:linear-gradient(145deg,#8974ff,#684cff)}.c3{background:linear-gradient(145deg,#3ed8d0,#16bcb7)}.c4{background:linear-gradient(145deg,#ffb36b,#ff8b37)}.c5{background:linear-gradient(145deg,#ff91a4,#ff657e)}.c6{background:linear-gradient(145deg,#7b61ff,#9d55e8)}
.products-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.product-card{position:relative;background:#fff;border:1px solid #f0e4ed;border-radius:18px;padding:13px;box-shadow:0 9px 30px rgba(62,35,76,.07);transition:.25s}.product-card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(62,35,76,.12);border-color:#e5d4f3}.product-image{height:175px;border-radius:13px;background:linear-gradient(145deg,#fff1f7,#f3efff);display:grid;place-items:center;margin-bottom:13px;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:contain}.product-card h3{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:8px;color:#332c42}.stars{color:#ffad38;font-size:12px;margin-bottom:8px}.stars small{color:#918797}.product-card del{display:block;color:#aaa1ad;font-size:10px}.price{display:block;color:#6a51e9;font-size:14px;margin-top:3px}.badge{position:absolute;top:10px;right:10px;z-index:2;padding:4px 8px;border-radius:9px;color:#fff;font-size:10px;font-weight:700}.hot{background:var(--pink)}.sale{background:#ff7b55}.new{background:var(--purple)}.special{background:var(--cyan)}.product-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.add-cart,.details-btn{min-height:38px;border-radius:10px;font-size:10px;font-weight:700;display:grid;place-items:center}.add-cart{border:0;background:linear-gradient(135deg,var(--pink),var(--purple));color:#fff}.details-btn{border:1px solid #e5d8ee;background:#fff;color:#6b54db}.add-cart:hover,.details-btn:hover{transform:translateY(-2px)}
.about{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:38px;border-radius:25px;background:linear-gradient(135deg,#fff0f7,#f0efff);border:1px solid #f0dfed}.about span{color:var(--pink);font-size:12px;font-weight:900}.about h2{font-size:26px;margin:6px 0}.about p{color:#766c7e;font-size:13px}.about-pills{display:flex;gap:10px;flex-wrap:wrap}.about-pills b{padding:11px 14px;background:#fff;border-radius:12px;color:#6a51e9;font-size:11px}footer{padding:28px 5%;display:flex;justify-content:space-between;background:#29223a;color:#eee;font-size:11px}
@media(max-width:1000px){.category-grid{grid-template-columns:repeat(3,1fr)}.products-grid{grid-template-columns:repeat(3,1fr)}.hero-content{margin-right:7%}}@media(max-width:750px){.navbar{height:66px;padding:0 5%}nav{display:none;position:absolute;top:66px;right:5%;left:5%;padding:10px;flex-direction:column;gap:0;background:#fff;border:1px solid #eee0eb;border-radius:15px;box-shadow:0 20px 40px rgba(45,30,60,.12)}nav.open{display:flex}nav a{padding:12px}.menu-btn{display:block}.hero{min-height:720px}.hero-content{padding-top:145px;margin-right:8%}.slide-overlay{background:linear-gradient(90deg,rgba(255,255,255,.96),rgba(255,255,255,.72) 65%,rgba(255,255,255,.2))}.trust-bar{grid-template-columns:repeat(2,1fr);margin-top:-35px}.trust-bar div{border:0}.products-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){.hero h1{font-size:38px}.hero p{font-size:12px}.slider-arrow{width:38px;height:38px;font-size:28px}.slider-dots{right:8%;bottom:90px}.category-grid{grid-template-columns:repeat(2,1fr)}.category-card{height:155px}.category-card img{height:108px}.products-grid{gap:10px}.product-card{padding:9px}.product-image{height:140px}.product-actions{grid-template-columns:1fr}.about{flex-direction:column;align-items:flex-start}footer{flex-direction:column;gap:8px}}
.product-page{width:min(1100px,92%);margin:125px auto 70px}.back{display:inline-block;margin-bottom:20px;color:#6b54db;font-size:13px;font-weight:700}.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:center;background:#fff;border:1px solid #f0e4ed;border-radius:28px;padding:28px;box-shadow:0 18px 50px rgba(62,35,76,.08)}.detail-image{height:480px;border-radius:22px;background:linear-gradient(145deg,#fff0f7,#f0efff);display:grid;place-items:center;overflow:hidden}.detail-image img{width:90%;height:90%;object-fit:contain}.detail-label{color:var(--pink);font-size:12px;font-weight:800}.detail-info h1{font-size:34px;margin:9px 0 12px;color:var(--ink)}.detail-rating{color:#ffad38;font-size:15px;margin-bottom:18px}.detail-info p{color:#766c7e;line-height:2;font-size:14px;margin-bottom:20px}.detail-price del{display:block;color:#aaa1ad;font-size:12px}.detail-price strong{display:block;color:#6a51e9;font-size:25px;margin:5px 0 20px}.detail-info ul{list-style:none;display:grid;gap:10px;margin-bottom:25px}.detail-info li{padding:10px 12px;border-radius:10px;background:#fff6fa;color:#62586d;font-size:12px}.big{width:100%;min-height:48px;border:0;border-radius:12px;font-size:13px}@media(max-width:750px){.product-detail{grid-template-columns:1fr;padding:18px}.detail-image{height:330px}.detail-info h1{font-size:26px}}





















/* ==============================
   موتور جستجوی Game Sana
   ============================== */

   .site-search {
    position: relative;
    width: 330px;
    z-index: 100;
  }
  
  .search-input-wrapper {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
  
    background: #fff;
    border: 1px solid #eadfea;
    border-radius: 13px;
  
    padding: 0 12px;
  
    transition: .25s;
  }
  
  .search-input-wrapper:focus-within {
    border-color: var(--purple);
    box-shadow: 0 8px 25px rgba(123, 97, 255, .12);
  }
  
  .search-icon {
    color: var(--purple);
    font-size: 23px;
    line-height: 1;
    margin-left: 7px;
  }
  
  #siteSearch {
    width: 100%;
    height: 100%;
  
    border: 0;
    outline: 0;
    background: transparent;
  
    color: var(--ink);
  
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 12px;
  }
  
  #siteSearch::placeholder {
    color: #aaa1ad;
  }
  
  #clearSearch {
    display: none;
  
    border: 0;
    background: transparent;
  
    color: #aaa1ad;
    font-size: 22px;
  
    cursor: pointer;
  }
  
  #clearSearch:hover {
    color: var(--pink);
  }
  
  
  /* نتایج جستجو */
  
  .search-results {
    position: absolute;
  
    top: calc(100% + 8px);
    right: 0;
    left: 0;
  
    background: #fff;
  
    border: 1px solid #eee2ed;
    border-radius: 16px;
  
    box-shadow: 0 20px 50px rgba(62, 35, 76, .15);
  
    overflow: hidden;
  
    display: none;
  
    max-height: 430px;
    overflow-y: auto;
  }
  
  
  /* هر نتیجه */
  
  .search-result {
    display: flex;
    align-items: center;
    gap: 12px;
  
    padding: 12px 14px;
  
    border-bottom: 1px solid #f2eaf1;
  
    text-decoration: none;
  
    color: var(--ink);
  
    transition: .2s;
  }
  
  .search-result:last-child {
    border-bottom: 0;
  }
  
  .search-result:hover {
    background: #fff5fa;
  }
  
  
  /* آیکن نتیجه */
  
  .search-result-icon {
    width: 42px;
    height: 42px;
  
    flex-shrink: 0;
  
    display: grid;
    place-items: center;
  
    background: linear-gradient(
      135deg,
      #fff0f7,
      #f0efff
    );
  
    border-radius: 11px;
  
    font-size: 20px;
  }
  
  
  /* متن نتیجه */
  
  .search-result-content {
    min-width: 0;
    flex: 1;
  }
  
  .search-result-title {
    display: block;
  
    font-size: 12px;
    font-weight: 800;
  
    color: var(--ink);
  
    margin-bottom: 3px;
  }
  
  .search-result-description {
    display: block;
  
    font-size: 10px;
  
    color: #8a8194;
  
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  
  /* نوع نتیجه */
  
  .search-result-type {
    font-size: 9px;
  
    padding: 4px 7px;
  
    border-radius: 7px;
  
    background: #f3efff;
  
    color: var(--purple);
  
    white-space: nowrap;
  }
  
  
  /* وقتی نتیجه‌ای پیدا نشد */
  
  .search-no-result {
    padding: 25px 15px;
  
    text-align: center;
  
    color: #8a8194;
  
    font-size: 12px;
  }
  
  
  /* تعداد نتایج */
  
  .search-count {
    padding: 9px 14px;
  
    background: #faf6fa;
  
    color: #8a8194;
  
    font-size: 10px;
  
    border-bottom: 1px solid #f0e5ed;
  }
  
  
  /* موبایل */
  
  @media (max-width: 1000px) {
  
    .site-search {
      width: 250px;
    }
  
  }
  
  
  @media (max-width: 750px) {
  
    .site-search {
      position: absolute;
  
      top: 76px;
      right: 5%;
      left: 5%;
  
      width: auto;
    }
  
    .search-input-wrapper {
      height: 46px;
    }
  
    .search-results {
      max-height: 60vh;
    }
  
  }
  
  
  @media (max-width: 520px) {
  
    .site-search {
      right: 3%;
      left: 3%;
    }
  
    #siteSearch {
      font-size: 11px;
    }
  
  }










/* ==============================
   اصلاحات رابط فروشگاه
   ============================== */
html{scroll-behavior:smooth}
body{overflow-x:hidden}
.navbar{gap:20px}
.navbar nav{flex-shrink:0}
.site-search{flex-shrink:1;min-width:180px}
.product-card{cursor:pointer;min-width:0}
.product-card:focus-visible{outline:2px solid var(--purple);outline-offset:3px}
.product-image-wrap{height:230px;border-radius:13px;background:linear-gradient(145deg,#fff1f7,#f3efff);display:grid;place-items:center;overflow:hidden;margin-bottom:10px}
.product-image-wrap .product-image{height:100%;margin:0}
.search-result{width:100%;border:0;background:#fff;font:inherit;text-align:right;cursor:pointer}
.filter-overlay{position:fixed;inset:0;background:rgba(39,34,56,.35);z-index:1000;opacity:0;visibility:hidden;transition:.2s}
.filter-overlay.show{opacity:1;visibility:visible}
.filter-panel{position:fixed;top:0;left:0;width:min(360px,92vw);height:100vh;background:#fff;z-index:1001;padding:25px;box-shadow:20px 0 60px rgba(39,34,56,.18);transform:translateX(-105%);transition:.3s;overflow-y:auto}
.filter-panel.show{transform:translateX(0)}
.filter-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;font-size:18px;color:var(--ink)}
.filter-close{width:38px;height:38px;border:1px solid #eee;border-radius:50%;background:#fff;font-size:22px;color:#777}
.filter-panel label{display:block;margin:0 0 18px;color:#665d73;font-size:12px;font-weight:700}
.filter-panel select,.filter-panel input{display:block;width:100%;height:44px;margin-top:7px;border:1px solid #e8deea;border-radius:10px;background:#fff;padding:0 12px;outline:none;font-family:inherit;font-size:12px}
.filter-panel select:focus,.filter-panel input:focus{border-color:var(--purple)}
.filter-panel-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:25px}
.filter-reset,.filter-apply{height:44px;border-radius:10px;font-weight:700;font-size:12px}
.filter-reset{border:1px solid #e5d8ee;background:#fff;color:#6b54db}.filter-apply{border:0;background:linear-gradient(135deg,var(--pink),var(--purple));color:#fff}
.filter-open{overflow:hidden}

@media(max-width:1000px){
  .navbar{padding-inline:3%}
  .navbar nav{gap:14px}
  .site-search{width:270px}
  .products-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .categories{gap:14px}
}
@media(max-width:750px){
  body{padding-top:126px}
  .navbar{height:auto;min-height:66px;padding:10px 4%;display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px;background:rgba(255,255,255,.96)}
  .logo{order:1}
  .nav-actions{order:2;margin-right:auto}
  .site-search{order:3;position:static;width:100%;min-width:0;margin-top:2px}
  .search-input-wrapper{height:44px}
  nav#nav{display:none;position:absolute;top:100%;right:4%;left:4%;width:auto;padding:8px;flex-direction:column;align-items:stretch;gap:0;background:#fff;border:1px solid #eee0eb;border-radius:15px;box-shadow:0 20px 40px rgba(45,30,60,.12);max-height:calc(100vh - 90px);overflow-y:auto}
  nav#nav.open{display:flex}
  nav#nav a{padding:12px 10px;width:100%}
  .menu-btn{display:block}
  .nav-dropdown{width:100%;height:auto}
  .nav-dropdown .dropdown-btn{width:100%;justify-content:space-between;padding:12px 10px}
  .nav-dropdown .dropdown-menu{position:static;width:100%;max-width:none;display:none;grid-template-columns:1fr;gap:10px;margin:4px 0 8px;padding:12px;border-radius:10px;box-shadow:none;border:1px solid #eee5ef;opacity:1;visibility:visible;transform:none}
  .nav-dropdown.open .dropdown-menu{display:grid}
  .nav-dropdown:hover .dropdown-menu{display:none}
  .nav-dropdown.open:hover .dropdown-menu{display:grid}
  .nav-dropdown .dropdown-column{gap:2px}
  .nav-dropdown .dropdown-column h4{font-size:13px}
  .nav-dropdown .dropdown-column a{font-size:12px;padding:8px}
  .products-header{padding-top:20px}
  .categories{width:92%;margin:25px auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .category{height:145px;padding:15px;min-width:0}
  .category-info h3{font-size:14px}
  .category-image{width:75px;height:75px}
  .products-section{padding:35px 4% 60px}
  .section-top{gap:12px;margin-bottom:20px}
  .section-title{order:-1;width:100%}
  .section-title h2{font-size:23px}
  .back-button,.filter-button{padding:9px 12px;font-size:12px}
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .product-card{padding:9px;border-radius:13px}
  .product-image-wrap{height:155px;margin-bottom:8px}
  .product-name{font-size:12px;line-height:1.8;min-height:43px}
  .product-price{font-size:11px;margin-bottom:10px;white-space:nowrap}
  .product-buttons{gap:6px}
  .view-product{height:38px;font-size:10px;padding:0 5px}
  .cart-btn{width:40px;height:38px}
  .product-page{width:92%;margin:25px auto 55px}
  .product-detail{grid-template-columns:1fr;gap:20px;padding:14px;border-radius:20px}
  .detail-image{height:290px}
  .detail-info h1{font-size:23px;line-height:1.7}
  .detail-info p{font-size:12px;line-height:2}
  .detail-info li{display:flex;justify-content:space-between}
}
@media(max-width:420px){
  .categories{grid-template-columns:1fr}
  .category{height:125px}
  .category-image{width:70px;height:70px}
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .product-image-wrap{height:135px}
  .product-card{padding:7px}
  .product-name{font-size:11px}
  .product-price{font-size:10px}
  .product-buttons{grid-template-columns:1fr 38px;display:grid}
  .view-product{font-size:9px}
  .cart-btn{width:38px}
  .filter-panel{width:92vw;padding:20px}
}

/* صفحه اختصاصی دسته‌بندی */
.category-page-body{padding-top:74px;background:#fff}
.category-page .products-header{padding-top:55px}
.category-products-section{min-height:60vh}
.category-page .back-button{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#272238}
.category-page .back-button:hover{color:#7b61ff}

/* ===== سبد خرید و تسویه حساب ===== */
.cart-page-body,.checkout-page-body{background:#f7f7fb;min-height:100vh;padding-top:74px}
.cart-page,.checkout-page{width:min(1180px,92%);margin:42px auto 70px}
.cart-heading,.checkout-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}
.cart-heading h1,.checkout-heading h1{font-size:32px;margin:7px 0}.cart-heading p,.checkout-heading p{color:#777;margin:0}
.cart-layout,.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}
.cart-items-panel,.cart-summary,.checkout-form,.checkout-summary{background:#fff;border:1px solid #eceaf3;border-radius:22px;box-shadow:0 10px 35px rgba(40,32,80,.06)}
.cart-items-panel{padding:18px}.cart-summary,.checkout-summary,.checkout-form{padding:24px}
.cart-summary{position:sticky;top:95px}.cart-summary h2,.checkout-summary h2,.checkout-form h2{margin-top:0}
.cart-item{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:18px;align-items:center;padding:16px 4px;border-bottom:1px solid #eee}.cart-item:last-child{border-bottom:0}
.cart-item-image{width:92px;height:92px;border-radius:16px;object-fit:contain;background:#f7f7f9}.cart-item h3{font-size:16px;margin:0 0 8px}.cart-item-price{font-weight:800;margin-bottom:12px}.cart-item-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.qty-control{display:flex;align-items:center;border:1px solid #ddd;border-radius:12px;overflow:hidden}.qty-control button{border:0;background:#f5f4f8;width:34px;height:34px;cursor:pointer}.qty-control span{min-width:35px;text-align:center;font-weight:700}.remove-item{border:0;background:transparent;color:#d44;cursor:pointer;font-family:inherit}.cart-item-total{font-weight:800;white-space:nowrap}.summary-row,.summary-total{display:flex;justify-content:space-between;gap:10px;padding:12px 0}.summary-total{border-top:1px solid #eee;margin-top:10px;padding-top:18px;font-size:18px}.checkout-btn,.primary-btn{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;min-height:48px;border:0;border-radius:13px;background:#6c4cff;color:#fff;text-decoration:none;font-family:inherit;font-weight:700;cursor:pointer;margin-top:18px}.clear-cart-btn{width:100%;border:0;background:transparent;color:#d44;font-family:inherit;cursor:pointer;margin-top:14px}.cart-empty,.order-success{text-align:center;background:#fff;border:1px solid #eceaf3;border-radius:22px;padding:60px 20px;box-shadow:0 10px 35px rgba(40,32,80,.06)}.empty-icon,.success-icon{font-size:52px;margin-bottom:10px}.success-icon{color:#16a36b}.cart-empty .primary-btn,.order-success .primary-btn{width:230px;margin:20px auto 0}
.checkout-form label{display:block;font-weight:600;margin:15px 0}.checkout-form input,.checkout-form textarea,.checkout-form select{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:12px 13px;border:1px solid #ddd;border-radius:12px;font-family:inherit;font-size:14px;background:#fff}.checkout-form textarea{resize:vertical}.checkout-summary{position:sticky;top:95px}.checkout-mini-item{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eee}.checkout-mini-item img{width:54px;height:54px;object-fit:contain;border-radius:10px;background:#f7f7f9}.checkout-mini-item div{flex:1}.checkout-mini-item small{display:block;color:#777;margin-top:3px}.payment-note{font-size:12px;color:#777;line-height:1.9;margin-bottom:0}.order-success p{line-height:2;color:#666}
.cart-link.active{transform:scale(1.04)}
@media(max-width:800px){.cart-layout,.checkout-layout{grid-template-columns:1fr}.cart-summary,.checkout-summary{position:static}.cart-heading,.checkout-heading{align-items:flex-start;flex-direction:column}.cart-heading .back-button{align-self:stretch;justify-content:center}.cart-item{grid-template-columns:70px minmax(0,1fr)}.cart-item-image{width:70px;height:70px}.cart-item-total{grid-column:2}.cart-item-actions{font-size:13px}}
@media(max-width:480px){.cart-page,.checkout-page{width:94%;margin-top:25px}.cart-heading h1,.checkout-heading h1{font-size:25px}.cart-items-panel,.cart-summary,.checkout-form,.checkout-summary{padding:15px;border-radius:17px}.cart-item{gap:10px}.cart-item h3{font-size:13px}.cart-item-price{font-size:12px}}


.cart-quantity{display:flex;align-items:center;border:1px solid #ddd;border-radius:12px;overflow:hidden;background:#fff}
.cart-qty-btn{border:0;background:#f5f4f8;width:36px;height:36px;cursor:pointer;font:700 18px inherit}
.cart-quantity strong{min-width:38px;text-align:center;font-size:14px}
.cart-remove{border:0;background:transparent;color:#d44;cursor:pointer;font-family:inherit;padding:7px 4px}
.cart-item-image img{width:100%;height:100%;object-fit:contain;border-radius:16px}
@media(max-width:760px){
  .cart-layout,.checkout-layout{grid-template-columns:1fr}
  .cart-summary{position:static}
  .cart-item{grid-template-columns:72px minmax(0,1fr);gap:12px}
  .cart-item-image{width:72px;height:72px}
  .cart-item-total{grid-column:2}
}


/* =========================================================
   صفحه جزئیات محصول — نظرات کاربران و محصولات مشابه
   ========================================================= */

.product-page-body{
  min-height:100vh;
  background:linear-gradient(180deg,#fff 0%,#fff8fc 100%);
}

.product-page{
  width:min(1180px,92%);
  margin:0 auto;
  padding:55px 0 80px;
}

.product-page > .back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#6a51e9;
  font-weight:700;
  font-size:13px;
  margin-bottom:24px;
  transition:.2s;
}

.product-page > .back:hover{transform:translateX(4px)}

.product-detail{
  width:100%;
  margin:0;
  background:#fff;
  border:1px solid #f0e4ed;
  border-radius:26px;
  box-shadow:0 18px 55px rgba(62,35,76,.08);
}

.product-reviews-section,
.similar-products-section{
  margin-top:34px;
  padding:30px;
  background:#fff;
  border:1px solid #f0e4ed;
  border-radius:26px;
  box-shadow:0 14px 45px rgba(62,35,76,.06);
}

.product-section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}

.product-section-heading h2{
  margin:5px 0 0;
  color:var(--ink);
  font-size:24px;
}

.review-summary{
  display:grid;
  grid-template-columns:auto auto;
  align-items:center;
  column-gap:12px;
  min-width:150px;
  padding:12px 16px;
  background:linear-gradient(135deg,#fff4fa,#f4f1ff);
  border-radius:15px;
  text-align:center;
}

.review-summary strong{
  grid-row:span 2;
  color:var(--purple);
  font-size:28px;
}

.review-summary span{
  color:#ffad38;
  letter-spacing:1px;
  font-size:14px;
}

.review-summary small{
  color:#8b8292;
  font-size:11px;
}

.reviews-layout{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(290px,.85fr);
  gap:25px;
  align-items:start;
}

.reviews-list{
  display:grid;
  gap:12px;
}

.review-card{
  border:1px solid #eee5ee;
  border-radius:16px;
  padding:17px;
  background:#fff;
  transition:.2s;
}

.review-card:hover{
  border-color:#e5d8f2;
  box-shadow:0 10px 25px rgba(62,35,76,.05);
}

.review-card-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.review-user{
  display:flex;
  align-items:center;
  gap:10px;
}

.review-user > div{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.review-user strong{
  color:var(--ink);
  font-size:13px;
}

.review-user small{
  color:#9b92a2;
  font-size:10px;
}

.review-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--pink),var(--purple));
  color:#fff;
  font-weight:800;
  font-size:13px;
}

.review-stars{
  color:#ffad38;
  letter-spacing:1px;
  white-space:nowrap;
  font-size:13px;
}

.review-card p{
  margin:0;
  color:#6f6678;
  font-size:12px;
  line-height:2;
}

.review-form{
  padding:20px;
  border-radius:18px;
  background:linear-gradient(145deg,#fff4fa,#f5f2ff);
  border:1px solid #eee2ef;
}

.review-form h3{
  margin:0 0 6px;
  color:var(--ink);
  font-size:17px;
}

.review-form > p{
  margin:0 0 18px;
  color:#8a8190;
  font-size:11px;
  line-height:1.9;
}

.review-form label{
  display:block;
  margin-top:12px;
  color:#5e5568;
  font-size:11px;
  font-weight:700;
}

.review-form input,
.review-form select,
.review-form textarea{
  width:100%;
  margin-top:6px;
  border:1px solid #e5dce8;
  border-radius:11px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:12px;
  outline:none;
  transition:.2s;
}

.review-form input,
.review-form select{
  height:43px;
  padding:0 12px;
}

.review-form textarea{
  padding:10px 12px;
  resize:vertical;
  min-height:110px;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus{
  border-color:var(--purple);
  box-shadow:0 0 0 3px rgba(123,97,255,.08);
}

.submit-review-btn{
  width:100%;
  height:45px;
  margin-top:15px;
  border:0;
  border-radius:11px;
  background:linear-gradient(135deg,var(--pink),var(--purple));
  color:#fff;
  font-weight:700;
  font-size:12px;
  box-shadow:0 10px 22px rgba(123,97,255,.18);
  transition:.2s;
}

.submit-review-btn:hover{
  transform:translateY(-2px);
}

.review-form-message{
  display:block;
  min-height:20px;
  margin-top:8px;
  color:#6f6678;
  font-size:11px;
  text-align:center;
}

.review-form-message.success{color:#2d9a68}

.reviews-empty{
  min-height:180px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:8px;
  border:1px dashed #e4dbe7;
  border-radius:16px;
  color:#817888;
  text-align:center;
}

.reviews-empty span{font-size:28px}
.reviews-empty strong{font-size:13px;color:var(--ink)}
.reviews-empty small{font-size:11px}

.similar-more-link{
  color:var(--purple);
  font-size:12px;
  font-weight:700;
  padding:9px 13px;
  border:1px solid #e7ddf0;
  border-radius:10px;
  transition:.2s;
}

.similar-more-link:hover{
  background:#f8f4ff;
}

.similar-products-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.similar-product-card{
  min-width:0;
  overflow:hidden;
  border:1px solid #eee5ee;
  border-radius:17px;
  background:#fff;
  transition:.25s;
}

.similar-product-card:hover{
  transform:translateY(-5px);
  border-color:#e2d3f0;
  box-shadow:0 15px 32px rgba(62,35,76,.09);
}

.similar-product-image{
  width:100%;
  height:190px;
  padding:14px;
  border:0;
  background:linear-gradient(145deg,#fff1f7,#f4f0ff);
  cursor:pointer;
}

.similar-product-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.similar-product-content{
  padding:14px;
}

.similar-category{
  color:var(--pink);
  font-size:9px;
  font-weight:800;
}

.similar-product-content h3{
  margin:5px 0 8px;
  color:var(--ink);
  font-size:13px;
  line-height:1.8;
  min-height:46px;
}

.similar-rating{
  color:#ffad38;
  font-size:11px;
  margin-bottom:8px;
}

.similar-rating small{
  color:#9a919f;
  font-size:9px;
  margin-right:4px;
}

.similar-price{
  display:block;
  color:#6a51e9;
  font-size:13px;
  margin-bottom:11px;
}

.similar-actions{
  display:grid;
  grid-template-columns:1fr 42px;
  gap:7px;
}

.similar-view-btn,
.similar-cart-btn{
  height:39px;
  border-radius:10px;
  font:inherit;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
  transition:.2s;
}

.similar-view-btn{
  border:1px solid #e4d9ed;
  background:#fff;
  color:#6a51e9;
}

.similar-cart-btn{
  border:0;
  background:linear-gradient(135deg,var(--pink),var(--purple));
  color:#fff;
}

.similar-view-btn:hover,
.similar-cart-btn:hover{
  transform:translateY(-2px);
}

@media(max-width:900px){
  .reviews-layout{grid-template-columns:1fr}
  .similar-products-grid{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:700px){
  .product-page{padding:25px 0 55px}
  .product-reviews-section,
  .similar-products-section{padding:20px}
  .product-section-heading{align-items:flex-start}
  .product-section-heading h2{font-size:20px}
  .review-summary{min-width:130px}
  .similar-products-grid{grid-template-columns:repeat(2,1fr)}
  .similar-product-image{height:155px}
}

@media(max-width:450px){
  .product-section-heading{flex-direction:column}
  .review-summary{width:100%}
  .similar-products-grid{grid-template-columns:1fr}
  .similar-product-image{height:190px}
}
