@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
    --green: #123c2b;
    --green-2: #1b543c;
    --cream: #f5efdf;
    --cream-2: #e9ddc2;
    --gold: #b89a5c;
    --text: #17231d;
    --white: #ffffff;
    --danger: #a33a3a;
    --shadow: 0 15px 45px rgba(0,0,0,.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--cream);
    color: var(--text);
    transition: .3s;
}

body.dark {
    --cream: #0e1813;
    --cream-2: #18271f;
    --text: #eeeeee;
    --white: #17241d;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: 0;
}

.hidden {
    display: none !important;
}


/* ================= HEADER ================= */

.header {
    height: 82px;
    padding: 0 6%;

    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(245,239,223,.94);
    backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(18,60,43,.08);
}

.dark .header {
    background: rgba(14,24,19,.94);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--green);
    color: var(--cream);

    font-size: 25px;
    font-weight: 800;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    color: var(--green);
    font-size: 22px;
}

.dark .logo-text strong {
    color: #e4d3a5;
}

.logo-text small {
    font-size: 10px;
    opacity: .7;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 14px;
    transition: .2s;
}

.main-nav a:hover {
    color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions button {
    position: relative;

    width: 38px;
    height: 38px;

    background: transparent;

    font-size: 18px;
}

#cartCount {
    position: absolute;

    top: -3px;
    right: -3px;

    min-width: 18px;
    height: 18px;

    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: var(--gold);
    color: white;

    font-size: 10px;
}


/* ================= HERO ================= */

.hero {
    min-height: 680px;

    padding: 90px 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;

    background:
        radial-gradient(
            circle at 80% 40%,
            rgba(184,154,92,.16),
            transparent 30%
        );
}

.hero-content {
    max-width: 620px;
}

.eyebrow,
.section-title span,
.about-content > span,
.garden-content > span {
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
}

.hero h1 {
    margin: 25px 0;

    color: var(--green);

    font-size: clamp(45px, 6vw, 78px);
    line-height: 1.3;
}

.dark .hero h1 {
    color: #e5d9b8;
}

.hero h1 strong {
    color: var(--gold);
}

.hero p {
    max-width: 540px;

    line-height: 2;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 35px;
}

.btn {
    display: inline-block;

    padding: 14px 28px;

    border-radius: 50px;

    transition: .25s;
}

.btn-primary {
    background: var(--green);
    color: white;
}

.btn-primary:hover {
    background: var(--green-2);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--green);
}

.btn-light {
    background: var(--cream);
    color: var(--green);
}

.hero-visual {
    width: 40%;

    display: flex;
    justify-content: center;
}

.hero-circle {
    width: 370px;
    height: 370px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #d8c59b;

    box-shadow: 0 30px 80px rgba(0,0,0,.15);

    animation: float 4s ease-in-out infinite;
}

.hero-circle span {
    font-size: 150px;
}

@keyframes float {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}


/* ================= GENERAL ================= */

section {
    padding: 100px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 55px;
}

.section-title h2 {
    margin-top: 10px;

    color: var(--green);

    font-size: 34px;
}

.dark .section-title h2 {
    color: #e5d9b8;
}


/* ================= WHY ================= */

