/* Font & Color Variables */
:root {
    --default-font: "Vazirmatn", sans-serif;
    --heading-font: "Vazirmatn", sans-serif;
    --nav-font: "Vazirmatn", sans-serif;
    --background-color: #fff5f5;
    --default-color: #2d1a1a;
    --heading-color: #a11212;
    --accent-color: #ff3333;
    --surface-color: #ffffff;
    --contrast-color: #ffffff;
    --nav-color: #2d1a1a;
    --nav-hover-color: #ff3333;
}

/* General Styling */
body {
    font-family: var(--default-font);
    background-color: var(--background-color);
    color: var(--default-color);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/* Header */
.header {
    background-color: rgba(255, 245, 245, 0.98);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-container {
    background: var(--surface-color);
    border-radius: 50px;
    padding: 10px 20px;
}

.header .logo {
    transition: transform 0.3s ease;
}

.header .logo:hover {
    transform: scale(1.05);
}

.header .logo h1 {
    font-size: 26px;
    margin: 0;
    color: var(--heading-color);
}

.header .logo i {
    color: var(--accent-color);
    font-size: 28px;
}

.navmenu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navmenu li {
    margin-left: 25px;
}

.navmenu a {
    color: var(--nav-color);
    font-size: 16px;
    padding: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navmenu a i {
    margin-left: 5px;
    font-size: 18px;
}

.navmenu a:hover,
.navmenu .active {
    color: var(--nav-hover-color);
    transform: translateY(-2px);
}

.btn-getstarted {
    background: var(--accent-color);
    color: var(--contrast-color);
    padding: 8px 25px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-getstarted i {
    margin-left: 8px;
}

.btn-getstarted:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 15%);
    transform: scale(1.05);
}

/* Checkout Section */
.checkout {
    padding: 100px 0 60px;
}

.order-summary {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.order-summary:hover {
    transform: translateY(-5px);
}

.order-summary h3 {
    font-size: 28px;
    color: var(--heading-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px dashed color-mix(in srgb, var(--default-color), transparent 80%);
    transition: all 0.3s ease;
}

.order-item:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.order-item:last-child {
    border-bottom: none;
}

.item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 15px;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.order-item:hover .item-image img {
    transform: scale(1.1);
}

.item-details {
    flex: 1;
}

.item-details h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.item-details p {
    font-size: 15px;
    margin: 5px 0;
}

/* Quantity Control Buttons (کاهش و افزایش) */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    justify-content: flex-start; /* برای RTL */
}

.btn-quantity {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--surface-color), #f8ebeb); /* گرادیان نرم */
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-quantity::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-color);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.btn-quantity:hover::before {
    width: 150%;
    height: 150%;
}

.btn-quantity:hover {
    color: var(--contrast-color);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 51, 51, 0.3);
    z-index: 1;
}

.btn-quantity:active {
    transform: scale(0.95);
}

.quantity-control input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
    border-radius: 8px;
    font-size: 16px;
    background: var(--surface-color);
    color: var(--default-color);
    transition: all 0.3s ease;
}

.quantity-control input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(255, 51, 51, 0.3);
}

.item-total span {
    color: var(--accent-color);
    font-weight: 600;
}

