/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


/* ============================================================
   🎨 استایل‌های سفارشی عمومی - Ultimate Premium Edition
   رنگ اصلی: #dc143c & #a20623
   طراحی: Ultra Luxury & Modern
   ============================================================ */

/* ========== متغیرهای رنگی ========== */
:root {
    --primary-color: #dc143c;
    --primary-dark: #a20623;
    --primary-light: #e22d2d;
    --gradient-primary: linear-gradient(135deg, #dc143c 0%, #a20623 100%);
    --gradient-light: linear-gradient(135deg, #e22d2d 0%, #dc143c 100%);
    --shadow-primary: 0 8px 24px rgba(220, 20, 60, 0.25);
    --shadow-hover: 0 12px 32px rgba(220, 20, 60, 0.35);
}

/* ========== منوی اصلی ========== */
.main-nav .menu > li > a {
    color: #333333;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    padding: 12px 18px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.main-nav .menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.4);
}

.main-nav .menu > li > a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.08) 0%, rgba(162, 6, 35, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
}

.main-nav .menu > li > a:hover,
.main-nav .menu > li.current-menu-item > a {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.main-nav .menu > li > a:hover::before,
.main-nav .menu > li.current-menu-item > a::before {
    width: 80%;
}

.main-nav .menu > li > a:hover::after,
.main-nav .menu > li.current-menu-item > a::after {
    opacity: 1;
}

/* ========== زیرمنو ========== */
.main-nav .menu > li .sub-menu {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(220, 20, 60, 0.08);
    padding: 12px;
    margin-top: 8px;
    border: none;
}

.main-nav .menu > li .sub-menu li a {
    color: #555555;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.main-nav .menu > li .sub-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-primary);
    transform: translateY(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 4px 4px 0;
}

.main-nav .menu > li .sub-menu li a:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.06) 0%, rgba(162, 6, 35, 0.06) 100%);
    transform: translateX(6px);
    padding-left: 28px;
}

.main-nav .menu > li .sub-menu li a:hover::before {
    width: 4px;
    height: 100%;
}

/* ========== جستجو ========== */
.search-button,
.wd-search-full-screen .searchform button[type="submit"] {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.search-button::before,
.wd-search-full-screen .searchform button[type="submit"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #a20623 0%, #8a0519 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-button::after,
.wd-search-full-screen .searchform button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.search-button:hover,
.wd-search-full-screen .searchform button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.search-button:hover::before,
.wd-search-full-screen .searchform button[type="submit"]:hover::before {
    opacity: 1;
}

.search-button:active::after,
.wd-search-full-screen .searchform button[type="submit"]:active::after {
    width: 300px;
    height: 300px;
}

.wd-search-full-screen .searchform input[type="text"] {
    border: 2px solid rgba(220, 20, 60, 0.2);
    border-radius: 50px;
    padding: 16px 28px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.wd-search-full-screen .searchform input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(220, 20, 60, 0.1),
        0 8px 24px rgba(220, 20, 60, 0.15);
    outline: none;
}

/* ========== دکمه‌های اصلی ========== */
.button,
.btn,
input[type="submit"],
button[type="submit"],
.single_add_to_cart_button {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 14px 36px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: var(--shadow-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 14px;
}

.button::before,
.btn::before,
input[type="submit"]::before,
button[type="submit"]::before,
.single_add_to_cart_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.button:hover,
.btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.single_add_to_cart_button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.button:hover::before,
.btn:hover::before,
input[type="submit"]:hover::before,
button[type="submit"]:hover::before,
.single_add_to_cart_button:hover::before {
    left: 100%;
}

.button:active,
.btn:active,
input[type="submit"]:active,
button[type="submit"]:active,
.single_add_to_cart_button:active {
    transform: translateY(-1px) scale(0.98);
}

/* ========== دکمه‌های ثانویه ========== */
.button.alt,
.btn-secondary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.15);
}

.button.alt::before,
.btn-secondary::before {
    background: var(--gradient-primary);
    opacity: 0;
    left: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.button.alt:hover,
.btn-secondary:hover {
    color: #ffffff !important;
    border-color: var(--primary-dark);
}

.button.alt:hover::before,
.btn-secondary:hover::before {
    opacity: 1;
}

/* ========== لینک‌ها ========== */
a {
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.entry-content a:not(.button):not(.btn) {
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 100%);
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 2px;
}

.entry-content a:not(.button):not(.btn):hover {
    background-size: 100% 2px;
}

/* ========== Badge سبد خرید ========== */
.shopping-cart .cart-count,
.wd-tools-element .wd-tools-count {
    background: var(--gradient-primary);
    color: #ffffff;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 
        0 4px 12px rgba(220, 20, 60, 0.4),
        0 0 0 2px #ffffff;
    animation: badge-pulse 2s ease-in-out infinite;
    position: relative;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 4px 12px rgba(220, 20, 60, 0.4),
            0 0 0 2px #ffffff;
    }
    50% {
        transform: scale(1.1);
        box-shadow: 
            0 6px 16px rgba(220, 20, 60, 0.5),
            0 0 0 3px #ffffff;
    }
}

.shopping-cart .cart-count::before,
.wd-tools-element .wd-tools-count::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.3;
    animation: badge-ring 2s ease-in-out infinite;
}

