/* ========== فونت استاد - شیک و خاص ========== */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* ========== ریست و تنظیمات پایه ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Estedad', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fffbfa;
    color: #4a2c22;
    line-height: 1.6;
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== هدر و نویگیشن ========== */
.main-header {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #ffe0d4;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
    flex-wrap: nowrap; /* مهم */
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: transparent;
    border-radius: 0;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #e85d8d;
}

.search-wrapper {
    flex: 1;
    max-width: 400px;
    margin: 0;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 18px;
    border: 1.5px solid #f0dcd0;
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: 'Estedad', sans-serif;
    background: #fefaf8;
    transition: all 0.3s ease;
    color: #4a2c22;
}

.search-input:focus {
    outline: none;
    border-color: #e2876b;
    background: white;
    box-shadow: 0 0 0 3px rgba(226, 124, 92, 0.1);
}

.search-input::placeholder {
    color: #bda89a;
    font-size: 0.85rem;
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #c05a3a;
    transition: 0.2s;
}

.search-btn:hover {
    color: #e2876b;
}

.search-results {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid #ffe0d4;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f5e6de;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover {
    background: #fff5ef;
}

.search-result-img {
    font-size: 24px;
}

.search-result-info h4 {
    font-size: 0.9rem;
    color: #4a2c22;
    margin-bottom: 4px;
}

.search-result-info p {
    font-size: 0.75rem;
    color: #b35f3e;
}

.search-empty {
    padding: 16px;
    text-align: center;
    color: #bda89a;
}

.nav-toggle {
    display: none;
    font-size: 28px;
    padding: 6px 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #c05a3a;
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.coming-soon {
    position: absolute;
    top: -15px;
    left: -20px; /* در صورت نیاز تغییر بده */
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.nav-menu li {
    margin: 0;
}

.nav-menu li a {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    color: #5c3b2c;
    transition: 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #e2876b;
}

.cart-badge {
    background: #f3e1d6;
    padding: 8px 18px;
    border-radius: 60px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: 0.2s;
}

.cart-badge a {
    color: #5c3b2c;
    text-decoration: none;
}

.cart-badge:hover {
    background: #e7d7cc;
    transform: scale(1.02);
}

/* ========== دکمه‌ها ========== */
.btn {
    display: inline-block;
    background: #e27c5c;
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
    font-family: 'Estedad', sans-serif;
}

.btn-light {
    display: inline-block;
    background: #ffe3d9;
    color: #b34e2c;
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
    font-family: 'Estedad', sans-serif;
}

.btn-light:hover {
    background: #f7cfc0;
}

.btn:hover {
    background: #c86340;
    transform: translateY(-2px);
}

/* ========== بخش قهرمان (Hero) ========== */
.hero-section {
    text-align: center;
    background: linear-gradient(135deg, #fff5ef, #ffefe6);
    border-radius: 32px;
    padding: 60px 20px;
    margin: 20px 0;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: #a74323;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    margin: 16px 0;
    color: #5c3b2a;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* ========== ویژگی‌ها ========== */
.features-section {
    margin: 60px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: #5d3826;
}

.features-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.feature-card {

    background-size: cover;
    background-position: center;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    min-width: 150px;
    flex: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #ffded0;
    transition: 0.2s;
}

#card1 {
    background-image: url('/static/images/khales.jpg');
}

#card2 {
    background-image: url("/static/images/dastchin.jpg");
}

#card3 {
    background-image: url("/static/images/sendToEverywhere.jpg");
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.feature-text {
    background-color: rgba(255, 222, 208, 0.2);
    background-size: initial;
    backdrop-filter: blur(10px); /* افکت شیشه‌ای */
    -webkit-backdrop-filter: blur(10px);
    /*border: 1px solid #ffded0;*/
    border-radius: 24px;
    font-weight: 600;
    font-size: 1rem;
}

/* ========== محصولات ========== */
.products-section {
    margin: 50px 0;
}

.page-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 40px 0 30px;
    color: #5d3826;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #ffded0;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(193, 89, 49, 0.1);
}

.product-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: #4a2c22;
}

.product-info p {
    font-size: 0.85rem;
    color: #7a5a4a;
    line-height: 1.5;
    margin-bottom: 12px;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #c25d3a;
    margin: 12px 0;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    border-radius: 50px;
    font-family: 'Estedad', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

/* ========== صفحه جزئیات محصول ========== */
.product-detail-wrapper {
    margin: 40px 0;
}

.product-detail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #ffded0;
}

.product-detail-gallery {
    flex: 1;
    min-width: 280px;
}

.main-image {
    background: #fff3ec;
    border-radius: 28px;
    text-align: center;
    padding: 0;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 350px;
    border-radius: 28px;
    object-fit: cover;
    display: block;
}

.product-main-img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 20px;
}

/*.no-image {*/
/*    font-size: 80px;*/
/*}*/

/*.no-image img {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*    display: block;*/
/*}*/

