/**
 * Cart Page - Kowsh Theme
 * صفحه سبدخرید - تم کوش
 * طراحی مینیمال، جذاب و پیشرفته
 */

/* ========================================
   WooCommerce Default Override - Force Override
======================================== */

/* Override WooCommerce default cart styles - Global - HIGHEST PRIORITY */
body.woocommerce-cart,
body.woocommerce-page.woocommerce-cart,
body.page-template-page-cart.woocommerce-cart {
    background: transparent !important;
}

/* Force remove all WooCommerce default cart table styles */
table.shop_table.cart,
table.shop_table.woocommerce-cart-form__contents,
.woocommerce-cart-form table,
.woocommerce table.cart {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    width: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide default WooCommerce cart table */
.woocommerce-cart .woocommerce-cart-form .shop_table.cart,
body.woocommerce-cart .woocommerce-cart-form .shop_table.cart,
.kowsh-cart .woocommerce-cart-form .shop_table.cart,
.kowsh-cart-page .woocommerce-cart-form .shop_table.cart {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Override WooCommerce default cart styles */
.woocommerce-cart .woocommerce-cart-form,
.kowsh-cart .woocommerce-cart-form,
.kowsh-cart-page .woocommerce-cart-form {
    margin-bottom: 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.woocommerce-cart .shop_table,
.kowsh-cart .shop_table,
.kowsh-cart-page .shop_table {
    border: none !important;
    border-collapse: separate !important;
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce-cart .shop_table th,
.woocommerce-cart .shop_table td,
.kowsh-cart .shop_table th,
.kowsh-cart .shop_table td,
.kowsh-cart-page .shop_table th,
.kowsh-cart-page .shop_table td {
    border: none !important;
    padding: 0 !important;
    vertical-align: top !important;
}

.woocommerce-cart .cart-collaterals,
.kowsh-cart .cart-collaterals,
.kowsh-cart-page .cart-collaterals {
    margin-top: 0 !important;
    width: auto !important;
}

/* Ensure our custom cart structure is visible */
.kowsh-cart__content {
    grid-column: 1;
    width: 100%;
}

.kowsh-cart__content .kowsh-cart__form {
    margin: 0;
}

/* ========================================
   Main Container
======================================== */

.kowsh-cart,
.kowsh-cart-page {
    min-height: 100vh;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 20, 24, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: 140px 0 80px;
    position: relative;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.kowsh-cart::before,
.kowsh-cart-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 20, 24, 0.1) 50%, transparent 100%);
}

.kowsh-cart__wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Cart Header
======================================== */

.kowsh-cart__header {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.kowsh-cart__header-image {
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
}

.kowsh-cart__featured-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.kowsh-cart__header-content {
    text-align: right;
}

.kowsh-cart__title {
    font-size: 42px;
    font-weight: 900;
    color: #0a0a0a;
    margin: 0 0 12px;
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.kowsh-cart__subtitle {
    font-size: 16px;
    color: #666666;
    margin: 0;
    font-weight: 500;
}

/* ========================================
   Page Content (Editable)
======================================== */

.kowsh-cart__page-content {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: 40px;
    background: #ffffff;
    border-radius: 32px;
    padding: 56px 48px;
    box-shadow: 
        0 4px 60px rgba(0, 0, 0, 0.04),
        0 2px 20px rgba(0, 0, 0, 0.02),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.kowsh-cart__page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 20, 24, 0.15) 20%,
        rgba(212, 20, 24, 0.25) 50%,
        rgba(212, 20, 24, 0.15) 80%,
        transparent 100%
    );
    border-radius: 32px 32px 0 0;
    opacity: 0.8;
}

.kowsh-cart__page-content::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 20, 24, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.6s ease;
}

.kowsh-cart__page-content:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 80px rgba(0, 0, 0, 0.06),
        0 4px 30px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(212, 20, 24, 0.08);
    border-color: rgba(212, 20, 24, 0.1);
}

.kowsh-cart__page-content:hover::after {
    transform: translate(20%, 20%);
}

/* Content Typography */
.kowsh-cart__page-content > *:first-child {
    margin-top: 0;
}

.kowsh-cart__page-content > *:last-child {
    margin-bottom: 0;
}

.kowsh-cart__page-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin: 0 0 20px;
    font-weight: 400;
    letter-spacing: -0.1px;
}

.kowsh-cart__page-content h1,
.kowsh-cart__page-content h2,
.kowsh-cart__page-content h3,
.kowsh-cart__page-content h4,
.kowsh-cart__page-content h5,
.kowsh-cart__page-content h6 {
    color: #0a0a0a;
    font-weight: 900;
    line-height: 1.3;
    margin: 32px 0 16px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 12px;
}

.kowsh-cart__page-content h1 {
    font-size: 36px;
    margin-top: 0;
}

.kowsh-cart__page-content h2 {
    font-size: 32px;
}

.kowsh-cart__page-content h3 {
    font-size: 28px;
}

.kowsh-cart__page-content h4 {
    font-size: 24px;
}

.kowsh-cart__page-content h5 {
    font-size: 20px;
}

.kowsh-cart__page-content h6 {
    font-size: 18px;
}

.kowsh-cart__page-content h2::after,
.kowsh-cart__page-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d41418, transparent);
    border-radius: 2px;
}

.kowsh-cart__page-content ul,
.kowsh-cart__page-content ol {
    margin: 20px 0;
    padding-right: 28px;
    line-height: 1.8;
}

.kowsh-cart__page-content ul li,
.kowsh-cart__page-content ol li {
    margin-bottom: 12px;
    color: #333333;
    font-size: 16px;
    position: relative;
}

.kowsh-cart__page-content ul li::marker {
    color: #d41418;
    font-weight: 700;
}

.kowsh-cart__page-content ul li::before {
    content: '→';
    position: absolute;
    right: -24px;
    color: #d41418;
    font-weight: 700;
    opacity: 0.6;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.kowsh-cart__page-content ul li:hover::before {
    transform: translateX(-4px);
    opacity: 1;
}

.kowsh-cart__page-content a {
    color: #d41418;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.kowsh-cart__page-content a:hover {
    color: #b01216;
    border-bottom-color: rgba(212, 20, 24, 0.3);
}

.kowsh-cart__page-content blockquote {
    margin: 24px 0;
    padding: 24px 32px;
    border-right: 4px solid #d41418;
    background: linear-gradient(90deg, rgba(212, 20, 24, 0.05) 0%, transparent 100%);
    border-radius: 12px;
    font-style: italic;
    color: #444444;
    position: relative;
    font-size: 17px;
    line-height: 1.7;
}

.kowsh-cart__page-content blockquote::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 48px;
    color: rgba(212, 20, 24, 0.15);
    font-family: serif;
    line-height: 1;
}

.kowsh-cart__page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 24px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.kowsh-cart__page-content img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.kowsh-cart__page-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.kowsh-cart__page-content table th,
.kowsh-cart__page-content table td {
    padding: 16px 20px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
}

