* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    direction: rtl;
    background-color: #ffffff;
    color: #172019;
}


/* =========================
   HEADER
========================= */

.header {
    width: 100%;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 60px;

    position: relative;
}


/* قسمت خرید - سمت راست */

.header-buy {
    width: 230px;
    height: 100px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* شکل سبز بالا سمت راست */

.top-green-shape {
    width: 450px;
    height: auto;

    position: absolute;
    top: -10px;
    right: -60px;

    /* object-fit: contain; */


    z-index: 1;
}


/* دکمه خرید */

.buy-button {
    position: relative;
    z-index: 2;

    padding: 12px 22px;

    background-color: #699C73;
    color: #222222;

    border: none;
    border-radius: 12px;

    font-size: 16px;

    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;

}

/* منوی وسط */

.navbar {
    display: flex;
    align-items: center;
    gap: 35px;

    position: relative;
    z-index: 3;
}

.navbar a {
    color: #222222;
    text-decoration: none;

    font-size: 16px;
}


/* لوگو - سمت چپ */

.header-logo {
    width: 230px;
    position: relative;
    z-index: 3;
    text-align: right;
    left: -60px;
}

.bargin-logo {
    width: 90px;
    height: auto;
    display: block;
    margin-top: 15px;
    margin-bottom: 4px;
    border-radius: 50%;
}

.header-logo p {
    font-size: 12px;
    color: #777777;
}

/* =========================
   HERO
========================= */

.hero {
    width: 100%;
    min-height: 650px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 35px;

    padding: 45px 60px 35px;

    position: relative;

    direction: rtl;
}


/* =========================
   شکل سبز پایین سمت چپ
========================= */

.bottom-green-shape {
    position: absolute;

    left: 0;
    bottom: -15px;

    width: 430px;
    height: auto;

    z-index: 0;
}


/* =========================
   محتوای سمت راست Hero
========================= */

.hero-content {
    width: 620px;

    position: relative;
    z-index: 2;
}


/* تیتر */

.hero-title {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-right: 35px;
}

.hero-title h1 {
    font-size: 48px;
    line-height: 1.5;

    color: #102017;
}


/* علامت کوچک کنار تیتر */

.leaf-icon {
    color: #699C73;

    font-size: 38px;

    margin-top: 10px;
}


/* توضیح */

.hero-description {
    margin-top: 15px;
    margin-right: 35px;

    font-size: 18px;
    line-height: 2;

    color: #555555;
}


/* دکمه مشاهده محصولات */

.products-button {
    margin-top: 25px;
    margin-right: 35px;

    padding: 13px 28px;

    background-color: #356b43;
    color: #ffffff;

    border: none;
    border-radius: 12px;

    font-size: 16px;

    cursor: pointer;
}

.products-button span {
    margin-right: 15px;
}


/* =========================
   سه تصویر کوچک
========================= */

.hero-categories {
    display: flex;
    align-items: flex-start;

    gap: 22px;

    margin-top: 35px;
}


.category {
    width: 170px;

    text-align: center;
}


.category img {
    width: 100%;
    height: 210px;

    object-fit: cover;

    border-radius: 90px 90px 0 0;
}


.category p {
    margin-top: 8px;

    font-size: 16px;

    color: #222222;
}


/* =========================
   سمت چپ Hero
========================= */

.hero-image-area {
    width: 500px;

    display: flex;
    align-items: center;

    gap: 12px;

    position: relative;
    z-index: 2;

    direction: ltr;
}


/* عکس بزرگ برگ انجیری */

.hero-main-image {
    width: 360px;
    height: 500px;

    object-fit: cover;

    border-radius: 180px 180px 0 0;

    position: relative;
    z-index: 2;
}


/* نوشته کنار عکس */

.side-text {
    width: 100px;

    font-size: 21px;
    line-height: 1.7;

    color: #699C73;

    text-align: center;

    position: relative;
    z-index: 2;

    transform: rotate(-5deg);
}

/* =========================
   WHY Bargin
========================= */

.why-bargin {
    width: 100%;
    padding: 55px 70px 65px;

    background-color: #ffffff;
}


/* عنوان */

.why-header {
    text-align: center;

    margin-bottom: 35px;
}

.why-header h2 {
    font-size: 36px;
    color: #102017;

    margin-bottom: 8px;
}

.why-header p {
    font-size: 16px;
    color: #777777;
}


/* محتوای اصلی */

.why-content {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 45px;
}


/* ستون کارت‌ها */

.why-cards {
    width: 320px;

    display: flex;
    flex-direction: column;

    gap: 25px;
}


/* هر کارت */

.why-card {
    min-height: 120px;

    display: flex;
    align-items: center;

    gap: 18px;

    padding: 20px;

    border: 1px solid #e4e4e4;
    border-radius: 12px;

    background-color: #ffffff;
}


.why-card h3 {
    font-size: 19px;

    color: #172019;

    margin-bottom: 7px;
}


.why-card p {
    font-size: 14px;
    line-height: 1.8;

    color: #666666;
}


/* آیکن کارت */

.card-icon {
    min-width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #eef1e5;

    border-radius: 10px;

    font-size: 24px;
}


/* عکس وسط */

.why-plant {
    width: 300px;

    display: flex;
    justify-content: center;
    align-items: flex-end;
}


.why-plant img {
    width: 280px;
    height: 360px;

    object-fit: contain;
}


/* =========================
   ABOUT PAGE - HORIZONTAL
========================= */

.about-body {
    background-color: #ffffff;
    color: #172019;
}


/* دکمه سبز مخصوص صفحه About */

.buy-button-green {
    background-color: #699C73;
    color: #ffffff;
}


/* لینک فعال در منو */

.navbar a.active-link {
    border-bottom: 2px solid #222222;
    padding-bottom: 7px;
}


/* سکشن اصلی About */

.about-horizontal {
    width: 100%;
    height: calc(100vh - 100px);

    padding: 25px 55px 30px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;

    overflow: hidden;
}


/* ستون عکس */

.about-image-box {
    width: 52%;
    height: 100%;

    display: flex;
    align-items: center;
}

.about-image-box img {
    width: 100%;
    height: 88%;

    object-fit: cover;
    border-radius: 28px;

    display: block;
}


/* ستون محتوا */

.about-content-box {
    width: 48%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}


/* متن معرفی بالا */

.about-intro h1 {
    font-size: 44px;
    color: #163323;

    margin-bottom: 10px;
}

.about-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #444444;
}