.product-badges {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.active {
    background: #e3f2fd;
    color: #1565c0;
}

.inactive {
    background: #f5f5f5;
    color: #757575;
}

.product-detail-info {
    flex: 1.5;
    min-width: 300px;
}

.product-breadcrumb {
    font-size: 0.8rem;
    color: #bda89a;
    margin-bottom: 15px;
}

.product-breadcrumb a {
    color: #bda89a;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: #e2876b;
}

.product-detail-title {
    font-size: 1.8rem;
    color: #5d3826;
    margin-bottom: 15px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stars {
    color: #ffb800;
    font-size: 1rem;
    letter-spacing: 2px;
}

.rating-count {
    color: #bda89a;
    font-size: 0.8rem;
}

.product-short-desc {
    background: #fff9f5;
    padding: 15px 20px;
    border-radius: 20px;
    margin: 20px 0;
    border-right: 3px solid #e27c5c;
}

.product-short-desc p {
    margin: 0;
    color: #6b4d3a;
}

.product-price-section {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #f0e2d4;
    border-bottom: 1px solid #f0e2d4;
}

.product-price {
    font-size: 2rem;
    font-weight: 800;
    color: #c25d3a;
}

.product-meta {
    margin: 20px 0;
}

.meta-item {
    display: flex;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.meta-label {
    width: 100px;
    font-weight: 600;
    color: #5d3826;
}

.meta-value {
    color: #7a5a4a;
}

.text-success {
    color: #2e7d32;
}

.text-danger {
    color: #c62828;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid #f0dcd0;
    border-radius: 50px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 44px;
    background: #fff3ec;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #f0dcd0;
}

.product-quantity {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-family: 'Estedad', sans-serif;
    background: white;
}

.disabled-btn {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    padding: 12px 32px;
    border-radius: 50px;
    border: none;
}

.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0e2d4;
}

.share-link {
    font-size: 1.3rem;
    text-decoration: none;
    opacity: 0.6;
    transition: 0.2s;
}

.share-link:hover {
    opacity: 1;
}

/* تب‌ها */
.product-description-tabs {
    margin: 50px 0;
    background: white;
    border-radius: 32px;
    border: 1px solid #ffded0;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #fff9f5;
    border-bottom: 1px solid #ffded0;
}

.tab-btn {
    padding: 16px 32px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Estedad', sans-serif;
    cursor: pointer;
    color: #7a5a4a;
    transition: 0.2s;
}

.tab-btn.active {
    color: #e27c5c;
    border-bottom: 3px solid #e27c5c;
    background: white;
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
    border-radius: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.full-description {
    line-height: 1.8;
    color: #4a2c22;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #f0e2d4;
}

.specs-table th {
    width: 150px;
    font-weight: 600;
    color: #5d3826;
}

.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0e2d4;
}

.average-rating {
    text-align: center;
}

.big-rating {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffb800;
}

.write-review-btn {
    padding: 10px 24px;
    border-radius: 10px;
}

.comment-item {
    background: #fff9f5;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.comment-header strong {
    color: #5d3826;
}

.comment-date {
    font-size: 0.75rem;
    color: #bda89a;
}

.comment-rating {
    color: #ffb800;
    font-size: 0.85rem;
}

.add-comment-form {
    margin-top: 30px;
    padding-top: 20px;
}

.add-comment-form h4 {
    margin-bottom: 15px;
    color: #5d3826;
}

.comment-rating-input {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.rating-stars span {
    font-size: 1.5rem;
    cursor: pointer;
    color: #ddd;
    transition: 0.2s;
}

.rating-stars span:hover,
.rating-stars span.active {
    color: #ffb800;
}

.related-products {
    margin: 50px 0;
}

/* ========== سبد خرید ========== */
#cartItems {
    background: white;
    border-radius: 28px;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid #ffded0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0e2d4;
}

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

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.number-of-product {
    margin-right: auto;
    margin-left: auto;
}

.cart-item-emoji {
    font-size: 35px;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #c25d3a;
    font-weight: 600;
}

.remove-from-cart {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.remove-from-cart:hover {
    opacity: 1;
}

.empty-cart {
    text-align: center;
    padding: 50px;
    color: #bda89a;
    font-size: 1.1rem;
}

.cart-total {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 800;
    color: #c25d3a;
    padding: 20px;
    background: white;
    border-radius: 28px;
    border: 1px solid #ffded0;
    margin: 20px 0;
}

.checkout-button {
    text-align: center;
    margin: 30px 0;
}

/* ========== فوتر ========== */
.main-footer {
    background: #fcf1ea;
    margin-top: 70px;
    padding: 40px 0 25px;
    border-radius: 40px 40px 0 0;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 25px;
    font-size: 0.9rem;
    color: #6b4d3a;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    color: #a4745e;
    font-size: 0.8rem;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-flex {
        position: relative;
    }

    .search-wrapper {
        order: 4;
        max-width: 100%;
        margin: 10px 0 0;
        width: 100%;
    }

    .nav-toggle {
        display: block;
        order: 3;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 12px;
        padding: 20px 0;
        border-top: 1px solid #ffe0d4;
        margin-top: 10px;
        order: 5;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        display: block;
        padding: 8px 0;
        white-space: normal;
    }

    .cart-badge {
        order: 2;
    }

    .logo-area {
        order: 1;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .product-detail-grid {
        padding: 25px;
        gap: 30px;
    }

    .product-detail-title {
        font-size: 1.4rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .tabs-header {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        padding: 12px;
        font-size: 0.85rem;
    }

    .tabs-content {
        padding: 20px;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .product-img {
        padding: 20px 12px;
        font-size: 45px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 0.9rem;
    }

    .product-info p {
        font-size: 0.75rem;
    }

    .price {
        font-size: 1rem;
    }

    .add-to-cart-btn {
        font-size: 0.8rem;
        padding: 8px;
    }

    .feature-card {
        padding: 20px 15px;
        min-width: 120px;
    }

    .feature-icon {
        font-size: 35px;
    }

    .feature-text {
        font-size: 0.85rem;
    }

    .hero-section {
        padding: 40px 15px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .cart-item-info {
        flex-direction: column;
    }

    .cart-total {
        font-size: 1.2rem;
        text-align: center;
    }
}

/* ========== استایل فرم نظرات در صفحه جزئیات محصول ========== */
.comments-section {
    margin-top: 30px;
}

.add-comment-form {
    background: #fff9f5;
    border-radius: 24px;
    padding: 25px;
    margin-top: 25px;
    border: 1px solid #ffded0;
}

.add-comment-form h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #5d3826;
    font-weight: 700;
}

.add-comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1.5px solid #f0dcd0;
    border-radius: 20px;
    font-family: 'Estedad', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    background: white;
    transition: all 0.3s ease;
}

.add-comment-form textarea:focus {
    outline: none;
    border-color: #e2876b;
    box-shadow: 0 0 0 3px rgba(226, 124, 92, 0.1);
}

.comment-rating-input {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 12px;
    background: white;
    border-radius: 60px;
    border: 1px solid #f0dcd0;
}

.comment-rating-input span {
    font-weight: 600;
    color: #5d3826;
}

.rating-stars {
    display: flex;
    gap: 5px;
}

.rating-stars span {
    font-size: 1.8rem;
    cursor: pointer;
    color: #ddd;
    transition: 0.2s;
}

.rating-stars span:hover,
.rating-stars span.active {
    color: #ffb800;
    transform: scale(1.1);
}

.add-comment-form .btn-light {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
    border-radius: 25px;
}

/* ========== استایل فرم ثبت سفارش (checkout) ========== */
.checkout-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 50px 0;
}

.checkout-form {
    flex: 1.5;
    background: white;
    border-radius: 32px;
    padding: 35px;
    border: 1px solid #ffded0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.checkout-summary {
    flex: 1;
    background: white;
    border-radius: 32px;
    padding: 35px;
    border: 1px solid #ffded0;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0e2d4;
}

.form-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #5d3826;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3::before {
    content: "🌸";
    font-size: 1.2rem;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-row input,
.form-row select,
.form-row textarea {
    flex: 1;
    padding: 14px 18px;
    border: 1.5px solid #f0dcd0;
    border-radius: 50px;
    font-family: 'Estedad', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fefaf8;
}

.form-row textarea {
    border-radius: 20px;
    resize: vertical;
    min-height: 100px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #e2876b;
    background: white;
    box-shadow: 0 0 0 3px rgba(226, 124, 92, 0.1);
}

.payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0 10px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1.5px solid #f0dcd0;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    font-weight: 500;
}

.payment-method:hover {
    border-color: #e2876b;
    transform: translateY(-2px);
}

.payment-method.selected {
    border-color: #e27c5c;
    background: #fff5ef;
    color: #c05a3a;
}

.payment-method span:first-child {
    font-size: 1.3rem;
}

.checkout-total {
    margin: 25px 0;
    padding: 20px;
    background: #fff9f5;
    border-radius: 24px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    font-size: 1rem;
}

.total-row:last-child {
    margin-bottom: 0;
}

.grand-total {
    font-size: 1.3rem;
    font-weight: 800;
    color: #c25d3a;
    border-top: 2px solid #f0e2d4;
    padding-top: 15px;
    margin-top: 10px;
}

.checkout-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 10px;
}

/* ========== استایل فرم ارتباط با ما (contact) ========== */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 50px 0;
}

.contact-info {
    flex: 1;
    background: white;
    border-radius: 32px;
    padding: 35px;
    border: 1px solid #ffded0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #5d3826;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info h3::before {
    content: "📞";
    font-size: 1.3rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff9f5;
    border-radius: 20px;
    transition: 0.2s;
}

.contact-detail:hover {
    transform: translateX(-5px);
    background: #fff5ef;
}

.contact-icon {
    font-size: 32px;
    min-width: 50px;
    text-align: center;
}

.contact-detail div {
    color: #4a2c22;
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    background: white;
    border-radius: 32px;
    padding: 35px;
    border: 1px solid #ffded0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #5d3826;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form h3::before {
    content: "✉️";
    font-size: 1.3rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 18px;
    border: 1.5px solid #f0dcd0;
    border-radius: 50px;
    font-family: 'Estedad', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fefaf8;
}

.contact-form textarea {
    border-radius: 20px;
    resize: vertical;
    min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #e2876b;
    background: white;
    box-shadow: 0 0 0 3px rgba(226, 124, 92, 0.1);
}

.contact-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 5px;
}