.kowsh-cart__page-content table th {
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    font-weight: 700;
    color: #0a0a0a;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kowsh-cart__page-content table tr:last-child td {
    border-bottom: none;
}

.kowsh-cart__page-content table tr:hover {
    background: rgba(212, 20, 24, 0.02);
}

.kowsh-cart__page-content code {
    background: rgba(212, 20, 24, 0.08);
    color: #d41418;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.kowsh-cart__page-content pre {
    background: #f8f8f8;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid #e8e8e8;
    border-right: 3px solid #d41418;
}

.kowsh-cart__page-content pre code {
    background: transparent;
    color: #333333;
    padding: 0;
    font-weight: 400;
}

/* Video & Iframe */
.kowsh-cart__page-content iframe,
.kowsh-cart__page-content video,
.kowsh-cart__page-content embed {
    max-width: 100%;
    border-radius: 16px;
    margin: 24px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* WordPress Blocks Support */
.kowsh-cart__page-content .wp-block-group,
.kowsh-cart__page-content .wp-block-columns,
.kowsh-cart__page-content .wp-block-image {
    margin: 24px 0;
}

.kowsh-cart__page-content .wp-block-button {
    margin: 24px 0;
}

.kowsh-cart__page-content .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #d41418 0%, #ff4444 100%);
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(212, 20, 24, 0.25);
}

.kowsh-cart__page-content .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 20, 24, 0.35);
}

/* Separator */
.kowsh-cart__page-content hr,
.kowsh-cart__page-content .wp-block-separator {
    margin: 32px 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 20, 24, 0.2), transparent);
    border-radius: 2px;
}

/* Quotes */
.kowsh-cart__page-content .wp-block-quote {
    margin: 24px 0;
    padding: 24px 32px;
    border-right: 4px solid #d41418;
    background: linear-gradient(90deg, rgba(212, 20, 24, 0.05) 0%, transparent 100%);
    border-radius: 12px;
    font-style: italic;
    color: #444444;
    position: relative;
    font-size: 17px;
    line-height: 1.7;
}

/* Lists Enhanced */
.kowsh-cart__page-content .wp-block-list {
    margin: 20px 0;
    padding-right: 28px;
}

.kowsh-cart__page-content .wp-block-list li {
    margin-bottom: 12px;
    color: #333333;
    font-size: 16px;
    line-height: 1.8;
    position: relative;
}

/* Gutenberg Blocks Spacing */
.kowsh-cart__page-content .wp-block-group__inner-container > *:first-child {
    margin-top: 0;
}

.kowsh-cart__page-content .wp-block-group__inner-container > *:last-child {
    margin-bottom: 0;
}

/* Additional Content Enhancements */
.kowsh-cart__page-content strong,
.kowsh-cart__page-content b {
    font-weight: 700;
    color: #0a0a0a;
}

.kowsh-cart__page-content em,
.kowsh-cart__page-content i {
    font-style: italic;
    color: #444444;
}

.kowsh-cart__page-content mark {
    background: linear-gradient(120deg, rgba(212, 20, 24, 0.15) 0%, rgba(212, 20, 24, 0.08) 100%);
    color: #d41418;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.kowsh-cart__page-content del {
    text-decoration: line-through;
    opacity: 0.6;
    color: #999999;
}