/* کارت‌ها */

.about-card {
    width: 100%;

    background-color: #f7f7f4;
    border-radius: 22px;

    padding: 16px 20px;

    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.about-card-icon {
    min-width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #e8eee3;
    border-radius: 50%;

    font-size: 22px;
}

.about-card-text h2 {
    font-size: 23px;
    color: #163323;

    margin-bottom: 6px;
}

.about-card-text p {
    font-size: 14px;
    line-height: 1.75;
    color: #555555;
}


/* =========================
   CONTACT
========================= */

.contact-body {
    background-color: #ffffff;
    color: #172019;
    overflow: hidden;
}

/* main contact area */

.contact-page {
    height: calc(100vh - 100px);
    padding: 18px 20px 22px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* title */

.contact-title {
    text-align: center;
    margin-bottom: 18px;
}

.contact-title h1 {
    font-size: 42px;
    color: #102017;
    margin-bottom: 8px;
}

.contact-title p {
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
}

/* form box */

.contact-form-box {
    width: 100%;
    max-width: 850px;

    padding: 22px 25px 18px;

    background: #f7f9f6;

    border: 1px solid #cfd8cb;
    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(105, 156, 115, 0.12);
}

/* form */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* name and email row */

.form-row {
    display: flex;
    gap: 12px;
}

.form-row input {
    width: 50%;
}

/* inputs */

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;

    background-color: #ffffff;
    color: #222222;

    border: 1.5px solid #bfcbb9;
    border-radius: 12px;

    font-size: 14px;
    outline: none;

    transition: 0.25s;
}

/* placeholder */

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #667066;
}

/* focus */

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: #ffffff;
    border-color: #699C73;

    box-shadow: 0 0 0 3px rgba(105, 156, 115, 0.15);
}

/* textarea */

.contact-form textarea {
    height: 100px;
    resize: none;
}

/* send button */

.send-btn {
    width: 100%;
    padding: 13px;

    background-color: #699C73;
    color: #ffffff;

    border: none;
    border-radius: 12px;

    font-size: 17px;
    font-weight: bold;

    cursor: pointer;
    transition: 0.25s;
}

.send-btn:hover {
    background-color: #5d8f67;

    transform: translateY(-1px);

    box-shadow: 0 7px 16px rgba(105, 156, 115, 0.20);
}

/* contact info */

.contact-info-row {
    margin-top: 16px;
    padding-top: 15px;

    border-top: 1px solid #dce5d8;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.contact-info-item {
    flex: 1;

    display: flex;
    align-items: center;

    gap: 8px;
}

/* contact icon */

.contact-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background-color: #e8f1e5;
    color: #4f7d59;

    border-radius: 10px;

    font-size: 18px;
}

.contact-icon i {
    font-size: 20px;
    color: #4f7d59;
}

/* contact info title */

.contact-info-item h3 {
    font-size: 15px;
    color: #163323;
    margin-bottom: 2px;
}

/* contact info text */