.map-container {
    margin: 40px 0 60px;
    background: white;
    border-radius: 32px;
    padding: 30px;
    border: 1px solid #ffded0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.map-container h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #5d3826;
    font-weight: 700;
    text-align: center;
}

.fake-map {
    background: linear-gradient(135deg, #f0e2d4, #e8d9cf);
    height: 280px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a4745e;
    font-size: 1.2rem;
    font-weight: 500;
}

/* ========== استایل باکس ورود/ثبت نام (auth) ========== */
.auth-container {
    max-width: 550px;
    margin: 60px auto;
    background: white;
    border-radius: 32px;
    padding: 45px 40px;
    border: 1px solid #ffded0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

.auth-container .for-login {
    padding-top: 10px;
    text-align: center;
}

.auth-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
    border-bottom: 2px solid #f0e2d4;
}

.auth-tab {
    padding: 12px 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: #bda89a;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: 0.2s;
}

.auth-tab.active {
    color: #e27c5c;
    border-bottom-color: #e27c5c;
}

.auth-form {
    display: block;
}

/*.auth-form.active {*/
/*    display: block;*/
/*    animation: fadeIn 0.3s ease;*/
/*    border-radius: 20px;*/
/*}*/

.form-group {
    margin-bottom: 22px;
}

.form-group input {
    width: 100%;
    padding: 14px 20px;
    border: 1.5px solid #f0dcd0;
    border-radius: 60px;
    font-size: 0.95rem;
    font-family: 'Estedad', sans-serif;
    transition: all 0.3s ease;
    background: #fefaf8;
}

.form-group input:focus {
    outline: none;
    border-color: #e2876b;
    background: white;
    box-shadow: 0 0 0 3px rgba(226, 124, 92, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 15px;
}

.auth-note {
    text-align: center;
    margin-top: 25px;
    font-size: 0.8rem;
    color: #bda89a;
}

/* ========== استایل باکس نظرات موجود ========== */
.comment-item {
    background: #fff9f5;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #ffded0;
    transition: 0.2s;
}

.comment-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.comment-header strong {
    color: #5d3826;
    font-size: 1rem;
}

.comment-date {
    font-size: 0.7rem;
    color: #bda89a;
}

.comment-rating {
    color: #ffb800;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.comment-text {
    color: #4a2c22;
    line-height: 1.6;
    font-size: 0.9rem;
}

.no-comments {
    text-align: center;
    padding: 40px;
    color: #bda89a;
    background: #fff9f5;
    border-radius: 20px;
}

.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0e2d4;
}

.average-rating {
    text-align: center;
    background: #fff9f5;
    padding: 15px 30px;
    border-radius: 80px;
}

.big-rating {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffb800;
}

.rating-text {
    font-size: 0.8rem;
    color: #bda89a;
}

.write-review-btn {
    padding: 10px 28px;
    font-weight: 600;
}

/* ========== ریسپانسیو برای فرم‌ها ========== */
@media (max-width: 768px) {
    .checkout-grid,
    .contact-grid {
        flex-direction: column;
        gap: 25px;
    }

    .checkout-form,
    .checkout-summary,
    .contact-info,
    .contact-form {
        padding: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .payment-methods {
        justify-content: center;
    }

    .auth-container {
        margin: 40px 20px;
        padding: 30px 25px;
    }

    .auth-tab {
        font-size: 1rem;
    }

    .add-comment-form {
        padding: 20px;
    }

    .comment-rating-input {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 30px;
    }

    .reviews-summary {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .checkout-form,
    .checkout-summary,
    .contact-info,
    .contact-form,
    .auth-container {
        padding: 20px;
    }

    .form-section h3 {
        font-size: 1rem;
    }

    .form-row input,
    .form-row select,
    .form-row textarea,
    .form-group input {
        padding: 12px 16px;
    }

    .payment-method {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .contact-detail {
        gap: 12px;
        padding: 12px;
    }

    .contact-icon {
        font-size: 28px;
        min-width: 40px;
    }

    .comment-header {
        gap: 10px;
    }

    .rating-stars span {
        font-size: 1.4rem;
    }
}

/* ========== بخش hero با عکس پس‌زمینه ========== */
.hero-section {
    text-align: center;
    background-image: url('/static/images/posterOfIndexPage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 32px;
    padding: 80px 30px;
    margin: 20px 0;
    overflow: hidden;
}

/* لایه تیره برای خوانایی بهتر متن */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    border-radius: 32px;
    z-index: 1;
}

.hero-title,
.hero-subtitle,
.hero-buttons {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: white;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    margin: 16px 0;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.hero-buttons .btn {
    background: #e27c5c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: #b34e2c;
}

.hero-buttons .btn-light:hover {
    background: white;
}

/* ========== فیلتر و مرتب‌سازی محصولات ========== */
.filter-section {
    background: white;
    border-radius: 28px;
    padding: 25px 30px;
    margin: 20px 0 35px;
    border: 1px solid #ffded0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.filters-form {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* در موبایل زیر هم قرار می‌گیرند */
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.filter-label {
    font-weight: 600;
    color: #5d3826;
    font-size: 0.9rem;
}

.filter-select {
    padding: 10px 40px 10px 18px;
    border: 1.5px solid #f0dcd0;
    border-radius: 50px;
    font-family: 'Estedad', sans-serif;
    font-size: 0.9rem;
    background: #fefaf8;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23bda89a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    transition: all 0.3s ease;
    min-width: 160px;
}

.filter-select:focus {
    outline: none;
    border-color: #e2876b;
    box-shadow: 0 0 0 3px rgba(226, 124, 92, 0.1);
}

.filter-select:hover {
    border-color: #e2876b;
}

.filter-search-box {
    position: relative;
}

.filter-search-box input {
    padding: 10px 18px 10px 45px;
    border: 1.5px solid #f0dcd0;
    border-radius: 50px;
    font-family: 'Estedad', sans-serif;
    font-size: 0.9rem;
    background: #fefaf8;
    width: 220px;
    transition: all 0.3s ease;
}

.filter-search-box input:focus {
    outline: none;
    border-color: #e2876b;
    box-shadow: 0 0 0 3px rgba(226, 124, 92, 0.1);
    width: 280px;
}

.filter-search-box .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #bda89a;
    font-size: 1.1rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1.5px solid #f0dcd0;
    border-radius: 50px;
    background: white;
    cursor: pointer;
    font-family: 'Estedad', sans-serif;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    color: #7a5a4a;
}

.filter-btn:hover {
    border-color: #e2876b;
    color: #c05a3a;
}

.filter-btn.active {
    background: #e27c5c;
    color: white;
    border-color: #e27c5c;
}

.filter-btn.active:hover {
    background: #c86340;
}

.filter-result-count {
    color: #bda89a;
    font-size: 0.85rem;
}

.filter-result-count span {
    color: #c05a3a;
    font-weight: 700;
}

/* استایل دکمه‌های فیلتر در موبایل */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .filter-group {
        flex-direction: column;
        width: 100%;
    }

    .filter-select {
        width: 100%;
        min-width: unset;
    }

    .filter-search-box input {
        width: 100%;
    }

    .filter-search-box input:focus {
        width: 100%;
    }

    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 15px;
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}

/* انیمیشن فیلتر شدن محصولات */
.product-card {
    transition: all 0.3s ease;
}

.product-card.filtered-out {
    display: none;
}

.product-card.filtered-in {
    animation: fadeInUp 0.4s ease;
}

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

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    color: #b34e2c;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #ffe3d9;
    margin: 0 4px;
    transition: 0.3s;
    border-radius: 50px;
}

.pagination a:hover {
    background-color: #f1f1f1;
}

.pagination a.active {
    background-color: #b34e2c;
    color: #ffe3d9;
    border-color: black;
}

/* ========== تنظیم هدر برای موبایل ========== */
@media (max-width: 768px) {
    .header-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        gap: 8px;
        flex-wrap: nowrap;
        position: relative;
    }

    /* لوگو - سمت راست */
    .logo-area {
        order: 2;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .logo-img {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    /* دکمه همبرگری - سمت چپ */
    .nav-toggle {
        display: block;
        order: 0;
        font-size: 26px;
        padding: 4px 8px;
        background: none;
        border: none;
        cursor: pointer;
        color: #c05a3a;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: 0.2s;
    }

    .nav-toggle:hover {
        background: #fff5ef;
    }

    /* سبد خرید - سمت راست کنار لوگو */
    .cart-badge {
        order: 3;
        padding: 5px 12px;
        font-size: 0.8rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 4px;
        background: #f3e1d6;
        border-radius: 50px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
    }

    .cart-badge:hover {
        background: #e7d7cc;
    }

    .cart-badge span {
        font-size: 0.8rem;
    }

    /* سرچ بار - در ردیف اول بین منو و لوگو */
    .search-wrapper {
        order: 1;
        flex: 1;
        max-width: 100%;
        margin: 0;
        min-width: 60px;
        position: relative;
    }

    .search-input {
        width: 100%;
        padding: 8px 36px 8px 12px;
        border: 1.5px solid #f0dcd0;
        border-radius: 50px;
        font-size: 0.8rem;
        font-family: 'Estedad', sans-serif;
        background: #fefaf8;
        transition: all 0.3s ease;
        color: #4a2c22;
        height: 38px;
    }

    .search-input:focus {
        outline: none;
        border-color: #e2876b;
        background: white;
        box-shadow: 0 0 0 3px rgba(226, 124, 92, 0.1);
    }

    .search-input::placeholder {
        color: #bda89a;
        font-size: 0.75rem;
    }

    .search-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 0.95rem;
        cursor: pointer;
        color: #c05a3a;
        transition: 0.2s;
        padding: 0;
    }

    .search-btn:hover {
        color: #e2876b;
    }

    .search-results {
        position: absolute;
        top: 110%;
        left: 0;
        right: 0;
        background: white;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        max-height: 250px;
        overflow-y: auto;
        z-index: 1000;
        display: none;
        border: 1px solid #ffe0d4;
    }

    /* منو - زیر همه چیز، به صورت تمام عرض */
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 6px;
        padding: 14px 0 8px;
        border-top: 1px solid #ffe0d4;
        margin-top: 10px;
        order: 4;
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 50;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-menu a {
        display: block;
        padding: 10px 16px;
        border-radius: 12px;
        transition: 0.2s;
        white-space: normal;
        font-size: 0.9rem;
        text-decoration: none;
        color: #5c3b2c;
        font-weight: 500;
    }

    .nav-menu a:hover {
        background: #fff5ef;
        color: #e2876b;
    }
}

/* ========== برای موبایل‌های خیلی کوچک ========== */
@media (max-width: 480px) {
    .header-flex {
        padding: 6px 0;
        gap: 4px;
    }

    .logo-img {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .nav-toggle {
        font-size: 22px;
        width: 34px;
        height: 34px;
        padding: 2px 4px;
    }

    .search-input {
        padding: 6px 30px 6px 10px;
        font-size: 0.7rem;
        height: 32px;
    }

    .search-btn {
        right: 8px;
        font-size: 0.8rem;
    }

    .cart-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
        gap: 3px;
    }

    .cart-badge span {
        font-size: 0.7rem;
    }

    .nav-menu a {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* ========== اسلایدر محصولات محبوب (همه سایزها) ========== */
.products-section .products-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    padding: 10px 4px 25px 4px;
    margin: 20px 0 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* اسکرول بار */
.products-section .products-grid::-webkit-scrollbar {
    height: 8px;
}

.products-section .products-grid::-webkit-scrollbar-track {
    background: #f5e6de;
    border-radius: 10px;
}

.products-section .products-grid::-webkit-scrollbar-thumb {
    background: #e27c5c;
    border-radius: 10px;
    transition: 0.2s;
}

.products-section .products-grid::-webkit-scrollbar-thumb:hover {
    background: #c86340;
}

.products-section .product-card {
    flex: 0 0 260px;
    min-width: 260px;
    scroll-snap-align: start;
    margin: 0;
    transition: all 0.3s ease;
}

.products-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(193, 89, 49, 0.1);
}

.products-section .product-card .product-img {
    padding: 0;
    font-size: 55px;
}

.products-section .product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-section .product-card .product-info {
    padding: 16px;
}

.products-section .product-card .product-info a {
    text-decoration: none;
}

.products-section .product-card .product-info h3 {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4a2c22;
}

.products-section .product-card .product-info p {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-section .product-card .price {
    font-size: 1.2rem;
}

.products-section .product-card .add-to-cart-btn {
    font-size: 0.85rem;
    padding: 9px;
}

/* ========== فلش‌های اسکرول ========== */
.products-section {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid #ffded0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    color: #c05a3a;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.products-section:hover .scroll-btn {
    opacity: 1;
    pointer-events: auto;
}

.scroll-btn:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
    color: #e2876b;
}

.scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-btn-left {
    left: -5px;
}

.scroll-btn-right {
    right: -5px;
}

.scroll-btn.show-mobile {
    display: none;
}

/* ========== نشانگر اسکرول ========== */
.scroll-indicator {
    display: none;
    text-align: center;
    font-size: 0.75rem;
    color: #bda89a;
    margin-top: -5px;
    margin-bottom: 15px;
}

.scroll-indicator span {
    animation: bounceArrow 1.5s infinite;
    display: inline-block;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-8px);
    }
}

/* ========== ریسپانسیو برای موبایل ========== */
@media (max-width: 992px) {
    .products-section .product-card {
        flex: 0 0 230px;
        min-width: 230px;
    }
}

@media (max-width: 768px) {
    .products-section .product-card {
        flex: 0 0 200px;
        min-width: 200px;
    }

    .products-section .product-card .product-img {
        padding: 0;
        font-size: 45px;
    }

    .products-section .product-card .product-info {
        padding: 12px;
    }

    .products-section .product-card .product-info h3 {
        font-size: 0.95rem;
    }

    .products-section .product-card .price {
        font-size: 1.05rem;
    }

    .scroll-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .scroll-btn-left {
        left: -2px;
    }

    .scroll-btn-right {
        right: -2px;
    }

    .scroll-indicator {
        display: block;
    }

    .products-section .products-grid::-webkit-scrollbar {
        height: 5px;
    }
}

@media (max-width: 480px) {
    .products-section .product-card {
        flex: 0 0 170px;
        min-width: 170px;
    }

    .products-section .product-card .product-img {
        padding: 0;
        font-size: 38px;
    }

    .products-section .product-card .product-info {
        padding: 10px;
    }

    .products-section .product-card .product-info h3 {
        font-size: 0.85rem;
    }

    .products-section .product-card .product-info p {
        font-size: 0.7rem;
    }

    .products-section .product-card .price {
        font-size: 0.9rem;
    }

    .products-section .product-card .add-to-cart-btn {
        font-size: 0.7rem;
        padding: 6px;
    }

    .scroll-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

/* ========== نمایش فلش‌ها در موبایل به صورت دائم ========== */
@media (max-width: 768px) {
    .scroll-btn {
        opacity: 1;
        pointer-events: auto;
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.9);
    }

    .scroll-btn-left {
        left: 2px;
    }

    .scroll-btn-right {
        right: 2px;
    }

    .products-section:hover .scroll-btn {
        opacity: 1;
    }
}

/* ========== صفحه محصولات - موبایل ========== */
@media (max-width: 768px) {
    /* صفحه محصولات - نمایش عمودی */
    .products-page .products-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin: 20px 0;
    }

    .products-page .product-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        border-radius: 20px;
        padding: 0;
        overflow: hidden;
        min-height: 120px;
        flex: 0 0 auto;
        width: 100%;
        cursor: pointer;
        border: 1px solid #ffded0;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
        transition: all 0.3s ease;
    }

    .products-page .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(193, 89, 49, 0.08);
    }

    /* عکس محصول - سمت راست */
    .products-page .product-card .product-img {
        flex: 0 0 110px;
        min-width: 110px;
        background: #fff3ec;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 50px;
        padding: 0;
        border-radius: 20px 0 0 20px;
        margin: 0;
    }

    /* اطلاعات محصول - سمت چپ */
    .products-page .product-card .product-info {
        flex: 1;
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .products-page .product-card .product-info h3 {
        font-size: 0.95rem;
        margin-bottom: 2px;
        color: #4a2c22;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .products-page .product-card .product-info p {
        font-size: 0.7rem;
        color: #7a5a4a;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .products-page .product-card .price {
        font-size: 0.95rem;
        margin: 2px 0;
        color: #c25d3a;
        font-weight: 800;
    }

    .products-page .product-card .add-to-cart-btn {
        width: 100%;
        padding: 6px 10px;
        font-size: 0.7rem;
        border-radius: 30px;
        margin-top: 2px;
        background: #ffe3d9;
        color: #b34e2c;
        border: none;
        cursor: pointer;
        transition: 0.2s;
        font-family: 'Estedad', sans-serif;
        font-weight: 600;
    }

    .products-page .product-card .add-to-cart-btn:hover {
        background: #f7cfc0;
    }
}