.kowsh-cart__page-content ins {
    text-decoration: none;
    background: rgba(212, 20, 24, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    color: #d41418;
    font-weight: 600;
}

/* Gallery */
.kowsh-cart__page-content .wp-block-gallery {
    margin: 24px 0;
    gap: 16px;
}

.kowsh-cart__page-content .wp-block-gallery .wp-block-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kowsh-cart__page-content .wp-block-gallery .wp-block-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Columns */
.kowsh-cart__page-content .wp-block-columns {
    gap: 32px;
    margin: 32px 0;
}

.kowsh-cart__page-content .wp-block-column {
    margin: 0;
}

/* Cover Block */
.kowsh-cart__page-content .wp-block-cover {
    border-radius: 16px;
    margin: 24px 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Media Text */
.kowsh-cart__page-content .wp-block-media-text {
    border-radius: 16px;
    overflow: hidden;
    margin: 24px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Shortcode Variant */
.kowsh-cart__page-content--shortcode {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

.kowsh-cart__page-content--shortcode::before,
.kowsh-cart__page-content--shortcode::after {
    display: none;
}

.kowsh-cart__page-content--shortcode:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* Enhanced scrollbar for page content (if needed) */
.kowsh-cart__page-content::-webkit-scrollbar {
    width: 8px;
}

.kowsh-cart__page-content::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.kowsh-cart__page-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d41418, #ff4444);
    border-radius: 4px;
}

.kowsh-cart__page-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b01216, #d41418);
}

/* Print Styles */
@media print {
    .kowsh-cart__page-content {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .kowsh-cart__page-content::before,
    .kowsh-cart__page-content::after {
        display: none;
    }
}

/* ========================================
   WooCommerce Blocks - Cart Items Table
   استایل‌های واکنش‌گرا برای جدول سبدخرید Blocks
======================================== */

/* Base styles for cart items table */
table.wc-block-cart-items {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    background: transparent !important;
}

.wc-block-cart-items__row {
    display: table-row !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

.wc-block-cart-items__row:last-child {
    border-bottom: none !important;
}

.wc-block-cart-items__row:hover {
    background: rgba(212, 20, 24, 0.02) !important;
}

/* Medium screens - Tablet */
.is-medium table.wc-block-cart-items .wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: 120px 1fr auto !important;
    gap: 20px !important;
    padding: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    align-items: start !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.is-medium table.wc-block-cart-items .wc-block-cart-items__row:last-child {
    margin-bottom: 0 !important;
}

/* Mobile screens */
.is-mobile table.wc-block-cart-items .wc-block-cart-items__row,
.is-small table.wc-block-cart-items .wc-block-cart-items__row {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    position: relative !important;
}

.is-mobile table.wc-block-cart-items .wc-block-cart-items__row:last-child,
.is-small table.wc-block-cart-items .wc-block-cart-items__row:last-child {
    margin-bottom: 0 !important;
}

/* Cart item image - Responsive */
.wc-block-cart-items__image {
    width: 100% !important;
    max-width: 120px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    margin: 0 auto !important;
}

.is-medium .wc-block-cart-items__image {
    max-width: 120px !important;
}

.is-mobile .wc-block-cart-items__image,
.is-small .wc-block-cart-items__image {
    max-width: 100px !important;
    margin: 0 auto 12px auto !important;
}

/* Cart item name - Responsive */
.wc-block-cart-items__name {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0a0a0a !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.is-medium .wc-block-cart-items__name {
    font-size: 17px !important;
}

.is-mobile .wc-block-cart-items__name,
.is-small .wc-block-cart-items__name {
    font-size: 16px !important;
    text-align: center !important;
}

/* Cart item price - Responsive */
.wc-block-cart-items__price {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #d41418 !important;
    margin: 12px 0 !important;
}

.is-medium .wc-block-cart-items__price {
    font-size: 18px !important;
    text-align: left !important;
}

.is-mobile .wc-block-cart-items__price,
.is-small .wc-block-cart-items__price {
    font-size: 18px !important;
    text-align: center !important;
}

/* Cart item quantity - Responsive */
.wc-block-cart-items__quantity {
    width: 100% !important;
    max-width: 180px !important;
    margin: 0 auto !important;
}

.is-medium .wc-block-cart-items__quantity {
    max-width: 160px !important;
    margin: 0 !important;
}

.is-mobile .wc-block-cart-items__quantity,
.is-small .wc-block-cart-items__quantity {
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* Cart item subtotal - Responsive */
.wc-block-cart-items__total-price {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #0a0a0a !important;
    text-align: center !important;
    padding-top: 16px !important;
    border-top: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    margin-top: 12px !important;
}

.is-medium .wc-block-cart-items__total-price {
    font-size: 20px !important;
    text-align: left !important;
    padding-top: 0 !important;
    border-top: none !important;
    margin-top: 0 !important;
}

.is-mobile .wc-block-cart-items__total-price,
.is-small .wc-block-cart-items__total-price {
    font-size: 18px !important;
    text-align: center !important;
}

/* Quantity input - Responsive */
.wc-block-cart-items__quantity .quantity {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    width: 100% !important;
    max-width: 180px !important;
}

.wc-block-cart-items__quantity .qty {
    flex: 1 !important;
    min-width: 50px !important;
    height: 44px !important;
    padding: 0 8px !important;
    border: none !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0a0a0a !important;
    background: transparent !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.wc-block-cart-items__quantity .qty::-webkit-outer-spin-button,
.wc-block-cart-items__quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Remove button - Responsive */
.wc-block-cart-items__remove-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    background: #f5f5f5 !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 10px !important;
    color: #e53e3e !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 12px auto 0 auto !important;
}

.is-medium .wc-block-cart-items__remove-button {
    margin: 0 !important;
}

.is-mobile .wc-block-cart-items__remove-button,
.is-small .wc-block-cart-items__remove-button {
    width: 100% !important;
    max-width: 200px !important;
    margin: 12px auto 0 auto !important;
}

.wc-block-cart-items__remove-button:hover {
    background: #fee !important;
    border-color: #e53e3e !important;
    color: #c53030 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2) !important;
}

/* Additional responsive fixes for table cells */
.is-medium table.wc-block-cart-items td,
.is-medium table.wc-block-cart-items th {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    text-align: right !important;
}

.is-mobile table.wc-block-cart-items td,
.is-mobile table.wc-block-cart-items th,
.is-small table.wc-block-cart-items td,
.is-small table.wc-block-cart-items th {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Table wrapper - Prevent overflow */
table.wc-block-cart-items {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    display: table !important;
    border-collapse: collapse !important;
}

.is-medium table.wc-block-cart-items,
.is-mobile table.wc-block-cart-items,
.is-small table.wc-block-cart-items {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* Ensure wrapper doesn't overflow */
.wc-block-cart-items,
.wc-block-filled-cart__contents {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Fix for parent containers */
.woocommerce-cart .wc-block-cart-items,
.kowsh-cart .wc-block-cart-items,
.kowsh-cart-page .wc-block-cart-items {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Responsive breakpoints */
@media (max-width: 991px) {
    .is-medium table.wc-block-cart-items .wc-block-cart-items__row {
        grid-template-columns: 100px 1fr !important;
        gap: 16px !important;
        padding: 16px !important;
    }
    
    .wc-block-cart-items__image {
        max-width: 100px !important;
    }
}

@media (max-width: 767px) {
    .is-mobile table.wc-block-cart-items .wc-block-cart-items__row,
    .is-small table.wc-block-cart-items .wc-block-cart-items__row {
        padding: 16px !important;
        gap: 14px !important;
    }
    
    .wc-block-cart-items__image {
        max-width: 90px !important;
    }
    
    .wc-block-cart-items__name {
        font-size: 15px !important;
    }
    
    .wc-block-cart-items__price {
        font-size: 16px !important;
    }
    
    .wc-block-cart-items__total-price {
        font-size: 17px !important;
    }
}

@media (max-width: 575px) {
    .is-mobile table.wc-block-cart-items .wc-block-cart-items__row,
    .is-small table.wc-block-cart-items .wc-block-cart-items__row {
        padding: 14px !important;
        gap: 12px !important;
        border-radius: 12px !important;
    }
    
    .wc-block-cart-items__image {
        max-width: 80px !important;
    }
    
    .wc-block-cart-items__name {
        font-size: 14px !important;
    }
    
    .wc-block-cart-items__price {
        font-size: 15px !important;
    }
    
    .wc-block-cart-items__total-price {
        font-size: 16px !important;
    }
    
    .wc-block-cart-items__quantity .qty {
        height: 42px !important;
        font-size: 14px !important;
    }
    
    .wc-block-cart-items__remove-button {
        width: 100% !important;
        height: 42px !important;
    }
}

.kowsh-cart__content {
    grid-column: 1;
    grid-row: 2;
}

.kowsh-cart__content--empty {
    grid-column: 1 / -1;
}

/* ========================================
   Cart Collaterals
======================================== */

.kowsh-cart__collaterals {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    position: sticky;
    top: 160px;
}

/* Prevent duplicate collaterals when shortcode is used */
.kowsh-cart__page-content--shortcode .cart-collaterals {
    display: none !important;
}

.kowsh-cart__page-content--shortcode .woocommerce {
    display: grid !important;
    grid-template-columns: 1fr 400px !important;
    gap: 40px !important;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.kowsh-cart__page-content--shortcode .woocommerce-cart-form {
    grid-column: 1 !important;
    animation-delay: 0.1s;
}

.kowsh-cart__page-content--shortcode .cart-collaterals {
    grid-column: 2 !important;
    animation-delay: 0.2s;
}

/* ========================================
   Cart Form
======================================== */

.kowsh-cart__form {
    background: #ffffff;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 
        0 2px 40px rgba(0, 0, 0, 0.03),
        0 1px 0 rgba(0, 0, 0, 0.02) inset,
        0 0 0 1px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.kowsh-cart__form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 20, 24, 0.15) 30%,
        rgba(212, 20, 24, 0.25) 50%,
        rgba(212, 20, 24, 0.15) 70%,
        transparent 100%
    );
    border-radius: 28px 28px 0 0;
    opacity: 0.8;
}

/* ========================================
   Cart Items
======================================== */

.kowsh-cart__items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kowsh-cart__item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 24px;
    padding: 24px;
    background: #fafafa;
    border-radius: 20px;
    border: 1.5px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.kowsh-cart__item:nth-child(1) { animation-delay: 0.05s; }
.kowsh-cart__item:nth-child(2) { animation-delay: 0.1s; }
.kowsh-cart__item:nth-child(3) { animation-delay: 0.15s; }
.kowsh-cart__item:nth-child(4) { animation-delay: 0.2s; }
.kowsh-cart__item:nth-child(5) { animation-delay: 0.25s; }

.kowsh-cart__item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(212, 20, 24, 0.1);
    border-color: rgba(212, 20, 24, 0.2);
}

/* Product Image */
.kowsh-cart__item-image {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    position: relative;
    flex-shrink: 0;
}

.kowsh-cart__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.kowsh-cart__item:hover .kowsh-cart__item-image img {
    transform: scale(1.08);
}

.kowsh-cart__item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Product Info */
.kowsh-cart__item-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.kowsh-cart__item-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kowsh-cart__item-title {
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.kowsh-cart__item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kowsh-cart__item-title a:hover {
    color: #d41418;
}

.kowsh-cart__item-title .variation {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
}

.kowsh-cart__item-title .variation dt {
    display: inline;
    font-weight: 600;
}

.kowsh-cart__item-title .variation dd {
    display: inline;
    margin: 0 0 0 4px;
}

.kowsh-cart__item-price {
    font-size: 16px;
    font-weight: 700;
    color: #666666;
}

/* Item Actions */
.kowsh-cart__item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.kowsh-cart__item-quantity {
    display: flex;
    align-items: center;
}

/* Custom Quantity Input */
.kowsh-cart__item-quantity .quantity {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.kowsh-cart__item-quantity .qty-buttons {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}

.kowsh-cart__item-quantity .qty {
    flex: 1;
    min-width: 50px;
    height: 44px;
    padding: 0 8px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #0a0a0a;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}

.kowsh-cart__item-quantity .qty::-webkit-outer-spin-button,
.kowsh-cart__item-quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.kowsh-cart__item-quantity .qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f5f5f5;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
    font-weight: 700;
    padding: 0;
    user-select: none;
}

.kowsh-cart__item-quantity .qty-btn:hover {
    background: #d41418;
    color: #ffffff;
}

.kowsh-cart__item-quantity .qty-btn:active {
    transform: scale(0.95);
}

.kowsh-cart__item-quantity .qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Remove Button */
.kowsh-cart__item-remove {
    flex-shrink: 0;
}

.kowsh-cart__remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    color: #e53e3e;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.kowsh-cart__remove-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.kowsh-cart__remove-btn:hover {
    background: #fee;
    border-color: #e53e3e;
    color: #c53030;
    transform: translateY(-1px);
}

.kowsh-cart__remove-btn:hover svg {
    transform: rotate(-5deg) scale(1.1);
}

/* Product Subtotal */
.kowsh-cart__item-subtotal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 20px;
    font-weight: 900;
    color: #0a0a0a;
    white-space: nowrap;
    padding-left: 20px;
    border-left: 1px solid #f0f0f0;
}

/* ========================================
   Cart Actions
======================================== */

.kowsh-cart__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.kowsh-cart__actions-left {
    flex: 1;
    min-width: 280px;
}

.kowsh-cart__actions-right {
    flex-shrink: 0;
}

/* Coupon */
.kowsh-cart__coupon {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
}

.kowsh-cart__coupon-input {
    flex: 1;
    height: 48px;
    padding: 0 18px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #0a0a0a;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kowsh-cart__coupon-input:focus {
    outline: none;
    border-color: #d41418;
    box-shadow: 0 0 0 4px rgba(212, 20, 24, 0.1);
}

.kowsh-cart__coupon-input::placeholder {
    color: #999999;
}

.kowsh-cart__coupon-btn {
    height: 48px;
    padding: 0 24px;
    background: linear-gradient(135deg, #d41418 0%, #ff4444 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.kowsh-cart__coupon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 20, 24, 0.3);
}

.kowsh-cart__coupon-btn:active {
    transform: translateY(0);
}

/* Update Button */
.kowsh-cart__update-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 28px;
    background: #ffffff;
    border: 1.5px solid #d41418;
    border-radius: 12px;
    color: #d41418;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kowsh-cart__update-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.kowsh-cart__update-btn:hover {
    background: #d41418;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 20, 24, 0.25);
}

.kowsh-cart__update-btn:hover svg {
    transform: rotate(180deg);
}

/* ========================================
   Cart Totals
======================================== */

.kowsh-cart-totals {
    background: #ffffff;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 
        0 2px 40px rgba(0, 0, 0, 0.03),
        0 1px 0 rgba(0, 0, 0, 0.02) inset,
        0 0 0 1px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 160px;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

.kowsh-cart-totals__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.kowsh-cart-totals__title {
    font-size: 28px;
    font-weight: 900;
    color: #0a0a0a;
    margin: 0;
    letter-spacing: -0.8px;
}

.kowsh-cart-totals__content {
    margin-bottom: 32px;
}

.kowsh-cart-totals__table {
    width: 100%;
    border-collapse: collapse;
}

.kowsh-cart-totals__row {
    border-bottom: 1px solid #f5f5f5;
}

.kowsh-cart-totals__row:last-child {
    border-bottom: none;
}

.kowsh-cart-totals__label {
    padding: 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #666666;
    text-align: right;
    vertical-align: middle;
}

.kowsh-cart-totals__value {
    padding: 16px 0 16px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #0a0a0a;
    text-align: left;
    vertical-align: middle;
}

.kowsh-cart-totals__row--total .kowsh-cart-totals__label {
    font-size: 18px;
    font-weight: 900;
    color: #0a0a0a;
    padding-top: 24px;
}

.kowsh-cart-totals__row--total .kowsh-cart-totals__value {
    font-size: 24px;
    font-weight: 900;
    color: #d41418;
    padding-top: 24px;
}

/* Proceed to Checkout */
.kowsh-cart-totals__footer {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #f0f0f0;
}

.kowsh-cart-totals__footer .checkout-button {
    width: 100%;
    height: 56px;
    padding: 0;
    background: linear-gradient(135deg, #d41418 0%, #ff4444 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.kowsh-cart-totals__footer .checkout-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #b01216 0%, #d41418 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kowsh-cart-totals__footer .checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 20, 24, 0.35);
}

.kowsh-cart-totals__footer .checkout-button:hover::before {
    opacity: 1;
}

.kowsh-cart-totals__footer .checkout-button span {
    position: relative;
    z-index: 1;
}

.kowsh-cart-totals__footer .checkout-button::after {
    content: '';
    position: absolute;
    right: 20px;
    width: 20px;
    height: 20px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    z-index: 1;
}

.kowsh-cart-totals__footer .checkout-button:hover::after {
    transform: rotate(-45deg) translateX(4px) translateY(-4px);
}

/* ========================================
   Empty Cart
======================================== */

.kowsh-cart-empty {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

.kowsh-cart-empty__wrapper {
    max-width: 600px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.kowsh-cart-empty__content {
    background: #ffffff;
    border-radius: 28px;
    padding: 60px 40px;
    box-shadow: 
        0 2px 40px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.kowsh-cart-empty__icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    color: #d41418;
    opacity: 0.8;
}

.kowsh-cart-empty__icon svg {
    width: 100%;
    height: 100%;
}

.kowsh-cart-empty__title {
    font-size: 32px;
    font-weight: 900;
    color: #0a0a0a;
    margin: 0 0 16px;
    letter-spacing: -1px;
}

.kowsh-cart-empty__description {
    font-size: 16px;
    color: #666666;
    margin: 0 0 40px;
    line-height: 1.7;
}

.kowsh-cart-empty__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #d41418 0%, #ff4444 100%);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kowsh-cart-empty__button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.kowsh-cart-empty__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 20, 24, 0.35);
}

.kowsh-cart-empty__button:hover svg {
    transform: translateX(-4px);
}

/* ========================================
   Responsive Design
   طراحی واکنش‌گرا - کامل و پیشرفته
======================================== */

/* ========================================
   Large Desktop (1400px - 1600px)
======================================== */

@media (max-width: 1600px) {
    .kowsh-cart__wrapper {
        max-width: 1320px;
        padding: 0 36px;
    }
}

/* ========================================
   Desktop Medium (1200px - 1399px)
======================================== */

@media (max-width: 1399px) {
    .kowsh-cart__wrapper {
        max-width: 1200px;
        padding: 0 32px;
        gap: 36px;
    }
    
    .kowsh-cart__form {
        padding: 36px;
    }
    
    .kowsh-cart-totals {
        padding: 36px;
    }
}

@media (max-width: 1199px) {
    .kowsh-cart__wrapper {
        grid-template-columns: 1fr 340px;
        gap: 32px;
        padding: 0 28px;
    }
    
    .kowsh-cart__page-content {
        padding: 48px 40px;
    }
    
    .kowsh-cart__form {
        padding: 32px;
    }
    
    .kowsh-cart-totals {
        padding: 32px;
        top: 140px;
    }
    
    .kowsh-cart__item {
        grid-template-columns: 110px 1fr auto;
        gap: 20px;
        padding: 20px;
    }
    
    .kowsh-cart__item-image {
        width: 110px;
        height: 110px;
    }
}

/* ========================================
   Tablet Large (992px - 1199px)
======================================== */

@media (max-width: 991px) {
    .kowsh-cart,
    .kowsh-cart-page {
        padding: 120px 0 60px !important;
        background: 
            radial-gradient(circle at 20% 50%, rgba(212, 20, 24, 0.02) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.015) 0%, transparent 50%),
            linear-gradient(180deg, #ffffff 0%, #fafafa 100%) !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .kowsh-cart__wrapper {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        padding: 0 24px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        margin: 0 auto !important;
    }
    
    .kowsh-cart__header {
        margin-bottom: 32px;
        padding-bottom: 20px;
    }
    
    .kowsh-cart__title {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .kowsh-cart__subtitle {
        font-size: 15px;
    }
    
    .kowsh-cart__page-content {
        padding: 40px 32px;
        border-radius: 24px;
        margin-bottom: 32px;
    }
    
    .kowsh-cart__page-content h1 {
        font-size: 32px;
        margin-top: 0;
    }
    
    .kowsh-cart__page-content h2 {
        font-size: 28px;
    }
    
    .kowsh-cart__page-content h3 {
        font-size: 24px;
    }
    
    .kowsh-cart__form {
        padding: 32px 28px;
        border-radius: 24px;
    }
    
    .kowsh-cart__item {
        grid-template-columns: 100px 1fr auto;
        gap: 20px;
        padding: 20px;
        border-radius: 16px;
    }
    
    .kowsh-cart__item-image {
        width: 100px;
        height: 100px;
        border-radius: 12px;
    }
    
    .kowsh-cart__item-title {
        font-size: 17px;
    }
    
    .kowsh-cart__item-subtotal {
        font-size: 18px;
        padding-left: 16px;
    }
    
    .kowsh-cart-totals {
        position: static !important;
        top: auto !important;
        order: -1;
        margin-bottom: 0;
    }
    
    .kowsh-cart__collaterals {
        grid-column: 1;
        grid-row: auto;
        position: static;
    }
    
    .kowsh-cart__content {
        grid-row: auto;
    }
    
    .kowsh-cart__actions {
        gap: 20px;
        margin-top: 28px;
        padding-top: 28px;
    }
    
    .kowsh-cart__coupon {
        max-width: 100%;
    }
    
    .kowsh-cart__page-content--shortcode .woocommerce {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    
    .kowsh-cart__page-content--shortcode .cart-collaterals {
        grid-column: 1 !important;
        order: -1;
    }
}

/* ========================================
   Mobile Large (768px - 991px)
======================================== */

@media (max-width: 767px) {
    .kowsh-cart,
    .kowsh-cart-page {
        padding: 100px 0 50px !important;
        background: 
            radial-gradient(circle at 30% 40%, rgba(212, 20, 24, 0.02) 0%, transparent 60%),
            linear-gradient(180deg, #ffffff 0%, #fafafa 100%) !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .kowsh-cart__wrapper {
        padding: 0 16px !important;
        gap: 24px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        margin: 0 auto !important;
    }
    
    .kowsh-cart__header {
        margin-bottom: 28px;
        padding-bottom: 18px;
    }
    
    .kowsh-cart__header-image {
        margin-bottom: 20px;
        border-radius: 16px;
    }
    
    .kowsh-cart__featured-img {
        border-radius: 16px;
    }
    
    .kowsh-cart__title {
        font-size: 28px;
        letter-spacing: -0.8px;
        margin-bottom: 10px;
    }
    
    .kowsh-cart__subtitle {
        font-size: 14px;
    }
    
    .kowsh-cart__page-content {
        padding: 32px 24px;
        border-radius: 20px;
        margin-bottom: 24px;
    }
    
    .kowsh-cart__page-content h1 {
        font-size: 28px;
        margin: 28px 0 14px;
    }
    
    .kowsh-cart__page-content h2 {
        font-size: 24px;
        margin: 24px 0 12px;
    }
    
    .kowsh-cart__page-content h3 {
        font-size: 20px;
        margin: 20px 0 10px;
    }
    
    .kowsh-cart__page-content p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 18px;
    }
    
    .kowsh-cart__page-content blockquote {
        padding: 20px 24px;
        font-size: 16px;
        margin: 20px 0;
        border-radius: 10px;
    }
    
    .kowsh-cart__page-content table {
        font-size: 14px;
        margin: 20px 0;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .kowsh-cart__page-content table th,
    .kowsh-cart__page-content table td {
        padding: 12px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .kowsh-cart__form {
        padding: 24px 20px;
        border-radius: 20px;
    }
    
    .kowsh-cart__items {
        gap: 16px;
    }
    
    .kowsh-cart__item {
        grid-template-columns: 100px 1fr;
        gap: 16px;
        padding: 20px;
        border-radius: 16px;
    }
    
    .kowsh-cart__item-image {
        width: 100px;
        height: 100px;
        border-radius: 12px;
    }
    
    .kowsh-cart__item-title {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .kowsh-cart__item-price {
        font-size: 15px;
    }
    
    .kowsh-cart__item-info {
        gap: 14px;
    }
    
    .kowsh-cart__item-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .kowsh-cart__item-quantity {
        width: 100%;
    }
    
    .kowsh-cart__item-quantity .quantity {
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
    }
    
    .kowsh-cart__item-remove {
        width: 100%;
    }
    
    .kowsh-cart__remove-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
    }
    
    .kowsh-cart__item-subtotal {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1.5px solid #f0f0f0;
        padding-left: 0;
        padding-top: 16px;
        padding-right: 0;
        justify-content: flex-start;
        font-size: 18px;
        margin-top: 8px;
    }
    
    .kowsh-cart__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: 24px;
        padding-top: 24px;
    }
    
    .kowsh-cart__actions-left,
    .kowsh-cart__actions-right {
        width: 100%;
    }
    
    .kowsh-cart__coupon {
        max-width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .kowsh-cart__coupon-input {
        width: 100%;
        height: 48px;
    }
    
    .kowsh-cart__coupon-btn {
        width: 100%;
        height: 48px;
    }
    
    .kowsh-cart__update-btn {
        width: 100%;
        justify-content: center;
        height: 48px;
    }
    
    .kowsh-cart-totals {
        padding: 28px 24px;
        border-radius: 20px;
        position: static !important;
        top: auto !important;
    }
    
    .kowsh-cart-totals__title {
        font-size: 24px;
    }
    
    .kowsh-cart-totals__row--total .kowsh-cart-totals__value {
        font-size: 22px;
    }
    
    .kowsh-cart-totals__footer .checkout-button {
        height: 52px;
        font-size: 15px;
    }
    
    .kowsh-cart__page-content--shortcode .woocommerce {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .kowsh-cart__page-content--shortcode .cart-collaterals {
        grid-column: 1 !important;
        order: -1;
    }
}

/* ========================================
   Mobile Small (576px - 767px)
======================================== */

@media (max-width: 575px) {
    .kowsh-cart,
    .kowsh-cart-page {
        padding: 90px 0 40px !important;
        background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%) !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .kowsh-cart__wrapper {
        padding: 0 12px !important;
        gap: 20px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        margin: 0 auto !important;
    }
    
    .kowsh-cart__header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .kowsh-cart__header-image {
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .kowsh-cart__featured-img {
        border-radius: 12px;
    }
    
    .kowsh-cart__title {
        font-size: 24px;
        letter-spacing: -0.5px;
        margin-bottom: 8px;
    }
    
    .kowsh-cart__subtitle {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .kowsh-cart__page-content {
        padding: 24px 20px;
        border-radius: 16px;
        margin-bottom: 20px;
    }
    
    .kowsh-cart__page-content h1 {
        font-size: 24px;
        margin: 24px 0 12px;
    }
    
    .kowsh-cart__page-content h2 {
        font-size: 22px;
        margin: 20px 0 10px;
    }
    
    .kowsh-cart__page-content h3 {
        font-size: 20px;
        margin: 18px 0 9px;
    }
    
    .kowsh-cart__page-content h4 {
        font-size: 18px;
        margin: 16px 0 8px;
    }
    
    .kowsh-cart__page-content p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 16px;
    }
    
    .kowsh-cart__page-content ul,
    .kowsh-cart__page-content ol {
        padding-right: 24px;
        margin: 18px 0;
    }
    
    .kowsh-cart__page-content ul li,
    .kowsh-cart__page-content ol li {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.6;
    }
    
    .kowsh-cart__page-content blockquote {
        padding: 18px 20px;
        font-size: 15px;
        margin: 18px 0;
        border-radius: 10px;
    }
    
    .kowsh-cart__page-content table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 18px 0;
    }
    
    .kowsh-cart__page-content table th,
    .kowsh-cart__page-content table td {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .kowsh-cart__page-content--shortcode .woocommerce {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .kowsh-cart__form {
        padding: 20px 16px;
        border-radius: 16px;
    }
    
    .kowsh-cart__items {
        gap: 14px;
    }
    
    .kowsh-cart__item {
        grid-template-columns: 80px 1fr;
        padding: 16px;
        gap: 12px;
        border-radius: 14px;
    }
    
    .kowsh-cart__item-image {
        width: 80px;
        height: 80px;
        border-radius: 10px;
    }
    
    .kowsh-cart__item-title {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .kowsh-cart__item-price {
        font-size: 14px;
    }
    
    .kowsh-cart__item-info {
        gap: 12px;
    }
    
    .kowsh-cart__item-main {
        gap: 6px;
    }
    
    .kowsh-cart__item-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .kowsh-cart__item-quantity {
        width: 100%;
    }
    
    .kowsh-cart__item-quantity .quantity {
        width: 100%;
        max-width: 160px;
        margin: 0 auto;
    }
    
    .kowsh-cart__item-quantity .qty {
        height: 42px;
        font-size: 14px;
    }
    
    .kowsh-cart__item-quantity .qty-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .kowsh-cart__item-remove {
        width: 100%;
    }
    
    .kowsh-cart__remove-btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 13px;
    }
    
    .kowsh-cart__remove-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .kowsh-cart__item-subtotal {
        font-size: 17px;
        padding-top: 14px;
        margin-top: 6px;
    }
    
    .kowsh-cart__actions {
        gap: 14px;
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .kowsh-cart__coupon {
        gap: 10px;
    }
    
    .kowsh-cart__coupon-input {
        height: 46px;
        font-size: 14px;
        padding: 0 16px;
    }
    
    .kowsh-cart__coupon-btn {
        height: 46px;
        font-size: 13px;
        padding: 0 20px;
    }
    
    .kowsh-cart__update-btn {
        height: 46px;
        font-size: 14px;
        padding: 0 24px;
    }
    
    .kowsh-cart-totals {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .kowsh-cart-totals__header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }
    
    .kowsh-cart-totals__title {
        font-size: 22px;
    }
    
    .kowsh-cart-totals__label {
        padding: 14px 0;
        font-size: 14px;
    }
    
    .kowsh-cart-totals__value {
        padding: 14px 0 14px 12px;
        font-size: 14px;
    }
    
    .kowsh-cart-totals__row--total .kowsh-cart-totals__label {
        font-size: 16px;
        padding-top: 20px;
    }
    
    .kowsh-cart-totals__row--total .kowsh-cart-totals__value {
        font-size: 20px;
        padding-top: 20px;
    }
    
    .kowsh-cart-totals__footer {
        margin-top: 24px;
        padding-top: 24px;
    }
    
    .kowsh-cart-totals__footer .checkout-button {
        height: 50px;
        font-size: 14px;
        border-radius: 12px;
    }
    
    .kowsh-cart-empty {
        padding: 60px 20px;
        min-height: 50vh;
    }
    
    .kowsh-cart-empty__content {
        padding: 40px 24px;
        border-radius: 20px;
    }
    
    .kowsh-cart-empty__icon {
        width: 100px;
        height: 100px;
        margin-bottom: 28px;
    }
    
    .kowsh-cart-empty__title {
        font-size: 24px;
        margin-bottom: 14px;
    }
    
    .kowsh-cart-empty__description {
        font-size: 15px;
        margin-bottom: 32px;
        line-height: 1.6;
    }
    
    .kowsh-cart-empty__button {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* ========================================
   Mobile Extra Small (Up to 480px)
======================================== */

@media (max-width: 480px) {
    .kowsh-cart,
    .kowsh-cart-page {
        padding: 80px 0 40px;
    }
    
    .kowsh-cart__wrapper {
        padding: 0 10px;
        gap: 16px;
    }
    
    .kowsh-cart__header {
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
    
    .kowsh-cart__title {
        font-size: 22px;
    }
    
    .kowsh-cart__subtitle {
        font-size: 12px;
    }
    
    .kowsh-cart__page-content {
        padding: 20px 16px;
        border-radius: 14px;
    }
    
    .kowsh-cart__page-content h1 {
        font-size: 22px;
    }
    
    .kowsh-cart__page-content h2 {
        font-size: 20px;
    }
    
    .kowsh-cart__page-content h3 {
        font-size: 18px;
    }
    
    .kowsh-cart__form {
        padding: 18px 14px;
        border-radius: 14px;
    }
    
    .kowsh-cart__item {
        grid-template-columns: 70px 1fr;
        padding: 14px;
        gap: 10px;
    }
    
    .kowsh-cart__item-image {
        width: 70px;
        height: 70px;
    }
    
    .kowsh-cart__item-title {
        font-size: 14px;
    }
    
    .kowsh-cart__item-price {
        font-size: 13px;
    }
    
    .kowsh-cart__item-subtotal {
        font-size: 16px;
        padding-top: 12px;
    }
    
    .kowsh-cart__item-quantity .qty {
        height: 40px;
        font-size: 13px;
    }
    
    .kowsh-cart__item-quantity .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .kowsh-cart__coupon-input,
    .kowsh-cart__coupon-btn,
    .kowsh-cart__update-btn {
        height: 44px;
        font-size: 13px;
    }
    
    .kowsh-cart-totals {
        padding: 20px 16px;
    }
    
    .kowsh-cart-totals__title {
        font-size: 20px;
    }
    
    .kowsh-cart-totals__footer .checkout-button {
        height: 48px;
        font-size: 13px;
    }
    
    .kowsh-cart-empty__content {
        padding: 32px 20px;
    }
    
    .kowsh-cart-empty__icon {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
    }
    
    .kowsh-cart-empty__title {
        font-size: 22px;
    }
    
    .kowsh-cart-empty__description {
        font-size: 14px;
    }
}

/* ========================================
   Touch Device Optimizations
   بهینه‌سازی برای دستگاه‌های لمسی
======================================== */

@media (hover: none) and (pointer: coarse) {
    .kowsh-cart__item,
    .kowsh-cart__remove-btn,
    .kowsh-cart__update-btn,
    .kowsh-cart__coupon-btn,
    .kowsh-cart-totals__footer .checkout-button {
        -webkit-tap-highlight-color: rgba(212, 20, 24, 0.1);
    }
    
    .kowsh-cart__item-quantity .qty-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .kowsh-cart__remove-btn,
    .kowsh-cart__update-btn,
    .kowsh-cart__coupon-btn,
    .kowsh-cart-totals__footer .checkout-button {
        min-height: 44px;
    }
    
    /* Larger touch targets */
    .kowsh-cart__item-image a {
        padding: 4px;
        margin: -4px;
    }
    
    .kowsh-cart__item-title a {
        padding: 4px 0;
        margin: -4px 0;
    }
}

/* ========================================
   Landscape Mobile (Max 767px height)
======================================== */

@media (max-width: 991px) and (max-height: 500px) and (orientation: landscape) {
    .kowsh-cart,
    .kowsh-cart-page {
        padding: 80px 0 40px;
    }
    
    .kowsh-cart__header {
        margin-bottom: 20px;
    }
    
    .kowsh-cart__title {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .kowsh-cart__page-content,
    .kowsh-cart__form {
        padding: 24px 20px;
    }
    
    .kowsh-cart__item {
        padding: 16px;
    }
    
    .kowsh-cart-totals {
        padding: 24px 20px;
    }
}

/* ========================================
   High DPI / Retina Displays
======================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .kowsh-cart__item-image img,
    .kowsh-cart__featured-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ========================================
   Reduced Motion (Accessibility)
======================================== */

@media (prefers-reduced-motion: reduce) {
    .kowsh-cart__wrapper,
    .kowsh-cart__page-content,
    .kowsh-cart__form,
    .kowsh-cart__item,
    .kowsh-cart-totals,
    .kowsh-cart-empty__wrapper {
        animation: none !important;
        transition: none !important;
    }
    
    .kowsh-cart__item:hover,
    .kowsh-cart__page-content:hover {
        transform: none !important;
    }
}

/* ========================================
   Additional Responsive Enhancements
   بهبودهای اضافی برای واکنش‌گرایی
======================================== */

/* Prevent horizontal scroll globally */
body.woocommerce-cart,
body.woocommerce-page.woocommerce-cart,
body.page-template-page-cart {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

html {
    overflow-x: hidden !important;
}

/* Smooth scrolling for mobile */
@media (max-width: 991px) {
    .kowsh-cart,
    .kowsh-cart-page {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Prevent horizontal scroll */
    .kowsh-cart__wrapper {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .kowsh-cart__header,
    .kowsh-cart__page-content,
    .kowsh-cart__form,
    .kowsh-cart__items,
    .kowsh-cart__item,
    .kowsh-cart-totals {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Improve touch targets */
    .kowsh-cart__item-quantity .qty-btn,
    .kowsh-cart__remove-btn,
    .kowsh-cart__update-btn,
    .kowsh-cart__coupon-btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
}

/* Tablet Portrait Optimization */
@media (min-width: 768px) and (max-width: 991px) {
    .kowsh-cart,
    .kowsh-cart-page {
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .kowsh-cart__wrapper {
        padding: 0 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .kowsh-cart__item {
        grid-template-columns: 110px 1fr auto;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .kowsh-cart__item-image {
        width: 110px;
        height: 110px;
    }
}

/* Improve spacing for all screen sizes */
@media (min-width: 1400px) {
    .kowsh-cart__wrapper {
        max-width: 1400px;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Fix for all breakpoints - ensure no overflow */
.kowsh-cart__header,
.kowsh-cart__page-content,
.kowsh-cart__content,
.kowsh-cart__form,
.kowsh-cart__items,
.kowsh-cart__item,
.kowsh-cart__item-image,
.kowsh-cart__item-info,
.kowsh-cart__item-actions,
.kowsh-cart-totals,
.kowsh-cart__collaterals {
    box-sizing: border-box !important;
}

/* Prevent image overflow */
.kowsh-cart__featured-img,
.kowsh-cart__item-image img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Fix text overflow */
.kowsh-cart__item-title,
.kowsh-cart__title,
.kowsh-cart__subtitle {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

/* ========================================
   Additional WooCommerce Overrides - High Priority
======================================== */

/* Force override WooCommerce default cart styles */
body.woocommerce-cart .kowsh-cart,
body.woocommerce-page.woocommerce-cart .kowsh-cart,
body.woocommerce-cart .kowsh-cart-page,
body.woocommerce-page.woocommerce-cart .kowsh-cart-page {
    display: block !important;
    visibility: visible !important;
}

/* Hide default WooCommerce cart table completely */
body.woocommerce-cart .woocommerce-cart-form .shop_table.cart,
body.woocommerce-page.woocommerce-cart .woocommerce-cart-form .shop_table.cart {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}

/* Ensure our custom cart structure is visible */
body.woocommerce-cart .kowsh-cart__wrapper,
body.woocommerce-page.woocommerce-cart .kowsh-cart__wrapper {
    display: grid !important;
    visibility: visible !important;
}

/* Override any WooCommerce entry-content styles */
body.woocommerce-cart .entry-content,
body.woocommerce-page.woocommerce-cart .entry-content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================
   WooCommerce Blocks - Cart Submit Container
   استایل جذاب برای دکمه سبدخرید WooCommerce Blocks
======================================== */

.wc-block-cart__submit-container {
    margin-top: 32px !important;
    padding-top: 32px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
}

.wc-block-cart__submit-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 20, 24, 0.2) 50%,
        transparent 100%
    );
    opacity: 0.6;
}

/* Submit Button Container */
.wc-block-cart__submit-container .wp-block-button {
    width: 100% !important;
    margin: 0 !important;
}

.wc-block-cart__submit-container .wp-block-button__link,
.wc-block-cart__submit-container button,
.wc-block-cart__submit-container .button {
    width: 100% !important;
    height: 56px !important;
    padding: 0 32px !important;
    background: linear-gradient(135deg, #d41418 0%, #ff4444 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 
        0 4px 20px rgba(212, 20, 24, 0.25),
        0 2px 8px rgba(212, 20, 24, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    text-transform: none !important;
}

.wc-block-cart__submit-container .wp-block-button__link::before,
.wc-block-cart__submit-container button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #b01216 0%, #d41418 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wc-block-cart__submit-container .wp-block-button__link::after,
.wc-block-cart__submit-container button::after {
    content: '';
    position: absolute;
    right: 24px;
    width: 20px;
    height: 20px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(-45deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.wc-block-cart__submit-container .wp-block-button__link:hover,
.wc-block-cart__submit-container button:hover,
.wc-block-cart__submit-container .button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 
        0 8px 32px rgba(212, 20, 24, 0.4),
        0 4px 12px rgba(212, 20, 24, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    background: linear-gradient(135deg, #ff4444 0%, #d41418 100%) !important;
}

.wc-block-cart__submit-container .wp-block-button__link:hover::before,
.wc-block-cart__submit-container button:hover::before {
    opacity: 1;
}

.wc-block-cart__submit-container .wp-block-button__link:hover::after,
.wc-block-cart__submit-container button:hover::after {
    transform: rotate(-45deg) translateX(6px) translateY(-6px);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.wc-block-cart__submit-container .wp-block-button__link:active,
.wc-block-cart__submit-container button:active,
.wc-block-cart__submit-container .button:active {
    transform: translateY(-1px) !important;
    box-shadow: 
        0 4px 16px rgba(212, 20, 24, 0.3),
        0 2px 6px rgba(212, 20, 24, 0.2) !important;
}

.wc-block-cart__submit-container .wp-block-button__link:focus,
.wc-block-cart__submit-container button:focus,
.wc-block-cart__submit-container .button:focus {
    outline: none !important;
    box-shadow: 
        0 0 0 4px rgba(212, 20, 24, 0.2),
        0 4px 20px rgba(212, 20, 24, 0.25),
        0 2px 8px rgba(212, 20, 24, 0.15) !important;
}

/* Button Text */
.wc-block-cart__submit-container .wp-block-button__link span,
.wc-block-cart__submit-container button span {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Loading State */
.wc-block-cart__submit-container .wp-block-button__link.is-loading,
.wc-block-cart__submit-container button.is-loading {
    pointer-events: none;
    opacity: 0.8;
}

.wc-block-cart__submit-container .wp-block-button__link.is-loading::before,
.wc-block-cart__submit-container button.is-loading::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 3;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Disabled State */
.wc-block-cart__submit-container .wp-block-button__link:disabled,
.wc-block-cart__submit-container button:disabled,
.wc-block-cart__submit-container .button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Alternative classes and selectors */
.wc-block-cart__submit-container a.wp-block-button__link,
.wc-block-cart__submit-container input[type="submit"],
.wc-block-cart__submit-container .wc-block-components-button {
    width: 100% !important;
    height: 56px !important;
    padding: 0 32px !important;
    background: linear-gradient(135deg, #d41418 0%, #ff4444 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 
        0 4px 20px rgba(212, 20, 24, 0.25),
        0 2px 8px rgba(212, 20, 24, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    text-transform: none !important;
}

.wc-block-cart__submit-container a.wp-block-button__link:hover,
.wc-block-cart__submit-container input[type="submit"]:hover,
.wc-block-cart__submit-container .wc-block-components-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 
        0 8px 32px rgba(212, 20, 24, 0.4),
        0 4px 12px rgba(212, 20, 24, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    background: linear-gradient(135deg, #ff4444 0%, #d41418 100%) !important;
}

/* Enhanced hover effects */
.wc-block-cart__submit-container .wp-block-button__link:hover,
.wc-block-cart__submit-container button:hover,
.wc-block-cart__submit-container .button:hover {
    filter: brightness(1.05) saturate(1.1);
    background-size: 200% 200% !important;
    animation: button-pulse 2.5s ease-in-out infinite !important;
}

@keyframes button-pulse {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(212, 20, 24, 0.4),
            0 4px 12px rgba(212, 20, 24, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 0 0 rgba(212, 20, 24, 0);
        background-position: 0% 50%;
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(212, 20, 24, 0.5),
            0 5px 16px rgba(212, 20, 24, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 0 6px rgba(212, 20, 24, 0.1);
        background-position: 100% 50%;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Shine effect overlay (using a child element instead of ::after) */
.wc-block-cart__submit-container .wp-block-button__link > span::before,
.wc-block-cart__submit-container button > span::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.wc-block-cart__submit-container .wp-block-button__link:hover > span::before,
.wc-block-cart__submit-container button:hover > span::before {
    transform: rotate(45deg) translateX(100%);
}

/* Responsive */
@media (max-width: 767px) {
    .wc-block-cart__submit-container {
        margin-top: 24px !important;
        padding-top: 24px !important;
    }
    
    .wc-block-cart__submit-container .wp-block-button__link,
    .wc-block-cart__submit-container button,
    .wc-block-cart__submit-container .button,
    .wc-block-cart__submit-container a.wp-block-button__link,
    .wc-block-cart__submit-container input[type="submit"],
    .wc-block-cart__submit-container .wc-block-components-button {
        height: 52px !important;
        font-size: 15px !important;
        padding: 0 24px !important;
    }
    
    .wc-block-cart__submit-container .wp-block-button__link::before {
        right: 20px;
        font-size: 18px;
    }
}

