/* =============================================
   فونت لوکال
   ============================================= */
@font-face {
    font-family: 'Vazirfa';
    src: url('../fonts/Vazir-Light-FD-WOL.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazir.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =============================================
   Reset & Variables - تم سبز باغبانی
   ============================================= */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --primary-pistachio: #7CB342;
    --pistachio-dark: #558B2F;
    --accent: #FF8F00;
    --accent-dark: #E65100;
    --danger: #C62828;
    --danger-light: #FFEBEE;
    --success: #2E7D32;
    --warning: #F9A825;
    --bg: #F1F8E9;
    --white: #FFFFFF;
    --text: #212121;
    --text-light: #616161;
    --border: #C8E6C9;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.10);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    --container: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
     padding-top: 72px;
}
.btn-row a { width: 15% !important; }

/* =============================================
   Header - تک ردیفی با منوی همبرگری
   ============================================= */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
     position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow);
    
}



.header-inner {
    max-width: 100% !important;
   
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 10px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    flex-shrink: 0;
}

.logo-area img {
    height: 40px;
    width: auto;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: 700;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}

.logo-text span {
    font-size: 10px;
    color: var(--text-light);
    font-weight: 400;
}

/* منوی اصلی */
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-pistachio);
    color: white;
    padding: 9px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.cart-link:hover {
    background: var(--pistachio-dark);
}

.cart-count {
    background: var(--accent);
    color: white;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* همبرگری */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 24px;
    color: var(--text);
    line-height: 1;
}

.mobile-menu { display: block; position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: white; z-index: 2000; padding: 20px; box-shadow: -5px 0 20px rgba(0,0,0,0.15); transition: right 0.3s ease; overflow-y: auto; visibility: hidden; }
.mobile-menu.open { right: 0; visibility: visible; }

.mobile-menu a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

/* =============================================
   Hero / Banner
   ============================================= */
.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-banner .banner-slide {
    display: none;
    width: 100%;
}

.hero-banner .banner-slide.active {
    display: block;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    border: none;
}

.banner-dot.active {
    background: var(--primary);
}

@media (max-width: 768px) {
    .hero-banner img { height: 100%; }
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
    background: #1a1a1a;
    color: #b0b0b0;
    margin-top: auto;
    padding-top: 50px;
}

.footer-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 5px;
}

.footer-col p, .footer-col a {
    line-height: 2;
    font-size: 13px;
    color: #b0b0b0;
    text-decoration: none;
    display: block;
}

.footer-col a:hover {
    color: white;
}

.footer-col .phone-link {
    color: var(--primary-light);
    font-size: 15px;
    font-weight: 700;
    direction: ltr;
    text-align: right;
}

.footer-col .phone-link:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-bottom {
    border-top: 1px solid #333;
    text-align: center;
    padding: 18px 20px;
    font-size: 13px;
    color: #777;
}

/* =============================================
   Main Container
   ============================================= */
.main-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px 40px;
}

.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 15px;
}

/* =============================================
   Products Grid
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border);
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.product-card-img {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #e8f5e9;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger);
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    z-index: 1;
}

.product-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-body h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.5;
}

.product-card-body h3 a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.product-card-body h3 a:hover {
    color: var(--primary);
}

.price-area {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 17px;
    font-weight: 900;
    color: var(--primary-pistachio);
}

.old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.add-to-cart-btn {
    margin-top: auto;
    background: var(--primary-pistachio);
    color: white;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: block;
}

.add-to-cart-btn:hover {
    background: var(--pistachio-dark);
    box-shadow: 0 4px 15px rgba(124, 179, 66, 0.4);
}

/* =============================================
   Shop Page with Filters
   ============================================= */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.shop-filters {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 85px;
    min-width: 0;
    overflow: hidden;
}
.shop-filters input,
.shop-filters select {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: 0.2s;
    background: #fafafa;
    box-sizing: border-box;
}
.shop-filters input:focus,
.shop-filters select:focus {
    border-color: #4CAF50;
    background: white;
}

.shop-filters h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.filter-group {
    margin-bottom: 18px;
}

.filter-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
    background: #fafafa;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary);
    background: white;
}

.btn-filter {
    width: 100%;
    background: var(--primary-pistachio);
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: var(--transition);
}

