/*
Theme Name: Sarv Tan
Theme URI: 
Author: DeepMind Antigravity
Author URI: 
Description: A custom fantasy glassmorphism WordPress theme for Sarv Tan massage parlor.
Version: 1.1
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
Text Domain: sarv-tan
*/

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700;900&display=swap');

:root {
    --primary-green: #97c986;
    --primary-green-dark: #6a965b;
    --persian-blue: #1c3144;
    --turquoise: #30C5FF;
    --gold: #d4af37;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --bg-dark: #0a0e12;
}

[data-theme="light"] {
    --bg-dark: #f8faf8;
    --text-main: #1a1f18;
    --text-muted: #5a5f58;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.8);
    --gold: #b3880c;
}

[data-theme="light"] .orb { opacity: 0.2; }
[data-theme="light"] .glass-panel { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05); }
[data-theme="light"] .service-featured {
    background: linear-gradient(rgba(248, 250, 248, 0.7), rgba(248, 250, 248, 0.7)), url('https://images.unsplash.com/photo-1544161515-4ab6ce6db874?auto=format&fit=crop&q=80') center/cover !important;
}
[data-theme="light"] .about-hero {
    background: linear-gradient(rgba(248, 250, 248, 0.7), rgba(248, 250, 248, 0.7)), url('assets/hero-bg.png') center/cover no-repeat !important;
}
[data-theme="light"] .contact-hero {
    background: linear-gradient(rgba(248, 250, 248, 0.7), rgba(248, 250, 248, 0.7)), url('assets/contact-bg.png') center/cover no-repeat !important;
}
[data-theme="light"] .terms-hero {
    background: linear-gradient(rgba(248, 250, 248, 0.7), rgba(248, 250, 248, 0.7)), url('assets/terms-bg.png') center/cover no-repeat !important;
}
[data-theme="light"] .shop-hero {
    background: linear-gradient(rgba(248, 250, 248, 0.7), rgba(248, 250, 248, 0.7)), url('assets/shop-bg.png') center/cover no-repeat !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

button, input, textarea, select {
    font-family: inherit;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Orbs for Fantasy/Stained Glass Effect */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 { width: 40vw; height: 40vw; background: var(--primary-green); top: -10%; right: -10%; animation-delay: 0s; }
.orb-2 { width: 30vw; height: 30vw; background: var(--turquoise); bottom: -10%; left: -10%; animation-delay: -5s; }
.orb-3 { width: 25vw; height: 25vw; background: #e94f37; top: 40%; left: 40%; animation-delay: -10s; opacity: 0.3; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2, h3 { font-weight: 900; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--primary-green); text-align: center; }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); text-align: center; margin-bottom: 40px; }

/* Header */
header.main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.mobile-menu-toggle { display: none; }
.mobile-theme-item { display: none; }

.logo-area { display: flex; align-items: center; gap: 15px; }
.logo-text { font-size: 1.5rem; font-weight: 900; letter-spacing: 1px; color: var(--text-main); }

nav.main-nav ul { list-style: none; display: flex; gap: 20px; }
nav.main-nav a { text-decoration: none; color: var(--text-main); font-weight: 400; transition: color 0.3s; font-size: 0.95rem; }
nav.main-nav a:hover { color: var(--primary-green); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white !important;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(151, 201, 134, 0.4);
    display: inline-block;
    text-align: center;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(151, 201, 134, 0.6);
}

.btn-outline {
    border: 1px solid var(--primary-green);
    color: var(--primary-green) !important;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
}
.btn-outline:hover {
    background: var(--primary-green);
    color: white !important;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.2rem;
    margin-right: 15px;
}
.theme-toggle:hover {
    background: var(--glass-bg);
}
[data-theme="light"] .theme-toggle .fa-sun { display: none; }
[data-theme="light"] .theme-toggle .fa-moon { display: block !important; }
.theme-toggle .fa-moon { display: none; }

/* Sections */
main section { padding: 100px 20px; max-width: 1200px; margin: 0 auto; }
svg { max-width: 100%; height: auto; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.hero-text {
    padding: 50px;
    text-align: right;
    position: relative;
    overflow: hidden;
}

.hero-text::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.03) 10px,
        rgba(255,255,255,0.03) 20px
    );
    z-index: -1;
    pointer-events: none;
}

.hero-text h1 { font-size: 3.5rem; line-height: 1.3; margin-bottom: 20px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.hero-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }

.hero-image-wrapper {
    padding: 15px;
    border-radius: 30px;
    display: flex;
    height: 100%;
    min-height: 400px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* About Us, Contact, Terms & Shop Hero */
.about-hero, .contact-hero, .terms-hero, .shop-hero {
    background: linear-gradient(rgba(10, 14, 18, 0.3), var(--bg-dark)), url('assets/hero-bg.png') center/cover no-repeat;
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
    border-radius: 0 0 40px 40px;
}
.contact-hero {
    background: linear-gradient(rgba(10, 14, 18, 0.3), var(--bg-dark)), url('assets/contact-bg.png') center/cover no-repeat;
}
.terms-hero {
    background: linear-gradient(rgba(10, 14, 18, 0.3), var(--bg-dark)), url('assets/terms-bg.png') center/cover no-repeat;
}
.shop-hero {
    background: linear-gradient(rgba(10, 14, 18, 0.3), var(--bg-dark)), url('assets/shop-bg.png') center/cover no-repeat;
}
.about-hero h1, .contact-hero h1, .terms-hero h1, .shop-hero h1 { font-size: 3.5rem; margin-bottom: 15px; }

/* Features (Why Choose Us) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: -50px; /* Overlap hero slightly */
    position: relative;
    z-index: 10;
}
.feature-card {
    padding: 25px;
    text-align: center;
    transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-10px); }
