/* فونت و بدنه کلی */
* { box-sizing: border-box; }
body {
margin: 0;
font-family: "Vazirmatn", system-ui, sans-serif;
background: radial-gradient(circle at top, #e3f2fd 0, #f5f7fb 40%, #e0e7ff 100%);
color: #0f172a;
line-height: 1.6;
}
/* هدر */
.header {
position: sticky;
top: 0;
z-index: 50;
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
backdrop-filter: blur(18px);
background: rgba(255, 255, 255, 0.7);
border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}
.logo img { height: 40px; }
/* دکمه منو موبایل */
.menu-btn {
width: 34px; height: 34px;
border-radius: 999px;
border: 1px solid rgba(148,163,184,0.6);
display: flex; align-items: center; justify-content: center;
cursor: pointer;
background: rgba(255,255,255,0.6);
backdrop-filter: blur(12px);
position: relative;
}
.menu-btn span {
width: 18px; height: 2px;
background: #0f172a;
border-radius: 999px;
position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
content: "";
position: absolute;
left: 0;
width: 18px; height: 2px;
background: #0f172a;
border-radius: 999px;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
/* ناوبری */
.nav { display: flex; gap: 10px; align-items: center; }
.nav a {
text-decoration: none;
color: #0f172a;
padding: 6px 12px;
border-radius: 8px;
transition: background 0.2s ease, color 0.2s ease;
}
.nav a:hover {
background: rgba(37,99,235,0.1);
color: #1d4ed8;
}
.nav a.active { color: #1d4ed8; }
/* دسته‌بندی کشویی */
.dropdown { position: relative; }
.dropbtn {
border: none;
background: transparent;
cursor: pointer;
font-weight: 600;
color: #0f172a;
padding: 6px 12px;
border-radius: 8px;
font-family: inherit;
font-size: 14px;
transition: background 0.2s ease, color 0.2s ease;
}
.dropbtn:hover {
background: rgba(37,99,235,0.1);
color: #1d4ed8;
}
.dropdown-content {
display: none;
position: absolute;
top: 100%; left: 0;
background: rgba(255,255,255,0.95);
backdrop-filter: blur(12px);
min-width: 180px;
box-shadow: 0 8px 20px rgba(15,23,42,0.15);
border-radius: 12px;
overflow: hidden;
z-index: 70;
}
.dropdown-content a {
display: block;
padding: 10px 14px;
text-decoration: none;
color: #0f172a;
transition: background 0.2s ease;
}
.dropdown-content a:hover {
background: rgba(37,99,235,0.1);
color: #1d4ed8;
}
.dropdown:hover .dropdown-content { display: block; }
/* منو موبایل */
.mobile-menu {
position: fixed; top: 0; right: -100%;
width: 70%; max-width: 320px; height: 100vh;
background: rgba(15,23,42,0.85);
backdrop-filter: blur(18px);
padding: 60px 20px 20px;
display: flex; flex-direction: column; gap: 12px;
transition: right 0.3s ease;
z-index: 60;
}
.mobile-menu a {
color: #e5e7eb; text-decoration: none;
padding: 10px 14px; border-radius: 999px;
background: rgba(30,64,175,0.4);
}
.mobile-menu.active { right: 0; }
/* بک‌دراپ */
.menu-backdrop {
position: fixed; inset: 0;
background: rgba(15,23,42,0.35);
backdrop-filter: blur(4px);
opacity: 0; pointer-events: none;
transition: opacity 0.2s ease;
z-index: 55;
}
.menu-backdrop.show { opacity: 1; pointer-events: auto; }
/* دکمه تماس */
.call-btn, .btn-call {
border: none; outline: none; cursor: pointer;
padding: 8px 18px;
border-radius: 999px;
background: linear-gradient(135deg,#1d4ed8,#38bdf8);
color: #f9fafb;
font-size: 14px; font-weight: 600;
box-shadow: 0 10px 25px rgba(37,99,235,0.35);
text-decoration: none;
display: inline-block;
}
/* اسلایدر */
.hero { margin: 12px; }
.hero-slider {
position: relative; overflow: hidden;
border-radius: 18px;
background: rgba(255,255,255,0.7);
backdrop-filter: blur(18px);
box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}
.hero-slider img {
width: 100%; max-height: 420px;
object-fit: cover;
position: absolute; top: 0; left: 0;
opacity: 0; transition: opacity 0.8s ease;
}
.hero-slider img.active { opacity: 1; position: relative; }
/* دو بنر */
.two-banners {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
padding: 12px;
}
.banner-box {
border-radius: 16px;
overflow: hidden;
background: rgba(255,255,255,0.7);
backdrop-filter: blur(16px);
box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}
.banner-box img {
width: 100%;
display: block;
object-fit: cover;
}
/* عنوان بخش‌ها */
.section-title {
font-size: 18px; font-weight: 700;
margin: 0 0 12px; padding: 0 16px;
}
/* محصولات */
.category-products { padding: 16px; }
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
gap: 12px;
}
.product-carousel {
display: flex;
overflow-x: auto;
gap: 14px;
scroll-snap-type: x mandatory;
padding: 10px;
}
.product-card {
flex: 0 0 220px;
scroll-snap-align: start;
background: rgba(255,255,255,0.85);
backdrop-filter: blur(16px);
border: 1px solid rgba(148,163,184,0.4);
border-radius: 14px;
padding: 10px;
text-align: center;
box-shadow: 0 10px 24px rgba(15,23,42,0.08);
transition: transform .25s, box-shadow .25s;
}
.product-card:hover {
transform: translateY(-4px);
box-shadow: 0 14px 30px rgba(37,99,235,0.2);
}
.product-card img {
width: 100%;
aspect-ratio: 1 / 1;
height: auto;
object-fit: cover;
border-radius: 10px;
margin-bottom: 10px;
display: block;
}
.product-card h4 {
font-size: 15px;
font-weight: bold;
margin: 8px 0;
color: #0f172a;
}
.product-card p {
font-size: 13px;
color: #475569;
}
.product-card a {
text-decoration: none;
color: inherit;
}
/* دسته‌بندی ثابت */
.cat-grid-fixed {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.cat-grid-fixed .cat-item:first-child {
grid-column: 1 / -1;
}
.cat-item {
display: flex;
flex-direction: column;
gap: 6px;
text-decoration: none;
color: #0f172a;
background: rgba(255,255,255,0.85);
backdrop-filter: blur(16px);
border-radius: 16px;
padding: 8px;
box-shadow: 0 12px 30px rgba(15,23,42,0.08);
border: 1px solid rgba(148,163,184,0.4);
transition: transform .25s;
}
.cat-item:hover {
transform: translateY(-3px);
}
.cat-item span {
font-size: 13px;
font-weight: 600;
}
.cat-img-wrap {
border-radius: 12px;
overflow: hidden;
}
.cat-img-wrap img {
width: 100%;
display: block;
object-fit: cover;
}
/* دسته‌بندی استوری */
.story-carousel {
display: flex; gap: 12px;
overflow-x: auto; padding: 12px;
}
.story-item { text-align: center; color: #0f172a; text-decoration: none; }
.story-item img {
width: 90px; height: 90px;
border-radius: 50%; object-fit: cover;
border: 3px solid #1d4ed8;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.story-item span { font-size: 12px; margin-top: 6px; display: block; }
/* برندها */
.brands-section { padding: 16px; }
.brands-carousel { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.brand-item {
min-width: 80px; border-radius: 16px;
background: rgba(255,255,255,0.7);
backdrop-filter: blur(14px);
padding: 8px;
box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.brand-item img { width: 100%; display: block; }
/* تماس CTA */
.contact-cta {
margin: 16px; padding: 16px;
border-radius: 18px;
background: linear-gradient(135deg,rgba(37,99,235,0.12),rgba(56,189,248,0.12));
backdrop-filter: blur(18px);
box-shadow: 0 16px 36px rgba(15,23,42,0.12);
text-align: center;
}
.contact-cta h2 { margin: 0 0 8px; }
.contact-cta p { margin: 0 0 12px; font-size: 14px; }
.cta-row { display: flex; justify-content: center; }
/* متن سئو */
.seo-text {
margin: 16px; padding: 16px;
border-radius: 18px;
background: rgba(255,255,255,0.85);
backdrop-filter: blur(18px);
box-shadow: 0 12px 30px rgba(15,23,42,0.08);
font-size: 13px;
line-height: 1.8;
color: #475569;
}
.seo-text h2 { margin-top: 0; margin-bottom: 10px; color: #0f172a; }
/* بخش چرا بنی‌کالا */
.extra-info {
margin: 16px; padding: 16px;
border-radius: 18px;
background: rgba(255,255,255,0.9);
backdrop-filter: blur(18px);
box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}
.extra-info h2 { margin-top: 0; margin-bottom: 12px; }
.extra-info ul { list-style: none; padding: 0; margin: 0; }
.extra-info li {
background: rgba(255,255,255,0.95);
border: 1px solid rgba(148,163,184,0.4);
border-radius: 12px;
padding: 10px 14px;
margin-bottom: 10px;
transition: all 0.3s ease;
}
.extra-info li:hover {
background: linear-gradient(135deg,#1d4ed8,#38bdf8);
color: #fff;
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}
/* سوالات متداول */
.faq-preview {
margin: 16px; padding: 16px;
border-radius: 18px;
background: rgba(255,255,255,0.9);
backdrop-filter: blur(18px);
box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}
.faq-preview h2 { margin-top: 0; margin-bottom: 10px; }
.faq-preview p { margin: 6px 0; }
.btn-link {
display: inline-block;
margin-top: 8px;
color: #1d4ed8;
text-decoration: none;
font-weight: 600;
}
/* فوتر */
.footer {
margin-top: 20px; padding: 16px;
background: rgba(15,23,42,0.9);
color: #e5e7eb;
}
.footer-cols {
display: flex; justify-content: space-between;
gap: 20px; flex-wrap: wrap;
}
.footer a {
display: block;
color: #cbd5f5;
text-decoration: none;
font-size: 13px;
margin: 2px 0;
}
.footer-bottom {
margin-top: 12px;
text-align: center;
font-size: 12px;
color: #9ca3af;
}
/* حالت ادمین */
body.admin {
background: radial-gradient(circle at top,#dbeafe 0,#eff6ff 40%,#e0f2fe 100%);
}
.admin-box {
background: rgba(255,255,255,0.85);
backdrop-filter: blur(20px);
border-radius: 18px;
padding: 20px;
max-width: 640px;
margin: 30px auto;
box-shadow: 0 20px 40px rgba(15,23,42,0.18);
}
.admin-box h2 { margin-top: 0; }
.admin-box input, .admin-box textarea {
width: 100%; padding: 10px 12px;
margin: 6px 0 10px;
border-radius: 12px;
border: 1px solid rgba(148,163,184,0.7);
background: rgba(255,255,255,0.9);
outline: none;
font-family: inherit;
}
.admin-box input:focus, .admin-box textarea:focus {
border-color: #1d4ed8;
box-shadow: 0 0 0 1px rgba(37,99,235,0.35);
}
.admin-box button {
margin-top: 10px;
border-radius: 999px;
background: linear-gradient(135deg,#1d4ed8,#38bdf8);
color: #f9fafb;
border: none;
padding: 10px 18px;
cursor: pointer;
font-weight: 600;
font-family: inherit;
box-shadow: 0 12px 28px rgba(37,99,235,0.4);
}
.msg {
background: rgba(22,163,74,0.12);
border-radius: 12px;
padding: 8px 12px;
color: #166534;
margin-bottom: 10px;
}
/* ===== صفحه تکی محصول ===== */
.single-product {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
padding: 16px;
max-width: 1200px;
margin: 0 auto;
}
.product-image {
width: 100%;
height: 360px;
border-radius: 18px;
overflow: hidden;
background: rgba(255,255,255,0.7);
backdrop-filter: blur(16px);
box-shadow: 0 12px 30px rgba(15,23,42,0.1);
}
.product-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.product-info {
background: rgba(255,255,255,0.85);
backdrop-filter: blur(18px);
border: 1px solid rgba(148,163,184,0.4);
border-radius: 18px;
padding: 20px;
color: #0f172a;
box-shadow: 0 12px 30px rgba(15,23,42,0.08);
display: flex;
flex-direction: column;
gap: 12px;
}
.product-info h1 {
font-size: 22px;
font-weight: 700;
color: #0f172a;
margin: 0;
}
.product-info p {
font-size: 14px;
color: #475569;
margin: 0;
}
.product-info a { color: #1d4ed8; text-decoration: none; }
.price-section {
background: linear-gradient(135deg,rgba(37,99,235,0.1),rgba(56,189,248,0.1));
padding: 16px;
border-radius: 14px;
border-right: 4px solid #1d4ed8;
}
.current-price {
font-size: 24px;
color: #1d4ed8;
font-weight: 700;
margin: 8px 0;
}
.original-price {
font-size: 16px;
color: #94a3b8;
text-decoration: line-through;
}
.discount-badge {
display: inline-block;
background: linear-gradient(135deg,#ef4444,#f97316);
color: #fff;
padding: 4px 10px;
border-radius: 999px;
font-weight: 700;
font-size: 12px;
margin-left: 8px;
}
.product-seo-box {
font-size: 13px;
line-height: 1.8;
color: #475569;
background: rgba(248,250,252,0.9);
padding: 14px;
border-radius: 12px;
}
.quantity-section {
display: flex;
align-items: center;
gap: 12px;
font-weight: 600;
font-size: 14px;
}
.qty-input, .qty-input-lg {
width: 70px;
padding: 8px;
border: 1px solid rgba(148,163,184,0.6);
border-radius: 10px;
font-size: 15px;
font-family: inherit;
text-align: center;
background: #fff;
}
.action-buttons {
display: flex;
gap: 10px;
margin: 8px 0;
}
.buy-btn {
flex: 1;
padding: 12px;
background: linear-gradient(135deg,#1d4ed8,#38bdf8);
color: #fff;
border: none;
border-radius: 999px;
font-size: 15px;
font-weight: 600;
font-family: inherit;
cursor: pointer;
box-shadow: 0 10px 25px rgba(37,99,235,0.35);
transition: transform .2s;
}
.buy-btn:hover { transform: translateY(-2px); }
.back-btn {
flex: 0 0 auto;
padding: 12px 18px;
background: rgba(15,23,42,0.7);
color: #fff;
border-radius: 999px;
text-decoration: none;
display: inline-block;
text-align: center;
font-size: 14px;
}
.trust-box {
background: linear-gradient(135deg,rgba(37,99,235,0.1),rgba(56,189,248,0.1));
padding: 14px;
border-radius: 14px;
font-size: 13px;
}
.trust-box ul { margin: 8px 0; padding-right: 20px; }
.related-section { margin-top: 30px; padding: 16px; border-top: 1px solid rgba(148,163,184,0.4); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; margin-top: 12px; }
.related-card { background: rgba(255,255,255,0.85); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 24px rgba(15,23,42,0.08); border: 1px solid rgba(148,163,184,0.4); }
.related-card a { text-decoration: none; color: inherit; }
.related-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.related-card-body { padding: 12px; }
.related-card-body h4 { margin: 0 0 8px 0; font-size: 14px; color: #0f172a; }
.related-price { color: #1d4ed8; font-weight: 700; margin: 0; font-size: 14px; }
.not-found { text-align: center; padding: 50px 20px; }
.not-found-btn { display: inline-block; padding: 10px 20px; background: linear-gradient(135deg,#1d4ed8,#38bdf8); color: #fff; border-radius: 999px; text-decoration: none; margin-top: 20px; }
/* ===== سبد خرید ===== */
.cart-container { max-width: 1000px; margin: 20px auto; padding: 0 12px; }
.cart-container h1 { font-size: 20px; padding: 0 4px; }
.cart-items { background: rgba(255,255,255,0.85); backdrop-filter: blur(16px); padding: 16px; border-radius: 18px; box-shadow: 0 12px 30px rgba(15,23,42,0.08); border: 1px solid rgba(148,163,184,0.4); }
.cart-item { display: flex; gap: 16px; padding: 14px 4px; border-bottom: 1px solid rgba(148,163,184,0.3); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 90px; height: 90px; object-fit: cover; border-radius: 12px; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { margin: 0 0 6px 0; font-size: 15px; color: #0f172a; }
.cart-item-info p { margin: 2px 0; font-size: 13px; color: #475569; }
.cart-item-total { text-align: left; font-size: 14px; }
.cart-summary { background: rgba(255,255,255,0.9); backdrop-filter: blur(16px); padding: 16px; margin-top: 12px; border-radius: 18px; border: 1px solid rgba(148,163,184,0.4); box-shadow: 0 12px 30px rgba(15,23,42,0.08); }
.checkout-form { background: rgba(255,255,255,0.9); backdrop-filter: blur(16px); padding: 16px; margin-top: 12px; border-radius: 18px; border: 1px solid rgba(148,163,184,0.4); }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 700; font-size: 13px; }
.form-group input { width: 100%; padding: 10px 12px; border: 1px solid rgba(148,163,184,0.6); border-radius: 12px; font-family: inherit; background: #fff; }
.form-group input:focus { border-color: #1d4ed8; outline: none; box-shadow: 0 0 0 1px rgba(37,99,235,0.35); }
.btn { padding: 10px 20px; border: none; border-radius: 999px; cursor: pointer; font-size: 14px; font-family: inherit; text-decoration: none; display: inline-block; font-weight: 600; }
.btn-danger { background: rgba(239,68,68,0.12); color: #dc2626; border: 1px solid rgba(239,68,68,0.3); }
.btn-primary { background: linear-gradient(135deg,#1d4ed8,#38bdf8); color: #fff; padding: 12px 32px; font-size: 15px; box-shadow: 0 10px 25px rgba(37,99,235,0.35); }
.btn-blue { background: linear-gradient(135deg,#0ea5e9,#6366f1); color: #fff; box-shadow: 0 10px 25px rgba(14,165,233,0.35); }
.empty-cart { text-align: center; padding: 40px; background: rgba(255,255,255,0.85); border-radius: 18px; }
.error { color: #dc2626; padding: 10px 14px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: 12px; margin-bottom: 12px; font-size: 13px; }
.center { text-align: center; padding: 12px; }
.total-cell { text-align: left; font-weight: 700; font-size: 17px; color: #1d4ed8; }
.full-table { width: 100%; }
/* ===== درگاه پرداخت ===== */
.payment-container { max-width: 600px; margin: 30px auto; padding: 0 12px; }
.payment-box { background: rgba(255,255,255,0.9); backdrop-filter: blur(18px); padding: 24px; border-radius: 18px; box-shadow: 0 18px 40px rgba(15,23,42,0.12); border: 1px solid rgba(148,163,184,0.4); }
.payment-box h1 { font-size: 20px; margin-top: 0; }
.order-details { background: rgba(248,250,252,0.9); padding: 16px; margin: 14px 0; border-radius: 14px; text-align: right; font-size: 14px; }
.order-details table { width: 100%; }
.order-details td { padding: 8px 0; border-bottom: 1px solid rgba(148,163,184,0.3); }
.payment-btn { background: linear-gradient(135deg,#1d4ed8,#38bdf8); color: #fff; padding: 13px 36px; border: none; border-radius: 999px; cursor: pointer; font-size: 16px; font-family: inherit; font-weight: 600; margin-top: 16px; box-shadow: 0 10px 25px rgba(37,99,235,0.35); }
.info { background: linear-gradient(135deg,rgba(37,99,235,0.1),rgba(56,189,248,0.1)); padding: 12px 14px; border-radius: 12px; margin: 14px 0; text-align: right; font-size: 13px; }
.info-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); padding: 12px 14px; border-radius: 12px; color: #dc2626; margin: 14px 0; font-size: 13px; }
.order-item { padding: 10px 0; border-top: 1px dashed rgba(148,163,184,0.5); font-size: 13px; }
.order-item-left { float: left; }
.total-green { font-weight: 700; color: #1d4ed8; }
.mt-15 { margin-top: 15px; }
/* ریسپانسیو */
@media (max-width: 768px) {
.nav { display: none; }
.two-banners { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px; }
.product-grid { grid-template-columns: repeat(2, 1fr); }
.hero-slider img { max-height: 260px; }
.single-product { grid-template-columns: 1fr; }
.action-buttons { flex-direction: column; }
.cart-item { flex-direction: column; text-align: center; }
.cart-item-total { text-align: center; }
}
@media (min-width: 1024px) {
.two-banners { gap: 20px; padding: 0 60px; justify-content: center; }
.nav a { font-size: 14px; padding: 8px 14px; }
.section-title { font-size: 20px; }
.product-grid { grid-template-columns: repeat(4,1fr); }
.cat-grid-fixed { grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 20px; padding: 0 60px; }
.brands-carousel { gap: 20px; }
.story-item img { width: 110px; height: 110px; }
.hero-slider img { max-height: 480px; }
}




html,body{height:100%;}
body{min-height:100vh;display:flex;flex-direction:column;margin:0;}
.page-main{flex:1;width:100%;}
.footer{margin-top:auto;}
.header-right{display:flex;align-items:center;gap:10px;}
.header-actions{display:flex;align-items:center;gap:8px;}
.h-icon{position:relative;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:999px;border:1px solid rgba(148,163,184,.5);color:#0f172a;text-decoration:none;background:rgba(255,255,255,.6);}
.h-badge{position:absolute;top:-4px;left:-4px;background:#ef4444;color:#fff;font-size:11px;min-width:18px;height:18px;border-radius:999px;display:flex;align-items:center;justify-content:center;padding:0 4px;}
.f-link{display:flex !important;align-items:center;gap:6px;}








.product-card img,
.related-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:12px;
  display:block;
}