.btn-filter:hover {
    background: var(--pistachio-dark);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.pagination a {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
}

.pagination .current {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-filters { position: static; }
}

/* =============================================
   Single Product
   ============================================= */
.single-product {
    max-width: 1000px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.single-product-image {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #e8f5e9;
    position: relative;
}

.single-product-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.single-product-info h1 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 14px;
    color: var(--text);
}

.desc {
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 18px;
    font-size: 14px;
}

.availability-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.in-stock { background: #e8f5e9; color: var(--primary); }
.out-of-stock { background: #ffebee; color: var(--danger); }

.single-price-area {
    margin-bottom: 22px;
}

.single-price-area .current {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-pistachio);
}

.single-price-area .old {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.quantity-cart-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-selector button {
    width: 38px;
    height: 42px;
    border: none;
    background: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font);
    transition: var(--transition);
}

.quantity-selector button:hover {
    background: var(--primary);
    color: white;
}

.quantity-selector input {
    width: 55px;
    text-align: center;
    border: none;
    border-left: 2px solid var(--border);
    border-right: 2px solid var(--border);
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font);
    padding: 10px 0;
    outline: none;
}

.btn-add-cart-lg {
    background: var(--primary-pistachio);
    color: white;
    padding: 11px 26px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-add-cart-lg:hover {
    background: var(--pistachio-dark);
    box-shadow: 0 6px 20px rgba(124, 179, 66, 0.45);
}

.btn-add-cart { 
    background: #7CB342; 
    color: white; 
    padding: 11px 24px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 15px; 
    transition: 0.2s; 
    white-space: nowrap;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* =============================================
   Cart
   ============================================= */
.cart-page {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.cart-page h1 { font-size: 24px; font-weight: 900; margin-bottom: 22px; }

.cart-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.cart-item img { width: 75px; height: 75px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 14px; margin-bottom: 3px; }
.item-price { color: var(--primary); font-weight: 700; }

.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    margin-top: 18px;
    box-shadow: var(--shadow);
}

.total { font-size: 20px; font-weight: 900; }
.total span { color: var(--primary-pistachio); }

.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty p { font-size: 18px; color: var(--text-light); margin-bottom: 18px; }

/* =============================================
   Checkout
   ============================================= */
.checkout-page {
    max-width: 700px;
    margin: 30px auto;
    padding: 0 20px;
}

.checkout-page h1 { font-size: 24px; font-weight: 900; margin-bottom: 22px; }

.checkout-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.form-group label { font-weight: 700; font-size: 13px; }
.form-group label .required { color: var(--danger); }

.form-group input,
.form-group textarea,
.form-group select {
    padding: 11px 13px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    outline: none;
    background: #fafafa;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.06);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.order-summary-mini {
    background: #f9fbe7;
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 22px;
}

.order-summary-mini h3 { font-size: 15px; margin-bottom: 10px; }
.total-mini { font-size: 19px; font-weight: 900; color: var(--primary-pistachio); margin-top: 6px; }

.payment-methods {
    background: #f5f5f5;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 18px;
}

.payment-methods h3 { font-size: 15px; margin-bottom: 10px; }

.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.payment-option:hover,
.payment-option.selected {
    border-color: var(--primary);
    background: #e8f5e9;
}

.btn-submit {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    font-weight: 800;
    background: var(--primary-pistachio);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font);
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--pistachio-dark);
    box-shadow: 0 6px 20px rgba(124, 179, 66, 0.45);
}

/* =============================================
   Posts Section
   ============================================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-card-body {
    padding: 14px;
}

.post-card-body h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.post-card-body h3 a {
    color: var(--text);
    text-decoration: none;
}

.post-card-body h3 a:hover {
    color: var(--primary);
}

.post-card-body .post-date {
    font-size: 12px;
    color: #999;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-pistachio);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    transition: var(--transition);
}

.btn:hover {
    background: var(--pistachio-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b71c1c; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .hamburger { display: block; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .single-product { grid-template-columns: 1fr; padding: 16px; margin: 16px; }
    .single-product-image img { height: 260px; }
    .quantity-cart-row { flex-direction: column; align-items: stretch; }
    .form-row { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .header-inner { padding: 0 8px !important; }
    gap: 0px !important;
}




/* ── محصول تکی - گالری و متغیرها ─────────── */
.single-product-gallery {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.single-product-gallery img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.single-product-gallery img:hover,
.single-product-gallery img.active {
    border-color: var(--primary);
}
.single-product-image img {
    width: 100%;
    height: 380px;
    object-fit: contain;
    background: #f9f9f9;
}
.variant-selector {
    margin-bottom: 15px;
}
.variant-selector label {
    font-weight: 700;
    font-size: 13px;
    display: block;
    margin-bottom: 5px;
}
.variant-selector select {
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    width: 100%;
    outline: none;
}
.variant-selector select:focus {
    border-color: var(--primary);
}

/* ── کم و زیاد تمیز ──────────────────────── */
.quantity-cart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    background: #fafafa;
}
.quantity-selector button {
    width: 42px;
    height: 44px;
    border: none;
    background: #f0f0f0;
    font-size: 20px;
    cursor: pointer;
    font-weight: 700;
    color: #555;
    transition: 0.2s;
    line-height: 1;
}
.quantity-selector button:hover {
    background: var(--primary);
    color: white;
}
.quantity-selector input {
    width: 55px;
    text-align: center;
    border: none;
    font-size: 17px;
    font-weight: 700;
    font-family: var(--font);
    padding: 10px 0;
    outline: none;
    background: white;
}

/* ── سبد خرید - کم و زیاد ───────────────── */
.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
}
.cart-qty-form button {
    width: 34px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
    font-weight: 700;
    color: #555;
    transition: 0.2s;
    line-height: 1;
}
.cart-qty-form button:hover {
    background: var(--primary);
    color: white;
}
.cart-qty-form input {
    width: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font);
    padding: 6px 0;
    outline: none;
    background: white;
}

