/* ============================================
   Rayan Shimi - Complete Stylesheet
   Modern, Professional Design
   ============================================ */

/* ---------- CSS Variables (Light Theme) ---------- */
:root {
    --background: #f8fafc;
    --foreground: #0f172a;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --primary: #0c4a6e;
    --primary-foreground: #ffffff;
    --primary-light: #0284c7;
    --primary-glow: rgba(14, 165, 233, 0.3);
    --secondary: #f1f5f9;
    --secondary-foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #f0f9ff;
    --accent-foreground: #0c4a6e;
    --destructive: #ef4444;
    --border: #e2e8f0;
    --input: #e2e8f0;
    --ring: #0284c7;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
    --emerald-500: #10b981;
    --radius: 0.75rem;
    --font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* ---------- Dark Theme ---------- */
.dark {
    --background: #0c1222;
    --foreground: #e2e8f0;
    --card: #162032;
    --card-foreground: #e2e8f0;
    --primary: #38bdf8;
    --primary-foreground: #0c1222;
    --primary-light: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.2);
    --secondary: #1e293b;
    --secondary-foreground: #e2e8f0;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --accent: #0c4a6e;
    --accent-foreground: #7dd3fc;
    --destructive: #f87171;
    --border: #1e3a5f;
    --input: #1e3a5f;
    --ring: #38bdf8;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

/* ---------- Preloader ---------- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.dark #preloader {
    background: #020617;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spray-can-svg {
    width: 80px;
    height: 80px;
    color: #cbd5e1;
    animation: shake 0.5s infinite alternate;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .spray-can-svg {
        width: 96px;
        height: 96px;
    }
}

.spray-mist {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(14,165,233,0.8) 0%, rgba(14,165,233,0) 70%);
    border-radius: 50%;
    top: -20px;
    right: 50px;
    opacity: 0;
    filter: blur(8px);
    pointer-events: none;
}

.rtl .spray-mist {
    right: auto;
    left: 50px;
}

.spray-active .spray-mist {
    animation: sprayEffect 1.5s ease-out forwards;
}

.graffiti-text {
    font-family: var(--font-family);
    font-weight: 900;
    font-style: italic;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #0284c7, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(4px 4px 0px #0f172a);
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 1rem;
    letter-spacing: 0.1em;
    text-align: center;
}

@media (min-width: 640px) {
    .graffiti-text {
        font-size: 3.5rem;
    }
}

.dark .graffiti-text {
    filter: drop-shadow(4px 4px 0px #000000);
}

.show-graffiti {
    opacity: 1;
    transform: scale(1) rotate(-2deg);
}

@keyframes shake {
    0% { transform: rotate(0deg) translateY(0); }
    100% { transform: rotate(-10deg) translateY(-5px); }
}

@keyframes sprayEffect {
    0% { transform: scale(0.5) translate(0,0); opacity: 0.8; }
    100% { transform: scale(4) translate(-50px, -20px); opacity: 0; }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.dark .site-header {
    background: rgba(22,32,50,0.8);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 640px) {
    .header-inner {
        padding: 1rem 1.5rem;
    }
}

.brand-link {
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

.brand-name-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 0.05em;
}

@media (min-width: 640px) {
    .brand-logo {
        height: 2.25rem;
    }
    .brand-name-text {
        font-size: 1.5rem;
    }
}

.brand-link:hover {
    opacity: 0.8;
}

/* Desktop Nav */
.desktop-nav {
    display: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.desktop-nav a {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--muted-foreground);
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: background 0.3s;
}

.icon-btn:hover {
    background: var(--muted);
}

.icon-btn svg {
    width: 16px;
    height: 16px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-family);
    transition: background 0.3s;
}

.lang-btn:hover {
    background: var(--muted);
}

.lang-btn svg {
    width: 16px;
    height: 16px;
}

/* CTA Button */
.btn-primary {
    display: none;
    align-items: center;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-family);
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: var(--transition);
    white-space: nowrap;
}

@media (min-width: 640px) {
    .btn-primary {
        display: inline-flex;
        font-size: 0.875rem;
        padding: 0.625rem 1.5rem;
    }
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 0 30px var(--primary-glow);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: background 0.3s;
}

.mobile-menu-btn:hover {
    background: var(--muted);
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    overflow: hidden;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 1rem;
}

.mobile-nav-inner a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--muted-foreground);
    transition: var(--transition);
}

