/* ========================================
   BAREM TEKSTİL - Ana Stil Dosyası
   Renk paleti logo geldiğinde güncellenecek
   ======================================== */

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

:root {
    /* Ana renkler - logo geldiğinde güncellenecek */
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #c9a96e;
    --accent-light: #d4bc8e;
    --accent-dark: #b08d4f;
    --text: #2d2d2d;
    --text-light: #6b6b6b;
    --text-muted: #999;
    --bg: #ffffff;
    --bg-alt: #f8f7f4;
    --bg-dark: #0f0f1a;
    --border: #e8e6e1;
    --border-light: #f0eeea;

    /* Tipografi */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    transition: var(--transition);
}

.header.scrolled .logo-text {
    color: var(--primary);
}

.logo-accent {
    color: var(--accent);
    font-weight: 400;
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #fff;
}

.header.scrolled .nav-link {
    color: var(--text-light);
}

.header.scrolled .nav-link:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
    border-radius: 1px;
}

.header.scrolled .menu-toggle span {
    background: var(--primary);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    background-image: url('../images/kumas-detay-cizgili.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 169, 110, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 169, 110, 0.05) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.92) 0%, rgba(26, 26, 46, 0.82) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 140px 0 100px;
}

.hero-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-title span {
    color: var(--accent);
    font-style: italic;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    max-width: 540px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-full {
    width: 100%;
}

/* --- Section Base --- */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- About --- */
.about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-lead {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

.image-placeholder {
    background: var(--bg-alt);
    border: 2px dashed var(--border);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 400px;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: var(--transition);
}

.image-placeholder:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.image-placeholder.small {
    min-height: 260px;
}

.placeholder-icon {
    opacity: 0.4;
}

/* --- Products --- */
.products {
    background: var(--bg-alt);
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.product-card.hidden {
    display: none;
}

.product-image {
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.product-info {
    padding: 24px;
}

.product-category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 8px 0;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Weaving / Loom Section --- */
.weaving {
    background: var(--bg);
}

.loom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.loom-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
}

.loom-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.loom-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(201, 169, 110, 0.06) 100%);
}

.loom-card.featured::before {
    content: 'En Geniş';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-dark);
    background: rgba(201, 169, 110, 0.15);
    padding: 4px 10px;
    border-radius: 2px;
}

.loom-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.loom-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.loom-width {
    font-size: 0.85rem;
    color: var(--accent-dark);
    font-weight: 500;
}

.loom-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 16px 0;
    line-height: 1.6;
}

.loom-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.loom-features li {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 2px;
    border: 1px solid var(--border);
}

/* --- Brands --- */
.brands {
    background: var(--bg-alt);
}

.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.brand-grid.brand-single {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
}

.brand-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 48px 40px;
    transition: var(--transition);
    text-align: center;
}

.brand-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.brand-logo-area {
    margin-bottom: 24px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary);
}

.brand-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.brand-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.brand-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-dark);
    background: rgba(201, 169, 110, 0.1);
    padding: 6px 14px;
    border-radius: 2px;
}

/* --- Contact --- */
.contact {
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 16px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.contact-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.contact-item a:hover {
    color: var(--accent);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--bg);
}

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

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

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    padding: 80px 0 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
    font-size: 1.3rem;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.footer-links a,