/* ── کارت به کارت ───────────────────────── */
.card-info-box {
    background: #fff9c4;
    border-radius: 10px;
    padding: 18px;
    margin: 15px 0;
    border: 2px dashed #f9a825;
}
.card-info-box .card-number {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    direction: ltr;
    text-align: center;
    cursor: pointer;
    background: white;
    padding: 10px;
    border-radius: 8px;
    margin: 5px 0;
}
.card-info-box .copy-hint {
    font-size: 11px;
    color: #666;
    text-align: center;
}

/* ── آواتار کاربر ───────────────────────── */
.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}
.comment-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

/* ── کامنت‌ها ───────────────────────────── */
.comments-section {
    margin-top: 40px;
    max-width: 800px;
}
.comment-item {
    background: white;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    gap: 14px;
}
.comment-item.admin-reply {
    border-right: 3px solid #4CAF50;
    background: #f1f8e9;
    margin-right: 40px;
}
.comment-body {
    flex: 1;
}
.comment-body .comment-author {
    font-weight: 700;
    font-size: 14px;
}
.comment-body .comment-date {
    font-size: 11px;
    color: #999;
}
.comment-body .comment-text {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.8;
}

/* ── اعلان ──────────────────────────────── */
.notification {
    background: #e8f5e9;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 14px;
}
.notification.warning {
    background: #fff3e0;
    border-color: #ff9800;
}

.product-features { background: #f9fbe7; border-radius: 10px; padding: 14px; margin: 12px 0; }
.product-features ul { list-style: none; padding: 0; margin: 0; }
.product-features li { padding: 5px 0; font-size: 13px; border-bottom: 1px solid #e8f5e9; }
.product-features li:last-child { border-bottom: none; }
.product-description-full { background: white; border-radius: 12px; padding: 28px; margin: 30px 0; box-shadow: 0 1px 5px rgba(0,0,0,0.05); }
.product-description-full h3 { color: #2E7D32; margin-bottom: 15px; }
.comment-item { background: white; border-radius: 10px; padding: 16px; margin-bottom: 10px; display: flex; gap: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.comment-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-author { font-weight: 700; font-size: 13px; }
.comment-date { font-size: 11px; color: #999; }
.comment-text { margin-top: 6px; font-size: 13px; line-height: 1.8; }

@media (max-width: 768px) {
    .checkout-page { grid-template-columns: 1fr; }
    .single-product { grid-template-columns: 1fr; }
}

/* استایل ویژگی‌های محصول */
.variant-selector { margin-bottom: 12px; }
.variant-selector label { font-weight: 700; font-size: 13px; display: block; margin-bottom: 5px; color: #555; }
.variant-selector select { width: 100%; padding: 10px 12px; border: 2px solid #e0e0e0; border-radius: 8px; font-family: inherit; font-size: 13px; outline: none; background: white; }
.variant-selector select:focus { border-color: #4CAF50; }

/* پنل کاربری */
.user-panel-table { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; margin-top: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.user-panel-table th { background: #2E7D32; color: white; padding: 12px; font-size: 12px; }
.user-panel-table td { padding: 10px; border-bottom: 1px solid #eee; font-size: 13px; }
.user-panel-table tr:hover td { background: #f9f9f9; }

/* کامنت با کپچا */
.comment-form { background: white; padding: 20px; border-radius: 12px; margin: 20px 0; box-shadow: 0 1px 5px rgba(0,0,0,0.05); }
.comment-form textarea { width: 100%; padding: 12px; border: 2px solid #e0e0e0; border-radius: 8px; font-family: inherit; resize: vertical; }
.captcha-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.captcha-code { background: #f5f5f5; padding: 8px 16px; border-radius: 6px; font-size: 20px; font-weight: 900; letter-spacing: 3px; user-select: none; }



/* استایل اعلان  */
.cart-notify {
    position: fixed;
    top: 80px;
    left: 20px;
    background: #f1f8e9;
    color: #2E7D32;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-right: 3px solid #4CAF50;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-15px);
    transition: all 0.3s ease;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-notify.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.cart-notify .notify-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.cart-notify .notify-text {
    line-height: 1.5;
}
.cart-notify .notify-text strong {
    color: #1b5e20;
}
@media (max-width: 600px) {
    .cart-notify {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}


/* باکس سرچ فروشگاه*/
.shop-search-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 25px;
    align-items: center;
}
.shop-search-form input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}
.shop-search-form input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76,175,80,0.08);
}
.shop-search-form button {
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
    white-space: nowrap;
}
.shop-search-form button:hover {
    background: #388E3C;
}
.search-clear {
    font-size: 13px;
    color: #c62828;
    text-decoration: none;
    white-space: nowrap;
}
.search-clear:hover {
    text-decoration: underline;
}
@media (max-width: 500px) {
    .shop-search-form {
        flex-wrap: wrap;
    }
    .shop-search-form input {
        width: 100%;
    }
}