.mobile-nav-inner a:hover {
    color: var(--primary);
    background: var(--muted);
}

.mobile-nav .btn-primary {
    display: inline-flex;
    margin-top: 0.5rem;
    justify-content: center;
    width: 100%;
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 1.5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 3rem 5rem;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0f172a, #1e293b, #020617);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(14,165,233,0.2), transparent 60%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom left, rgba(8,145,178,0.15), transparent 60%);
}

.hero-light-1,
.hero-light-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    pointer-events: none;
}

.hero-light-1 {
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(14,165,233,0.1), transparent);
}

.rtl .hero-light-1 {
    right: auto;
    left: -10%;
}

.hero-light-2 {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(315deg, rgba(20,184,166,0.1), transparent);
}

.rtl .hero-light-2 {
    left: auto;
    right: -10%;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 56rem;
    text-align: right;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s 0.5s forwards;
}

.ltr .hero-content {
    text-align: left;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-highlight {
    display: block;
    background: linear-gradient(to right, #22d3ee, #38bdf8, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 2;
    margin-bottom: 3rem;
    max-width: 48rem;
    font-weight: 300;
    border-right: 4px solid #0ea5e9;
    padding-right: 1.5rem;
}

.ltr .hero-description {
    border-right: none;
    border-left: 4px solid #0ea5e9;
    padding-right: 0;
    padding-left: 1.5rem;
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

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

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0284c7;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-family);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(14,165,233,0.3);
    transition: var(--transition);
    text-decoration: none;
}

.hero-btn-primary:hover {
    background: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(14,165,233,0.5);
}

.hero-btn-primary svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.rtl .hero-btn-primary svg {
    transform: scaleX(-1);
}

.hero-btn-primary:hover svg {
    transform: translateX(-4px);
}

.ltr .hero-btn-primary:hover svg {
    transform: translateX(4px);
}

.rtl .hero-btn-primary:hover svg {
    transform: scaleX(-1) translateX(-4px);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-family);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: var(--transition);
    text-decoration: none;
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-4px);
}

@media (min-width: 640px) {
    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
}

/* ---------- Section Common ---------- */
.section {
    padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 1.5rem;
    }
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-title-wrapper {
        margin-bottom: 4rem;
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--foreground);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 4px;
    background: var(--sky-600);
    border-radius: 9999px;
}

.section-subtitle {
    color: var(--muted-foreground);
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* ---------- About Section ---------- */
.about-section {
    background: var(--card);
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.about-image-wrapper {
    position: relative;
}

.about-image-glow {
    position: absolute;
    inset: -0.75rem;
    background: linear-gradient(to right, var(--sky-600), #22d3ee);
    border-radius: 1rem;
    filter: blur(20px);
    opacity: 0.2;
}

.dark .about-image-glow {
    opacity: 0.1;
}

.about-image-wrapper img {
    position: relative;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 350px;
    object-fit: cover;
}

@media (min-width: 640px) {
    .about-image-wrapper img {
        height: 400px;
    }
}

.about-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .about-title {
        font-size: 1.875rem;
    }
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 4rem;
    height: 4px;
    background: var(--sky-600);
    border-radius: 9999px;
}

.ltr .about-title::after {
    right: auto;
    left: 0;
}

.about-text {
    color: var(--muted-foreground);
    line-height: 2;
    text-align: justify;
    margin-bottom: 1rem;
}

.about-text:last-of-type {
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .about-stats {
        gap: 2rem;
    }
}

.about-stat {
    border-right: 4px solid var(--sky-600);
    padding-right: 1rem;
}

.ltr .about-stat {
    border-right: none;
    border-left: 4px solid var(--sky-600);
    padding-right: 0;
    padding-left: 1rem;
}

.about-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.about-stat-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ---------- Products Section ---------- */
.products-section {
    background: var(--background);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.products-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: var(--card);
    padding: 1.25rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-bottom: 4px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--sky-600);
}

.product-card.visible:hover {
    transform: translateY(-8px);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    background: var(--muted);
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .product-image-wrapper {
        height: 176px;
    }
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 0.5rem;
    inset-inline-start: 0.5rem;
    background: rgba(2, 132, 199, 0.9);
    color: #ffffff;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .product-title {
        font-size: 1.125rem;
    }
}

.product-desc {
    color: var(--muted-foreground);
    font-size: 0.75rem;
    line-height: 1.625;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--sky-600);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-family);
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: var(--transition);
    margin-top: auto;
}

