/*
Theme Name: عزیز دارو
Theme URI: https://azizdaroo.com
Author: عزیز دارو
Author URI: https://azizdaroo.com
Description: قالب مدرن، مینیمال و ریسپانسیو فروشگاه دارویی عزیز دارو با رنگ‌های سبز سلامت و دکمه‌های CTA زرد قوی
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: aziz-daroo
*/

/* =============================================
   CSS RESET & NORMALIZE (کراس بروزر)
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.8;
    color: #2d3436;
    background-color: #ffffff;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section {
    display: block;
}

img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* =============================================
   COLOR VARIABLES
   ============================================= */
:root {
    --green-primary: #27ae60;
    --green-dark: #1e8449;
    --green-light: #2ecc71;
    --green-pale: #e8f8f5;
    --green-bg: #f0faf5;
    
    --yellow-cta: #f39c12;
    --yellow-hover: #e67e22;
    --yellow-light: #fdebd0;
    
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-500: #6c757d;
    --gray-700: #495057;
    --gray-900: #212529;
    
    --red: #e74c3c;
    --blue: #3498db;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--gray-900);
}

h1 { font-size: 3.6rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.6rem; }

p {
    margin-bottom: 1.6rem;
    color: var(--gray-700);
}

/* =============================================
   CONTAINER
   ============================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 960px;
}

.container-lg {
    max-width: 1400px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 8rem;
    gap: 2rem;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--green-dark);
}

.site-logo svg {
    width: 4.5rem;
    height: 4.5rem;
}

.logo-text span {
    color: var(--green-primary);
}

.logo-sub {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--gray-500);
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 3rem;
}

.main-navigation a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--green-primary);
    transition: width var(--transition-normal);
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--green-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--green-pale);
}

.icon-btn svg {
    width: 2.2rem;
    height: 2.2rem;
    color: var(--gray-700);
    transition: color var(--transition-fast);
}

.icon-btn:hover svg {
    color: var(--green-primary);
}

.cart-count {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--yellow-cta);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.3s ease;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 2.5rem;
    height: 3px;
    background: var(--gray-900);
    margin: 5px 0;
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 8rem;
    right: 0;
    width: 100%;
    height: calc(100vh - 8rem);
    background: var(--white);
    padding: 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul li {
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu a {
    display: block;
    padding: 1.5rem 0;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--gray-700);
}

.mobile-menu a:hover {
    color: var(--green-primary);
    padding-right: 1rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, var(--green-bg) 0%, #e0f7ef 100%);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 60rem;
    height: 60rem;
    background: radial-gradient(circle, rgba(39,174,96,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatSlow 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 40rem;
    height: 40rem;
    background: radial-gradient(circle, rgba(46,204,113,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatSlow 6s ease-in-out infinite reverse;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInRight 1s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--white);
    color: var(--green-primary);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.hero-badge::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--green-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 1.1rem;
}

.hero-title {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--gray-900);
}

.hero-title span {
    color: var(--green-primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1rem;
    background: var(--yellow-light);
    z-index: -1;
    border-radius: var(--radius-sm);
}

.hero-description {
    font-size: 1.8rem;
    color: var(--gray-500);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    animation: fadeInLeft 1s ease;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    animation: float 4s ease-in-out infinite;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--green-dark);
    display: block;
}

.hero-stat-label {
    font-size: 1.3rem;
    color: var(--gray-500);
}

/* =============================================
   BUTTONS & CTA (دکمه‌های زرد قوی)
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 3rem;
    border-radius: var(--radius-full);
    font-size: 1.6rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 40rem;
    height: 40rem;
}

/* CTA Primary - زرد قوی */
.btn-cta {
    background: var(--yellow-cta);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(243,156,18,0.4);
    animation: pulse 2s infinite;
}

.btn-cta:hover {
    background: var(--yellow-hover);
    box-shadow: 0 6px 25px rgba(230,126,34,0.5);
    transform: translateY(-3px);
    color: var(--white);
}

