/* ========================
   🍵 ChayGalleryBaku CSS — Hero + Slider + Fade-in
   Azərbaycan Xalça Naxışı + Çay Rəngləri Teması
   ======================== */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FAF3EE;
    color: #2A0F05;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

h1,
h2,
h3 {
    font-weight: 600;
    color: #2A0F05;
    margin-bottom: 1rem;
}

/* ============================
   🔹 HEADER
   ① Romb naxışı — header üstündə
============================ */

/* ① Romb naxışı şeriti — header üstündə */
.site-header::before {
    content: '';
    display: block;
    height: 22px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='22'%3E%3Crect width='32' height='22' fill='%231A0800'/%3E%3Cpolygon points='16,2 29,11 16,20 3,11' fill='none' stroke='%23C9952A' stroke-width='1.8'/%3E%3Cpolygon points='16,6 23,11 16,16 9,11' fill='%237B3F1A'/%3E%3Ccircle cx='16' cy='11' r='2.5' fill='%23E8B84B'/%3E%3C/svg%3E")
        repeat-x left center / 32px 22px;
}

.site-header {
    background: #fff;
    border-bottom: 3px solid #C9952A;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #7B3F1A;
    text-decoration: none;
}

.logo span {
    color: #C9952A;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: #2A0F05;
    font-weight: 500;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Qönçə nişanı — hər link qarşısında */
.main-nav a::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.45;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='7' cy='7' r='2.2' fill='%23C9952A'/%3E%3Cellipse cx='7' cy='2' rx='1.8' ry='3.5' fill='%237B3F1A' opacity='0.9'/%3E%3Cellipse cx='7' cy='12' rx='1.8' ry='3.5' fill='%237B3F1A' opacity='0.9'/%3E%3Cellipse cx='2' cy='7' rx='3.5' ry='1.8' fill='%237B3F1A' opacity='0.9'/%3E%3Cellipse cx='12' cy='7' rx='3.5' ry='1.8' fill='%237B3F1A' opacity='0.9'/%3E%3Cellipse cx='3.5' cy='3.5' rx='1.4' ry='2.8' transform='rotate(-45 3.5 3.5)' fill='%23C9952A' opacity='0.6'/%3E%3Cellipse cx='10.5' cy='3.5' rx='1.4' ry='2.8' transform='rotate(45 10.5 3.5)' fill='%23C9952A' opacity='0.6'/%3E%3Cellipse cx='3.5' cy='10.5' rx='1.4' ry='2.8' transform='rotate(45 3.5 10.5)' fill='%23C9952A' opacity='0.6'/%3E%3Cellipse cx='10.5' cy='10.5' rx='1.4' ry='2.8' transform='rotate(-45 10.5 10.5)' fill='%23C9952A' opacity='0.6'/%3E%3C/svg%3E")
        no-repeat center / contain;
}

.main-nav a:hover {
    color: #7B3F1A;
}

/* Hover-da qönçə parlayır və fırlanır */
.main-nav a:hover::before {
    opacity: 1;
    transform: rotate(45deg) scale(1.2);
}

/* ============================
   🔹 HERO
   ⑤ Buta/Boteh yan çərçivə + romb üst/alt border
============================ */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1680 / 413;
    background: url('../img/hero-desktop.webp') center center / cover no-repeat;
    background-color: #3D1A0A;
    overflow: hidden;
}

/* ⑤ Hero üst border — romb sırası */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 22px;
    z-index: 3;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='22'%3E%3Crect width='32' height='22' fill='%231A0800'/%3E%3Cpolygon points='16,2 29,11 16,20 3,11' fill='none' stroke='%23C9952A' stroke-width='1.8'/%3E%3Cpolygon points='16,6 23,11 16,16 9,11' fill='%237B3F1A'/%3E%3Ccircle cx='16' cy='11' r='2.5' fill='%23E8B84B'/%3E%3C/svg%3E")
        repeat-x left center / 32px 22px;
}

