/**
 * Woodmart Performance and Network Fixes
 * Optimizes font loading and handles slow network issues
 */

/* Font loading optimization */
@font-face {
    font-family: 'woodmart-fallback';
    src: local('Arial'), local('Helvetica'), local('sans-serif');
    font-display: swap;
}

/* Slow network detection */
.slow-network * {
    font-family: 'woodmart-fallback', Arial, Helvetica, sans-serif !important;
}

.slow-network img {
    filter: blur(0px);
    transition: filter 0.3s ease;
}

.slow-network img[data-src] {
    filter: blur(2px);
}

/* Font loading states */
.fonts-loading {
    font-family: 'woodmart-fallback', Arial, Helvetica, sans-serif;
}

.fonts-loaded {
    font-family: inherit;
}

/* Mobile navigation fixes */
.class_mobile_nav {
    display: none !important;
    visibility: hidden !important;
}

.mobile-nav-fixed {
    display: block !important;
    visibility: visible !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Hide class_mobile_nav elements completely */
.class_mobile_nav,
.class_mobile_nav * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Additional mobile nav fixes */
.class_mobile_nav {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure mobile-nav-fixed is visible */
.mobile-nav-fixed {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    z-index: 9999 !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* Edit element fixes */
.edit-element,
.wd-edit-element,
.woodmart-edit {
    display: block !important;
    visibility: visible !important;
}

/* Style undefined fixes */
/* Note: Invalid style attributes should be removed via JavaScript */
[style="undefined"],
[style=""] {
    display: block !important;
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    /* Note: loading="lazy" should be added as HTML attribute, not CSS */
}

/* Reduce animations on slow networks */
.slow-network * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Critical CSS for above-the-fold content */
.woodmart-header,
.woodmart-main-header,
.woodmart-mobile-header {
    contain: layout style paint;
}

/* Preload critical resources */
.woodmart-preload {
    display: none;
}

/* Error handling styles */
.woodmart-error-fallback {
    display: none;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    color: #6c757d;
}

.woodmart-error-fallback.show {
    display: block;
}

/* Network status indicator */
.woodmart-network-status {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10000;
    display: none;
}

.woodmart-network-status.slow {
    background: #ffc107;
    color: #212529;
}

.woodmart-network-status.offline {
    background: #dc3545;
}

/* Responsive optimizations */
@media (max-width: 768px) {
    .slow-network .woodmart-desktop-only {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .slow-network .woodmart-mobile-only {
        display: none !important;
    }
}

/* ========================================
   MODERN CART FORM DESIGN - TABLET & MOBILE
   ======================================== */

/* Base Cart Form Styling */
.woocommerce-cart-form.cart-data-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e9ecef !important;
    padding: 0 !important;
    margin: 20px 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Cart Table Section */
.cart-data-form .cart-table-section {
    background: transparent !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Modern Table Styling */
.cart-data-form .shop_table {
    width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Table Header */
.cart-data-form .shop_table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

.cart-data-form .shop_table thead th {
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 20px 15px !important;
    border: none !important;
    text-align: center !important;
    position: relative !important;
}

.cart-data-form .shop_table thead th:first-child {
    border-radius: 20px 0 0 0 !important;
}

.cart-data-form .shop_table thead th:last-child {
    border-radius: 0 20px 0 0 !important;
}

/* Table Body */
.cart-data-form .shop_table tbody tr {
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.cart-data-form .shop_table tbody tr:hover {
    background: #f8f9fa !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.cart-data-form .shop_table tbody tr:last-child {
    border-bottom: none !important;
}

/* Table Cells */
.cart-data-form .shop_table tbody td {
    padding: 20px 15px !important;
    border: none !important;
    vertical-align: middle !important;
    text-align: center !important;
    position: relative !important;
}

/* Product Remove Button */
.cart-data-form .product-remove .remove {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
    margin: 0 auto !important;
}

.cart-data-form .product-remove .remove:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
}

/* Product Thumbnail */
.cart-data-form .product-thumbnail img {
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    max-width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
}

.cart-data-form .product-thumbnail img:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Product Name */
.cart-data-form .product-name {
    text-align: right !important;
}

.cart-data-form .product-name a {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    line-height: 1.4 !important;
}

.cart-data-form .product-name a:hover {
    color: #667eea !important;
}

/* Product Price */
.cart-data-form .product-price {
    font-weight: 700 !important;
    color: #28a745 !important;
    font-size: 16px !important;
}

/* Quantity Input */
.cart-data-form .product-quantity {
    position: relative !important;
}

.cart-data-form .product-quantity .quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    border-radius: 25px !important;
    padding: 5px !important;
    width: 120px !important;
    margin: 0 auto !important;
    transition: all 0.3s ease !important;
}

.cart-data-form .product-quantity .quantity:hover {
    border-color: #667eea !important;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2) !important;
}

.cart-data-form .product-quantity .quantity input[type="number"] {
    width: 50px !important;
    padding: 8px 5px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #495057 !important;
    outline: none !important;
}

/* Use theme's default quantity buttons; no custom .qty-button styling */

/* Product Subtotal */
.cart-data-form .product-subtotal {
    font-weight: 700 !important;
    color: #212529 !important;
    font-size: 18px !important;
}

/* Cart Actions Row */
.cart-data-form .wd-cart-action-row {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 0 0 20px 20px !important;
}

.cart-data-form .wd-cart-action-row .actions {
    padding: 30px !important;
    text-align: center !important;
}

.cart-data-form .cart-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    align-items: center !important;
}

/* Coupon Form */
.cart-data-form .coupon {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.cart-data-form .coupon input[type="text"] {
    background: #ffffff !important;
    border: 2px solid #e9ecef !important;
    border-radius: 25px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    width: 250px !important;
    transition: all 0.3s ease !important;
}

.cart-data-form .coupon input[type="text"]:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

.cart-data-form .coupon button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.cart-data-form .coupon button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

/* Update Cart Button */
.cart-data-form .cart-actions .button[name="update_cart"] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 15px 30px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.cart-data-form .cart-actions .button[name="update_cart"]:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4) !important;
}

/* ========================================
   TABLET STYLES (768px - 1024px)
   ======================================== */

@media (max-width: 1024px) and (min-width: 769px) {
    .cart-data-form {
        margin: 15px 0 !important;
        border-radius: 15px !important;
    }
    
    .cart-data-form .shop_table thead th {
        padding: 15px 10px !important;
        font-size: 13px !important;
    }
    
    .cart-data-form .shop_table tbody td {
        padding: 15px 10px !important;
    }
    
    .cart-data-form .product-thumbnail img {
        max-width: 60px !important;
        height: 60px !important;
    }
    
    .cart-data-form .product-name a {
        font-size: 14px !important;
    }
    
    .cart-data-form .product-price,
    .cart-data-form .product-subtotal {
        font-size: 14px !important;
    }
    
    .cart-data-form .product-quantity .quantity {
        width: 100px !important;
    }
    
    .cart-data-form .cart-actions {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    
    .cart-data-form .coupon {
        flex-direction: row !important;
    }
    
    .cart-data-form .coupon input[type="text"] {
        width: 200px !important;
    }
}

/* ========================================
   MOBILE STYLES (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
    .cart-data-form {
        margin: 10px 0 !important;
        border-radius: 12px !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Hide table headers on mobile */
    .cart-data-form .shop_table thead {
        display: none !important;
    }
    
    /* Convert table rows to cards */
    .cart-data-form .shop_table tbody tr {
        display: block !important;
        background: #ffffff !important;
        border: 1px solid #e9ecef !important;
        border-radius: 12px !important;
        margin-bottom: 15px !important;
        padding: 15px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
        position: relative !important;
    }
    
    .cart-data-form .shop_table tbody tr:hover {
        transform: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Mobile card layout */
    .cart-data-form .shop_table tbody td {
        display: block !important;
        padding: 8px 0 !important;
        text-align: right !important;
        border: none !important;
        position: relative !important;
    }
    
    /* Product remove - top right corner */
    .cart-data-form .product-remove {
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
        z-index: 5 !important;
    }
    
    .cart-data-form .product-remove .remove {
        width: 30px !important;
        height: 30px !important;
        font-size: 16px !important;
    }
    
    /* Product thumbnail - larger on mobile */
    .cart-data-form .product-thumbnail {
        text-align: center !important;
        margin-bottom: 10px !important;
    }
    
    .cart-data-form .product-thumbnail img {
        max-width: 100px !important;
        height: 100px !important;
        border-radius: 8px !important;
    }
    
    /* Product name - full width */
    .cart-data-form .product-name {
        text-align: center !important;
        margin-bottom: 10px !important;
    }
    
    .cart-data-form .product-name a {
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
    }
    
    /* Price and quantity row */
    .cart-data-form .product-price,
    .cart-data-form .product-quantity,
    .cart-data-form .product-subtotal {
        display: inline-block !important;
        width: 33.333% !important;
        text-align: center !important;
        vertical-align: top !important;
    }
    
    .cart-data-form .product-price {
        font-size: 14px !important;
        color: #28a745 !important;
        font-weight: 600 !important;
    }
    
    .cart-data-form .product-quantity {
        margin: 0 !important;
    }
    
    .cart-data-form .product-quantity .quantity {
        width: 80px !important;
        margin: 0 auto !important;
    }
    
    /* Keep theme's default quantity controls */
    
    .cart-data-form .product-subtotal {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #212529 !important;
    }
    
    /* Cart actions - mobile layout */
    .cart-data-form .wd-cart-action-row .actions {
        padding: 20px 15px !important;
    }
    
    .cart-data-form .cart-actions {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .cart-data-form .coupon {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .cart-data-form .coupon input[type="text"] {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .cart-data-form .cart-actions .button[name="update_cart"] {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        padding: 12px 25px !important;
        font-size: 14px !important;
    }
}

/* ========================================
   SMALL MOBILE STYLES (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    .cart-data-form {
        margin: 5px 0 !important;
        border-radius: 8px !important;
    }
    
    .cart-data-form .shop_table tbody tr {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .cart-data-form .product-thumbnail img {
        max-width: 80px !important;
        height: 80px !important;
    }
    
    .cart-data-form .product-name a {
        font-size: 14px !important;
    }
    
    .cart-data-form .product-price,
    .cart-data-form .product-subtotal {
        font-size: 13px !important;
    }
    
    .cart-data-form .product-quantity .quantity {
        width: 70px !important;
    }
    
    /* Keep theme's default quantity controls */
    
    .cart-data-form .wd-cart-action-row .actions {
        padding: 15px 10px !important;
    }
    
    .cart-data-form .coupon input[type="text"] {
        font-size: 14px !important;
        padding: 10px 15px !important;
    }
    
    .cart-data-form .cart-actions .button[name="update_cart"] {
        font-size: 13px !important;
        padding: 10px 20px !important;
    }
}

/* ========================================
   ENHANCED MOBILE INTERACTIONS
   ======================================== */

/* Touch-friendly buttons */
@media (max-width: 768px) {
    .cart-data-form .product-remove .remove,
    .cart-data-form .coupon button,
    .cart-data-form .cart-actions .button {
        min-height: 44px !important;
        min-width: 44px !important;
    }
}

/* Swipe gestures for mobile */
@media (max-width: 768px) {
    .cart-data-form .shop_table tbody tr {
        touch-action: pan-x !important;
        user-select: none !important;
    }
}

/* Loading states */
.cart-data-form .cart-actions .button.loading {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.cart-data-form .cart-actions .button.loading::after {
    content: '⏳' !important;
    margin-left: 8px !important;
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   SCROLL MENU BUTTON
   دکمه منو با اسکرول
   ======================================== */

/* Container برای دکمه منو */
.woodmart-scroll-menu-button {
    position: absolute;
    right: auto;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

/* موقعیت در فضای بین لوگو و جستجو */
.whb-flex-row .woodmart-scroll-menu-button {
    position: absolute;
    left: auto;
    right: 0;
}

/* برای RTL - قرار دادن در سمت چپ */
[dir="rtl"] .woodmart-scroll-menu-button,
.rtl .woodmart-scroll-menu-button,
body[dir="rtl"] .woodmart-scroll-menu-button {
    right: auto;
    left: 0;
}

/* نمایش دکمه هنگام اسکرول */
.woodmart-scrolled .woodmart-scroll-menu-button,
body.woodmart-scrolled .woodmart-scroll-menu-button {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* همچنین در header scrolled */
.whb-sticked .woodmart-scroll-menu-button,
.whb-clone.whb-sticked .woodmart-scroll-menu-button {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* استایل دکمه منو */
.woodmart-scroll-menu-button .menu-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-size: 20px;
    padding: 0;
    position: relative;
}

/* Hover effect */
.woodmart-scroll-menu-button .menu-toggle-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Active state */
.woodmart-scroll-menu-button .menu-toggle-btn:active {
    transform: scale(0.95);
}

/* آیکون همبرگر */
.woodmart-scroll-menu-button .menu-toggle-btn .menu-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: block;
}

.woodmart-scroll-menu-button .menu-toggle-btn .menu-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #ffffff;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform-origin: center;
    transition: all 0.3s ease;
}

.woodmart-scroll-menu-button .menu-toggle-btn .menu-icon span:nth-child(1) {
    top: 0;
}

.woodmart-scroll-menu-button .menu-toggle-btn .menu-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.woodmart-scroll-menu-button .menu-toggle-btn .menu-icon span:nth-child(3) {
    bottom: 0;
}

/* حالت باز بودن منو */
.woodmart-scroll-menu-button .menu-toggle-btn.menu-open .menu-icon span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.woodmart-scroll-menu-button .menu-toggle-btn.menu-open .menu-icon span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.woodmart-scroll-menu-button .menu-toggle-btn.menu-open .menu-icon span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* موقعیت در header */
.whb-header .whb-main-header .whb-flex-row,
.whb-header .whb-general-header .whb-flex-row {
    position: relative;
}

/* قرارگیری دکمه در فضای بین لوگو و جستجو */
.whb-flex-row {
    position: relative;
}

/* دکمه در کنار لوگو قرار می‌گیرد */
.whb-col-left + .woodmart-scroll-menu-button {
    position: absolute;
    left: auto;
    right: 0;
}

/* برای RTL */
[dir="rtl"] .whb-col-left + .woodmart-scroll-menu-button,
.rtl .whb-col-left + .woodmart-scroll-menu-button,
body[dir="rtl"] .whb-col-left + .woodmart-scroll-menu-button {
    right: auto;
    left: 0;
}

/* Responsive - فقط در دسکتاپ */
@media (max-width: 1024px) {
    .woodmart-scroll-menu-button {
        display: none !important;
    }
}

/* انیمیشن ورود */
@keyframes woodmart-menu-btn-fade-in {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.woodmart-scrolled .woodmart-scroll-menu-button {
    animation: woodmart-menu-btn-fade-in 0.4s ease;
}

/* ========================================
   GIFT CARD PRODUCTS - DISABLE ADD TO CART
   غیرفعال سازی افزودن به سبد خرید برای کارت هدیه
   ======================================== */

/* مخفی کردن دکمه افزودن به سبد خرید برای محصولات کارت هدیه */
.postid-42329 .single_add_to_cart_button,
.postid-42320 .single_add_to_cart_button,
.postid-42314 .single_add_to_cart_button,
.product-id-42329 .single_add_to_cart_button,
.product-id-42320 .single_add_to_cart_button,
.product-id-42314 .single_add_to_cart_button {
    display: none !important;
}

/* مخفی کردن فرم کمیت */
.postid-42329 .quantity,
.postid-42320 .quantity,
.postid-42314 .quantity,
.product-id-42329 .quantity,
.product-id-42320 .quantity,
.product-id-42314 .quantity {
    display: none !important;
}

/* باکس پیام سفارشی برای تماس با پشتیبانی */
.gift-card-contact-box {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
    border: 2px solid #ff9800;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.15);
    animation: gift-card-pulse 2s ease-in-out infinite;
    position: relative;
    direction: rtl !important;
}

/* آیکون */
.gift-card-contact-box .contact-icon {
    font-size: 52px;
    margin-bottom: 15px;
    display: block;
    animation: gift-icon-bounce 1.5s ease-in-out infinite;
}

/* متن اصلی */
.gift-card-contact-box .contact-title {
    font-size: 24px;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 12px;
    line-height: 1.5;
    direction: rtl !important;
    text-align: center !important;
}

/* توضیحات */
.gift-card-contact-box .contact-description {
    font-size: 16px;
    color: #5d4037;
    margin-bottom: 20px;
    line-height: 1.8;
    direction: rtl !important;
    text-align: center !important;
}

/* دکمه‌های تماس */
.gift-card-contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* دکمه تماس */
.gift-card-contact-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    direction: rtl !important;
    text-align: right !important;
    flex-direction: row-reverse;
}

.gift-card-contact-btn:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    color: #ffffff;
}

.gift-card-contact-btn:active {
    transform: translateY(0);
}

/* آیکون در دکمه */
.gift-card-contact-btn .btn-icon {
    font-size: 20px;
    margin-left: 8px;
}

/* متن دکمه */
.gift-card-contact-btn .btn-text {
    direction: rtl !important;
    text-align: right !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* نمایش صحیح شماره‌ها */
.gift-card-contact-btn .btn-text span[dir="ltr"] {
    direction: ltr !important;
    unicode-bidi: plaintext;
    display: inline-block;
    font-family: 'Tahoma', Arial, sans-serif;
    font-weight: 700;
}

/* دکمه واتساپ */
.gift-card-contact-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.gift-card-contact-btn.whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* انیمیشن pulse */
@keyframes gift-card-pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(255, 152, 0, 0.15);
    }
    50% {
        box-shadow: 0 8px 35px rgba(255, 152, 0, 0.25);
    }
}

/* انیمیشن آیکون */
@keyframes gift-icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gift-card-contact-box {
        padding: 20px 15px;
    }
    
    .gift-card-contact-box .contact-icon {
        font-size: 42px;
    }
    
    .gift-card-contact-box .contact-title {
        font-size: 19px;
    }
    
    .gift-card-contact-box .contact-description {
        font-size: 14px;
    }
    
    .gift-card-contact-buttons {
        flex-direction: column;
    }
    
    .gift-card-contact-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 25px;
    }
}

/* Print styles */
@media print {
    .woodmart-network-status,
    .mobile-nav-fixed,
    .woodmart-error-fallback,
    .woodmart-scroll-menu-button,
    .gift-card-contact-box {
        display: none !important;
    }
    
    .cart-data-form {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .cart-data-form .shop_table tbody tr {
        break-inside: avoid !important;
    }
}