.feature-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 15px; }

/* Shop / Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.product-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s;
}
.product-card:hover { border-color: var(--primary-green); }
.product-img {
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.3);
}
.product-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.product-price { color: var(--gold); font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; }
.product-card .btn-outline { width: 100%; }

/* Puzzle Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-featured {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1544161515-4ab6ce6db874?auto=format&fit=crop&q=80') center/cover !important;
}

.service-card {
    padding: 30px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}
.service-card:hover { transform: scale(1.05); border-color: var(--primary-green); z-index: 10; }
.service-icon { font-size: 3rem; margin-bottom: 15px; color: var(--primary-green); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; }

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; }
    .service-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .service-card:nth-child(2) { grid-column: span 1; }
    .service-card:nth-child(3) { grid-column: span 1; }
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.team-card {
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}
.team-card:hover { transform: translateY(-5px); }
.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--glass-border);
}
.team-card h3 { margin-bottom: 5px; color: var(--primary-green); }
.team-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.blog-card {
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { border-color: var(--primary-green); }
.blog-img {
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
    object-fit: cover;
    background: rgba(0,0,0,0.3);
}
.blog-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.blog-date { font-size: 0.8rem; color: var(--gold); margin-bottom: 10px; }
.blog-content h3 { margin-bottom: 15px; font-size: 1.2rem; }
.read-more { color: var(--primary-green); text-decoration: none; font-size: 0.9rem; margin-top: 15px; font-weight: 700; }

/* Ambiance Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-item { border-radius: 16px; overflow: hidden; aspect-ratio: 1; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; background: #111; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Form / Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-form { padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 15px; background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); border-radius: 12px; color: white; font-family: inherit; transition: border-color 0.3s; }
.form-control:focus { outline: none; border-color: var(--primary-green); }
.contact-info { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.reservation-form select:focus,
.reservation-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(142, 198, 127, 0.3);
}

/* Shop Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}
.product-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: transform 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}
.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-price {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: bold;
    margin: 15px 0;
}
.product-category {
    color: var(--primary-green);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

/* Single Product Page */
.single-product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.product-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.product-thumbnails {
    display: flex;
    gap: 15px;
}
.product-thumbnails img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}
.product-thumbnails img:hover, .product-thumbnails img.active {
    border-color: var(--gold);
}
.product-summary {
    display: flex;
    flex-direction: column;
}
.product-summary h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--gold);
}
.product-summary .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 25px;
}
.product-summary .description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}
.cart-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.quantity-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}
.quantity-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}
.quantity-btn:hover {
    background: rgba(255,255,255,0.1);
}
.quantity-input {
    background: transparent;
    border: none;
    color: white;
    width: 50px;
    text-align: center;
    font-size: 1.1rem;
    font-family: inherit;
}
.quantity-input:focus {
    outline: none;
}
.product-meta {
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.product-meta span {
    color: white;
}

/* Product Tabs */
.product-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.product-tabs-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}
.product-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    padding: 10px 20px;
    position: relative;
    transition: color 0.3s;
}
.product-tab-btn.active {
    color: var(--gold);
    font-weight: bold;
}
.product-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    border-radius: 3px 3px 0 0;
}
.product-tab-content {
    display: none;
    color: var(--text-muted);
    line-height: 1.8;
}
.product-tab-content.active {
    display: block;
}

/* FAQ Page */
.faq-hero {
    background: linear-gradient(rgba(10, 14, 18, 0.4), var(--bg-dark)), url('assets/images/faq-bg.png') center/cover no-repeat;
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
    border-radius: 0 0 40px 40px;
}
.faq-hero h1 { font-size: 3.5rem; margin-bottom: 15px; }

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.faq-category-title {
    color: var(--gold);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}