/* ========== موبایل خیلی کوچک ========== */
@media (max-width: 480px) {
    .products-page .product-card .product-img {
        flex: 0 0 90px;
        min-width: 90px;
        font-size: 38px;
        padding: 0px;
    }

    .products-page .product-card .product-info {
        padding: 10px 12px;
    }

    .products-page .product-card .product-info h3 {
        font-size: 0.85rem;
    }

    .products-page .product-card .product-info p {
        font-size: 0.65rem;
    }

    .products-page .product-card .price {
        font-size: 0.85rem;
    }

    .products-page .product-card .add-to-cart-btn {
        font-size: 0.65rem;
        padding: 5px 8px;
    }
}

/* ========== تبلت (بین موبایل و دسکتاپ) ========== */
@media (min-width: 769px) and (max-width: 992px) {
    .products-page .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ========== دسکتاپ - حالت عادی ========== */
@media (min-width: 993px) {
    .products-page .products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 25px;
    }

    .products-page .product-card {
        display: block;
        border-radius: 24px;
        overflow: hidden;
        background: white;
        border: 1px solid #ffded0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .products-page .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 30px rgba(193, 89, 49, 0.1);
    }

    .products-page .product-card .product-img {
        background: #fff3ec;
        text-align: center;
        padding: 0;
        font-size: 60px;
        border-radius: 0;
    }

    .products-page .product-card .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        -moz-border-radius-topleft: 24px;
        -moz-border-radius-topright: 24px;
    }

    .products-page .product-card .product-info {
        padding: 20px;
    }

    .products-page .product-card .product-info h3 {
        font-size: 1.1rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .products-page .product-card .product-info p {
        font-size: 0.85rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .products-page .product-card .price {
        font-size: 1.3rem;
    }

    .products-page .product-card .add-to-cart-btn {
        font-size: 0.9rem;
        padding: 10px;
    }
}

/* ========== تنظیمات فیلتر در موبایل ========== */
@media (max-width: 768px) {
    .products-page .filter-section {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 12px;
        border-radius: 20px;
    }

    .products-page .filter-group {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .products-page .filter-select {
        width: 100%;
        min-width: unset;
        padding: 10px 35px 10px 14px;
        font-size: 0.8rem;
    }

    .products-page .filter-search-box input {
        width: 100%;
        padding: 10px 14px 10px 40px;
        font-size: 0.8rem;
    }

    .products-page .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .products-page .filter-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
        flex: 1;
        text-align: center;
        min-width: 50px;
    }

    .products-page .filter-result-count {
        font-size: 0.75rem;
        text-align: center;
    }
}

/* ========== استایل مقاله‌ها ========== */
.blog-header {
    text-align: center;
    margin: 30px 0 20px;
}

.blog-subtitle {
    color: #7a5a4a;
    font-size: 1rem;
    margin-top: 8px;
}

.blog-categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 25px 0 35px;
}