.contact-info-item p {
    font-size: 12px;
    color: #667066;
}

/* active link */

.navbar a.active-link {
    border-bottom: 2px solid #222222;
    padding-bottom: 7px;
}

/* green buy button */

.buy-button-green {
    background-color: #699C73;
    color: #ffffff;
}

/* =========================
   PRODUCTS
========================= */

.products-body {
    background-color: #fcfcfa;
    color: #172019;
}


.products-page {
    width: 100%;
    min-height: calc(100vh - 100px);

    padding: 40px 60px 60px;
}


.products-title {
    text-align: center;
    margin-bottom: 35px;
}

.products-leaf {
    font-size: 26px;
    margin-bottom: 8px;
}

.products-title h1 {
    font-size: 52px;
    color: #102017;
}


.products-grid {
    max-width: 1180px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}


.product-card {
    background-color: #ffffff;
    border: 1px solid #eceee9;
    border-radius: 18px;

    padding: 14px 14px 16px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);

    text-align: center;
}


.product-card img {
    width: 100%;
    height: 250px;

    object-fit: contain;
    border-radius: 14px;

    margin-bottom: 14px;

    display: block;
}

.product-card h3 {
    font-size: 30px;
    color: #102017;

    margin-bottom: 8px;
}


.product-card p {
    font-size: 23px;
    color: #333333;

    margin-bottom: 14px;
}

.add-cart-btn {
    width: 100%;
    padding: 14px 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background-color: #2f7b3f;
    color: #ffffff;

    border-radius: 12px;

    font-size: 20px;

    text-decoration: none;

    cursor: pointer;
    transition: 0.25s;
}

.add-cart-btn:hover {
    background-color: #276736;
    color: #ffffff;
    transform: translateY(-1px);
}

.add-cart-btn i {
    font-size: 20px;
}



/* active link */

.navbar a.active-link {
    border-bottom: 2px solid #222222;
    padding-bottom: 7px;
}

/* green buy button */

.buy-button-green {
    background-color: #699C73;
    color: #ffffff;
}

.success-message {
    margin-bottom: 15px;
    padding: 12px 15px;

    background-color: #e8f3e8;
    color: #356b43;

    border: 1px solid #b9d3bd;
    border-radius: 10px;

    text-align: center;
    font-size: 14px;
}

/* =========================
   Cart Page
========================= */

.cart-page {
    width: 100%;
    max-width: 950px;
    min-height: calc(100vh - 100px);

    margin: 0 auto;
    padding: 40px 30px 60px;
}

.cart-title {
    text-align: center;
    margin-bottom: 30px;
}

.cart-title h1 {
    font-size: 42px;
    color: #102017;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 16px;

    background-color: #ffffff;

    border: 1px solid #e3e8df;
    border-radius: 16px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.cart-item img {
    width: 110px;
    height: 110px;

    object-fit: contain;

    border-radius: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-size: 22px;
    color: #163323;

    margin-bottom: 8px;
}

.cart-item-info p {
    font-size: 16px;
    color: #555555;
}

.remove-btn {
    padding: 9px 16px;

    background-color: #2f7b3f;
    color: #ffffff;

    border-radius: 10px;

    text-decoration: none;

    font-size: 14px;
    transition: 0.25s;
}

.remove-btn:hover {
    background-color: #276736;
    color: #ffffff;
}

.cart-total {
    margin-top: 28px;

    padding: 18px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: #eef3eb;

    border-radius: 14px;
}

.cart-total h2 {
    font-size: 20px;
    color: #163323;
}

.cart-total p {
    font-size: 20px;
    font-weight: bold;

    color: #356b43;
}

.empty-cart {
    padding: 40px;

    text-align: center;

    background-color: #f7f9f6;

    border: 1px solid #e0e7dc;
    border-radius: 16px;

    color: #667066;

    font-size: 18px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 12px;
    margin-bottom: 10px;
}

.quantity-btn {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #2f7b3f;
    color: #ffffff;

    border-radius: 8px;
    text-decoration: none;

    font-size: 20px;
    font-weight: bold;

    transition: 0.2s;
}

.quantity-btn:hover {
    background-color: #276736;
    color: #ffffff;
}

.quantity-number {
    min-width: 30px;

    text-align: center;

    font-size: 18px;
    font-weight: bold;

    color: #163323;
}

.item-total {
    margin-top: 8px;

    font-size: 15px;
    font-weight: bold;

    color: #356b43;
}

.submit-order-btn {
    padding: 12px 22px;

    background-color: #2f7b3f;
    color: #ffffff;

    border-radius: 10px;

    text-decoration: none;

    font-size: 15px;
    font-weight: bold;

    transition: 0.2s;
}

.submit-order-btn:hover {
    background-color: #276736;
    color: #ffffff;
}