.faq-item.active {
    border-color: var(--primary-green);
    box-shadow: 0 5px 20px rgba(151, 201, 134, 0.1);
}
.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
    transition: color 0.3s;
}
.faq-question:hover {
    color: var(--primary-green);
}
.faq-icon {
    color: var(--gold);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-green);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 25px;
    color: var(--text-muted);
    line-height: 1.8;
}
.faq-item.active .faq-answer {
    max-height: 500px; /* Arbitrary large number for animation */
    padding: 0 25px 25px 25px;
}

/* Blog Archive & Single Post */
.blog-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    align-items: start;
}
.post-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.sidebar {
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.widget {
    padding: 30px;
    border-radius: 20px;
}
.widget-title {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}
.widget ul {
    list-style: none;
}
.widget ul li {
    margin-bottom: 15px;
}
.widget ul li a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}
.widget ul li a:hover {
    color: var(--primary-green);
}
.search-form {
    display: flex;
    gap: 10px;
}
.search-input {
    flex-grow: 1;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    border-radius: 12px;
    color: white;
}
.search-btn {
    background: var(--primary-green);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
}

/* Single Post Specifics */
.single-post-header {
    margin-bottom: 30px;
}
.single-post-title {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    line-height: 1.4;
}
.single-post-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.featured-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.post-body {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-main);
}
.post-body p {
    margin-bottom: 25px;
}
.post-body h2, .post-body h3 {
    color: var(--gold);
    margin: 40px 0 20px;
}
.glass-quote {
    padding: 30px;
    border-right: 5px solid var(--primary-green);
    font-size: 1.2rem;
    font-style: italic;
    margin: 40px 0;
    border-radius: 15px 0 0 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}
.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}
.page-number:hover, .page-number.current {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 50px;
    }
    .blog-layout, .single-product-container {
        grid-template-columns: 1fr;
    }
    .hero-container { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .hero-text { 
        text-align: center; 
        padding: 30px 15px; 
        order: 2; 
    }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-image-wrapper {
        order: 1;
        min-height: unset;
        height: 250px;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .contact-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    
    /* Header Mobile Fix */
    header.main-header { 
        flex-direction: row; 
        gap: 0; 
        border-radius: 16px; 
        width: 95%; 
        padding: 15px;
    }
    
    .mobile-menu-toggle { 
        display: block; 
        background: transparent; 
        border: none; 
        color: var(--text-main); 
        font-size: 1.5rem; 
        cursor: pointer;
        order: 1; /* right in RTL */
    }
    
    header.main-header .logo-area { 
        margin-bottom: 0; 
        position: absolute; 
        left: 50%; 
        transform: translateX(-50%);
    }
    
    .header-left-actions { 
        order: 3; /* left in RTL */
        margin-top: 0;
    }
    
    .hide-mobile { display: none; }
    .desktop-toggle-btn { display: none; }
    
    nav.main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 20px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    nav.main-nav.active {
        display: block;
    }
    nav.main-nav ul { 
        gap: 15px; 
        flex-direction: column; 
        align-items: flex-start;
        padding: 0;
    }
    nav.main-nav a { white-space: normal; font-size: 1.1rem; }
    
    .mobile-theme-item {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid var(--glass-border);
        width: 100%;
    }
    .mobile-theme-item span { font-size: 1rem; color: var(--text-main); }
    
    /* Products and Blog 2-columns on mobile */
    .product-grid, .blog-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .product-card, .blog-card {
        min-width: 0; /* Reset for grid */
    }
}

/* Footer */
footer.main-footer {
    text-align: center;
    padding: 50px 20px 30px;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: right;
}
.footer-col h4 { color: var(--primary-green); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-col ul a:hover { color: var(--gold); }

.glass-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.glass-modal-overlay.active { opacity: 1; pointer-events: all; }
.glass-modal-content { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); border-radius: 24px; width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto; transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; padding: 40px; display: flex; flex-direction: column; gap: 20px; color: var(--text-main); }
.glass-modal-overlay.active .glass-modal-content { transform: translateY(0) scale(1); }
.close-modal { position: absolute; top: 20px; left: 20px; background: rgba(255,255,255,0.1); border: none; color: var(--text-main); width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: background 0.3s; }
.close-modal:hover { background: var(--primary-green); color: white; }
.modal-header { font-size: 2rem; color: var(--gold); margin-bottom: 10px; }
.modal-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 16px; margin-bottom: 20px; }
.modal-desc { font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); }
.modal-action { display: inline-block; padding: 12px 30px; background: var(--primary-green); color: white; border-radius: 50px; text-decoration: none; margin-top: 20px; align-self: flex-start; font-weight: bold; }