.footer-contact a,
.footer-contact p {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Category Cards Grid --- */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.category-card.active {
    box-shadow: 0 0 0 3px var(--accent), 0 12px 32px rgba(0,0,0,0.14);
}

.category-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.category-card:hover .category-card-image img {
    transform: scale(1.06);
}

.category-card-info {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.category-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.category-card:hover .category-card-arrow {
    transform: translateX(4px);
    background: var(--primary);
}

.image-pool { display: none; }

/* --- Expanded Gallery --- */
.category-gallery-expanded {
    display: none;
    margin-top: 40px;
    padding: 40px;
    background: var(--bg-alt);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    animation: galleryFadeIn 0.4s ease;
}

.category-gallery-expanded.open {
    display: block;
}

@keyframes galleryFadeIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--accent);
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.gallery-close {
    background: none;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.gallery-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-gallery-expanded {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .category-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-gallery-expanded {
        padding: 20px;
        margin-top: 24px;
    }

    .gallery-title {
        font-size: 1.2rem;
    }

    .category-card-info {
        padding: 14px 16px;
    }

    .category-card-info h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-grid {
        gap: 8px;
    }

    .category-gallery-expanded {
        padding: 16px;
        border-radius: 12px;
    }

    .gallery-title {
        font-size: 1.1rem;
    }

    .category-card-info {
        padding: 10px 12px;
    }

    .category-card-info h3 {
        font-size: 0.9rem;
    }

    .category-card-arrow {
        width: 30px;
        height: 30px;
    }

    .category-card-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* --- Language Switcher --- */
.lang-switcher {
    position: relative;
    margin-left: 16px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.header.scrolled .lang-btn {
    color: var(--primary);
    border-color: var(--border);
}

.header.scrolled .lang-btn:hover {
    border-color: var(--accent);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-code {
    letter-spacing: 0.5px;
}

.lang-arrow {
    transition: transform 0.2s;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1001;
    overflow: hidden;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text);
    transition: background 0.15s;
    text-align: left;
}

.lang-option:hover {
    background: var(--bg-alt);
}

.lang-option.active {
    color: var(--accent-dark);
    font-weight: 600;
    background: rgba(201, 169, 110, 0.08);
}

.lang-option span {
    font-size: 1.1rem;
}

/* --- RTL Support --- */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .header-inner {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-content {
    text-align: right;
}

html[dir="rtl"] .hero-actions {
    justify-content: flex-end;
}

html[dir="rtl"] .hero-scroll {
    left: auto;
    right: 40px;
}

html[dir="rtl"] .about-grid {
    direction: rtl;
}

html[dir="rtl"] .about-text {
    text-align: right;
}

html[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .contact-form {
    direction: rtl;
}

html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form select,
html[dir="rtl"] .contact-form textarea {
    text-align: right;
}

html[dir="rtl"] .footer-inner {
    direction: rtl;
}

html[dir="rtl"] .footer-brand {
    text-align: right;
}

html[dir="rtl"] .footer-links {
    text-align: right;
}

html[dir="rtl"] .footer-contact {
    text-align: right;
}

html[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 16px;
}

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .lang-option {
    text-align: right;
    flex-direction: row-reverse;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .about-grid {
        gap: 48px;
    }

    .contact-grid {
        gap: 48px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
    }

    /* Mobile Nav */
    .menu-toggle {
        display: flex;
    }

    .lang-switcher {
        margin-left: 8px;
        margin-right: 8px;
    }

    .lang-code {
        display: none;
    }

    .lang-btn {
        padding: 5px 8px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 0;
        transition: var(--transition-slow);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    }

    .nav.open {
        right: 0;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.7);
        padding: 14px 0;
        font-size: 0.95rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .header.scrolled .nav-link {
        color: rgba(255, 255, 255, 0.7);
    }

    .header.scrolled .nav-link:hover {
        color: #fff;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-stats {
        gap: 24px;
    }

    /* Products */
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* Brands */
    .brand-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .brand-card {
        padding: 32px 24px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Hero */
    .hero-scroll {
        display: none;
    }

    .hero-content {
        padding: 120px 0 80px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .loom-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .product-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.7rem;
    }
}

/* ============================================================
   CATALOG DOWNLOAD SECTION
   ============================================================ */
.catalog-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.catalog-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(26, 26, 46, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.18);
    position: relative;
    overflow: hidden;
}

.catalog-card::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.catalog-content .section-tag {
    margin-bottom: 16px;
}

.catalog-content .section-title {
    text-align: left;
    margin-bottom: 18px;
}

.catalog-content .section-desc {
    text-align: left;
    margin: 0 0 32px;
    max-width: 520px;
}

.catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.catalog-btn svg {
    transition: transform 0.3s ease;
}

.catalog-btn:hover svg {
    transform: translateY(2px);
}

.catalog-meta {
    margin-top: 16px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light, #7a7a7a);
}

.catalog-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.catalog-pages {
    position: relative;
    width: 260px;
    height: 360px;
}

.catalog-page {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(26, 26, 46, 0.18);
}

.catalog-page-back {
    background: linear-gradient(135deg, #2a2a40 0%, var(--primary) 100%);
    transform: rotate(-6deg) translate(-18px, 8px);
}

.catalog-page-front {
    background: linear-gradient(160deg, #fdfcf8 0%, #f2ece0 100%);
    border: 1px solid rgba(201, 169, 110, 0.3);
    transform: rotate(3deg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.5s ease;
}

.catalog-card:hover .catalog-page-front {
    transform: rotate(0deg) translateY(-6px);
}

.catalog-page-tag {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

.catalog-page-brand {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    margin-top: 24px;
}

.catalog-page-brand span {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    color: var(--text);
    margin-top: 6px;
}

.catalog-page-line {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin-top: auto;
    margin-bottom: 16px;
}

.catalog-page-sub {
    font-size: 0.85rem;
    color: var(--text);
    letter-spacing: 0.05em;
}

/* RTL support for Arabic */
html[dir="rtl"] .catalog-content .section-title,
html[dir="rtl"] .catalog-content .section-desc {
    text-align: right;
}

html[dir="rtl"] .catalog-page-back {
    transform: rotate(6deg) translate(18px, 8px);
}

html[dir="rtl"] .catalog-page-front {
    transform: rotate(-3deg);
}

html[dir="rtl"] .catalog-card:hover .catalog-page-front {
    transform: rotate(0deg) translateY(-6px);
}

@media (max-width: 900px) {
    .catalog-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 28px;
        text-align: center;
    }
    .catalog-content .section-title,
    .catalog-content .section-desc {
        text-align: center;
    }
    .catalog-content .section-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .catalog-pages {
        width: 220px;
        height: 300px;
    }
    .catalog-page-brand {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .catalog-card {
        padding: 32px 20px;
    }
    .catalog-btn {
        padding: 14px 24px;
        font-size: 0.85rem;
    }
}