@keyframes badge-ring {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ========== قیمت محصول ========== */
.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 24px;
    position: relative;
    display: inline-block;
}

.price .amount {
    background: linear-gradient(135deg, #dc143c 0%, #e22d2d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    position: relative;
    display: inline-block;
    text-shadow: 0 4px 12px rgba(220, 20, 60, 0.2);
}

.price .amount::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.4);
}

.product:hover .price .amount::after {
    opacity: 1;
    transform: scaleX(1);
}

.price del {
    opacity: 0.6;
    color: #999999;
    font-size: 18px;
    margin-left: 8px;
}

.price ins {
    text-decoration: none;
    margin-right: 8px;
}

/* ========== لیبل‌های محصول ========== */
.product-labels .product-label {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 
        0 4px 16px rgba(220, 20, 60, 0.35),
        0 0 0 2px rgba(255, 255, 255, 0.3) inset;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.product-labels .product-label::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: label-shine 3s ease-in-out infinite;
}

@keyframes label-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.product-labels .product-label.onsale {
    background: linear-gradient(135deg, #e22d2d 0%, #dc143c 100%);
    animation: label-glow 2s ease-in-out infinite;
}

@keyframes label-glow {
    0%, 100% {
        box-shadow: 
            0 4px 16px rgba(220, 20, 60, 0.35),
            0 0 0 2px rgba(255, 255, 255, 0.3) inset;
    }
    50% {
        box-shadow: 
            0 6px 24px rgba(220, 20, 60, 0.5),
            0 0 0 3px rgba(255, 255, 255, 0.4) inset;
    }
}

/* ========== ستاره‌های امتیاز ========== */
.star-rating {
    color: var(--primary-color);
    position: relative;
}

.star-rating::before {
    color: rgba(220, 20, 60, 0.2);
}

.star-rating span {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(220, 20, 60, 0.4);
}

.star-rating span::before {
    color: var(--primary-color);
}

/* ========== Pagination ========== */
.pagination .page-numbers {
    background: #ffffff;
    color: #333333;
    border: 2px solid rgba(220, 20, 60, 0.2);
    border-radius: 12px;
    padding: 10px 18px;
    margin: 0 4px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.3);
}

/* ========== Breadcrumbs ========== */
.breadcrumb,
.woocommerce-breadcrumb {
    font-size: 14px;
    color: #666666;
}

.breadcrumb a,
.woocommerce-breadcrumb a {
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.breadcrumb a::after,
.woocommerce-breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.breadcrumb a:hover::after,
.woocommerce-breadcrumb a:hover::after {
    width: 100%;
}

/* ========== فرم‌ها ========== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select {
    border: 2px solid rgba(220, 20, 60, 0.15);
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(220, 20, 60, 0.1),
        0 8px 24px rgba(220, 20, 60, 0.15);
    outline: none;
    transform: translateY(-2px);
}

/* ========== Checkbox & Radio ========== */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
}