.blog-cat-btn {
    padding: 8px 20px;
    border: 1.5px solid #f0dcd0;
    border-radius: 50px;
    background: white;
    cursor: pointer;
    font-family: 'Estedad', sans-serif;
    font-size: 0.85rem;
    color: #7a5a4a;
    transition: all 0.3s ease;
}

.blog-cat-btn:hover {
    border-color: #e2876b;
    color: #c05a3a;
}

.blog-cat-btn.active {
    background: #e27c5c;
    color: white;
    border-color: #e27c5c;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #ffded0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(193, 89, 49, 0.08);
}

.blog-image {
    background: linear-gradient(135deg, #fff3ec, #fce8dd);
    text-align: center;
    padding: 0;
    font-size: 70px;
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.blog-image .blog-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    color: #c05a3a;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.blog-content {
    padding: 25px 28px 28px;
}

.blog-category {
    display: inline-block;
    background: #ffe3d9;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    color: #b34e2c;
    margin-bottom: 12px;
    font-weight: 600;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #5d3826;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    color: #7a5a4a;
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0e2d4;
    font-size: 0.8rem;
    color: #bda89a;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-meta .blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-meta .blog-author .avatar {
    width: 28px;
    height: 28px;
    background: #ffe3d9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #b34e2c;
}

.read-more {
    color: #e27c5c;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover {
    color: #c86340;
    transform: translateX(-4px);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.blog-tags .tag {
    background: #f5ede8;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    color: #7a5a4a;
}

/* ========== صفحه جزئیات مقاله ========== */
.blog-detail-wrapper {
    margin: 30px 0 50px;
}

.blog-breadcrumb {
    font-size: 0.85rem;
    color: #bda89a;
    margin-bottom: 30px;
}

.blog-breadcrumb a {
    color: #bda89a;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: #e2876b;
}

.blog-detail-header {
    margin-bottom: 30px;
}

.blog-detail-category {
    display: inline-block;
    background: #ffe3d9;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #b34e2c;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-detail-title {
    font-size: 2.2rem;
    color: #5d3826;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #bda89a;
    font-size: 0.85rem;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0e2d4;
}

.blog-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-detail-meta .avatar {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #ffe3d9;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
}

.blog-detail-image {
    background: linear-gradient(135deg, #fff3ec, #fce8dd);
    border-radius: 28px;
    text-align: center;
    padding: 0px 0px;
    font-size: 90px;
    margin: 25px 0 35px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-detail-image img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
    border-radius: 28px;
}

.blog-detail-content {
    line-height: 1.9;
    color: #4a2c22;
}

.blog-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.blog-detail-content th,
.blog-detail-content td {
    padding: 14px 18px;
    border: 1px solid #e5e5e5;
}

.blog-detail-content th {
    background: #c97b63;
    color: #fff;
}

.blog-detail-content tr:nth-child(even) {
    background: #fafafa;
}

.blog-detail-content {
    overflow-x: auto;
}

.blog-detail-content table {
    min-width: 600px;
}

.blog-detail-content h2 {
    font-size: 1.6rem;
    color: #5d3826;
    margin: 35px 0 20px;
}

.blog-detail-content h3 {
    font-size: 1.2rem;
    color: #5d3826;
    margin: 25px 0 15px;
}

.blog-detail-content p {
    margin-bottom: 18px;
    font-size: 1rem;
}

.blog-detail-content ul {
    margin: 20px 0 25px;
    padding-right: 25px;
}

.blog-detail-content ul li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.blog-detail-tip {
    background: #fff9f5;
    border-radius: 24px;
    padding: 25px 30px;
    margin: 30px 0;
    border-right: 4px solid #e27c5c;
}

.blog-detail-tip h4 {
    color: #e27c5c;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.blog-detail-tip p {
    margin: 0;
}

.blog-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 25px 0;
    border-top: 1px solid #f0e2d4;
    border-bottom: 1px solid #f0e2d4;
    margin: 30px 0;
}

.blog-detail-tags span {
    font-weight: 600;
    color: #5d3826;
}

.blog-detail-tags .tag {
    background: #f5ede8;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: #7a5a4a;
    text-decoration: none;
    transition: 0.2s;
}

.blog-detail-tags .tag:hover {
    background: #ffe3d9;
    color: #b34e2c;
}

.blog-detail-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.blog-detail-share span {
    font-weight: 600;
    color: #5d3826;
}

.blog-detail-share .share-link {
    font-size: 1.3rem;
    text-decoration: none;
    opacity: 0.6;
    transition: 0.2s;
}

.blog-detail-share .share-link:hover {
    opacity: 1;
}

.blog-author-box {
    display: flex;
    gap: 20px;
    background: #fff9f5;
    border-radius: 24px;
    padding: 25px 30px;
    margin: 30px 0;
    align-items: flex-start;
}

.blog-author-box .author-avatar {
    width: 60px;
    height: 60px;
    background: #ffe3d9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.blog-author-box .author-info h4 {
    color: #5d3826;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.blog-author-box .author-info p {
    color: #7a5a4a;
    font-size: 0.9rem;
    margin: 0;
}

.blog-comments-section {
    margin: 40px 0;
}

.blog-comments-section h3 {
    font-size: 1.3rem;
    color: #5d3826;
    margin-bottom: 25px;
}

.blog-comment {
    display: flex;
    gap: 15px;
    background: #fff9f5;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
}

.blog-comment .comment-avatar {
    width: 40px;
    height: 40px;
    background: #ffe3d9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.blog-comment .comment-body {
    flex: 1;
}

.blog-comment .comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.blog-comment .comment-header strong {
    color: #5d3826;
}

.blog-comment .comment-header .comment-date {
    font-size: 0.75rem;
    color: #bda89a;
}

.blog-comment .comment-body p {
    margin: 0;
    color: #4a2c22;
    line-height: 1.6;
}

.blog-add-comment {
    background: white;
    border-radius: 24px;
    padding: 25px;
    margin-top: 25px;
    border: 1px solid #ffded0;
}

.blog-add-comment h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #5d3826;
}

.blog-add-comment textarea {
    width: 100%;
    padding: 15px;
    border: 1.5px solid #f0dcd0;
    border-radius: 20px;
    font-family: 'Estedad', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    background: #fefaf8;
    transition: all 0.3s ease;
}

.blog-add-comment textarea:focus {
    outline: none;
    border-color: #e2876b;
    box-shadow: 0 0 0 3px rgba(226, 124, 92, 0.1);
}

.blog-add-comment .btn-light {
    margin-top: 15px;
    padding: 10px 30px;
}

.related-blogs {
    margin: 50px 0;
}

/* ========== ریسپانسیو مقاله‌ها ========== */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-image {
        padding: 0;
        font-size: 50px;
        min-height: 120px;
    }

    .blog-content {
        padding: 18px 20px 22px;
    }

    .blog-title {
        font-size: 1.1rem;
    }

    .blog-excerpt {
        font-size: 0.85rem;
    }

    .blog-detail-title {
        font-size: 1.6rem;
    }

    .blog-detail-meta {
        gap: 12px;
        font-size: 0.75rem;
    }

    .blog-detail-image {
        padding: 0;
        font-size: 60px;
        min-height: 150px;
    }

    .blog-detail-content h2 {
        font-size: 1.3rem;
    }

    .blog-detail-content h3 {
        font-size: 1.1rem;
    }

    .blog-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .blog-comment {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-categories-filter {
        gap: 6px;
    }

    .blog-cat-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .blog-image {
        padding: 0;
        font-size: 40px;
        min-height: 100px;
    }

    .blog-content {
        padding: 14px 16px 18px;
    }

    .blog-title {
        font-size: 1rem;
    }

    .blog-excerpt {
        font-size: 0.8rem;
    }

    .blog-meta {
        font-size: 0.7rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-detail-title {
        font-size: 1.3rem;
    }

    .blog-detail-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-direction: column;
    }

    .blog-detail-image {
        padding: 0;
        font-size: 50px;
        min-height: 120px;
    }

    .blog-detail-content {
        font-size: 0.9rem;
    }

    .blog-detail-content h2 {
        font-size: 1.1rem;
    }

    .blog-detail-tip {
        padding: 18px 20px;
    }

    .blog-author-box {
        padding: 18px 20px;
    }

    .blog-add-comment {
        padding: 18px;
    }
}

/* ========== استایل ریپلای به کامنت‌ها ========== */
.comment-item,
.blog-comment {
    position: relative;
}

.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.comment-actions button {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: #bda89a;
    cursor: pointer;
    font-family: 'Estedad', sans-serif;
    transition: 0.2s;
    padding: 0;
}

.comment-actions button:hover {
    color: #e27c5c;
}

.comment-actions .reply-btn {
    color: #e27c5c;
    font-weight: 600;
}

.comment-actions .reply-btn:hover {
    color: #c86340;
}

.reply-form-container {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #fff9f5;
    border-radius: 16px;
    border-right: 3px solid #e27c5c;
}

.reply-form-container.active {
    display: block;
}

.reply-form-container textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #f0dcd0;
    border-radius: 16px;
    font-family: 'Estedad', sans-serif;
    font-size: 0.85rem;
    resize: vertical;
    background: white;
    transition: all 0.3s ease;
}

