/* Համոզվում ենք, որ ամբողջ կայքը հորիզոնական չի խախտվում */
body, html {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}





.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    background-color: #D4A373;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #B58453;
    transform: translateY(-2px);
}

/* ՍԵՐԻ ԿՈՃԱԿԻ ՈՃԸ ԱՎԵԼԱՑՆԵԼՈՒՑ ՀԵՏՈ */
.btn.added {
    background-color: #A0A0A0 !important;
    color: #ffffff !important;
    transform: none !important;
}

/* HEADER & NAV */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #5C4033;
}

.logo span { color: #D4A373; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: #5C4033;
    transition: color 0.3s;
}

.nav-link:hover { color: #D4A373; }

.cart-btn {
    background-color: #5C4033;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.cart-btn:hover { background-color: #D4A373; }

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    /* Փոխում ենք նկարի հասցեն images.jpg-ով և թողնում մուգ շերտը տեքստի համար */
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('images.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: #FFFDF9;
    padding-top: 80px;
}

.hero-content { max-width: 600px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }

/* SECTION TITLES */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: #5C4033;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #D4A373;
    margin: 10px auto 0 auto;
}

/* ABOUT SECTION */
.about { padding: 100px 0; background-color: #FFFDF9; }
.about-container { display: flex; align-items: center; gap: 50px; }
.about-img, .about-content { flex: 1; }
.about-img img { width: 100%; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.about-content h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: #5C4033; margin-bottom: 20px; }
.about-content p { margin-bottom: 15px; color: #6E5A4E; }

/* VALUES SECTION */
.values { padding: 100px 0; background-color: #FDF6EC; }
.values-grid { display: flex; gap: 30px; }
.value-card { flex: 1; background-color: #ffffff; padding: 40px 30px; border-radius: 15px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.02); transition: transform 0.3s; }
.value-card:hover { transform: translateY(-5px); }
.value-icon { font-size: 3rem; margin-bottom: 20px; }
.value-card h3 { font-family: 'Playfair Display', serif; color: #5C4033; margin-bottom: 15px; }
.value-card p { color: #6E5A4E; font-size: 0.95rem; }

/* PRODUCTS SECTION (ՃԿՈՒՆ ԳՐԻԴ 6 ԱՊՐԱՆՔԻ ՀԱՄԱՐ) */
.products { padding: 100px 0; background-color: #FFFDF9; }
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}
.product-card { background-color: #ffffff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: transform 0.3s; }
.product-card:hover { transform: translateY(-5px); }
.product-card img { width: 100%; height: 250px; object-fit: cover; }
.product-info { padding: 25px; }
.product-info h3 { font-family: 'Playfair Display', serif; color: #5C4033; margin-bottom: 10px; }
.product-info .price { color: #D4A373; font-weight: 700; font-size: 1.2rem; margin-bottom: 20px; }
.product-info .btn { width: 100%; text-align: center; }

/* GALLERY SECTION */
.gallery { padding: 100px 0; background-color: #FDF6EC; }
.gallery-grid { display: flex; gap: 20px; }
.gallery-item { flex: 1; overflow: hidden; border-radius: 15px; height: 300px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }

/* CONTACTS SECTION */
.contacts { padding: 100px 0; background-color: #FFFDF9; }
.contacts-wrapper { max-width: 600px; margin: 0 auto; background-color: #FDF6EC; padding: 40px; border-radius: 15px; text-align: center; }
.contact-info-block h3 { font-family: 'Playfair Display', serif; color: #5C4033; margin-bottom: 25px; }
.contact-info-block p { margin-bottom: 15px; font-size: 1.1rem; color: #6E5A4E; }

/* CART PANEL */
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #FFFDF9;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.cart-panel.open { right: 0; }
.cart-panel-header { padding: 20px; border-bottom: 1px solid #EFE5D8; display: flex; justify-content: space-between; align-items: center; }
.cart-close-btn { background: none; border: none; font-size: 2rem; cursor: pointer; color: #8C7A6B; transition: color 0.2s; }
.cart-close-btn:hover { color: #FF6B00; }
.cart-items-container { flex-grow: 1; padding: 20px; overflow-y: auto; }
.cart-empty-text { text-align: center; color: #8C7A6B; margin-top: 40px; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #EFE5D8; }
.cart-item-info h4 { font-size: 1rem; color: #5C4033; margin-bottom: 4px; }
.cart-item-info span { color: #D4A373; font-weight: 600; }
.cart-item-remove { background: none; border: none; color: #C84B31; cursor: pointer; font-size: 0.85rem; font-weight: 500; }
.cart-panel-footer { padding: 20px; border-top: 1px solid #EFE5D8; background: #FFFDF9; }



/* 1. Ապահովում ենք, որ զամբյուղի պանելը ճիշտ է աշխատում */
.cart-panel {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Պանելը պետք է զբաղեցնի էկրանի 100%-ը */
}

/* 2. Ապրանքների հատվածը դարձնում ենք սքրոլվող */
.cart-items-container {
    flex-grow: 1;
    overflow-y: auto; /* Սա է հիմնական լուծումը */
    padding: 20px;
}

/* 3. Footer-ը (ուր գտնվում է «Պատվիրել» կոճակը) սոսնձում ենք ներքև */
.cart-panel-footer {
    flex-shrink: 0; /* Սա թույլ չի տալիս, որ կոճակը կորչի */
    padding: 20px;
    border-top: 1px solid #EFE5D8;
    background: #FFFDF9;
}


#step-order {
    display: flex;
    flex-direction: column;
    height: 100%; /* Կարևոր է, որ ծնող էլեմենտը ունենա հասցեագրված բարձրություն */
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto; /* Սա ստիպում է ապրանքներին սքրոլվել */
}

.cart-panel-footer {
    flex-shrink: 0; /* Սա կոճակներին թույլ չի տալիս սեղմվել */
}

.cart-panel {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Պանելը զբաղեցնում է էկրանի ողջ բարձրությունը */
    overflow: hidden; /* Թույլ չի տալիս ընդհանուր էջին սքրոլվել */
}

.cart-scroll-area {
    flex: 1; /* Սա ստիպում է այս բլոկին զբաղեցնել ողջ ազատ տեղը */
    overflow-y: auto; /* Ապրանքները շատանալու դեպքում միայն սա կսքրոլվի */
}

.cart-fixed-footer {
    flex-shrink: 0; /* Սա թույլ չի տալիս, որ կոճակները սեղմվեն կամ կորչեն */
    background: #FFFDF9;
    padding: 20px;
    border-top: 1px solid #EFE5D8;
    /* Կոճակը և դաշտերը այստեղ կլինեն անշարժ */
}

/* Զամբյուղի հիմնական կառուցվածքը */
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh; /* Զբաղեցնում է էկրանի ամբողջ բարձրությունը */
    background: #FFFDF9;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column; /* Տարրերը դասավորում ենք ուղղահայաց */
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}



/* Ապրանքների հատվածը, որը կսքրոլվի */
.cart-items-container {
    flex: 1; /* Զբաղեցնում է ազատ մնացած ողջ տեղը */
    overflow-y: auto; /* Ավելացնում է սքրոլ, եթե ապրանքները շատ են */
    padding: 20px;
}

/* Footer-ը, որտեղ գտնվում են կոճակները */
.cart-panel-footer {
    flex-shrink: 0; /* Չի թույլատրում, որ կոճակը սեղմվի կամ անհետանա */
    padding: 20px;
    border-top: 1px solid #EFE5D8;
    background: #FFFDF9;
}


/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */

/* 1. ՊԼԱՆՇԵՏՆԵՐԻ ՀԱՄԱՐ (Մինչև 992px) */
@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about-container {
        flex-direction: column;
        gap: 30px;
    }

    .values-grid, .gallery-grid {
        flex-direction: column;
        gap: 20px;
    }

    .value-card, .gallery-item {
        width: 100%;
    }
    
    .gallery-item {
        height: 250px;
    }
}

/* 2. ՀԵՌԱԽՈՍՆԵՐԻ ՀԱՄԱՐ (Մինչև 768px) */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        height: auto;
        padding: 140px 0 80px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 35px;
    }

    /* Տեսականու դասավորությունը հեռախոսի վրա */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    /* Զամբյուղի պանելը հեռախոսի վրա դառնում է ամբողջ էկրանով */
    .cart-panel {
        max-width: 100%;
        right: -100%;
    }
    
    .cart-panel.open {
        right: 0;
    }
}

/* 2. ՀԵՌԱԽՈՍՆԵՐԻ ՀԱՄԱՐ (Մինչև 768px) */
/* 2. Զամբյուղի (Cart Panel) ուղղում հեռախոսի վրա */
@media (max-width: 768px) {
    .cart-panel {
        width: 100% !important; /* Հեռախոսի վրա թող լինի ամբողջ էկրանով */
        right: -100%; /* Սկզբում թաքնված է աջ կողմում */
        transition: right 0.3s ease-in-out;
    }
    
    .cart-panel.open {
        right: 0 !important; /* Երբ բացվի, կգա առաջ */
    }
    .site-header {
        padding: 12px 0; /* Շատ բարակ ու նուրբ վերևի մաս */
    }

    .header-container {
        flex-direction: row; /* Պահում ենք կողք-կողքի՝ մեկ տողով */
        justify-content: space-between; /* Լոգոն՝ ձախից, զամբյուղը՝ աջից */
        align-items: center;
        gap: 0;
    }

    /* ԹԱՔՑՆՈՒՄ ԵՆՔ ՄԵՆՅՈՒԻ ՏԵՔՍՏԵՐԸ ՀԵՌԱԽՈՍԻ ՎՐԱ, ՈՐ ՏԵՂ ՉԶԲԱՂԵՑՆԵՆ */
    .nav-menu {
        display: none !important; 
    }

    .logo {
        font-size: 1.2rem; /* Փոքրացնում ենք լոգոն, որ սիրուն տեղավորվի */
    }

    .cart-btn {
        padding: 8px 14px; /* Կոմպակտ զամբյուղի կոճակ */
        font-size: 0.85rem;
    }

    .hero {
        height: auto;
        padding: 120px 0 60px 0; /* Իդեալական հեռավորություն վերևից */
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 35px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}



/* 1. Նավիգացիայի (Navbar) ուղղում հեռախոսների համար */
.navbar {
    width: 100% !important;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
    padding: 10px 15px; /* Փոքրացնում ենք կողային դատարկությունները, որ տեղավորվի */
}
 

#hidden-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.hidden-product {
    display: none !important;
}
.hidden-product {
    display: none !important;
}