/* ========== Tabs ========== */
.tabs .tab-title,
.woocommerce-tabs .tabs li {
    border-bottom: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tabs .tab-title.active,
.woocommerce-tabs .tabs li.active {
    border-bottom-color: var(--primary-color);
}

.tabs .tab-title a,
.woocommerce-tabs .tabs li a {
    color: #666666;
    font-weight: 600;
    padding: 14px 24px;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tabs .tab-title.active a,
.woocommerce-tabs .tabs li.active a {
    color: var(--primary-color);
}

.tabs .tab-title::before,
.woocommerce-tabs .tabs li::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.4);
}

.tabs .tab-title.active::before,
.woocommerce-tabs .tabs li.active::before {
    width: 100%;
}

/* ========== Notices & Alerts ========== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 16px;
    padding: 18px 24px;
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.05) 0%, rgba(162, 6, 35, 0.05) 100%);
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.1);
    position: relative;
    overflow: hidden;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    color: var(--primary-color);
    font-size: 20px;
}

/* ========== Scroll to Top ========== */
.scrollToTop {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: var(--shadow-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scrollToTop:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-hover);
}

.scrollToTop::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.3;
    animation: scroll-ring 2s ease-in-out infinite;
}

@keyframes scroll-ring {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ========== Widget Titles ========== */
.widget-title,
.widgettitle {
    color: #333333;
    font-weight: 700;
    font-size: 20px;
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.widget-title::after,
.widgettitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

/* ========== Product Grid Hover ========== */
.product-grid-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
}

.product-grid-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    filter: blur(12px);
}

.product-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.product-grid-item:hover::before {
    opacity: 0.4;
}

