.chonin-modern-menu {
    font-family: 'Vazir', Tahoma, sans-serif;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 15px;
}

.menu-title {
    text-align: center;
    font-size: 2.7rem;
    color: #2c2c2c;
    margin-bottom: 40px;
}

/* ==================== MODERN TABS ==================== */
.menu-categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 45px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.menu-categories::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 10px 22px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
    transition: all 0.4s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
}

.category-tab:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
    color: #333;
    transform: translateY(-3px);
}

.category-tab.active {
    background: #345173;
    color: white;
    border-color: #345173;
    box-shadow: 0 8px 20px rgba(52, 81, 115, 0.25);
    transform: translateY(-4px);
}

/* ==================== PRODUCT CARDS ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image {
    height: 220px;                    /* ارتفاع ثابت */
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;              /* تغییر مهم: contain به جای cover */
    background: #f9f9f9;
}

.product-info {
    padding: 16px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 1.15rem;
    margin: 8px 0 10px;
    color: #2c2c2c;
}

.product-price {
    font-size: 1.45rem;
    color: #345173;
    font-weight: 700;
    margin-bottom: 14px;
}

.add-to-cart-btn {
    width: 100%;
    background: #345173;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background: #2a4866;
    transform: translateY(-2px);
}


/* ==================== MODERN CART PAGE ==================== */
.chonin-modern-cart {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 15px;
    font-family: 'Vazir', Tahoma, sans-serif;
}

.cart-title {
    text-align: center;
    font-size: 2.6rem;
    color: #2c2c2c;
    margin-bottom: 40px;
}

/* WooCommerce Cart Styling */
.woocommerce-cart-form {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.woocommerce table.shop_table {
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 18px 15px;
    vertical-align: middle;
}

.woocommerce table.shop_table img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
}

.woocommerce .product-remove a {
    color: #e74c3c;
    font-size: 1.4rem;
}

.chonin-modern-cart .woocommerce-cart-collaterals {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 16px;
    margin-top: 30px;
}

.chonin-modern-cart .wc-proceed-to-checkout a {
    background: #345173;
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s;
}

.chonin-modern-cart .wc-proceed-to-checkout a:hover {
    background: #2a4866;
    transform: translateY(-3px);
}

/* پهن‌تر کردن محصولات در سبد خرید */
.chonin-modern-cart .woocommerce table.shop_table td.product-thumbnail {
    width: 100px;
}

.chonin-modern-cart .woocommerce table.shop_table td.product-name {
    width: 35%;
}

.chonin-modern-cart .woocommerce table.shop_table td.product-price,
.chonin-modern-cart .woocommerce table.shop_table td.product-quantity,
.chonin-modern-cart .woocommerce table.shop_table td.product-subtotal {
    width: 15%;
}

/* بزرگ‌تر کردن عکس محصول در سبد */
.chonin-modern-cart .woocommerce table.shop_table img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}