/* Remove Button (حذف) */
.btn-remove {
    background: linear-gradient(135deg, #ffe6e6, #ffcccc); /* گرادیان قرمز روشن */
    border: none;
    color: #cc0000;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-remove i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-remove::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #cc0000;
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.btn-remove:hover::before {
    width: 200%;
    height: 200%;
}

.btn-remove:hover {
    color: var(--contrast-color);
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

.btn-remove:hover i {
    transform: scale(1.2);
}

.btn-remove:active {
    transform: scale(0.95);
}

/* Clear Cart Button */
.btn-clear-cart {
    margin-top: 20px;
    padding: 10px 20px;
    background: #dc3545;
    color: var(--contrast-color);
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-clear-cart:hover {
    background: #c82333;
}

/* Cart Summary */
.cart-summary {
    background: var(--surface-color);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 24px;
    color: var(--heading-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.summary-details p {
    font-size: 16px;
    margin: 12px 0;
}

.summary-details .total-price {
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
}

.summary-details hr {
    margin: 15px 0;
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: var(--contrast-color);
    border: none;
    border-radius: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 15%);
    transform: scale(1.03);
}

.promo-code {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.promo-input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--default-color);
    border-radius: 10px;
    font-size: 14px;
}

.apply-promo {
    padding: 10px 15px;
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.apply-promo:hover {
    background: var(--accent-color);
    color: var(--contrast-color);
}

/* Footer */
.footer {
    background: var(--background-color);
    padding: 50px 0 20px;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.05);
}

.footer-top {
    padding-bottom: 30px;
}

.footer .logo i {
    color: var(--accent-color);
    font-size: 30px;
}

.footer-about .sitename {
    font-size: 30px;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

.footer-about:hover .sitename {
    color: var(--accent-color);
}

.footer-contact p {
    margin: 10px 0;
    font-size: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--default-color);
    border: 1px solid var(--default-color);
    margin: 0 8px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: rotate(360deg);
}

.copyright {
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    padding-top: 20px;
}

/* Animations */
.order-item,
.btn-checkout,
.btn-clear-cart,
.social-icon {
    animation: fadeIn 0.5s ease-in-out;
}

.order-item.removing {
    animation: slideOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .cart-summary {
        margin-top: 30px;
        position: static;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px;
    }

    .navmenu ul {
        flex-direction: column;
        background: var(--surface-color);
        position: absolute;
        top: 70px;
        right: -100%;
        width: 250px;
        height: 100vh;
        padding: 20px;
        transition: right 0.3s ease;
    }

    .navmenu.active ul {
        right: 0;
    }

    .mobile-nav-toggle {
        font-size: 28px;
        cursor: pointer;
        color: var(--accent-color);
    }

    .order-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .item-image img {
        margin: 0 auto 15px;
    }

    .quantity-control {
        justify-content: center;
    }

    .btn-quantity {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .quantity-control input {
        width: 50px;
    }

    .btn-remove {
        margin-top: 15px;
        padding: 7px 12px;
        font-size: 13px;
    }

    .promo-code {
        flex-direction: column;
    }

    .promo-input,
    .apply-promo {
        width: 100%;
    }
}

/* Font & Color Variables */
:root {
    --default-font: "Vazirmatn", sans-serif;
    --heading-font: "Vazirmatn", sans-serif;
    --nav-font: "Vazirmatn", sans-serif;
    --background-color: #fff5f5;
    --default-color: #2d1a1a;
    --heading-color: #a11212;
    --accent-color: #ff3333;
    --surface-color: #ffffff;
    --contrast-color: #ffffff;
    --nav-color: #2d1a1a;
    --nav-hover-color: #ff3333;
}

/* General Styling */
body {
    font-family: var(--default-font);
    background-color: var(--background-color);
    color: var(--default-color);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Quantity Control Buttons (کاهش و افزایش) */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    justify-content: flex-start; /* برای RTL */
}

.btn-quantity {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--surface-color), #f8ebeb); /* گرادیان نرم */
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-quantity::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-color);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.btn-quantity:hover::before {
    width: 150%;
    height: 150%;
}

.btn-quantity:hover {
    color: var(--contrast-color);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 51, 51, 0.3);
    z-index: 1;
}

.btn-quantity:active {
    transform: scale(0.95);
}

.quantity-control input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
    border-radius: 8px;
    font-size: 16px;
    background: var(--surface-color);
    color: var(--default-color);
    transition: all 0.3s ease;
}

/* Remove Button (حذف) */
.btn-remove {
    background: linear-gradient(135deg, #ffe6e6, #ffcccc); /* گرادیان قرمز روشن */
    border: none;
    color: #cc0000;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-remove i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-remove {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    color: inherit;
    gap: 8px;
}

.btn-remove::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #cc0000;
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn-remove:hover::before {
    width: 200%;
    height: 200%;
    opacity: 0.1;
}

.btn-remove:hover {
    color: var(--contrast-color, #fff);
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

.btn-remove__icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-remove:hover .btn-remove__icon {
    transform: scale(1.2);
}

.btn-remove:active {
    transform: scale(0.95);
}

.btn-remove__text {
    position: relative;
    z-index: 1;
}

/* سایر استایل‌ها (برای اطمینان از کارکرد) */
.order-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px dashed color-mix(in srgb, var(--default-color), transparent 80%);
}

.item-details h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.item-total span {
    color: var(--accent-color);
    font-weight: 600;
}

/* Animation for Removing Item */
.order-item.removing {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* برای تضمین خوانایی متن */
.form-select, .cart-summary, .order-summary {
    color: #333; /* رنگ متن تیره */
}


/* استایل‌های خاص برای تگ select */
select.form-select {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
}

.footer-center {
    text-align: center;
}

.footer-center .footer-links,
.footer-center .footer-contact,
.footer-center .social-links {
    justify-content: center;
}

/* About Saffron Section */
.about-saffron {
    background-color: #fff9f9;
    padding: 60px 0;
    border-radius: 15px;
    margin: 30px 0;
}

.about-saffron .section-title h2 {
    color: #a11212;
}

.saffron-types {
    margin-top: 30px;
}

.saffron-type-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.saffron-type-card:hover {
    transform: translateY(-5px);
}

.saffron-type-card h4 {
    color: #a11212;
    border-bottom: 2px solid #ffcccc;
    padding-bottom: 10px;
}

/* Contact Popup */
.contact-popup {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 300px;
}

.contact-popup.show {
    display: block;
    animation: fadeIn 0.3s;
}

.contact-popup h4 {
    color: #a11212;
    margin-bottom: 15px;
}

.contact-popup .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.contact-popup .social-icons a {
    color: #a11212;
    font-size: 24px;
}

.contact-icon {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #a11212;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(161, 18, 18, 0.3);
}

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

/* Authentic Saffron Tips */
.authentic-tips {
    background: #fff5f5;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.authentic-tips h3 {
    color: #a11212;
    margin-bottom: 20px;
}

.authentic-tips ul {
    list-style-type: none;
    padding: 0;
}

.authentic-tips li {
    padding: 10px 0;
    border-bottom: 1px dashed #ffcccc;
}

.authentic-tips li:last-child {
    border-bottom: none;
}

.authentic-tips li i {
    color: #a11212;
    margin-left: 10px;
}