.product-btn:hover {
    background: var(--sky-500);
    transform: translateY(-1px);
}

.product-btn svg {
    width: 14px;
    height: 14px;
}

/* ---------- FAQ Section ---------- */
.faq-section {
    background: var(--background);
    border-top: 1px solid rgba(226,232,240,0.5);
    border-bottom: 1px solid rgba(226,232,240,0.5);
}

.dark .faq-section {
    border-color: rgba(30,58,95,0.5);
}

.faq-inner {
    max-width: 56rem;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: right;
}

.ltr .faq-list {
    text-align: left;
}

@media (min-width: 640px) {
    .faq-list {
        gap: 1rem;
    }
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-question {
    width: 100%;
    text-align: inherit;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--foreground);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-family);
    transition: background 0.3s;
}

@media (min-width: 640px) {
    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }
}

.faq-question:hover {
    background: rgba(241,245,249,0.5);
}

.dark .faq-question:hover {
    background: rgba(30,41,59,0.5);
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--muted-foreground);
    flex-shrink: 0;
    margin-inline-start: 1rem;
    transition: transform 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer-text {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.75;
    border-top: 1px solid var(--border);
    background: rgba(241,245,249,0.3);
}

.dark .faq-answer-text {
    background: rgba(30,41,59,0.3);
}

@media (min-width: 640px) {
    .faq-answer-text {
        padding: 1.25rem;
    }
}

/* ---------- Order Section ---------- */
.order-section {
    background: var(--card);
}

.order-card {
    background: rgba(241,245,249,0.5);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(4px);
}

.dark .order-card {
    background: rgba(30,41,59,0.5);
}

@media (min-width: 640px) {
    .order-card {
        padding: 2rem;
    }
}

@media (min-width: 768px) {
    .order-card {
        padding: 2.5rem;
    }
}

.order-form {
    display: grid;
    gap: 1rem;
    text-align: right;
}

.ltr .order-form {
    text-align: left;
}

@media (min-width: 640px) {
    .order-form {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    text-align: inherit;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-label .required {
    color: var(--destructive);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-family: var(--font-family);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2,132,199,0.15);
}

.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 2.5rem;
}

.ltr .form-select {
    background-position: right 12px center;
    padding-left: 0.875rem;
    padding-right: 2.5rem;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.375rem;
}

.form-full-width {
    grid-column: 1 / -1;
}

.form-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--muted);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    cursor: pointer;
    user-select: none;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-checkbox-label {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary);
    cursor: pointer;
}

.form-checkbox-hint {
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

.submit-btn {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--sky-600);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-family);
    padding: 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--sky-500);
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.submit-btn .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Order Success */
.order-success {
    padding: 3rem 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: var(--emerald-500);
    margin: 0 auto 1rem;
}

.success-text {
    color: var(--foreground);
    font-weight: 700;
    font-size: 1.125rem;
}

.success-reset-btn {
    margin-top: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    font-family: var(--font-family);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

/* ---------- Magazine Section ---------- */
.magazine-section {
    background: var(--background);
}

.magazine-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .magazine-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.article-card {
    background: var(--card);
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(25px);
}

.article-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.article-card:hover {
    box-shadow: var(--shadow-md);
}

.article-image-wrapper {
    width: 100%;
    height: 144px;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--muted);
}

@media (min-width: 640px) {
    .article-image-wrapper {
        height: 160px;
    }
}

.article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-image-wrapper img {
    transform: scale(1.05);
}

.article-badge {
    display: inline-block;
    background: rgba(2,132,199,0.1);
    color: var(--primary);
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    width: max-content;
}

.article-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .article-title {
        font-size: 1rem;
    }
}

.article-desc {
    color: var(--muted-foreground);
    font-size: 0.75rem;
    line-height: 1.625;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-read-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.6875rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    transition: gap 0.3s;
}

.article-card:hover .article-read-more {
    gap: 8px;
}

.article-read-more svg {
    width: 14px;
    height: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    border-top: 4px solid var(--sky-600);
    margin-top: auto;
    padding: 3rem 1.5rem 0;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 4rem 1.5rem 0;
    }
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-brand-link:hover {
    opacity: 0.85;
}

.footer-brand-name {
    margin-bottom: 0;
    line-height: 1;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--foreground);
}

.dark .footer-brand-name {
    color: var(--foreground);
}