.reply-form-container textarea:focus {
    outline: none;
    border-color: #e2876b;
    box-shadow: 0 0 0 3px rgba(226, 124, 92, 0.1);
}

.reply-form-container .reply-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.reply-form-container .reply-actions button {
    padding: 6px 20px;
    border-radius: 50px;
    font-family: 'Estedad', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.reply-form-container .reply-actions .submit-reply {
    background: #e27c5c;
    color: white;
    border: none;
}

.reply-form-container .reply-actions .submit-reply:hover {
    background: #c86340;
}

.reply-form-container .reply-actions .cancel-reply {
    background: #f0e2d4;
    color: #7a5a4a;
    border: none;
}

.reply-form-container .reply-actions .cancel-reply:hover {
    background: #e0d0c0;
}

/* استایل ریپلای‌ها */
.reply-item {
    margin-top: 15px;
    padding: 15px 18px;
    background: white;
    border-radius: 16px;
    border-right: 3px solid #ffb8a0;
    margin-right: 45px;
}

.reply-item .reply-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.reply-item .reply-header strong {
    color: #5d3826;
    font-size: 0.9rem;
}

.reply-item .reply-header .reply-date {
    font-size: 0.65rem;
    color: #bda89a;
}

.reply-item .reply-text {
    font-size: 0.85rem;
    color: #4a2c22;
    line-height: 1.6;
}

.reply-item .reply-to {
    font-size: 0.7rem;
    color: #bda89a;
    margin-bottom: 4px;
}

.reply-item .reply-to span {
    color: #e27c5c;
}

/* استایل ریپلای در کامنت‌های مقاله */
.blog-comment .reply-item {
    margin-right: 35px;
    background: #fefaf8;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 768px) {
    .reply-item {
        margin-right: 20px;
        padding: 0;
    }

    .blog-comment .reply-item {
        margin-right: 15px;
    }

    .comment-actions {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .reply-item {
        margin-right: 10px;
        padding: 0;
    }

    .reply-form-container {
        padding: 12px;
    }

    .reply-form-container .reply-actions {
        flex-wrap: wrap;
    }

    .reply-form-container .reply-actions button {
        flex: 1;
        text-align: center;
    }
}

/* ========== استایل صفحه پروفایل ========== */
.profile-container {
    max-width: 700px;
    margin: 40px auto;
    background: white;
    border-radius: 32px;
    padding: 40px;
    border: 1px solid #ffded0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

.profile-header {
    text-align: center;
    margin-bottom: 35px;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffded0;
}

.profile-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe0d4, #ffcdb5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    border: 3px solid #ffded0;
}

.profile-avatar .avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: #e27c5c;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.profile-avatar .avatar-upload-btn:hover {
    background: #c86340;
}

.profile-avatar .avatar-upload-btn input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.profile-header h2 {
    font-size: 1.5rem;
    color: #5d3826;
    margin-bottom: 5px;
}

.profile-header p {
    color: #bda89a;
    font-size: 0.9rem;
}

.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0e2d4;
}