/* Secondary - سبز */
.btn-primary {
    background: var(--green-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(39,174,96,0.3);
}

.btn-primary:hover {
    background: var(--green-dark);
    box-shadow: 0 6px 25px rgba(30,132,73,0.4);
    transform: translateY(-3px);
    color: var(--white);
}

/* Outline */
.btn-outline {
    background: transparent;
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
}

.btn-outline:hover {
    background: var(--green-primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* White */
.btn-white {
    background: var(--white);
    color: var(--green-dark);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Small */
.btn-sm {
    padding: 0.8rem 2rem;
    font-size: 1.4rem;
}

/* Large */
.btn-lg {
    padding: 1.6rem 4rem;
    font-size: 1.8rem;
}

/* With Icon Animation */
.btn-icon-right svg {
    transition: transform var(--transition-fast);
}

.btn-icon-right:hover svg {
    transform: translateX(-5px);
}

.btn-icon-left svg {
    transition: transform var(--transition-fast);
}

.btn-icon-left:hover svg {
    transform: translateX(5px);
}

/* =============================================
   PRODUCT CARD (کارت محصول)
   ============================================= */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--gray-50);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 2;
}

.badge-special {
    background: var(--yellow-cta);
    color: var(--white);
    animation: pulse 1.5s infinite;
}

.badge-new {
    background: var(--green-primary);
    color: var(--white);
}

.badge-discount {
    background: var(--red);
    color: var(--white);
}

.product-card-actions {
    position: absolute;
    bottom: -5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    transition: bottom var(--transition-normal);
}

.product-card:hover .product-card-actions {
    bottom: 0;
}

.product-card-action-btn {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-full);
    background: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.product-card-action-btn:hover {
    background: var(--green-primary);
    color: var(--white);
}

.product-card-body {
    padding: 2rem;
}

.product-card-category {
    font-size: 1.2rem;
    color: var(--green-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a:hover {
    color: var(--green-primary);
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: var(--yellow-cta);
    font-size: 1.4rem;
}

.rating-count {
    font-size: 1.2rem;
    color: var(--gray-500);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-regular {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
}

.price-old {
    font-size: 1.4rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.product-card-add-to-cart {
    width: 100%;
    padding: 1rem;
    background: var(--green-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.product-card-add-to-cart:hover {
    background: var(--yellow-cta);
}

.product-card-add-to-cart.added {
    background: var(--green-dark);
}

/* =============================================
   CATEGORY CARDS
   ============================================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--green-primary);
}

.category-card-icon {
    width: 7rem;
    height: 7rem;
    margin: 0 auto 1.5rem;
    background: var(--green-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.category-card:hover .category-card-icon {
    background: var(--green-primary);
}

.category-card-icon svg {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--green-primary);
    transition: color var(--transition-normal);
}

.category-card:hover .category-card-icon svg {
    color: var(--white);
}

.category-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.category-card-count {
    font-size: 1.2rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-section {
    padding: 8rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-icon {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 2rem;
    background: var(--green-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 4rem;
    height: 4rem;
    color: var(--green-primary);
}

.feature-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-text {
    font-size: 1.4rem;
    color: var(--gray-500);
}

/* =============================================
   SECTION STYLES
   ============================================= */
.section-padding {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.6rem;
    color: var(--gray-500);
    max-width: 60rem;
    margin: 0 auto;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section {
    background: var(--green-bg);
    padding: 8rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 8rem;
    color: var(--green-pale);
    position: absolute;
    top: 1rem;
    right: 2rem;
    line-height: 1;
    font-family: serif;
}

.testimonial-text {
    font-size: 1.5rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-role {
    font-size: 1.2rem;
    color: var(--gray-500);
}

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter-section {
    background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
    padding: 6rem 0;
    color: var(--white);
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.newsletter-content h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    min-width: 40rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1.5rem 2rem;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1.5rem;
    outline: none;
    transition: all var(--transition-fast);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form input:focus {
    border-color: var(--white);
    background: rgba(255,255,255,0.2);
}

.newsletter-form .btn {
    background: var(--yellow-cta);
    color: var(--white);
}

.newsletter-form .btn:hover {
    background: var(--yellow-hover);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about p {
    color: var(--gray-300);
    margin: 2rem 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-300);
    font-size: 1.4rem;
}

.footer-contact-item svg {
    width: 2rem;
    height: 2rem;
    color: var(--green-light);
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--gray-300);
    font-size: 1.4rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--green-light);
    padding-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gray-300);
    margin: 0;
    font-size: 1.3rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 4rem;
    height: 4rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--green-primary);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 2rem;
    height: 2rem;
    color: var(--white);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.05); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(243,156,18,0.4); }
    50% { box-shadow: 0 4px 30px rgba(243,156,18,0.7); }
}

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner */
.spinner {
    width: 4rem;
    height: 4rem;
    border: 4px solid var(--gray-200);
    border-top-color: var(--green-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* =============================================
   WOOCOMMERCE SPECIFIC
   ============================================= */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
    gap: 2rem;
}

.woocommerce .product {
    margin: 0 !important;
}

.woocommerce .button.add_to_cart_button,
.woocommerce .button.product_type_simple {
    background: var(--green-primary) !important;
    color: var(--white) !important;
    border-radius: var(--radius-full) !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    transition: all var(--transition-fast) !important;
}

.woocommerce .button.add_to_cart_button:hover,
.woocommerce .button.product_type_simple:hover {
    background: var(--yellow-cta) !important;
    transform: translateY(-2px);
}

.woocommerce span.onsale {
    background: var(--yellow-cta) !important;
    border-radius: var(--radius-full) !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 700 !important;
}

.woocommerce .star-rating span::before {
    color: var(--yellow-cta) !important;
}

/* Single Product */
.single-product .product_title {
    font-size: 3rem !important;
    font-weight: 800 !important;
}

.single-product .price {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: var(--green-dark) !important;
}

.single-product .single_add_to_cart_button {
    background: var(--yellow-cta) !important;
    color: var(--white) !important;
    border-radius: var(--radius-full) !important;
    padding: 1.5rem 4rem !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    transition: all var(--transition-fast) !important;
}

.single-product .single_add_to_cart_button:hover {
    background: var(--yellow-hover) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(230,126,34,0.4) !important;
}

/* Cart Page */
.woocommerce-cart .button.checkout-button {
    background: var(--yellow-cta) !important;
    border-radius: var(--radius-full) !important;
    padding: 1.5rem 3rem !important;
    font-weight: 700 !important;
}

.woocommerce-cart .button.checkout-button:hover {
    background: var(--yellow-hover) !important;
}

/* =============================================
   RESPONSIVE (ریسپانسیو کامل)
   ============================================= */
@media (max-width: 1200px) {
    html { font-size: 60%; }
}

@media (max-width: 992px) {
    html { font-size: 58%; }
    
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 60%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .newsletter-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    html { font-size: 56%; }
    
    .main-navigation {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-title {
        font-size: 3.6rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .woocommerce .products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    html { font-size: 55%; }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .woocommerce .products {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .product-card-actions {
        bottom: 0;
    }
}