/* ⑤ Hero alt border — eyni romb */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 22px;
    z-index: 3;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='22'%3E%3Crect width='32' height='22' fill='%231A0800'/%3E%3Cpolygon points='16,2 29,11 16,20 3,11' fill='none' stroke='%23C9952A' stroke-width='1.8'/%3E%3Cpolygon points='16,6 23,11 16,16 9,11' fill='%237B3F1A'/%3E%3Ccircle cx='16' cy='11' r='2.5' fill='%23E8B84B'/%3E%3C/svg%3E")
        repeat-x left center / 32px 22px;
}

/* ⑤ Sol Buta/Boteh çərçivəsi */
.hero-border-left {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 56px;
    z-index: 3;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect width='56' height='56' fill='%23C4784A'/%3E%3Cellipse cx='28' cy='34' rx='12' ry='16' fill='%237B3F1A'/%3E%3Cellipse cx='28' cy='21' rx='6' ry='10' transform='rotate(12 28 21)' fill='%23C9952A' opacity='0.9'/%3E%3Ccircle cx='28' cy='13' r='5' fill='%23E8B84B'/%3E%3Ccircle cx='28' cy='13' r='2.5' fill='%23C4784A'/%3E%3Cline x1='28' y1='48' x2='28' y2='54' stroke='%23C9952A' stroke-width='2'/%3E%3Ccircle cx='28' cy='55' r='2' fill='%23C9952A'/%3E%3C/svg%3E")
        repeat-y left center / 56px 56px;
}

/* ⑤ Sağ Buta/Boteh çərçivəsi (əks) */
.hero-border-right {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 56px;
    z-index: 3;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect width='56' height='56' fill='%23C4784A'/%3E%3Cellipse cx='28' cy='34' rx='12' ry='16' fill='%237B3F1A'/%3E%3Cellipse cx='28' cy='21' rx='6' ry='10' transform='rotate(-12 28 21)' fill='%23C9952A' opacity='0.9'/%3E%3Ccircle cx='28' cy='13' r='5' fill='%23E8B84B'/%3E%3Ccircle cx='28' cy='13' r='2.5' fill='%23C4784A'/%3E%3Cline x1='28' y1='48' x2='28' y2='54' stroke='%23C9952A' stroke-width='2'/%3E%3Ccircle cx='28' cy='55' r='2' fill='%23C9952A'/%3E%3C/svg%3E")
        repeat-y right center / 56px 56px;
}

/* Tünd overlay — şəkil üstündə */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(42,15,5,0.42), rgba(61,26,10,0.62));
    z-index: 2;
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 80px;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: #FFFDF0;
    margin: 0;
    text-shadow: 0 2px 12px rgba(42,15,5,0.5);
}

