/* Modern Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d8659;
    --primary-dark: #1f5d3f;
    --primary-light: #4CAF50;
    --secondary-color: #ff6b35;
    --accent-color: #f7931e;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* =========================================
   Cart Page Title - Premium Glass Header
========================================= */

.entry-header {

    position: relative;
    text-align: center;
    margin: 3rem auto 4rem auto;
    padding: 3rem 2rem;

    max-width: 900px;
z-index: 1;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.4);

    box-shadow: 0 20px 60px rgba(0,0,0,0.08);

    overflow: hidden;
}



/* Title Style */

.entry-title {
    position: relative;
    z-index: 1;

    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;

    background: linear-gradient(135deg, #1b5e20, #2d8659);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    margin: 0;
}

/* Decorative Line Under Title */

.entry-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    margin: 1rem auto 0 auto;
    border-radius: 10px;

    background: linear-gradient(90deg, #2d8659, #4caf50);
}

/* Subtle Animation */

.entry-header {
    animation: fadeGlass 0.8s ease-out;
}

@keyframes fadeGlass {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */

@media (max-width: 768px) {

    .entry-header {
        padding: 2rem 1.2rem;
        margin: 2rem 1rem 3rem 1rem;
    }

    .entry-title {
        font-size: 1.8rem;
    }
}
/* Site Branding */
.site-branding {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.site-branding > .site-branding {
    gap: 0.75rem;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img,
.custom-logo-link img,
.custom-logo {
    max-height: 55px;
    width: auto;
    height: auto;
    border-radius: 8px;
    transition: var(--transition);
    display: block;
}

.site-logo img:hover,
.custom-logo-link img:hover,
.custom-logo:hover {
    transform: scale(1.05);
}

.site-title {
    margin: 0;
}

.site-title a {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    line-height: 1.3;
}

.site-title a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.site-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0.15rem 0 0 0;
    font-weight: 300;
}

/* Navigation */
/* Navigation Base
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}
 */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* First Level */
.main-navigation > ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* List Items Base */
.main-navigation ul li {
    margin: 0;
    position: relative; /* essential for absolute submenu positioning */
}

/* Links Base */
.main-navigation a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* Arrows for Items with Submenus (Down Arrow for Top Level) */
.main-navigation li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: translateY(-2px) rotate(225deg); /* Down Arrow */
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

/* Hover effects for top level links */
.main-navigation > ul > li:hover > a {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}



/* Container */
/* Header Layout Fix */
header .container {
    width: 80%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; /* جلوگیری از شکستن خط */
}
/* header-search form*/
/* ===== WooCommerce Glass Search ===== */
.header-search {
    position: relative;
}

.woocommerce-product-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 0.35rem 0.5rem 0.35rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.woocommerce-product-search:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.search-field {
    border: none;
    background: transparent;
    outline: none;
    color: white;
    font-size: 0.9rem;
    width: 180px;
}

.search-field::placeholder {
    color: rgba(255,255,255,0.75);
}

.search-btn {
    border: none;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.search-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* login and register botton and icon*/
/* shop cart botton and icon*/
/* Header Actions */
/* Header Actions (ورود + سبد + جستجو) */
.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Account & Cart Buttons */
.header-account a,
.header-cart a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.header-account a:hover,
.header-cart a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* SVG Icons */
.header-actions img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 14% 18%, rgba(193, 255, 216, 0.2) 0%, rgba(193, 255, 216, 0) 40%),
        linear-gradient(135deg, #0b3525 0%, #145438 50%, #1f6f4f 100%);
    overflow: hidden;
    padding: 4rem 0;
    isolation: isolate;
}

.hero-illustration {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.95;
    transform: scale(1.03);
    animation: heroArtworkDrift 24s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(5, 20, 14, 0.64) 0%, rgba(8, 27, 18, 0.45) 60%, rgba(14, 42, 29, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
}

.hero-title {
    position: relative;
    display: block;
    width: min(100%, 1120px);
    padding: 1.05rem 1.9rem 1.2rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin: 0 auto 1.15rem;
    line-height: 1.3;
    color: #0f3a29;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.38);
    text-shadow: none;
    box-shadow:
        0 18px 34px rgba(5, 23, 16, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.hero-subtitle {
    position: relative;
    display: block;
    width: min(100%, 760px);
    padding: 0.8rem 1.5rem;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin: 0 auto 2.5rem;
    opacity: 1;
    font-weight: 500;
    color: #1c4f3a;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.33);
    text-shadow: none;
    box-shadow:
        0 12px 28px rgba(5, 23, 16, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

.hero-title::before,
.hero-subtitle::before,
.hero-title::after,
.hero-subtitle::after {
    content: none;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ff5722 0%, #ff8c00 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

@keyframes heroArtworkDrift {
    0%,
    100% {
        transform: scale(1.03) translate(0, 0);
    }
    50% {
        transform: scale(1.06) translate(-1.1%, -1.2%);
    }
}

@keyframes heroLiquidFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(12px, -10px) scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-illustration img {
        animation: none;
        transform: scale(1.03);
    }

    .hero-title::before,
    .hero-subtitle::before {
        animation: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer,
.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
    padding: 3rem 0 2rem;
    position: relative;
    width: 100%;
    margin-top: 4rem;
}

.footer-content,
.site-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content p,
.site-info p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer-content ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    padding: 0;
}

.footer-content ul li {
    margin: 0;
}

.footer-content ul li a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: block;
}

.footer-content ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Typography */
h1, h2, h3 {
    color: var(--text-dark);
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Product Cards */
.product {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    background: white;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.product:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.product img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.button {
    display: inline-block;
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.product-types-section {
    background: var(--white);
}

.farm-types-section {
    background: linear-gradient(to bottom, var(--bg-light), var(--white));
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.category-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.category-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
}

.category-card:hover .category-link {
    gap: 0.75rem;
    color: var(--primary-color);
}

/* Farm Types Grid */
.farm-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.farm-type-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}

.farm-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(45, 134, 89, 0.15);
}

.farm-type-image-placeholder {
    height: 160px;
    background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.farm-type-image-placeholder::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: url('data:image/svg+xml,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.2)"/></svg>');
    top: -25%;
    left: -25%;
    transform: rotate(15deg);
    z-index: 0;
}

.farm-type-icon {
    width: 76px;
    height: 76px;
    color: var(--white);
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.farm-type-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.farm-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.farm-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.farm-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(45, 134, 89, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    align-self: flex-start;
    transition: var(--transition);
}

.farm-type-card:hover .farm-link {
    background: var(--primary-color);
    color: var(--white);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Custom Tabbed Sliders Section */
.slider-section {
    padding: 5rem 0;
    overflow: hidden;
}

.slider-section.pesticides-slider {
    background-color: var(--bg-light);
}

.slider-section.fertilizers-slider {
    background-color: var(--white);
}

/* Tabs */
.slider-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.slider-tab {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
}

.slider-tab:hover {
    background: rgba(45, 134, 89, 0.1);
}

.slider-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.3);
}

/* Tab Panes */
.slider-tab-pane {
    display: none;
    animation: fadeInTab 0.5s ease-out;
}

.slider-tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Slider Layout */
.custom-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-slider-container {
    flex: 1;
    overflow: hidden;
    /* Use scroll-snap instead of drag for native feel (we will add drag in JS too) */
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.custom-slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Slider Track configures the Grid layout */
.custom-slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.custom-slider-slide {
    flex: 0 0 calc((100% - (1.5rem * 3)) / 4); /* 4 columns desk defaults */
    min-width: calc((100% - (1.5rem * 3)) / 4);
}

/* Product Card inside Slider */
.custom-slider-slide .product-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.custom-slider-slide .product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
}

.product-image-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.custom-slider-slide .product-card:hover .product-image-link img {
    transform: scale(1.05);
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-title a {
    color: var(--text-dark);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    margin-top: auto;
}

.product-price ins {
    text-decoration: none;
}

.product-price del {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
    margin-right: 0.5rem;
}

.btn-add-to-cart {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    background: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid var(--primary-light);
}

.btn-add-to-cart:hover {
    background: var(--primary-color);
    color: var(--white);
}

.no-products {
    width: 100%;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    background: var(--bg-light);
    border-radius: 16px;
}

/* Slider Navigation Buttons */
.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-dark);
    flex-shrink: 0;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-btn:disabled:hover {
    background: white;
    color: var(--primary-dark);
    transform: none;
}

/* Glassmorphism Global Utilities */
.glass-section {
    padding: 5rem 0;
    position: relative;
    background: linear-gradient(135deg, var(--bg-light) 0%, #eef2f3 100%);
    overflow: hidden;
}

.glass-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(45,134,89,0.05) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

/* Brands Section */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.brand-name {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 0;
    font-weight: 800;
    opacity: 0.8;
    filter: grayscale(100%) opacity(0.7);    
}

.brand-card:hover .brand-name {
    opacity: 1;
    filter: grayscale(0%) opacity(1);
    color: var(--primary-color);
}

.brand-logo-img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
}

.brand-card:hover .brand-logo-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.brand-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--primary-dark);
    opacity: 0.7;
    transition: var(--transition);
}

.brand-svg-icon {
    opacity: 0.5;
    transition: var(--transition);
}

.brand-card:hover .brand-logo-placeholder,
.brand-card:hover .brand-svg-icon {
    opacity: 1;
    color: var(--primary-color);
}

/* Consultation Section */
.consultation-section {
    background: linear-gradient(135deg, #eef2f3 0%, var(--bg-light) 100%);
}

.consultation-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem;
    gap: 4rem;
}

.consultation-text {
    flex: 1;
}

.consultation-desc {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.glass-btn {
    background: rgba(45, 134, 89, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.glass-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 134, 89, 0.2);
}

.consultation-image {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-image-placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(45,134,89,0.1), rgba(45,134,89,0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: inset 0 0 40px rgba(255,255,255,0.5), 0 20px 40px rgba(45,134,89,0.1);
    position: relative;
    animation: floatImage 6s ease-in-out infinite;
}

.glass-image-placeholder::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px dashed rgba(45,134,89,0.2);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@media (max-width: 992px) {
    .consultation-content {
        flex-direction: column;
        padding: 3rem 2rem;
        text-align: center;
        gap: 2rem;
    }
    
    .consultation-text h2 {
        text-align: center !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* 3 columns on tablet */
    .custom-slider-slide {
        flex: 0 0 calc((100% - (1.5rem * 2)) / 3);
        min-width: calc((100% - (1.5rem * 2)) / 3);
    }
}

@media (max-width: 768px) {
    /* 3 columns on mobile (requested by user) */
    .custom-slider-slide {
        flex: 0 0 calc((100% - (1.5rem * 2)) / 3);
        min-width: calc((100% - (1.5rem * 2)) / 3);
    }

    /* Make buttons smaller on mobile */
    .slider-btn {
        width: 36px;
        height: 36px;
    }
    .slider-btn svg {
        width: 18px;
        height: 18px;
    }

    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }

    .hero-title {
        border-radius: 22px;
        padding: 0.9rem 1rem 1rem;
        line-height: 1.35;
    }

    .hero-subtitle {
        border-radius: 20px;
        padding: 0.75rem 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-section,
    .cta-section {
        padding: 4rem 0;
    }
    
   /* nav ul {
        flex-direction: column;
        gap: 0.25rem;
    }
        */
}
/* اضافه کردن این در media query */
@media (max-width: 900px) {
    header .container {
        flex-wrap: nowrap; /* همه در یک ردیف بمانند */
        gap: 0.5rem;
    }
    
    /* مخفی کردن nav در موبایل — همبرگر جای آن را میگیرد */
    header nav {
        display: none; /* JS بعداً کنترل میکند */
    }
    
    header nav.open {
        display: flex;
    }
}
@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
}