.why-section,
.reviews-section {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.why-card {
    padding: 35px 20px;

    text-align: center;

    border-radius: 22px;

    background: var(--cream);

    transition: .25s;
}

.why-card:hover {
    transform: translateY(-5px);
}

.why-icon {
    font-size: 38px;
    margin-bottom: 15px;
}

.why-card h3 {
    margin-bottom: 12px;
}

.why-card p {
    font-size: 13px;
    line-height: 1.9;
}


/* ================= PRODUCTS ================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.product-card {
    overflow: hidden;

    background: var(--white);

    border-radius: 25px;

    box-shadow: var(--shadow);

    transition: .25s;
}

.product-card:hover {
    transform: translateY(-7px);
}

.product-image {
    height: 270px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--cream-2);

    font-size: 105px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;

    top: 15px;
    right: 15px;

    padding: 6px 13px;

    border-radius: 30px;

    background: var(--green);
    color: white;

    font-size: 11px;
}

.product-info {
    padding: 25px;
}

.product-category {
    color: var(--gold);
    font-size: 12px;
}

.product-info h3 {
    margin: 8px 0;
}

.product-info p {
    font-size: 13px;
    line-height: 1.8;
}

.stars {
    margin: 12px 0;
    color: #c49c50;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-row strong {
    color: var(--green);
    font-size: 20px;
}

.dark .price-row strong {
    color: #d8c48f;
}

.price-row span {
    font-size: 11px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 18px 0;
}

.quantity-control button {
    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: var(--cream-2);
}

.full-btn {
    width: 100%;

    padding: 13px;

    border-radius: 12px;

    background: var(--green);
    color: white;

    transition: .2s;
}

.full-btn:hover {
    background: var(--green-2);
}

.secondary-btn {
    margin-top: 10px;

    background: var(--cream-2);
    color: var(--text);
}


/* ================= GARDEN ================= */

.garden-section {
    min-height: 500px;
    padding: 0;

    background:
        linear-gradient(
            90deg,
            rgba(18,60,43,.96),
            rgba(18,60,43,.55)
        ),
        url("https://images.unsplash.com/photo-1542990253-0d0f5be5f0ed?auto=format&fit=crop&w=1600&q=80");

    background-size: cover;
    background-position: center;
}

.garden-overlay {
    min-height: 500px;

    padding: 100px 8%;

    display: flex;
    align-items: center;

    color: white;
}

.garden-content {
    max-width: 620px;
}

.garden-content h2 {
    margin: 20px 0;

    font-size: 50px;
    line-height: 1.5;
}

.garden-content p {
    margin-bottom: 25px;
    line-height: 2;
}


/* ================= ABOUT ================= */

.about-section {
    display: flex;
    justify-content: center;

    text-align: center;
}

.about-content {
    max-width: 800px;
}

.about-content h2 {
    margin: 15px 0;

    color: var(--green);

    font-size: 38px;
}

.dark .about-content h2 {
    color: #e5d9b8;
}

.about-content p {
    margin-top: 15px;
    line-height: 2;
}


/* ================= REVIEWS ================= */

.review-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.review-card {
    padding: 30px;

    border-radius: 20px;

    background: var(--cream);
}

.review-card p {
    margin: 15px 0;

    font-size: 14px;
    line-height: 2;
}


/* ================= CONTACT ================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.contact-card {
    padding: 30px;

    text-align: center;

    border-radius: 20px;

    background: var(--white);
}

.contact-card > div {
    font-size: 30px;
    margin-bottom: 10px;
}

.contact-card p {
    margin-top: 8px;
    font-size: 13px;
}


/* ================= FOOTER ================= */

.footer {
    padding: 50px 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--green);
    color: white;
}

.footer h2 {
    color: #dfcd9d;
}

.footer p {
    margin-top: 5px;
    font-size: 13px;
}


/* ================= MODAL ================= */

.modal {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0,0,0,.62);
}

.modal.active {
    display: flex;
}

.modal-box {
    width: min(500px,100%);
    max-height: 90vh;

    overflow-y: auto;

    position: relative;

    padding: 35px;

    border-radius: 25px;

    background: var(--cream);

    box-shadow: 0 30px 80px rgba(0,0,0,.25);

    animation: modalIn .2s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-box h2 {
    margin-bottom: 10px;
}

.modal-description {
    margin-bottom: 20px;

    font-size: 13px;
    line-height: 1.8;

    opacity: .7;
}

.modal-close {
    position: absolute;

    top: 12px;
    left: 18px;

    width: 35px;
    height: 35px;

    background: transparent;

    font-size: 27px;
}

.modal-box input,
.modal-box select {
    width: 100%;

    margin-bottom: 12px;

    padding: 14px;

    border: 1px solid var(--cream-2);
    border-radius: 11px;

    outline: none;

    background: var(--white);
    color: var(--text);
}

.modal-box input:focus,
.modal-box select:focus {
    border-color: var(--green);
}

.text-btn {
    width: 100%;

    margin-top: 15px;

    background: transparent;

    color: var(--green);

    font-size: 13px;
}

.dark .text-btn {
    color: #d8c48f;
}


/* ================= USER ================= */

.user-information {
    margin: 20px 0;
    padding: 20px;

    border-radius: 15px;

    background: var(--white);

    line-height: 2;
}


/* ================= CART ================= */

.cart-items {
    margin: 20px 0;
}

.cart-empty {
    padding: 30px;

    text-align: center;

    opacity: .65;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 15px 0;

    border-bottom: 1px solid var(--cream-2);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
}

.cart-item-price {
    margin-top: 4px;
    font-size: 12px;
    opacity: .7;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cart-quantity button {
    width: 26px;
    height: 26px;

    border-radius: 50%;

    background: var(--cream-2);
}

.remove-cart {
    background: transparent;
    color: var(--danger);
    font-size: 18px;
}

.cart-summary {
    margin: 20px 0;

    display: flex;
    justify-content: space-between;

    padding-top: 15px;

    border-top: 2px solid var(--cream-2);
}

.cart-summary strong {
    color: var(--green);
}


/* ================= SUCCESS ================= */

.success-box {
    text-align: center;
}

.success-icon {
    width: 75px;
    height: 75px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--green);
    color: white;

    font-size: 40px;
}

.success-box p {
    margin-top: 20px;
}

.order-number {
    display: block;

    margin: 10px 0 25px;

    color: var(--gold);

    font-size: 25px;
}


/* ================= ORDERS ================= */

.order-history-item {
    margin-bottom: 15px;
    padding: 18px;

    border-radius: 15px;

    background: var(--white);
}

.order-history-header {
    display: flex;
    justify-content: space-between;

    margin-bottom: 10px;
}

.order-status {
    display: inline-block;

    padding: 4px 10px;

    border-radius: 20px;

    background: rgba(18,60,43,.1);

    color: var(--green);

    font-size: 11px;
}

.order-products {
    font-size: 13px;
    line-height: 2;
}


/* ================================================= */
/* ================= ADMIN PANEL =================== */
/* ================================================= */

.admin-panel {
    position: fixed;
    inset: 0;

    z-index: 2000;

    display: none;

    overflow-y: auto;

    background: var(--cream);
}

.admin-panel.active {
    display: block;
}

.admin-header {
    min-height: 90px;

    padding: 20px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--green);
    color: white;
}

