@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
--cream: hwb(37 77% 4%);
--beige: #c2a278;
--brown: #604735;
--dark-brown: #38271e;
--light-brown: #92765e;
--white: #c2a278;
--text: #45352a;
}

*{
margin: 0;
padding: 0;
box-sizing: border-box;
}


html {
scroll-behavior: smooth;
}

body {
font-family: 'Vazirmatn', sans-serif;
background-color: var(--cream);
color: var(--text);
}

a {
text-decoration: none;
color: inherit;
}

button {
font-family: inherit;
cursor: pointer;
}

/* HEADER */

.header {
width: 100%;
min-height: 85px;
padding: 20px 8%;
display: flex;
align-items: center;
justify-content: space-between;
background-color: var(--white);
border-bottom: 1px solid #eee4d8;
}

.logo {
font-family: Georgia, serif;
font-size: 30px;
font-weight: bold;
color: var(--dark-brown);
direction: ltr;
}

.logo span {
color: #a77d55;
}

.navbar {
display: flex;
gap: 35px;
}

.navbar a {
font-size: 14px;
transition: 0.3s;
}

.navbar a:hover {
color: #a77d55;
}

/* HERO */

.hero {
min-height: 650px;
padding: 70px 10%;
display: flex;
align-items: center;
justify-content: center;
gap: 65px;
}

.hero-content {
max-width: 500px;
text-align: center;
}

.hero-label,
.section-label {
color: var(--light-brown);
font-size: 13px;
letter-spacing: 4px;
direction: ltr;
margin-bottom: 20px;
}

.hero-content h1 {
font-size: 38px;
color: var(--dark-brown);
margin-bottom: 10px;
}

.hero-content h2 {
font-family: Georgia, serif;
font-size: 48px;
letter-spacing: 8px;
color: #a77d55;
direction: ltr;
margin-bottom: 20px;
}

.hero-description {
line-height: 2.3;
font-size: 15px;
color: #79695c;
margin-bottom: 35px;
}

.hero-buttons {
display: flex;
justify-content: center;
gap: 15px;
flex-wrap: wrap;
}

.btn {
padding: 13px 32px;
border-radius: 5px;
font-size: 14px;
transition: 0.3s;
}

.btn-primary {
background-color: var(--dark-brown);
color: white;
}

.btn-primary:hover {
background-color: #87684c;
transform: translateY(-3px);
}

.btn-outline {
border: 1px solid var(--dark-brown);
color: var(--dark-brown);
}

.btn-outline:hover {
background-color: var(--dark-brown);
color: white;
}

.hero-image {
width: 420px;
height: 470px;
border-radius: 220px 220px 10px 10px;
overflow: hidden;
box-shadow: 0 15px 40px #49321d20;
}

.hero-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

/* ABOUT */

.about-section {
text-align: center;
padding: 100px 15%;
background-color: var(--beige);
}

.about-section h2 {
font-size: 30px;
color: var(--dark-brown);
margin-bottom: 25px;
}

.about-section > p:last-child {
max-width: 700px;
margin: auto;
line-height: 2.5;
color: #716052;
}

/* FOOTER */

.footer {
padding: 50px 20px;
background-color: var(--dark-brown);
color: var(--white);
text-align: center;
}

.footer h3 {
font-family: Georgia, serif;
letter-spacing: 5px;
font-size: 28px;
margin-bottom: 15px;
}

.footer p {
font-size: 13px;
margin: 12px 0;
color: #e0d2c2;
}

.copyright {
padding-top: 20px;
border-top: 1px solid #ffffff25;
}

/* MENU PAGE */

.menu-header {
padding: 35px 20px;
text-align: center;
background-color: var(--dark-brown);
color: white;
}

.menu-header h1 {
font-size: 32px;
margin-bottom: 10px;
}

.menu-header p {
color: #e2d1be;
font-size: 14px;
}

.back-home {
display: inline-block;
margin-top: 18px;
font-size: 13px;
color: #e9c9a5;
}

.menu-layout {
display: grid;
grid-template-columns: 230px 1fr;
gap: 35px;
padding: 45px 6%;
max-width: 1500px;
margin: auto;
align-items: start;
}

.sidebar {
background-color: var(--white);
padding: 25px 20px;
border-radius: 10px;
box-shadow: 0 5px 25px #60473510;
position: sticky;
top: 20px;
}

.sidebar h3 {
font-size: 18px;
margin-bottom: 20px;
color: var(--dark-brown);
}

.category-button {
width: 100%;
display: block;
padding: 13px 12px;
margin-bottom: 8px;
text-align: right;
border: none;
border-radius: 5px;
background: transparent;
color: #776657;
font-size: 13px;
transition: 0.3s;
}

.category-button:hover,
.category-button.active {
background-color: var(--dark-brown);
color: white;
}

.menu-content {
min-width: 0;
}

.menu-title{margin-bottom: 25px;
}

.menu-title h2 {
font-size: 25px;
color: var(--dark-brown);
margin-bottom: 8px;
}

.menu-title p {
font-size: 13px;
color: #8b7a69;
}

.products-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
}

.product-card {
overflow: hidden;
border-radius: 9px;
background-color: var(--white);
border: 1px solid #eee5da;
transition: 0.3s;
cursor: pointer;
}