/* ========== Loading Animation ========== */
.loader,
.loading::after {
    border: 4px solid rgba(220, 20, 60, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== Selection ========== */
::selection {
    background: var(--primary-color);
    color: #ffffff;
    text-shadow: none;
}

::-moz-selection {
    background: var(--primary-color);
    color: #ffffff;
    text-shadow: none;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a20623 0%, #8a0519 100%);
}

/* ========== Accessibility ========== */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 6px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.25);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .main-nav .menu > li > a {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .button,
    .btn {
        padding: 12px 28px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .main-nav .menu > li > a {
        padding: 12px 20px;
        border-radius: 12px;
    }
    
    .price {
        font-size: 20px;
    }
    
    .product-grid-item:hover {
        transform: translateY(-4px);
    }
}

/* ========== Performance ========== */
.product-grid-item,
.button,
.btn,
a,
input {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== Dark Mode Support ========== */
/* ========== ادامه Dark Mode Support ========== */
@media (prefers-color-scheme: dark) {
    :root {
        --shadow-primary: 0 8px 24px rgba(220, 20, 60, 0.4);
        --shadow-hover: 0 12px 32px rgba(220, 20, 60, 0.5);
    }
    
    .main-nav .menu > li > a {
        color: #e0e0e0;
    }
    
    .main-nav .menu > li .sub-menu {
        background: #1a1a1a;
        box-shadow: 
            0 16px 48px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(220, 20, 60, 0.15);
    }
    
    .main-nav .menu > li .sub-menu li a {
        color: #cccccc;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        background: #2a2a2a;
        color: #e0e0e0;
        border-color: rgba(220, 20, 60, 0.3);
    }
    
    .product-grid-item {
        background: #1a1a1a;
    }
    
    .widget-title,
    .widgettitle {
        color: #e0e0e0;
    }
}

/* ========== Print Styles ========== */
@media print {
    .main-nav,
    .search-button,
    .scrollToTop,
    .product-labels {
        display: none !important;
    }
    
    .button,
    .btn {
        background: #ffffff !important;
        color: var(--primary-color) !important;
        border: 2px solid var(--primary-color) !important;
        box-shadow: none !important;
    }
}

/* ========== استایل‌های اضافی برای WooCommerce ========== */

/* سبد خرید */
.woocommerce-cart-form {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.woocommerce-cart-form table {
    border: none;
}

.woocommerce-cart-form .product-remove a {
    color: var(--primary-color) !important;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce-cart-form .product-remove a:hover {
    background: var(--gradient-primary);
    color: #ffffff !important;
    transform: rotate(90deg) scale(1.1);
}

.woocommerce-cart-form .product-quantity input {
    border: 2px solid rgba(220, 20, 60, 0.2);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce-cart-form .product-quantity input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1);
}

/* جمع کل سبد */
.cart-collaterals .cart_totals {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(220, 20, 60, 0.1);
}

.cart-collaterals .cart_totals h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 16px;
}

.cart-collaterals .cart_totals h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.cart-collaterals .cart_totals .order-total {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.cart-collaterals .cart_totals .order-total .amount {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* صفحه پرداخت */
.woocommerce-checkout #payment {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(220, 20, 60, 0.1);
}

.woocommerce-checkout #payment .payment_methods {
    border: none;
}

.woocommerce-checkout #payment .payment_methods li {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.03) 0%, rgba(162, 6, 35, 0.03) 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid rgba(220, 20, 60, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce-checkout #payment .payment_methods li:hover,
.woocommerce-checkout #payment .payment_methods li.wc_payment_method {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.08) 0%, rgba(162, 6, 35, 0.08) 100%);
    transform: translateX(4px);
}

.woocommerce-checkout #payment .payment_methods li input[type="radio"]:checked + label {
    color: var(--primary-color);
    font-weight: 600;
}

.woocommerce-checkout #place_order {
    width: 100%;
    padding: 18px 40px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* محصولات مرتبط */
.related.products h2,
.upsells.products h2 {
    color: #333333;
    font-weight: 700;
    font-size: 28px;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 32px;
}

.related.products h2::after,
.upsells.products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

/* نظرات محصول */
.woocommerce-Reviews {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.woocommerce-Reviews .comment-form-rating label {
    color: var(--primary-color);
    font-weight: 600;
}

.woocommerce-Reviews .stars a {
    color: rgba(220, 20, 60, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce-Reviews .stars a:hover,
.woocommerce-Reviews .stars a.active {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(220, 20, 60, 0.5);
    transform: scale(1.2);
}

/* فیلترهای محصول */
.widget_price_filter .price_slider_wrapper .ui-slider {
    background: rgba(220, 20, 60, 0.15);
    border-radius: 10px;
    height: 8px;
    border: none;
}

.widget_price_filter .price_slider_wrapper .ui-slider .ui-slider-range {
    background: var(--gradient-primary);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

.widget_price_filter .price_slider_wrapper .ui-slider .ui-slider-handle {
    background: #ffffff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget_price_filter .price_slider_wrapper .ui-slider .ui-slider-handle:hover {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4);
}

.widget_price_filter .price_slider_amount button {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    border: none;
    box-shadow: var(--shadow-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget_price_filter .price_slider_amount button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* لیست علاقه‌مندی */
.wishlist_table .product-add-to-cart a {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    border: none;
    box-shadow: var(--shadow-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.wishlist_table .product-add-to-cart a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.wishlist_table .product-remove a {
    color: var(--primary-color) !important;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wishlist_table .product-remove a:hover {
    background: var(--gradient-primary);
    color: #ffffff !important;
    transform: rotate(90deg) scale(1.1);
}

/* مقایسه محصولات */
.compare-table .add-to-cart a {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    border: none;
    box-shadow: var(--shadow-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.compare-table .add-to-cart a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Quick View */
.wd-quick-view-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(220, 20, 60, 0.2);
}

.wd-quick-view-btn:hover {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
    border-color: var(--primary-color);
}

/* دکمه افزودن به سبد در لیست محصولات */
.product .add_to_cart_button {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    border: none;
    box-shadow: var(--shadow-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product .add_to_cart_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.product .add_to_cart_button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.product .add_to_cart_button:hover::before {
    left: 100%;
}

.product .add_to_cart_button.added {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.product .add_to_cart_button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.product .add_to_cart_button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* دکمه علاقه‌مندی */
.wd-wishlist-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(220, 20, 60, 0.2);
    position: relative;
    overflow: hidden;
}

.wd-wishlist-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.wd-wishlist-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
    border-color: var(--primary-color);
}

.wd-wishlist-btn:hover::before {
    opacity: 1;
}

.wd-wishlist-btn:hover i {
    position: relative;
    z-index: 1;
    color: #ffffff !important;
}

.wd-wishlist-btn.added {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    animation: wishlist-added 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes wishlist-added {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* دکمه مقایسه */
.wd-compare-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(220, 20, 60, 0.2);
}

.wd-compare-btn:hover {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
    border-color: var(--primary-color);
}

/* تخفیف درصدی */
.onsale {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 
        0 6px 20px rgba(220, 20, 60, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.3) inset;
    position: relative;
    overflow: hidden;
    animation: sale-pulse 2s ease-in-out infinite;
}

@keyframes sale-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 6px 20px rgba(220, 20, 60, 0.4),
            0 0 0 3px rgba(255, 255, 255, 0.3) inset;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 8px 28px rgba(220, 20, 60, 0.5),
            0 0 0 4px rgba(255, 255, 255, 0.4) inset;
    }
}

.onsale::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: sale-shine 3s ease-in-out infinite;
}

@keyframes sale-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* موجودی محصول */
.stock {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-block;
    font-size: 13px;
}

.stock.in-stock {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    color: #28a745;
    border: 2px solid rgba(40, 167, 69, 0.3);
}

.stock.out-of-stock {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(162, 6, 35, 0.1) 100%);
    color: var(--primary-color);
    border: 2px solid rgba(220, 20, 60, 0.3);
}

/* کوپن تخفیف */
.woocommerce-form-coupon {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.05) 0%, rgba(162, 6, 35, 0.05) 100%);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid rgba(220, 20, 60, 0.15);
    margin-bottom: 24px;
}

.woocommerce-form-coupon input[type="text"] {
    border: 2px solid rgba(220, 20, 60, 0.2);
    border-radius: 50px 0 0 50px;
    padding: 12px 20px;
}

.woocommerce-form-coupon button[type="submit"] {
    border-radius: 0 50px 50px 0;
    padding: 12px 28px;
}

/* پیام موفقیت */
.woocommerce-message {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    border-left-color: #28a745;
    color: #155724;
}

.woocommerce-message::before {
    content: '✓';
    color: #28a745;
}

.woocommerce-message a {
    color: #28a745;
    font-weight: 600;
    text-decoration: underline;
}

.woocommerce-message a:hover {
    color: #20c997;
}

/* پیام خطا */
.woocommerce-error {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(162, 6, 35, 0.1) 100%);
    border-left-color: var(--primary-color);
    color: #721c24;
}

.woocommerce-error::before {
    content: '✕';
    color: var(--primary-color);
}

/* پیام اطلاعات */
.woocommerce-info {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
    border-left-color: #007bff;
    color: #004085;
}

.woocommerce-info::before {
    content: 'ℹ';
    color: #007bff;
}

/* انیمیشن ورود عناصر */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-grid-item,
.widget,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.product-grid-item:nth-child(1) { animation-delay: 0.1s; }
.product-grid-item:nth-child(2) { animation-delay: 0.2s; }
.product-grid-item:nth-child(3) { animation-delay: 0.3s; }
.product-grid-item:nth-child(4) { animation-delay: 0.4s; }
.product-grid-item:nth-child(5) { animation-delay: 0.5s; }
.product-grid-item:nth-child(6) { animation-delay: 0.6s; }

/* ========== پایان استایل‌های عمومی ========== */




/* ═══════════════════════════════════════════════════════════
   🎨 MOBILE CUSTOM CSS - ULTRA LUXURY EDITION
   Primary Color: #a20623 | Ultra Modern & Touch-Optimized
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────── */
/* 📱 MOBILE BREAKPOINTS & VARIABLES */
/* ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --mobile-primary: #a20623;
    --mobile-primary-dark: #7a0419;
    --mobile-primary-light: #c92d47;
    --mobile-gradient: linear-gradient(135deg, #a20623 0%, #dc143c 100%);
    --mobile-shadow: 0 4px 15px rgba(162, 6, 35, 0.25);
    --mobile-glow: 0 0 20px rgba(162, 6, 35, 0.4);
    --mobile-spacing: 12px;
    --mobile-radius: 12px;
    --mobile-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 🎯 MOBILE NAVIGATION MENU */
  /* ─────────────────────────────────────────────────────────── */

  .mobile-menu,
  .mobile-navigation,
  nav.mobile,
  .menu-mobile-container {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-radius: 0 0 var(--mobile-radius) var(--mobile-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: var(--mobile-spacing);
  }

  .mobile-menu a,
  .mobile-navigation a,
  nav.mobile a {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    border-radius: 10px;
    transition: var(--mobile-transition);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
  }

  .mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--mobile-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
  }

  .mobile-menu a:active,
  .mobile-menu a.current-menu-item {
    background: linear-gradient(135deg, rgba(162, 6, 35, 0.08) 0%, rgba(220, 20, 60, 0.08) 100%);
    color: var(--mobile-primary);
  }

  .mobile-menu a:active::before,
  .mobile-menu a.current-menu-item::before {
    transform: scaleY(1);
  }

  /* Mobile Menu Toggle Button */
  .mobile-menu-toggle,
  .hamburger-menu,
  button.menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--mobile-gradient);
    border: none;
    box-shadow: var(--mobile-shadow);
    position: relative;
    transition: var(--mobile-transition);
  }

  .mobile-menu-toggle:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(162, 6, 35, 0.3);
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px auto;
    border-radius: 2px;
    transition: var(--mobile-transition);
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 🔍 MOBILE SEARCH BAR */
  /* ─────────────────────────────────────────────────────────── */

  .mobile-search,
  .search-mobile,
  form.search-form {
    margin: var(--mobile-spacing) 0;
    position: relative;
  }

  .mobile-search input[type="search"],
  .search-mobile input[type="search"] {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: var(--mobile-radius);
    font-size: 15px;
    transition: var(--mobile-transition);
    background: #fff;
  }

  .mobile-search input[type="search"]:focus {
    border-color: var(--mobile-primary);
    box-shadow: 0 0 0 4px rgba(162, 6, 35, 0.1);
    outline: none;
  }

  .mobile-search button[type="submit"],
  .search-mobile button[type="submit"] {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--mobile-gradient);
    border: none;
    color: #fff;
    font-size: 16px;
    transition: var(--mobile-transition);
  }

  .mobile-search button[type="submit"]:active {
    transform: translateY(-50%) scale(0.92);
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 🎨 MOBILE BUTTONS */
  /* ─────────────────────────────────────────────────────────── */

  button,
  .button,
  input[type="submit"],
  input[type="button"],
  .btn,
  a.button {
    min-height: 48px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--mobile-radius);
    transition: var(--mobile-transition);
    -webkit-tap-highlight-color: transparent;
  }

  .button-primary,
  button.primary,
  .btn-primary,
  input[type="submit"] {
    background: var(--mobile-gradient);
    color: #fff;
    border: none;
    box-shadow: var(--mobile-shadow);
    position: relative;
    overflow: hidden;
  }

  .button-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
  }

  .button-primary:active::after {
    width: 300px;
    height: 300px;
  }

  .button-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(162, 6, 35, 0.3);
  }

  /* Add to Cart Button - Mobile */
  .add_to_cart_button,
  button.single_add_to_cart_button {
    width: 100%;
    background: var(--mobile-gradient);
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--mobile-radius);
    box-shadow: var(--mobile-shadow);
    transition: var(--mobile-transition);
    position: relative;
    overflow: hidden;
  }

  .add_to_cart_button:active {
    transform: scale(0.98);
  }

  .add_to_cart_button.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: mobileShimmer 1.5s infinite;
  }

  @keyframes mobileShimmer {
    to { left: 100%; }
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 🛍️ MOBILE PRODUCT CARDS */
  /* ─────────────────────────────────────────────────────────── */

  .product,
  .product-item,
  .woocommerce ul.products li.product {
    border-radius: var(--mobile-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--mobile-transition);
    background: #fff;
  }

  .product:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  .product img,
  .product-image img {
    border-radius: var(--mobile-radius) var(--mobile-radius) 0 0;
    transition: var(--mobile-transition);
  }

  /* Product Price - Mobile */
  .product .price,
  .woocommerce ul.products li.product .price {
    font-size: 18px;
    font-weight: 700;
    background: var(--mobile-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 8px 0;
  }

  .product .price del {
    opacity: 0.5;
    font-size: 14px;
    margin-left: 6px;
    -webkit-text-fill-color: #999;
  }

  /* Sale Badge - Mobile */
  .onsale,
  .product-badge,
  span.onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--mobile-gradient);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--mobile-shadow);
    z-index: 10;
    animation: mobilePulse 2s infinite;
  }

  @keyframes mobilePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }

  /* ─────────────────────────────────────────────────────────── */
  /* ⭐ MOBILE STAR RATINGS */
  /* ─────────────────────────────────────────────────────────── */

  .star-rating,
  .woocommerce .star-rating {
    font-size: 16px;
    margin: 8px 0;
  }

  .star-rating span::before,
  .woocommerce .star-rating span::before {
    color: var(--mobile-primary);
    text-shadow: 0 1px 3px rgba(162, 6, 35, 0.3);
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 🛒 MOBILE CART BADGE */
  /* ─────────────────────────────────────────────────────────── */

  .cart-count,
  .cart-badge,
  .mini-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    background: var(--mobile-gradient);
    color: #fff;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(162, 6, 35, 0.4);
    animation: mobileBadgePulse 2s infinite;
  }

  @keyframes mobileBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 📝 MOBILE FORMS */
  /* ─────────────────────────────────────────────────────────── */

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  textarea,
  select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: var(--mobile-radius);
    font-size: 15px;
    transition: var(--mobile-transition);
    -webkit-appearance: none;
    appearance: none;
  }

  input:focus,
  textarea:focus,
  select:focus {
    border-color: var(--mobile-primary);
    box-shadow: 0 0 0 4px rgba(162, 6, 35, 0.1);
    outline: none;
  }

  textarea {
    min-height: 120px;
    resize: vertical;
  }

  /* ─────────────────────────────────────────────────────────── */
  /* ✅ MOBILE CHECKBOXES & RADIOS */
  /* ─────────────────────────────────────────────────────────── */

  input[type="checkbox"],
  input[type="radio"] {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 6px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: var(--mobile-transition);
  }

  input[type="radio"] {
    border-radius: 50%;
  }

  input[type="checkbox"]:checked,
  input[type="radio"]:checked {
    background: var(--mobile-gradient);
    border-color: var(--mobile-primary);
  }

  input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }

  input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 📄 MOBILE PAGINATION */
  /* ─────────────────────────────────────────────────────────── */

  .pagination,
  .woocommerce-pagination,
  nav.navigation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
  }

  .pagination a,
  .pagination span,
  .woocommerce-pagination a,
  .woocommerce-pagination span {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--mobile-transition);
    border: 2px solid #e8e8e8;
    background: #fff;
  }

  .pagination a:active,
  .pagination span.current {
    background: var(--mobile-gradient);
    color: #fff;
    border-color: var(--mobile-primary);
    box-shadow: var(--mobile-shadow);
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 🔔 MOBILE NOTICES & ALERTS */
  /* ─────────────────────────────────────────────────────────── */

  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error,
  .notice {
    padding: 14px 16px;
    border-radius: var(--mobile-radius);
    margin: var(--mobile-spacing) 0;
    font-size: 14px;
    border-left: 4px solid;
  }

  .woocommerce-message,
  .notice-success {
    background: linear-gradient(135deg, rgba(162, 6, 35, 0.08) 0%, rgba(220, 20, 60, 0.08) 100%);
    border-left-color: var(--mobile-primary);
    color: var(--mobile-primary-dark);
  }

  .woocommerce-info {
    background: rgba(33, 150, 243, 0.08);
    border-left-color: #2196f3;
    color: #1565c0;
  }

  .woocommerce-error {
    background: rgba(244, 67, 54, 0.08);
    border-left-color: #f44336;
    color: #c62828;
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 🎯 MOBILE QUANTITY SELECTOR */
  /* ─────────────────────────────────────────────────────────── */

  .quantity,
  .woocommerce .quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #e8e8e8;
    border-radius: var(--mobile-radius);
    overflow: hidden;
    background: #fff;
  }

  .quantity input[type="number"] {
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    width: 60px;
    padding: 12px 8px;
  }

  .quantity button,
  .quantity .qty-btn {
    min-width: 44px;
    height: 44px;
    background: var(--mobile-gradient);
    color: #fff;
    border: none;
    font-size: 18px;
    font-weight: 700;
    transition: var(--mobile-transition);
  }

  .quantity button:active {
    background: var(--mobile-primary-dark);
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 🎨 MOBILE TABS */
  /* ─────────────────────────────────────────────────────────── */

  .tabs,
  .woocommerce-tabs,
  ul.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e8e8e8;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs li,
  .woocommerce-tabs li {
    flex-shrink: 0;
  }

  .tabs a,
  .woocommerce-tabs a {
    display: block;
    padding: 14px 20px;
    font-weight: 600;
    color: #666;
    border-radius: var(--mobile-radius) var(--mobile-radius) 0 0;
    transition: var(--mobile-transition);
    position: relative;
  }

  .tabs li.active a,
  .woocommerce-tabs li.active a {
    color: var(--mobile-primary);
  }

  .tabs li.active a::after,
  .woocommerce-tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--mobile-gradient);
    border-radius: 3px 3px 0 0;
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 🎪 MOBILE CART TABLE */
  /* ─────────────────────────────────────────────────────────── */

  .woocommerce-cart-form,
  .cart-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .woocommerce table.cart,
  .cart-table table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
  }

  .woocommerce table.cart td {
    padding: 12px;
    background: #fff;
    border-radius: var(--mobile-radius);
  }

  .woocommerce table.cart .product-remove a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f44336;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    transition: var(--mobile-transition);
  }

  .woocommerce table.cart .product-remove a:active {
    transform: scale(0.9);
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 💳 MOBILE CHECKOUT */
  /* ─────────────────────────────────────────────────────────── */

  .woocommerce-checkout .form-row {
    margin-bottom: 16px;
  }

  .woocommerce-checkout label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #333;
  }

  #place_order,
  .woocommerce-checkout button[type="submit"] {
    width: 100%;
    padding: 18px;
    font-size: 17px;
    font-weight: 700;
    background: var(--mobile-gradient);
    color: #fff;
    border: none;
    border-radius: var(--mobile-radius);
    box-shadow: var(--mobile-shadow);
    transition: var(--mobile-transition);
  }

  #place_order:active {
    transform: scale(0.98);
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 🎯 MOBILE STICKY ELEMENTS */
  /* ─────────────────────────────────────────────────────────── */

  .sticky-header,
  .mobile-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: var(--mobile-spacing);
    border-radius: 0 0 var(--mobile-radius) var(--mobile-radius);
  }

  .sticky-add-to-cart,
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    border-radius: var(--mobile-radius) var(--mobile-radius) 0 0;
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 🎨 MOBILE SCROLL TO TOP */
  /* ─────────────────────────────────────────────────────────── */

  .scroll-to-top,
  #back-to-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 50px;
    height: 50px;
    background: var(--mobile-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--mobile-shadow);
    z-index: 998;
    transition: var(--mobile-transition);
  }

  .scroll-to-top:active {
    transform: scale(0.9);
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 🎯 MOBILE TOUCH OPTIMIZATIONS */
  /* ─────────────────────────────────────────────────────────── */

  * {
    -webkit-tap-highlight-color: rgba(162, 6, 35, 0.1);
    -webkit-touch-callout: none;
  }

  a, button, input, select, textarea {
    touch-action: manipulation;
  }

  /* Smooth Scrolling */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 🎨 MOBILE LOADING STATES */
  /* ─────────────────────────────────────────────────────────── */

  .loading,
  .is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
  }

  .loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(162, 6, 35, 0.2);
    border-top-color: var(--mobile-primary);
    border-radius: 50%;
    animation: mobileSpinner 0.8s linear infinite;
  }

  @keyframes mobileSpinner {
    to { transform: rotate(360deg); }
  }

  /* ─────────────────────────────────────────────────────────── */
  /* 🎯 MOBILE PERFORMANCE OPTIMIZATIONS */
  /* ─────────────────────────────────────────────────────────── */

  .product img,
  .button,
  .add_to_cart_button {
    will-change: transform;
  }

  /* Reduce Motion for Accessibility */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

} /* End of Mobile Media Query */

/* ═══════════════════════════════════════════════════════════
   ✨ END OF MOBILE CUSTOM CSS
   ═══════════════════════════════════════════════════════════ */