.footer-logo {
    height: 2rem;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@media (min-width: 640px) {
    .footer-logo {
        height: 2.25rem;
    }
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 2;
    text-align: justify;
    color: #94a3b8;
}

.footer-heading {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .footer-heading {
        font-size: 1.125rem;
    }
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    color: #38bdf8;
}

.footer-copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 0.05em;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-copyright {
        margin-top: 4rem;
    }
}

/* ---------- Toast Notification ---------- */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ltr .toast-container {
    right: auto;
    left: 1.5rem;
}

.toast {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--foreground);
    animation: toastIn 0.3s ease;
    max-width: 360px;
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

.toast-destructive {
    border-color: var(--destructive);
}

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

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

/* ---------- View Catalog Button ---------- */
.view-catalog-wrapper {
    text-align: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-family);
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--muted);
    border-color: var(--muted-foreground);
}

.btn-outline svg {
    width: 16px;
    height: 16px;
}

/* ---------- Utility ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   SUBPAGE STYLES
   ============================================ */

/* ---------- Page Header ---------- */
.page-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .page-header {
        padding: 3rem 1.5rem;
    }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    padding: 1rem 1.5rem 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 700;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb-sep {
    color: var(--muted-foreground);
    opacity: 0.5;
}

/* ---------- Subpage Content ---------- */
.subpage-content {
    flex: 1;
    padding-bottom: 2rem;
}

/* ---------- Category Filter ---------- */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.category-filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
}

.category-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-filter-btn.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* Products listing page: 3-col on large screens */
.products-grid.products-grid-all {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .products-grid.products-grid-all {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Magazine listing page: 3-col on large screens */
.magazine-grid.magazine-grid-all {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .magazine-grid.magazine-grid-all {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Products count badge */
.products-count-badge {
    display: inline-block;
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-top: 0.75rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: var(--muted-foreground);
    padding: 4rem 1rem;
    font-size: 1rem;
}

/* ---------- Product Detail ---------- */
.product-detail-section {
    padding: 3rem 1.5rem;
}

@media (min-width: 768px) {
    .product-detail-section {
        padding: 4rem 1.5rem;
    }
}

.product-detail-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.product-detail-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.product-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .product-detail-image img {
        height: 500px;
    }
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.product-detail-badge {
    display: inline-block;
    background: rgba(2,132,199,0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-detail-volume {
    display: inline-block;
    background: var(--muted);
    color: var(--foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-detail-desc {
    color: var(--muted-foreground);
    line-height: 2;
    font-size: 0.9375rem;
}

.product-detail-features {
    margin-top: 0.5rem;
}

.product-detail-features h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.product-detail-features ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-detail-features li {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--muted);
    border: 1px solid var(--border);
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    color: var(--foreground);
}

.product-detail-features li svg {
    width: 14px;
    height: 14px;
    color: var(--emerald-500);
    flex-shrink: 0;
}

.product-detail-body {
    color: var(--muted-foreground);
    line-height: 2;
    font-size: 0.9375rem;
    white-space: pre-line;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

/* ---------- Article Detail ---------- */
.article-detail-section {
    padding: 3rem 1.5rem;
}

@media (min-width: 768px) {
    .article-detail-section {
        padding: 4rem 1.5rem;
    }
}

.article-hero-image {
    max-width: 1280px;
    margin: 0 auto 2.5rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.article-hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .article-hero-image img {
        height: 450px;
    }
}

.article-detail-content {
    max-width: 48rem;
    margin: 0 auto;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.article-meta-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.article-meta-bar svg {
    width: 15px;
    height: 15px;
    color: var(--primary);
}

.article-body-text {
    color: var(--foreground);
    line-height: 2.2;
    font-size: 1rem;
    white-space: pre-line;
}

.article-body-text p {
    margin-bottom: 1.25rem;
}

.article-back-link {
    margin-top: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-back-link svg {
    width: 16px;
    height: 16px;
}

/* ---------- FAQ CTA ---------- */
.faq-cta {
    margin-top: 4rem;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 3rem 1.5rem;
}

.faq-cta h3 {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.faq-cta p {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.faq-cta .btn-primary {
    display: inline-flex;
}

/* ---------- No Preloader on Subpages ---------- */
.subpage #preloader {
    display: none !important;
}

/* ---------- Related Section ---------- */
.related-section {
    padding: 3rem 1.5rem;
    background: var(--card);
    border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
    .related-section {
        padding: 4rem 1.5rem;
    }
}

.related-section .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}