.profile-tab {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Estedad', sans-serif;
    cursor: pointer;
    color: #bda89a;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.profile-tab:hover {
    color: #7a5a4a;
}

.profile-tab.active {
    color: #e27c5c;
    border-bottom-color: #e27c5c;
}

.profile-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.profile-tab-content.active {
    display: block;
}

.profile-form .form-group {
    margin-bottom: 22px;
}

.profile-form .form-group label {
    display: block;
    font-weight: 600;
    color: #5d3826;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.profile-form .form-group input,
.profile-form .form-group select,
.profile-form .form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1.5px solid #f0dcd0;
    border-radius: 50px;
    font-family: 'Estedad', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fefaf8;
}

.profile-form .form-group textarea {
    border-radius: 20px;
    resize: vertical;
    min-height: 100px;
}

.profile-form .form-group input:focus,
.profile-form .form-group select:focus,
.profile-form .form-group textarea:focus {
    outline: none;
    border-color: #e2876b;
    background: white;
    box-shadow: 0 0 0 3px rgba(226, 124, 92, 0.1);
}

.profile-form .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-form .form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.profile-form .btn {
    padding: 12px 40px;
    font-size: 1rem;
}

.profile-form .btn-light {
    padding: 12px 40px;
    font-size: 1rem;
}