.product-card:hover,
.product-card.selected {
transform: translateY(-5px);
box-shadow: 0 10px 25px #60473520;
border-color: #a77d55;
}

.product-card img {
width: 100%;
height: 480px;
object-fit: cover;
display: block;
}

.product-info {
padding: 15px;
}

.product-info h3 {
font-size: 15px;
margin-bottom: 10px;
color: var(--dark-brown);
}

.product-info p {
font-size: 12px;
color: #8b7a69;
line-height: 1.8;
}

.product-price {
display: block;
margin-top: 12px;
font-size: 14px;
color: #9a714c;
font-weight: 700;
}

/* PRODUCT DETAILS */

.product-details {
display: none;
margin-top: 35px;
padding: 25px;
background-color: var(--white);
border-radius: 10px;
box-shadow: 0 5px 25px #60473510;
grid-template-columns: 450px 1fr;
gap: 30px;
align-items: center;
}

.product-details.show {
display: grid;
}

.product-details img {
width: 100%;
height: 600px;
object-fit: cover;
border-radius: 8px;
}

.details-text h2 {
color: var(--dark-brown);
font-size: 25px;
margin-bottom: 12px;
}

.details-text p {
color: #78685a;
line-height: 2.2;
font-size: 14px;
margin-bottom: 12px;
}

.details-text .details-price {
color: #9a714c;
font-weight: 700;
font-size: 18px;
}

.details-text h4 {
color: var(--dark-brown);
margin: 12px 0 5px;
}

/* HIDDEN PRODUCTS */

.product-card.hidden {
display: none;
}

/* RESPONSIVE */

@media (max-width: 900px) {

.hero {  
    flex-direction: column;  
    padding: 55px 7%;  
}  

.hero-image {  
    width: 100%;  
    max-width: 450px;  
    height: 350px;  
    border-radius: 150px 150px 10px 10px;  
}  

.menu-layout {  
    grid-template-columns: 1fr;  
}  

.sidebar {  
    position: static;  
}  

.products-grid {  
    grid-template-columns: repeat(2, minmax(0, 1fr));  
}  

.product-details {  
    grid-template-columns: 1fr 1fr;  
}

}

@media (max-width: 550px) {

.header {  
    flex-direction: column;  
    gap: 18px;  
}  

.navbar {  
    gap: 18px;  
}  

.hero-content h1 {  
    font-size: 29px;  
}  

.hero-content h2 {  
    font-size: 38px;  
}  

.products-grid {  
    grid-template-columns: 1fr;  
}  

.product-details {  
    grid-template-columns: 1fr;  
}  

.product-details img {  
    height: 440px;  
}

}


/* =================================
   ORDERS SECTION
================================= */

/* دکمه افزودن به سفارش */

.add-to-order-button {
    display: inline-block;
    width: 100%;
    padding: 13px 20px;
    margin-top: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--dark-brown);
    color: rgb(250, 236, 190);
    font-size: 14px;
    transition: 0.3s;
}

.add-to-order-button:hover {
    background-color: #87684c;
    transform: translateY(-2px);
}


/* بخش سفارش‌ها */

.order-section {
    margin-top: 35px;
    padding: 25px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 25px #60473510;
}

.order-section h2 {
    color: var(--dark-brown);
    font-size: 23px;
    margin-bottom: 20px;
}

#order-empty {
    color: #8b7a69;
    font-size: 14px;
    line-height: 2;
    text-align: center;
    padding: 20px 0;
}


/* هر محصول در سفارش */

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #eee5da;
}

.order-item-info {
    flex: 1;
}

.order-item-info h4 {
    color: var(--dark-brown);
    font-size: 15px;
    margin-bottom: 8px;
}

.order-item-info p {
    color: #78685a;
    font-size: 13px;
    margin-top: 5px;
}


/* دکمه‌های تعداد و حذف */

.order-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quantity-button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 5px;
    background-color: var(--dark-brown);
    color: white;
    font-size: 19px;
    transition: 0.3s;
}

.quantity-button:hover {
    background-color: #87684c;
}

.order-quantity {
    min-width: 20px;
    text-align: center;
    color: var(--dark-brown);
    font-weight: 700;
}

.remove-order-button {
    padding: 7px 12px;
    border: 1px solid #a77d55;
    border-radius: 5px;
    background: transparent;
    color: var(--dark-brown);
    font-size: 12px;
    transition: 0.3s;
}

.remove-order-button:hover {
    background-color: var(--dark-brown);
    color: white;
}


/* مبلغ کل سفارش */

.order-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #d8c5ad;
    color: var(--dark-brown);
    font-size: 17px;
    font-weight: 700;
}

#order-total {
    color: #9a714c;
}


/* نمایش در موبایل */

@media (max-width: 550px) {

    .order-section {
        padding: 18px;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-controls {
        width: 100%;
    }

    .order-total-box {
        font-size: 15px;
    }

}


/* =================================
   دکمه افزودن کنار نام محصولات
================================= */

.product-card .product-info h3 {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-card .product-info h3 .quick-add-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;

    padding: 0 !important;
    margin: 0 !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    background: #38271e !important;
    color: #ffffff !important;

    font-size: 32px !important;
    font-weight: normal !important;
    line-height: 1 !important;

    cursor: pointer;
}

.product-card .product-info h3 .quick-add-button:hover {
    background: #604735 !important;
    color: #ffffff !important;
}