.hero p {
    color: #F5EAE0;
    margin: 1rem 0 2rem;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.btn {
    background: linear-gradient(90deg, #C9952A, #7B3F1A);
    color: #fff;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(42,15,5,0.3);
}

.btn:hover {
    background: linear-gradient(90deg, #7B3F1A, #3D1A0A);
    transform: translateY(-2px);
}

/* ============================
   🔹 MƏHSULLAR (Slider)
   ④ Başlıq ornamenti — qönçə naxışı
============================ */
.products {
    padding: 4rem 1rem;
    background-color: #FAF3EE;
    position: relative;
}

.products h2,
.blog h2 {
    text-align: left;
    margin-bottom: 0.5rem;
    position: relative;
}

section h2 {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

section h2 .heading-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #C9952A, #7B3F1A);
    border-radius: 4px;
    transition: width 0.6s ease;
}

section h2.show .heading-line {
    width: 100%;
}

/* ② Qönçə naxışlı section xətti */
.section-line {
    width: 120px;
    height: 20px;
    margin-bottom: 2rem;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Ccircle cx='20' cy='10' r='3' fill='%23C9952A'/%3E%3Cellipse cx='20' cy='3' rx='2.5' ry='5' fill='%237B3F1A' opacity='0.9'/%3E%3Cellipse cx='20' cy='17' rx='2.5' ry='5' fill='%237B3F1A' opacity='0.9'/%3E%3Cellipse cx='7' cy='10' rx='5' ry='2.5' fill='%237B3F1A' opacity='0.9'/%3E%3Cellipse cx='33' cy='10' rx='5' ry='2.5' fill='%237B3F1A' opacity='0.9'/%3E%3Cellipse cx='11' cy='4' rx='2' ry='4' transform='rotate(-45 11 4)' fill='%23C9952A' opacity='0.7'/%3E%3Cellipse cx='29' cy='4' rx='2' ry='4' transform='rotate(45 29 4)' fill='%23C9952A' opacity='0.7'/%3E%3Cellipse cx='11' cy='16' rx='2' ry='4' transform='rotate(45 11 16)' fill='%23C9952A' opacity='0.7'/%3E%3Cellipse cx='29' cy='16' rx='2' ry='4' transform='rotate(-45 29 16)' fill='%23C9952A' opacity='0.7'/%3E%3C/svg%3E")
        repeat-x left center / 40px 20px;
}

/* ============================
   🔹 KATEQORİYA BLOKU
============================ */
.category-block {
    margin-top: 2.5rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #E8D5C4;
    position: relative;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #C9952A, #7B3F1A);
    border-radius: 4px;
}

.category-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2A0F05;
}

.category-link {
    background: transparent;
    border: 1.5px solid #C9952A;
    color: #7B3F1A;
    border-radius: 50px;
    padding: 5px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #7B3F1A;
    color: #fff;
    border-color: #7B3F1A;
}

/* ============================
   ⑥ MƏHSUL GRID + KART
============================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(42,15,5,0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ⑥ Kart üst naxışı — romb motivi */
.product-card::before {
    content: '';
    display: block;
    height: 14px;
    flex-shrink: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14'%3E%3Crect width='16' height='14' fill='%232A0F05'/%3E%3Cpolygon points='8,1 15,7 8,13 1,7' fill='none' stroke='%23C9952A' stroke-width='1.5'/%3E%3Ccircle cx='8' cy='7' r='2' fill='%23C9952A'/%3E%3C/svg%3E")
        repeat-x left center / 16px 14px;
}

/* ⑥ Kart alt naxışı — üçbucaq motivi */
.product-card::after {
    content: '';
    display: block;
    height: 8px;
    flex-shrink: 0;
    margin-top: auto;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='8'%3E%3Crect width='20' height='8' fill='%237B3F1A'/%3E%3Cpolygon points='10,1 19,7 1,7' fill='%23C9952A' opacity='0.7'/%3E%3C/svg%3E")
        repeat-x left center / 20px 8px;
}

.product-card-link:hover .product-card {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(42,15,5,0.16);
}

.product-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #FAF3EE;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-card-link:hover .product-img img {
    transform: scale(1.06);
}

.product-info {
    padding: 0.8rem 0.9rem 0.6rem;
}

.product-title {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2A0F05;
    margin: 0;
    line-height: 1.4;
}

/* ============================
   🔹 BLOGLAR
============================ */
.blog {
    padding: 4rem 1rem;
    background: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    border-radius: 12px;
    overflow: hidden;
    background: #FAF3EE;
    box-shadow: 0 4px 10px rgba(42,15,5,0.07);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-info {
    padding: 1.5rem;
}

.blog-info h3 {
    color: #7B3F1A;
    margin-bottom: 0.5rem;
}

.blog-info p {
    color: #6B4C3B;
    font-size: 0.95rem;
}

.blog-read-btn {
    display: inline-block;
    margin-top: 0.8rem;
    background: linear-gradient(90deg, #C9952A, #7B3F1A);
    color: #fff;
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-read-btn:hover {
    background: linear-gradient(90deg, #7B3F1A, #3D1A0A);
    transform: translateY(-1px);
}

/* ============================
   🔹 FOOTER
   ⑦ Zəngin romb haşiyəsi
============================ */
.footer {
    background: #2A0F05;
    color: #E8D5C4;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* ⑦ Footer üst — çoxqatlı romb naxışı */
.footer::before {
    content: '';
    display: block;
    height: 40px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='%23C9952A'/%3E%3Cpolygon points='20,2 38,20 20,38 2,20' fill='%232A0F05'/%3E%3Cpolygon points='20,9 31,20 20,31 9,20' fill='%23C9952A'/%3E%3Ccircle cx='20' cy='20' r='4' fill='%231A0800'/%3E%3Ccircle cx='20' cy='20' r='2' fill='%23E8B84B'/%3E%3C/svg%3E")
        repeat-x left center / 40px 40px;
}

.footer-inner {
    padding: 2rem 0;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #E8D5C4;
}

/* ============================
   🔹 MOBİL MENYU
============================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    right: 20px;
    top: 25px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #7B3F1A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

.main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    width: 100%;
    padding: 1rem 0;
    text-align: left;
    border-top: 2px solid #C9952A;
    box-shadow: 0 4px 10px rgba(42,15,5,0.12);
    animation: slideDown 0.3s ease;
    z-index: 99;
}

.main-nav.active ul {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem;
}

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

/* ============================
   🔹 ƏLAQƏ SƏHİFƏSİ
============================ */
.contact {
    padding: 4rem 1rem;
    background: #FAF3EE;
}

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

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #E8D5C4;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #7B3F1A;
    box-shadow: 0 0 0 3px rgba(123,63,26,0.12);
}

.contact-form textarea {
    resize: vertical;
}

/* ============================
   🔹 FADE-IN EFFEKTİ
============================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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

/* ============================
   🔹 RESPONSIVE (Mobil)
============================ */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-nav    { display: none; }

    .site-header .container {
        justify-content: flex-start;
        position: relative;
    }

    .hero {
        aspect-ratio: 650 / 300;
        background: url('../img/hero-mobile.jpg') center center / cover no-repeat;
    }

    .hero h1 { font-size: 1.6rem; }
    .hero p  { font-size: 0.9rem; }
    .hero-content { padding: 0 70px; }

    .slide     { width: 240px; }
    .slide img { height: 220px; }

    .slider-arrow          { font-size: 1.2rem; padding: 0.2rem 0.5rem; }
    .slider-arrow.left     { left: 5px; }
    .slider-arrow.right    { right: 5px; }

    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================
   🔹 Məhsullar başlığı
   ④ Qönçə naxışlı başlıq ornamenti
============================ */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-header h2 {
    margin: 0;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ④ Başlığın sağında qönçə naxışı */
.products-header h2::after {
    content: "";
    display: inline-block;
    width: 80px;
    height: 20px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Ccircle cx='20' cy='10' r='3' fill='%23C9952A'/%3E%3Cellipse cx='20' cy='3' rx='2.5' ry='5' fill='%237B3F1A' opacity='0.9'/%3E%3Cellipse cx='20' cy='17' rx='2.5' ry='5' fill='%237B3F1A' opacity='0.9'/%3E%3Cellipse cx='7' cy='10' rx='5' ry='2.5' fill='%237B3F1A' opacity='0.9'/%3E%3Cellipse cx='33' cy='10' rx='5' ry='2.5' fill='%237B3F1A' opacity='0.9'/%3E%3Cellipse cx='11' cy='4' rx='2' ry='4' transform='rotate(-45 11 4)' fill='%23C9952A' opacity='0.7'/%3E%3Cellipse cx='29' cy='4' rx='2' ry='4' transform='rotate(45 29 4)' fill='%23C9952A' opacity='0.7'/%3E%3Cellipse cx='11' cy='16' rx='2' ry='4' transform='rotate(45 11 16)' fill='%23C9952A' opacity='0.7'/%3E%3Cellipse cx='29' cy='16' rx='2' ry='4' transform='rotate(-45 29 16)' fill='%23C9952A' opacity='0.7'/%3E%3C/svg%3E")
        repeat-x left center / 40px 20px;
    flex-shrink: 0;
    position: static;
}

.all-products-btn {
    background: linear-gradient(90deg, #C9952A, #7B3F1A);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 8px 22px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(42,15,5,0.20);
}

.all-products-btn:hover {
    background: linear-gradient(90deg, #7B3F1A, #3D1A0A);
    transform: translateY(-2px);
}