.admin-header span {
    color: #d9c58f;
    font-size: 12px;
}

.admin-header h2 {
    margin-top: 4px;
}

.admin-header button {
    padding: 10px 20px;

    border-radius: 10px;

    background: rgba(255,255,255,.12);

    color: white;
}

.admin-content {
    padding: 40px 6%;
}


/* آمار */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;

    margin-bottom: 35px;
}

.stat-card {
    padding: 25px;

    border-radius: 18px;

    background: var(--white);

    box-shadow: var(--shadow);
}

.stat-card span {
    display: block;

    margin-bottom: 10px;

    font-size: 13px;
    opacity: .7;
}

.stat-card strong {
    color: var(--green);
    font-size: 30px;
}


/* بخش مدیریت */

.admin-section {
    margin-bottom: 35px;
}

.admin-section-title {
    margin-bottom: 20px;
}

.admin-products {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.admin-product {
    padding: 25px;

    border-radius: 18px;

    background: var(--white);

    box-shadow: var(--shadow);
}

.admin-product h4 {
    margin-bottom: 15px;
}

.admin-product label {
    display: block;

    margin-bottom: 5px;

    font-size: 12px;
}

.admin-product input {
    width: 100%;

    padding: 11px;
    margin-bottom: 12px;

    border: 1px solid var(--cream-2);
    border-radius: 9px;

    background: var(--cream);
    color: var(--text);
}

.admin-product-actions {
    display: flex;
    gap: 8px;
}

.admin-product-actions button {
    flex: 1;

    padding: 10px;

    border-radius: 9px;

    background: var(--green);
    color: white;

    font-size: 12px;
}

.admin-product-actions button.off {
    background: var(--danger);
}

.admin-product-status {
    margin-bottom: 15px;

    font-size: 12px;
}

.status-active {
    color: var(--green);
}

.status-off {
    color: var(--danger);
}


/* سفارش‌های پنل */

.admin-orders {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-order {
    padding: 20px;

    border-radius: 16px;

    background: var(--white);
}

.admin-order-top {
    display: flex;
    justify-content: space-between;

    margin-bottom: 12px;
}

.admin-order-products {
    margin: 10px 0;

    font-size: 13px;
    line-height: 2;
}

.admin-order select {
    padding: 9px;

    border-radius: 8px;

    border: 1px solid var(--cream-2);

    background: var(--cream);
    color: var(--text);
}


/* دسترسی پنل */

.admin-access {
    position: fixed;

    bottom: 20px;
    left: 20px;

    z-index: 900;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: var(--green);
    color: white;

    box-shadow: 0 8px 25px rgba(0,0,0,.2);
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 15px;
    }

    .why-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .admin-products {
        grid-template-columns: repeat(2,1fr);
    }

}


@media (max-width: 800px) {

    .header {
        padding: 0 4%;
    }

    .main-nav {
        display: none;
    }

    .hero {
        padding: 70px 5%;

        flex-direction: column;

        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero p {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
    }

    .hero-circle {
        width: 270px;
        height: 270px;
    }

    .hero-circle span {
        font-size: 100px;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .garden-content h2 {
        font-size: 38px;
    }

}


@media (max-width: 600px) {

    section {
        padding: 70px 5%;
    }

    .why-grid,
    .product-grid,
    .contact-grid,
    .admin-products,
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .header-actions {
        gap: 2px;
    }

    .header-actions button {
        width: 32px;
        font-size: 15px;
    }

    .logo-text small {
        display: none;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .admin-content {
        padding: 25px 5%;
    }

    .admin-header {
        padding: 20px 5%;
    }

    .admin-order-top {
        flex-direction: column;
        gap: 8px;
    }

}