.profile-form .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.profile-success {
    display: none;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.profile-success.show {
    display: block;
}

.profile-error {
    display: none;
    background: #ffebee;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.profile-error.show {
    display: block;
}

/* استایل فرم تغییر رمز عبور */
.password-requirements {
    font-size: 0.8rem;
    color: #bda89a;
    margin-top: 8px;
    padding: 10px 16px;
    background: #fff9f5;
    border-radius: 16px;
}

.password-requirements ul {
    margin: 5px 0 0 0;
    padding-right: 20px;
}

.password-requirements ul li {
    margin-bottom: 3px;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 768px) {
    .profile-container {
        padding: 25px;
        margin: 30px 15px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-avatar .avatar-placeholder {
        font-size: 40px;
    }

    .profile-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
        flex: 1;
        text-align: center;
    }

    .profile-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .profile-form .form-actions {
        flex-direction: column;
    }

    .profile-form .form-actions button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .profile-container {
        padding: 18px;
        margin: 20px 10px;
        border-radius: 24px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-avatar .avatar-placeholder {
        font-size: 32px;
    }

    .profile-avatar .avatar-upload-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .profile-header h2 {
        font-size: 1.2rem;
    }
}

/* محل نمایش */
.toast-container {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
}

/* خود Toast */
.toast {
    min-width: 380px;
    max-width: 500px;

    background: white;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px 22px;

    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);

    animation: toastIn .4s ease;

    transition: all .4s ease;
}

/* رنگ موفقیت */

.toast-success {
    border-right: 5px solid #28a745;
}

/* رنگ خطا */

.toast-error {
    border-right: 5px solid #dc3545;
}

.toast-warning {
    border-right: 5px solid #ffc107;
}

.toast-icon {
    font-size: 22px;
}

.toast-message {

    flex: 1;

    font-size: 15px;

    color: #333;

    font-weight: 500;
}

.toast-close {

    background: none;

    border: none;

    font-size: 24px;

    cursor: pointer;

    color: #777;
}

.toast-close:hover {

    color: #000;
}

@keyframes toastIn {

    from {

        opacity: 0;

        transform: translateY(-30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}