/**
 * WooCommerce Custom Styles
 * Compatible with all WooCommerce versions
 */

/*woocommerce*/
.woocommerce-breadcrumb a {
    color: #464644;
}

.woocommerce-breadcrumb a:hover {
    color: #0e59f2;
}

.woocommerce div.product .product_title {
    border-radius: 12px;
    background: #f4f5f7;
    padding: 10px !important;
    font-size: 18px;
    font-weight: 400;
    color: #5e5858;
    line-height: 2;
    width: 100% !important;
}

.woocommerce-product-rating {
    display: flex !important;
    background: #f4f5f7;
    padding: 10px 20px 6px 15px !important;
    border-radius: 12px;
    float: right;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.woocommerce .woocommerce-product-rating .star-rating {
    margin: 0 0 5px 0;
}

.woocommerce .woocommerce-product-rating::after, .woocommerce .woocommerce-product-rating::before {
    display: none;
}

.woocommerce .star-rating span::before, .woocommerce p.stars a::before {
    color: #ffc312;
}

.price {
    text-decoration: none;
    font-weight: 800 !important;
    font-size: 20px;
    text-align: center !important;
}

.price del {
    color: #0e59f2;
    font-size: 14px;
}

.price ins {
    text-decoration: none;
    font-weight: 800 !important;
    font-size: 20px;
}

span.woocommerce-Price-amount.amount, span.woocommerce-Price-currencySymbol {
    color: #0e59f2 !important;
}

.woocommerce-product-details__short-description {
    float: right;
}

.woocommerce-product-gallery__wrapper img {
    transform: scale(0.7);
}

.woocommerce-product-details__short-description h4 span {
    font-size: 20px;
}

.woocommerce-product-details__short-description h3, .woocommerce-product-details__short-description ul li {
    list-style: circle;
    line-height: 2;
}

.quantity {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
}

.quantity:hover {
    border: 1px solid #0e59f2;
}

.woocommerce .quantity .qty {
    border: none !important;
}

button.single_add_to_cart_button {
    border: 1px solid #ddd !important;
    border-radius: 15px !important;
    background: #fff !important;
    color: #464644 !important;
    padding: 15px !important;
}

button.single_add_to_cart_button:hover {
    border: 1px solid #0e59f2 !important;
    color: #0e59f2 !important;
}

.woocommerce span.onsale {
    background-color: #0e59f2 !important;
}

.woocommerce-Tabs-panel p {
    line-height: 2;
}

ul.tabs.wc-tabs {
    background: #f4f5f7;
    border-radius: 12px;
    padding: 10px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none !important;
}

ul.tabs.wc-tabs li {
    border: none !important;
    background-color: unset !important;
    margin-right: 10px !important;
}

ul.tabs.wc-tabs li a {
    color: #464644 !important;
}

ul.tabs.wc-tabs li.active {
    background-color: #fff !important;
    border-radius: 15px !important;
}

ul.tabs.wc-tabs li.active a {
    color: #0e59f2 !important;
}

ul.tabs.wc-tabs li::before {
    display: none !important;
}

ul.tabs.wc-tabs li::after {
    display: none !important;
}

.commentlist li {
    border: 1px solid #ddd !important;
    border-radius: 15px !important;
    padding: 10px !important;
    margin: 20px 0 !important;
}

.commentlist .children li {
    border: none !important;
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
    margin: 10px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 3px solid #007bff !important;
    object-fit: cover !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
    background: unset !important;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
    border: 1px solid #ddd !important;
    border-radius: 15px !important;
}

.woocommerce-variation-price {
    margin-bottom: 15px;
}

.woocommerce-message, .woocommerce-info {
    border-radius: 40px !important;
    border-top: unset !important;
}

.woocommerce-message::before {
    color: #0e59f2 !important;
}

a.button.wc-forward {
    border-radius: 15px !important;
    background: #efe5fa !important;
    color: #464644 !important;
    border: 1px solid #ddd !important;
    margin-right: 15px;
}

a.button.wc-forward:hover {
    color: #0e59f2 !important;
    border: 1px solid #0e59f2 !important;
}

.woocommerce-notices-wrapper {
    margin-right: 300px;
}

.wc-block-components-main.wc-block-cart__main.wp-block-woocommerce-cart-items-block {
    border-radius: 15px;
    padding: 10px;
    box-shadow: rgb(255 255 255 / 0%) 0px 1px 1px 0px inset, rgb(50 50 93 / 0%) 0px 50px 100px -20px, rgb(0 0 0 / 13%) 0px 30px 60px -30px;
}

.wc-block-components-sidebar-layout .wc-block-components-main {
    box-shadow: rgb(255 255 255 / 0%) 0px 1px 1px 0px inset, rgb(50 50 93 / 0%) 0px 50px 100px -20px, rgb(0 0 0 / 13%) 0px 30px 60px -30px;
    padding: 10px;
    border-radius: 15px;
}

table.wc-block-cart-items.wp-block-woocommerce-cart-line-items-block:last-child {
    border-bottom: none !important;
}

button.wc-block-cart-item__remove-link {
    text-decoration: none !important;
    border: 1px solid #ddd !important;
    border-radius: 15px !important;
    padding: 10px !important;
}

button.wc-block-cart-item__remove-link:hover {
    border: 1px solid #0e59f2 !important;
}

a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
    border: 1px solid #ddd;
    border-radius: 15px;
    margin-top: 15px;
}

a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover {
    border: 1px solid #0e59f2;
}

.wc-block-components-order-summary-item {
    flex-direction: column;
}

.woocommerce ul.order_details {
    padding: 0 !important;
}

.woocommerce ul.order_details li {
    margin-left: 1em !important;
}

.woocommerce-MyAccount-content {
    margin-bottom: 50px !important;
}

.woocommerce-MyAccount-navigation ul {
    width: 100%;
    overflow-x: auto;
}

.woocommerce-MyAccount-navigation ul li {
    margin-left: 10px;
}
/*end woocommerce*/

/*my account woocommerce*/
.account-summary-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 50px 0 12px 12px;
    text-align: center;
    margin-bottom: 30px;
}

.account-avatar img {
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.account-summary-card h3 {
    margin: 15px 0 5px;
    font-size: 1.4em;
    color: #2d3748;
}

.woocommerce-MyAccount-navigation {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-navigation ul {
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    color: #464644;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #0e59f2;
}

.account-avatar img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
}
/*end my account woocommerce*/

/* Product Gallery Zoom Fix - Added to existing styles */
.woocommerce-product-gallery {
    position: relative;
}

.woocommerce-product-gallery__image {
    position: relative;
    overflow: hidden;
}

/* Zoom functionality */
.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.woocommerce-product-gallery__trigger:hover {
    background: rgba(255, 255, 255, 1);
    color: #0e59f2;
}

/* Ensure zoom works properly */
.woocommerce-product-gallery__image img {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.woocommerce-product-gallery__image:hover img {
    transform: scale(1.05);
}

/* Flexslider compatibility */
.woocommerce-product-gallery .flex-viewport {
    overflow: hidden;
}

.woocommerce-product-gallery .flex-control-nav {
    margin-top: 10px;
}

.woocommerce-product-gallery .flex-control-nav li {
    margin: 0 5px;
}

.woocommerce-product-gallery .flex-control-nav img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.woocommerce-product-gallery .flex-control-nav img:hover {
    opacity: 0.8;
}

/* Modern Product Cards - Complete Redesign */

/* Shop Grid Layout */
.woocommerce .wc-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    padding: 30px;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.woocommerce .wc-hero-title {
    font-size: 28px;
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
}

.woocommerce .wc-hero-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.woocommerce .wc-toolbar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.woocommerce .wc-toolbar .woocommerce-breadcrumb {
    margin: 0;
}

/* Reset WooCommerce Default Styles */
.woocommerce ul.products {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce .wc-products-grid ul.products,
.woocommerce .wc-products-grid .products {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce .wc-products-grid .products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
    min-height: initial !important;
}

/* Modern Product Card */
.modern-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Product Image Container */
.product-image-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #f8fafc, #e2e8f0);
    height: 280px;
}

.product-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sale-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stock-badge.out-of-stock {
    background: linear-gradient(135deg, #636e72, #2d3436);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Quick Actions */
.quick-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.modern-product-card:hover .quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-view-btn,
.wishlist-btn {
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.quick-view-btn:hover,
.wishlist-btn:hover {
    background: #0e59f2;
    color: white;
    transform: scale(1.1);
}

/* Product Overlay */
/* Blog-like glass footer overlay */
.product-image-container { border-top-left-radius: 16px; border-top-right-radius: 16px; }
.product-image img { border-top-left-radius: 16px; border-top-right-radius: 16px; }
.product-overlay {
    position: absolute;
    bottom: -110px;
    left: 12px;
    right: 12px;
    background: transparent;
    padding: 0;
    transition: bottom 0.35s ease;
}

.modern-product-card:hover .product-overlay { bottom: 25px; }

.overlay-content {
    position: relative;
    background: rgba(0,20,62,0.80);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    padding: 12px 14px;
    color: #ffffff;
}

.product-excerpt { font-size: 13px; line-height: 1.6; margin: 0 0 10px 0; opacity: .95; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }

.overlay-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.overlay-actions .button {
    background: white !important;
    color: #0e59f2 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.overlay-actions .button:hover {
    background: #0e59f2 !important;
    color: white !important;
    transform: scale(1.05) !important;
}

/* Product Info Section */
.product-info {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Place product category over the image (bottom-right) */
.modern-product-card .product-image-container { position: relative; }
.modern-product-card .product-category { position: absolute; top: 28px; right: 10px; z-index: 12; margin: 0; }

.modern-product-card .product-category span { background: rgba(0,20,62,0.80); color: #fff; padding: 6px 12px; border-radius: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.2px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.12); }

.product-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.product-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #0e59f2;
}

.product-rating {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating .star-rating {
    font-size: 14px;
}

.product-rating .star-rating span::before {
    color: #fbbf24 !important;
}

/* Fix WooCommerce star rating showing letters: enforce star icon font */
.woocommerce .star-rating,
.woocommerce .star-rating::before,
.woocommerce .star-rating span::before {
    font-family: 'star' !important;
}

.product-price {
    margin-top: auto;
    font-size: 20px;
    font-weight: 700;
}

.product-price .price {
    color: #0e59f2 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-align: right !important;
}

.product-price .price del {
    color: #94a3b8 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

.product-price .price ins {
    text-decoration: none !important;
    color: #0e59f2 !important;
}

/* --- Shop Card Cleanup (Typography, Spacing, Price) --- */
.modern-product-card { background: #ffffff; box-shadow: 0 6px 18px rgba(2,6,23,0.06); height: 79%; }
.modern-product-card:hover { box-shadow: 0 14px 32px rgba(2,6,23,0.12); }

.product-image-container { border-top-left-radius: 16px; border-top-right-radius: 16px; border-bottom: 1px solid #eef2f7; }
.product-image img { border-top-left-radius: 16px; border-top-right-radius: 16px; }

.product-info { padding: 12px 12px 14px; display: block; flex-grow: 0; }

.product-category span { background: #f1f5f9; color: #0f172a; border: 1px solid #e2e8f0; }

.product-title { margin: 4px 0 6px 0; font-size: 15px; font-weight: 700; line-height: 1.5; }
.product-title a { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.product-rating { margin-bottom: 6px; }

.product-price { margin-top: 6px; }
.product-price .price { display: inline-flex; gap: 8px; align-items: baseline; color: #0f172a !important; }
.product-price .price del { order: 1; font-size: 14px !important; color: #94a3b8 !important; font-weight: 600 !important; }
.product-price .price ins { order: 2; font-size: 18px !important; color: #0e59f2 !important; font-weight: 800 !important; }

/* Responsive Design */
@media (max-width: 768px) {
    .modern-product-card {
        border-radius: 15px;
    }
    
    .product-image-container {
        height: 220px;
    }
    
    .product-info {
        padding: 20px 15px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .quick-actions {
        opacity: 1;
        transform: translateX(0);
        position: static;
        flex-direction: row;
        justify-content: space-between;
        padding: 15px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
    }
}

/* Loading Animation */
.modern-product-card {
    animation: fadeInUp 0.6s ease forwards;
}

.modern-product-card.animate-in {
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Toast Notifications */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-right: 4px solid #0e59f2;
    font-weight: 500;
    min-width: 250px;
}

.custom-toast.show {
    transform: translateX(0);
}

.custom-toast.toast-success {
    border-right-color: #10b981;
}

.custom-toast.toast-info {
    border-right-color: #3b82f6;
}

.custom-toast.toast-warning {
    border-right-color: #f59e0b;
}

.custom-toast.toast-error {
    border-right-color: #ef4444;
}

/* Wishlist Button States */
.wishlist-btn.active {
    background: #ff6b6b !important;
    color: white !important;
}

.wishlist-btn.active:hover {
    background: #ff5252 !important;
}

/* Enhanced Button States */
.button-success {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

/* Additional Hover Effects */
.modern-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(14, 89, 242, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    pointer-events: none;
}

.modern-product-card:hover::before {
    opacity: 1;
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
    .custom-toast {
        right: 10px;
        left: 10px;
        min-width: auto;
        transform: translateY(-100%);
    }
    
    .custom-toast.show {
        transform: translateY(0);
    }
    
    .product-overlay {
        position: static;
        transform: none;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        color: #1e293b;
        margin-top: 10px;
        border-radius: 15px;
    }
    
    .overlay-actions .button {
        color: #0e59f2 !important;
        background: white !important;
        border: 2px solid #0e59f2 !important;
    }
}

.woocommerce .wc-pagination .page-numbers {
    display: inline-flex;
    gap: 8px;
}

.woocommerce .wc-pagination .page-numbers a,
.woocommerce .wc-pagination .page-numbers span {
    border-radius: 30px !important;
}

/* Quick View Modal */
.sqv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: sqv-fade-in 0.2s ease;
}

.sqv-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    width: 100%;
    max-width: 880px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transform: scale(0.98);
    animation: sqv-zoom-in 0.15s ease forwards;
    height: 485px;
    max-height: 485px;
    display: flex;
    flex-direction: column;
}
.sqv--match .sqv-body.sqv-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.sqv--match .sqv-col { display: block; }
.sqv--match .sqv-title { font-size: 18px; margin-bottom: 8px; }
.sqv--match .sqv-subtitle { margin: 0 0 8px 0; color: #64748b; font-size: 12px; }
.sqv--match .sqv-dot { display: inline-block; width: 6px; height: 6px; background: #22c55e; border-radius: 50%; vertical-align: middle; margin: 0 4px; }
.sqv--match .sqv-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sqv--match .sqv-bullets { margin: 8px 0 12px; padding: 0 16px; }
.sqv--match .sqv-bullets li { list-style: disc; margin: 4px 0; color: #0f172a; }
.sqv--match .sqv-cta-row { display: flex; align-items: center; gap: 10px;flex-direction: column; }
.sqv--match .sqv-like { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #ecfdf5; color: #059669; }
.sqv--match .sqv-atc .button { border-radius: 999px !important; padding: 10px 18px !important; }

.sqv--match .sqv-gallery { position: relative; }
.sqv--match .sqv-gallery-main { background: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 10px; box-shadow: 0 10px 30px rgba(2,6,23,0.08); }
.sqv--match .sqv-main-img { max-height: 220px; width: auto; }
.sqv--match .sqv-thumbs { position: absolute; right: -10px; top: 0; display: flex; flex-direction: column; gap: 10px; }
.sqv--match .sqv-thumb { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 1px solid #e5e7eb; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.06); cursor: pointer; }
.sqv--match .sqv-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.sqv--match .sqv-badge { position: absolute; right: 16px; top: 16px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; border-radius: 10px; padding: 4px 8px; font-size: 12px; font-weight: 800; }

@media (min-width: 768px) {
    .sqv--match .sqv-body.sqv-grid { grid-template-columns: 1.2fr .8fr; }
}

/* Quick View Skeleton for instant open */
.sqv-skeleton { padding: 20px; }
.sqv-skel-header { height: 20px; width: 40%; background: #f3f4f6; border-radius: 8px; margin-bottom: 16px; }
.sqv-skel-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sqv-skel-img { height: 260px; background: #f3f4f6; border-radius: 12px; }
.sqv-skel-info { height: 260px; background: #f8fafc; border-radius: 12px; }
@media (max-width: 768px) { .sqv-skel-body { grid-template-columns: 1fr; } }

.skill-quickview {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sqv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(226,232,240,0.7);
    background: linear-gradient(135deg, rgba(255,255,255,0.75), rgba(255,255,255,0.45));
}

.sqv-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: .2px;
}
.sqv-title-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sqv-chips { display: inline-flex; gap: 6px; }
.sqv-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    background: rgba(241,245,249,0.9);
    border: 1px solid rgba(226,232,240,0.9);
    border-radius: 999px;
}
.sqv-chip-success { color: #065f46; background: rgba(16,185,129,0.2); border-color: rgba(16,185,129,0.35); }
.sqv-chip-danger { color: #7f1d1d; background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.35); }

.sqv-close {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #334155;
    transition: transform .15s ease, color .15s ease;
}
.sqv-close:hover { transform: scale(1.1); color: #0e59f2; }

.sqv-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 20px 22px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    flex: 1 1 auto;
}

.sqv-image { align-self: start; }
.sqv-image img {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(2,6,23,0.1);
    object-fit: cover;
}

.sqv-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sqv-excerpt { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.sqv-price .price {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0e59f2 !important;
}

/* Place price at start of CTA row and style spacing */
.sqv-cta-row { display: flex; align-items: center; gap: 14px; }
.sqv-cta-row .sqv-price { margin-left: 8px; }
.sqv-cta-row .price del { font-size: 14px !important; color: #94a3b8 !important; }
.sqv-cta-row .price ins { color: #0e59f2 !important; }

.sqv-actions .button,
.sqv-atc .button {
    border-radius: 12px !important;
    padding: 12px 18px !important;
    box-shadow: 0 10px 22px rgba(14,89,242,.16) !important;
}
.sqv-view-btn { background: linear-gradient(135deg, #667eea, #764ba2) !important; border: none !important; }
.sqv-atc .button { background: #0e59f2 !important; border: none !important; font-weight: 700 !important; letter-spacing: .2px; color: #ffffff !important; }
.sqv-atc .button:hover,
.sqv-atc .button:focus { color: #ffffff !important; }
.sqv-meta { opacity: .8; font-size: 12px; }

/* Modern quantity input */
.sqv-atc .quantity { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.sqv-atc .quantity .qty { width: 56px !important; text-align: center; background: transparent; font-weight: 700; color: #334155; }
.sqv-atc .quantity button { border: none; background: #f1f5f9; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #334155; }
.sqv-atc .quantity button:hover { background: #e2e8f0; }

/* Woo default +/- are often hidden; ensure visible via pseudo if needed */
.sqv-atc .quantity .minus::before { content: '−'; font-size: 16px; line-height: 1; }
.sqv-atc .quantity .plus::before { content: '+'; font-size: 16px; line-height: 1; }

@media (min-width: 560px) {
    .sqv-container { max-width: 880px; }
    .sqv-body { grid-template-columns: 320px 1fr; align-items: start; gap: 22px; padding: 22px; }
}

@keyframes sqv-fade-in {
    from { opacity: 0 }
    to { opacity: 1 }
}

@keyframes sqv-zoom-in {
    from { transform: scale(0.98); opacity: .98 }
    to { transform: scale(1); opacity: 1 }
}

/* =====================
   WooCommerce Cart Page
   Modernized Styles
   ===================== */
.woocommerce-cart .woocommerce { display: grid; gap: 24px; }

.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info {
    border-radius: 14px; border: 1px solid #e5e7eb; background: #ffffff;
    box-shadow: 0 10px 24px rgba(2,6,23,0.08); padding: 14px 16px; color: #0f172a;
}

/* Cart table wrapper */
.woocommerce-cart .cart { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(2,6,23,0.08); }
.woocommerce-cart table.shop_table { border: 0; margin: 0; border-collapse: separate; border-spacing: 0; }
.woocommerce-cart table.shop_table thead th { background: #f8fafc; color: #0f172a; font-weight: 800; border: 0; padding: 16px; }
.woocommerce-cart table.shop_table tbody td { border-top: 1px solid #eef2f7; padding: 16px; vertical-align: middle; }

/* Product cell */
.woocommerce-cart .product-remove a.remove { width: 36px; height: 36px; line-height: 32px; border-radius: 10px; background: #fff !important; border: 1px solid #e5e7eb; color: #ef4444 !important; box-shadow: 0 8px 18px rgba(239,68,68,0.08); }
.woocommerce-cart .product-remove a.remove:hover { background: #ef4444 !important; color: #fff !important; border-color: #ef4444; }

.woocommerce-cart .product-thumbnail img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 20px rgba(2,6,23,0.08); }
.woocommerce-cart .product-name a { color: #0f172a; font-weight: 800; text-decoration: none; }
.woocommerce-cart .product-name a:hover { color: #0e59f2; }

/* Quantity */
.woocommerce-cart .quantity { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.woocommerce-cart .quantity .qty { width: 64px !important; text-align: center; background: transparent; font-weight: 700; color: #334155; height: 32px; }
.woocommerce-cart .quantity .minus,
.woocommerce-cart .quantity .plus { border: none; background: #f1f5f9; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #334155; }
.woocommerce-cart .quantity .minus:hover,
.woocommerce-cart .quantity .plus:hover { background: #e2e8f0; }
.woocommerce-cart .quantity .minus::before { content: '−'; font-size: 16px; line-height: 1; }
.woocommerce-cart .quantity .plus::before { content: '+'; font-size: 16px; line-height: 1; }

/* Coupon + update row */
.woocommerce-cart .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; background: #f8fafc; border-top: 1px solid #eef2f7; }
.woocommerce-cart .coupon { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.woocommerce-cart .coupon label { display: none; }
.woocommerce-cart .coupon input.input-text { height: 40px; border-radius: 12px; border: 1px solid #e5e7eb; padding: 0 12px; background: #fff; }
.woocommerce-cart .coupon .button { height: 40px; border-radius: 12px; background: #0e59f2; color: #fff; border: none; padding: 0 14px; font-weight: 700; }
.woocommerce-cart .coupon .button:hover { filter: brightness(1.05); }
.woocommerce-cart .actions .button[name="update_cart"] { height: 40px; border-radius: 12px; background: #e2e8f0; color: #0f172a; border: none; font-weight: 700; }
.woocommerce-cart .actions .button[name="update_cart"]:hover { background: #cbd5e1; }

/* Cart totals */
.woocommerce-cart .cart-collaterals { display: grid; gap: 16px; }
.woocommerce-cart .cart_totals { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 18px 40px rgba(2,6,23,0.08); overflow: hidden; }
.woocommerce-cart .cart_totals h2 { margin: 0; padding: 16px; font-size: 18px; font-weight: 800; border-bottom: 1px solid #eef2f7; color: #0f172a; }
.woocommerce-cart .shop_table.shop_table_responsive { margin: 0; }
.woocommerce-cart .cart_totals table tr th,
.woocommerce-cart .cart_totals table tr td { padding: 12px 16px; border-top: 1px solid #eef2f7; }
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td { font-weight: 900; color: #0e59f2; }

.woocommerce-cart .wc-proceed-to-checkout { padding: 16px; border-top: 1px solid #eef2f7; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 14px 16px; border-radius: 14px; background: #0e59f2; color: #fff; font-weight: 800; letter-spacing: .2px; box-shadow: 0 14px 28px rgba(14,89,242,.18); }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { filter: brightness(1.05); }

/* Empty cart */
.woocommerce-cart .cart-empty { background: #fff; border: 1px solid #e5e7eb; color: #334155; border-radius: 16px; padding: 18px; box-shadow: 0 16px 36px rgba(2,6,23,0.08); }
.woocommerce-cart .return-to-shop .button { border-radius: 12px; background: #0e59f2; color: #fff; border: none; font-weight: 700; padding: 10px 16px; }

/* Cross sells grid harmonize */
.woocommerce-cart .cross-sells { margin-top: 24px; }
.woocommerce-cart .cross-sells h2 { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 12px; }

/* =====================
   My Account - Edit Details (Modern RTL)
   ===================== */
.account-edit-modern { direction: rtl; }
.account-edit-modern .aem-section { background:#ffffff; border:1px solid #e5e7eb; border-radius:16px; padding:16px; box-shadow:0 18px 40px rgba(2,6,23,0.06); margin-bottom:16px; }
.account-edit-modern .aem-section-header { margin-bottom:10px; }
.account-edit-modern .aem-title { margin:0 0 4px 0; font-size:18px; font-weight:900; color:#0f172a; }
.account-edit-modern .aem-desc { margin:0; color:#64748b; font-size:13px; }
.account-edit-modern .aem-grid { display:grid; gap:12px; }
.account-edit-modern .aem-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 680px) { .account-edit-modern .aem-grid-2 { grid-template-columns: 1fr; } }
.account-edit-modern .aem-field { margin:0; }
.account-edit-modern .aem-label { display:block; font-weight:700; color:#334155; margin:0 0 6px 0; }
.account-edit-modern .aem-input { width:100%; height:44px; border:1px solid #e5e7eb; border-radius:12px; padding:0 12px; background:#fff; }
.account-edit-modern .aem-help { display:block; color:#64748b; font-size:12px; margin-top:6px; }
.account-edit-modern .aem-actions { display:flex; gap:10px; align-items:center; justify-content:flex-start; margin-top:12px; }
.account-edit-modern .aem-submit { border-radius:12px !important; background:#0e59f2 !important; color:#fff !important; border:none !important; padding:10px 16px !important; font-weight:800 !important; box-shadow:0 14px 28px rgba(14,89,242,.18) !important; }

/* =====================
   My Account - Dashboard (KPI cards + recent orders)
   ===================== */
.myacc-dashboard { direction: rtl; }
.myacc-dashboard .dash-cards { display:grid; grid-template-columns: repeat(4, 1fr); gap:14px; margin-bottom:16px; }
@media (max-width: 992px){ .myacc-dashboard .dash-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .myacc-dashboard .dash-cards { grid-template-columns: 1fr; } }
.myacc-dashboard .dash-card { display:block; border-radius:16px; padding:16px; color:#fff; text-decoration:none; position:relative; overflow:hidden; box-shadow:0 16px 32px rgba(2,6,23,0.12); transition: transform .2s ease, box-shadow .2s ease; }
.myacc-dashboard .dash-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(2,6,23,0.18); }
.myacc-dashboard .dash-card:after { content:''; position:absolute; left:-20%; top:-40%; width:60%; height:200%; border-radius:50%; background:rgba(255,255,255,0.12); transform:rotate(25deg); }
.myacc-dashboard .dash-card .dash-card-title { font-size:14px; font-weight:800; margin-bottom:8px; }
.myacc-dashboard .dash-card .dash-card-value { font-size:28px; font-weight:900; line-height:1; }
.myacc-dashboard .dash-card .dash-card-action { display:inline-block; margin-top:10px; font-size:12px; font-weight:700; background:rgba(255,255,255,0.18); border:1px solid rgba(255,255,255,0.35); padding:6px 10px; border-radius:10px; }
.myacc-dashboard .dash-orders { background: linear-gradient(135deg, #ef4444, #f97316); }
.myacc-dashboard .dash-rewards { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.myacc-dashboard .dash-wishlist { background: linear-gradient(135deg, #10b981, #22c55e); }
.myacc-dashboard .dash-downloads { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.myacc-dashboard .dash-section-title { margin: 0 0 8px 0; font-size:18px; font-weight:900; color:#0f172a; }

/* =====================
   My Account - Layout (Sidebar + Header)
   ===================== */
.wc-myacc-layout { display:flex; direction: rtl; gap: 20px; width: 100%; padding: 20px; align-items: stretch; }
.wc-myacc-sidebar { width: 260px; background:#fff; border:1px solid #e5e7eb; border-radius:12px; box-shadow:0 10px 24px rgba(2,6,23,0.06); height: fit-content; position: sticky; top: 20px; align-self: flex-start; }
.wc-myacc-profile { text-align:center; padding:16px; border-bottom:1px solid #eef2f7; }
.wc-myacc-avatar img, .wc-myacc-avatar .avatar { border-radius:50%; width:80px; height:80px; display:inline-block; box-shadow:0 8px 18px rgba(2,6,23,0.08); }
.wc-myacc-name { font-weight:800; margin-top:8px; color:#0f172a; }
.wc-myacc-email { color:#64748b; font-size:12px; }
.wc-myacc-menu ul { list-style:none; margin:0; padding:8px; }
.wc-myacc-menu a { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; color:#111827; text-decoration:none; }
.wc-myacc-menu a:hover, .wc-myacc-menu li.is-active a { background:#0e59f2; color:#fff; }
.wc-myacc-menu i { width:18px; text-align:center; }
.wc-myacc-main { flex:1; background:#ffffff; border:1px solid #e5e7eb; border-radius:12px; box-shadow:0 12px 28px rgba(2,6,23,0.06); padding:24px; min-height: calc(100vh - 160px); }
.wc-myacc-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.wc-myacc-header .page-title { margin:0; font-size:20px; font-weight:900; color:#0f172a; }
.wc-myacc-actions { display:flex; align-items:center; gap:10px; }
.wc-myacc-header .logout-btn { display:inline-flex; align-items:center; gap:8px; border-radius:10px; background:#0e59f2; color:#fff; padding:8px 12px; text-decoration:none; }

/* My Account - Inner content (orders, downloads, addresses) */
.wc-myacc-main .woocommerce { margin: 0; }
.wc-myacc-main .woocommerce-MyAccount-content { margin-top: 12px; }

/* Generic card look for account sections */
.wc-myacc-main .woocommerce-MyAccount-content > :where(div, table, ul, p) {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    padding: 18px 20px;
    margin-bottom: 16px;
}

/* Orders table */
.wc-myacc-main table.my_account_orders {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.wc-myacc-main table.my_account_orders thead {
    background: #f8fafc;
}
.wc-myacc-main table.my_account_orders th,
.wc-myacc-main table.my_account_orders td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
}
.wc-myacc-main table.my_account_orders th {
    font-weight: 800;
    color: #0f172a;
}
.wc-myacc-main table.my_account_orders tr:last-child td {
    border-bottom: none;
}
.wc-myacc-main table.my_account_orders .button {
    border-radius: 999px;
    background: #0e59f2;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border: none;
}
.wc-myacc-main table.my_account_orders .button:hover {
    background: #1745c8;
}

/* Downloads table */
.wc-myacc-main table.woocommerce-table--order-downloads {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.wc-myacc-main table.woocommerce-table--order-downloads th,
.wc-myacc-main table.woocommerce-table--order-downloads td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}
.wc-myacc-main table.woocommerce-table--order-downloads th {
    background: #f8fafc;
    font-weight: 800;
}
.wc-myacc-main table.woocommerce-table--order-downloads a.button {
    border-radius: 999px;
    background: #10b981;
    border: none;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
}
.wc-myacc-main table.woocommerce-table--order-downloads a.button:hover {
    background: #059669;
}

/* Addresses (billing/shipping) */
.wc-myacc-main .woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.wc-myacc-main .woocommerce-Address {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 18px 20px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
    width: 100%;
}
.wc-myacc-main .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.wc-myacc-main .woocommerce-Address-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
}
.wc-myacc-main .woocommerce-Address-title a {
    font-size: 12px;
    font-weight: 700;
    color: #0e59f2;
}
.wc-myacc-main .woocommerce-Address address {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
}

/* Empty states and notices */
.wc-myacc-main .woocommerce-info {
    border-radius: 999px !important;
    padding: 10px 16px !important;
    font-weight: 600;
}

@media (max-width: 768px) {
    .wc-myacc-main .woocommerce-MyAccount-content > :where(div, table, ul, p) {
        padding: 14px 12px;
    }
    .wc-myacc-main table.my_account_orders th,
    .wc-myacc-main table.my_account_orders td {
        padding: 8px 6px;
        font-size: 12px;
    }
}

/* Dark/Light toggle switch */
.theme-toggle { display:inline-flex; align-items:center; cursor:pointer; }
.theme-toggle input { display:none; }
.theme-toggle .toggle-track { width:56px; height:30px; background:#e5e7eb; border-radius:999px; position:relative; box-shadow:inset 0 2px 6px rgba(0,0,0,0.1); transition:background .25s ease; }
.theme-toggle .toggle-thumb { position:absolute; top:3px; right:3px; width:24px; height:24px; background:#fff; border-radius:50%; box-shadow:0 4px 10px rgba(0,0,0,0.15); transition:transform .25s ease; }
.theme-toggle input:checked + .toggle-track { background:#111827; }
.theme-toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(-26px); }

/* Dark theme overrides for My Account */
body.wc-myacc-dark { background:#0b1020; }
body.wc-myacc-dark .wc-myacc-main { background:#0e142a; border-color:#1f2a44; box-shadow:0 12px 28px rgba(0,0,0,0.35); }
body.wc-myacc-dark .wc-myacc-sidebar { background:#0e142a; border-color:#1f2a44; box-shadow:0 10px 24px rgba(0,0,0,0.35); }
body.wc-myacc-dark .wc-myacc-header .page-title { color:#e5e7eb; }
body.wc-myacc-dark .wc-myacc-name { color:#e5e7eb; }
body.wc-myacc-dark .wc-myacc-email { color:#9ca3af; }
body.wc-myacc-dark .wc-myacc-menu a { color:#e5e7eb; }
body.wc-myacc-dark .wc-myacc-menu a:hover, body.wc-myacc-dark .wc-myacc-menu li.is-active a { background:#2563eb; }
body.wc-myacc-dark .aem-section { background:#0e142a; border-color:#1f2a44; }
body.wc-myacc-dark .aem-input { background:#0b1020; border-color:#26324d; color:#e5e7eb; }
body.wc-myacc-dark .aem-label { color:#cbd5e1; }
/* Global typography overrides to ensure text becomes light in dark mode */
body.wc-myacc-dark, body.wc-myacc-dark .wc-myacc-main, body.wc-myacc-dark .wc-myacc-main p, body.wc-myacc-dark .wc-myacc-main li, body.wc-myacc-dark .wc-myacc-main span, body.wc-myacc-dark .wc-myacc-main label { color:#e5e7eb; }
body.wc-myacc-dark a { color:#93c5fd; }
body.wc-myacc-dark a:hover { color:#bfdbfe; }
body.wc-myacc-dark .woocommerce-info, body.wc-myacc-dark .woocommerce-message, body.wc-myacc-dark .woocommerce-error { background:#0e142a; border-color:#1f2a44; color:#e5e7eb; }
body.wc-myacc-dark .shop_table th { background:#0b1020; color:#cbd5e1; border-color:#1f2a44; }
body.wc-myacc-dark .shop_table td { color:#e5e7eb; border-color:#1f2a44; }
body.wc-myacc-dark .dash-section-title { color:#e5e7eb; }
body.wc-myacc-dark .aem-desc { color:#9ca3af; }
body.wc-myacc-dark .aem-input::placeholder { color:#94a3b8; }

@media (min-width: 1200px){ .wc-myacc-sidebar { width: 300px; } .wc-myacc-main { min-height: calc(100vh - 180px); } }
@media (max-width: 992px){ .wc-myacc-layout { flex-direction: column; max-width: 980px; padding: 0 16px; } .wc-myacc-sidebar { width: 100%; position: static; } .wc-myacc-main { min-height: auto; } }
@media (max-width: 560px){ .wc-myacc-layout { padding: 12px; } .wc-myacc-main { padding: 14px; } }

/* =====================
   My Account - Login / Register (Modern)
   ===================== */
.wc-auth-wrapper { direction: rtl; max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.wc-auth-card { background:#ffffff; border:1px solid #e5e7eb; border-radius: 20px; overflow: hidden; box-shadow: 0 22px 44px rgba(2,6,23,0.06); }
.wc-auth-header { padding: 22px 24px; background: linear-gradient(135deg, #0e59f2 0%, #7c3aed 100%); color: #ffffff; }
.wc-auth-title { margin: 0 0 6px 0; font-size: 22px; font-weight: 900; }
.wc-auth-subtitle { margin: 0; opacity: .95; font-weight: 600; }
.wc-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.wc-auth-grid.single { grid-template-columns: 1fr; }
.wc-auth-col { padding: 18px; }
.wc-auth-login { border-left: 1px solid #eef2f7; }
.wc-auth-grid.single .wc-auth-login { border-left: none; }
.wc-auth-section-title { margin: 0 0 14px 0; font-size: 18px; font-weight: 900; color:#0f172a; }
.wc-auth-form { display: grid; gap: 12px; }
.wc-auth-field { display: grid; gap: 6px; }
.wc-auth-field label { font-weight: 800; color:#334155; }
.wc-auth-field .req { color:#ef4444; }
.wc-auth-form input[type=text],
.wc-auth-form input[type=password],
.wc-auth-form input[type=email] { height: 44px; border:1px solid #e5e7eb; border-radius: 12px; padding: 0 12px; background:#fff; }
.wc-auth-row { display:flex; align-items:center; justify-content: space-between; gap: 10px; }
.wc-auth-link { color:#0e59f2; text-decoration: none; font-weight: 800; }
.wc-auth-submit { border-radius: 12px !important; background:#0e59f2 !important; color:#fff !important; border:none !important; padding:10px 16px !important; font-weight:800 !important; box-shadow:0 14px 28px rgba(14,89,242,.18) !important; }
.wc-auth-help { margin: 0; color:#64748b; font-size: 12px; }
@media (max-width: 820px){ .wc-auth-grid { grid-template-columns: 1fr; } .wc-auth-login { border-left: none; border-top: 1px solid #eef2f7; } }

/* =====================
   Thank You Page (Order Received)
   Modern, RTL-friendly layout
   ===================== */
.skill-thankyou-wrapper { direction: rtl; }
.skill-thankyou-wrapper * { box-sizing: border-box; }

.skill-thankyou-wrapper .sty-hero {
    background: linear-gradient(135deg, #0e59f2 0%, #7c3aed 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    margin: 20px 0 26px;
    box-shadow: 0 16px 40px rgba(14,89,242,0.18);
}

.skill-thankyou-wrapper .sty-hero-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.skill-thankyou-wrapper .sty-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.15); backdrop-filter: blur(6px); font-size: 30px; }
.skill-thankyou-wrapper .sty-icon-success { border: 2px solid rgba(34,197,94,0.9); }
.skill-thankyou-wrapper .sty-icon-failed { border: 2px solid rgba(239,68,68,0.9); }

.skill-thankyou-wrapper .sty-title { margin: 8px 0 6px; font-size: 22px; font-weight: 900; letter-spacing: .2px; }
.skill-thankyou-wrapper .sty-subtitle { margin: 0; opacity: .95; }

.skill-thankyou-wrapper .sty-cta { display: inline-flex; gap: 10px; align-items: center; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.skill-thankyou-wrapper .sty-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 800; }
.skill-thankyou-wrapper .sty-btn-primary { background: #ffffff; color: #0e59f2; box-shadow: 0 10px 22px rgba(255,255,255,.18); }
.skill-thankyou-wrapper .sty-btn-ghost { background: rgba(255,255,255,0.18); color: #ffffff; border: 1px solid rgba(255,255,255,0.35); }

.skill-thankyou-wrapper .sty-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .skill-thankyou-wrapper .sty-grid { grid-template-columns: 1.1fr .9fr; } }

.skill-thankyou-wrapper .sty-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(2,6,23,0.06);
    padding: 18px;
}

.skill-thankyou-wrapper .sty-card-title { margin: 0 0 12px 0; font-size: 18px; font-weight: 900; color: #0f172a; }

.skill-thankyou-wrapper .sty-order-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.skill-thankyou-wrapper .sty-order-meta li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; padding: 10px 12px; }
.skill-thankyou-wrapper .sty-order-meta li span { color: #64748b; font-weight: 700; }
.skill-thankyou-wrapper .sty-order-meta li strong { color: #0f172a; }

.skill-thankyou-wrapper .sty-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.skill-thankyou-wrapper .sty-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #eef2f7; border-radius: 12px; background: #ffffff; }
.skill-thankyou-wrapper .sty-item-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 20px rgba(2,6,23,0.06); }
.skill-thankyou-wrapper .sty-item-title { font-weight: 800; color: #0f172a; display: flex; align-items: baseline; gap: 6px; }
.skill-thankyou-wrapper .sty-item-qty { color: #7c3aed; font-weight: 900; }
.skill-thankyou-wrapper .sty-item-meta { color: #64748b; font-size: 12px; }
.skill-thankyou-wrapper .sty-item-total { color: #0e59f2; font-weight: 900; }

.skill-thankyou-wrapper .sty-two-cols { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 680px) { .skill-thankyou-wrapper .sty-two-cols { grid-template-columns: 1fr 1fr; } }
.skill-thankyou-wrapper .sty-subheading { margin: 0 0 8px 0; font-size: 14px; font-weight: 900; color: #0f172a; }
.skill-thankyou-wrapper .sty-address { margin: 0; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; padding: 10px 12px; line-height: 1.9; }
.skill-thankyou-wrapper .sty-contact { margin: 8px 0 0 0; color: #334155; font-weight: 700; }

/* Ensure Woo native thank you elements visually harmonize if shown */
.woocommerce-order-details, .woocommerce-customer-details { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px; box-shadow: 0 12px 28px rgba(2,6,23,0.06); margin-bottom: 20px; }
section.woocommerce-columns.woocommerce-columns--2.woocommerce-columns--addresses.col2-set.addresses {
    display: flex;
    justify-content: space-between;
}
.woocommerce-column.woocommerce-column--1.woocommerce-column--billing-address.col-1,
.woocommerce-column.woocommerce-column--2.woocommerce-column--shipping-address.col-2 {
    width: 50%;
}
@media screen and (max-width: 425px) {
    section.woocommerce-columns.woocommerce-columns--2.woocommerce-columns--addresses.col2-set.addresses {
        flex-direction: column;
    }

    .woocommerce-column.woocommerce-column--1.woocommerce-column--billing-address.col-1,
    .woocommerce-column.woocommerce-column--2.woocommerce-column--shipping-address.col-2 {
        width: 100%;
    }

    .skill-thankyou-wrapper .sty-item {
        grid-template-columns: unset;
    }
}
/* =====================
   Modern Cart & Checkout with My Account Layout
   ===================== */

/* Cart & Checkout specific overrides for the shared layout */
.wc-cart-layout .wc-myacc-main,
.wc-checkout-layout .wc-myacc-main {
    min-height: auto;
}

/* Cart table modern styling */
.wc-cart-layout .cart-table-wrapper table.shop_table {
    border-collapse: separate;
    border-spacing: 0;
    border: none;
}

.wc-cart-layout .cart-table-wrapper table.shop_table thead th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
    border: 0;
    padding: 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc-cart-layout .cart-table-wrapper table.shop_table tbody td {
    border-top: 1px solid #eef2f7;
    padding: 16px;
    vertical-align: middle;
}

/* Product remove button */
.wc-cart-layout .product-remove a.remove {
    width: 36px;
    height: 36px;
    line-height: 32px !important;
    border-radius: 10px;
    background: #fff !important;
    border: 1px solid #e5e7eb;
    color: #ef4444 !important;
    box-shadow: 0 8px 18px rgba(239,68,68,0.08);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.wc-cart-layout .product-remove a.remove:hover {
    background: #ef4444 !important;
    color: #fff !important;
    border-color: #ef4444;
    transform: scale(1.05);
}

/* Product thumbnail */
.wc-cart-layout .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(2,6,23,0.08);
}

/* Product name */
.wc-cart-layout .product-name a {
    color: #0f172a;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wc-cart-layout .product-name a:hover {
    color: #0e59f2;
}

/* Product price */
.wc-cart-layout .product-price,
.wc-cart-layout .product-subtotal {
    color: #0f172a;
    font-weight: 700;
}

.wc-cart-layout .product-price .amount,
.wc-cart-layout .product-subtotal .amount {
    color: #0e59f2;
    font-weight: 800;
}

/* Quantity input */
.wc-cart-layout .quantity,
.wc-checkout-layout .quantity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.wc-cart-layout .quantity .qty,
.wc-checkout-layout .quantity .qty {
    width: 64px !important;
    text-align: center;
    background: transparent;
    font-weight: 700;
    color: #334155;
    height: 32px;
    border: none !important;
}

/* Coupon & update buttons */
.wc-cart-layout .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
}

.wc-cart-layout .coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.wc-cart-layout .coupon input.input-text {
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0 12px;
    background: #fff;
    flex: 1;
    min-width: 0;
}

.wc-cart-layout .coupon .button {
    height: 44px;
    border-radius: 12px !important;
    background: #0e59f2 !important;
    color: #fff !important;
    border: none !important;
    padding: 0 18px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease;
}

.wc-cart-layout .coupon .button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.wc-cart-layout .actions .button[name="update_cart"] {
    height: 44px;
    border-radius: 12px !important;
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 0 18px !important;
}

.wc-cart-layout .actions .button[name="update_cart"]:hover {
    background: #cbd5e1 !important;
}

/* Cart totals */
.wc-cart-layout .cart_totals {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(2,6,23,0.08);
    overflow: hidden;
    margin-top: 20px;
}

.wc-cart-layout .cart_totals h2 {
    margin: 0;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 900;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    background: #f8fafc;
}

.wc-cart-layout .cart_totals table tr th,
.wc-cart-layout .cart_totals table tr td {
    padding: 14px 20px;
    border-top: 1px solid #eef2f7;
}

.wc-cart-layout .cart_totals .order-total th,
.wc-cart-layout .cart_totals .order-total td {
    font-weight: 900;
    color: #0e59f2;
    font-size: 18px;
}

.wc-cart-layout .wc-proceed-to-checkout {
    padding: 20px;
    border-top: 1px solid #eef2f7;
}

.wc-cart-layout .wc-proceed-to-checkout a.checkout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #0e59f2 0%, #7c3aed 100%) !important;
    color: #fff !important;
    font-weight: 900 !important;
    letter-spacing: .2px;
    box-shadow: 0 14px 28px rgba(14,89,242,.18) !important;
    text-decoration: none;
    border: none !important;
    transition: all 0.3s ease;
    text-align: center;
}

.wc-cart-layout .wc-proceed-to-checkout a.checkout-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(14,89,242,.25) !important;
}

/* Checkout specific styles */
.wc-checkout-layout .checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.wc-checkout-layout .checkout-form-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.wc-checkout-layout .col2-set {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .wc-checkout-layout .col2-set {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (min-width: 992px) {
    .wc-checkout-layout .checkout-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.wc-checkout-layout .order-review-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(2,6,23,0.08);
}

/* Checkout form fields */
.wc-checkout-layout .woocommerce-billing-fields,
.wc-checkout-layout .woocommerce-shipping-fields {
    margin-bottom: 32px;
}

.wc-checkout-layout .form-row {
    margin-bottom: 24px;
}

.wc-checkout-layout .woocommerce-billing-fields h3,
.wc-checkout-layout .woocommerce-shipping-fields h3 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f7;
}

.wc-checkout-layout .form-row input.input-text,
.wc-checkout-layout .form-row select,
.wc-checkout-layout .form-row textarea {
    height: 56px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 20px;
    background: #fff;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 0;
}

.wc-checkout-layout .form-row textarea {
    height: 120px;
    padding: 16px 20px;
    resize: vertical;
    line-height: 1.5;
}

.wc-checkout-layout .form-row input.input-text:focus,
.wc-checkout-layout .form-row select:focus,
.wc-checkout-layout .form-row textarea:focus {
    border-color: #0e59f2;
    outline: none;
    box-shadow: 0 0 0 4px rgba(14,89,242,0.1), 0 4px 12px rgba(14,89,242,0.15);
    transform: translateY(-1px);
}

.wc-checkout-layout .form-row input.input-text:hover,
.wc-checkout-layout .form-row select:hover,
.wc-checkout-layout .form-row textarea:hover {
    border-color: #d1d5db;
}

.wc-checkout-layout .form-row label {
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
    display: block;
    font-size: 15px;
    line-height: 1.4;
}

.wc-checkout-layout .form-row label .required {
    color: #ef4444;
    font-weight: 800;
}

/* Fix: WooCommerce default half-width floats make inputs too narrow on checkout */
.wc-checkout-layout .form-row-first,
.wc-checkout-layout .form-row-last {
    width: 100% !important;
    float: none !important;
    clear: both;
}

/* Ensure field wrappers behave and allow inputs to stretch */
.wc-checkout-layout .woocommerce-billing-fields__field-wrapper,
.wc-checkout-layout .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Wide rows should consume full width in the grid */
.wc-checkout-layout .form-row-wide {
    grid-column: 1 / -1;
}

/* Hard enforce full-width controls inside rows */
.wc-checkout-layout .form-row .input-text,
.wc-checkout-layout .form-row select,
.wc-checkout-layout .form-row textarea {
    width: 100% !important;
}

/* Fix cramped half-width Woo defaults: force all checkout fields to full width */
.wc-checkout-layout .woocommerce form .form-row,
.wc-checkout-layout .woocommerce form .form-row-first,
.wc-checkout-layout .woocommerce form .form-row-last,
.wc-checkout-layout .woocommerce form .form-row-wide {
    width: 100% !important;
    float: none !important;
    clear: both;
}

/* Ensure input wrapper and controls expand correctly */
.wc-checkout-layout .woocommerce-input-wrapper,
.wc-checkout-layout .form-row .woocommerce-input-wrapper {
    width: 100%;
    display: block;
}

/* Select2 controls: full width and consistent height */
.wc-checkout-layout .select2-container { width: 100% !important; }
.wc-checkout-layout .select2-container .select2-selection--single {
    height: 56px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 12px;
}
.wc-checkout-layout .select2-container .select2-selection--single .select2-selection__rendered { line-height: 56px; }
.wc-checkout-layout .select2-container .select2-selection--single .select2-selection__arrow { height: 56px; }

/* Form validation states */
.wc-checkout-layout .form-row.woocommerce-invalid input.input-text,
.wc-checkout-layout .form-row.woocommerce-invalid select,
.wc-checkout-layout .form-row.woocommerce-invalid textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.wc-checkout-layout .form-row.woocommerce-validated input.input-text,
.wc-checkout-layout .form-row.woocommerce-validated select,
.wc-checkout-layout .form-row.woocommerce-validated textarea {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Order review table */
.wc-checkout-layout #order_review table.shop_table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.wc-checkout-layout #order_review table.shop_table thead th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
}

.wc-checkout-layout #order_review table.shop_table tbody td,
.wc-checkout-layout #order_review table.shop_table tfoot th,
.wc-checkout-layout #order_review table.shop_table tfoot td {
    padding: 14px 16px;
    border-top: 1px solid #eef2f7;
}

.wc-checkout-layout #order_review table.shop_table .order-total th,
.wc-checkout-layout #order_review table.shop_table .order-total td {
    font-weight: 900;
    color: #0e59f2;
    font-size: 18px;
    background: #f8fafc;
}

/* Payment methods */
.wc-checkout-layout .woocommerce-checkout-payment {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.wc-checkout-layout .wc_payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wc-checkout-layout .wc_payment_method {
    margin-bottom: 16px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s ease;
    position: relative;
}

.wc-checkout-layout .wc_payment_method:hover {
    border-color: #0e59f2;
    box-shadow: 0 4px 12px rgba(14,89,242,0.1);
    transform: translateY(-1px);
}

.wc-checkout-layout .wc_payment_method input[type="radio"] {
    margin-left: 12px;
    width: 18px;
    height: 18px;
    accent-color: #0e59f2;
}

.wc-checkout-layout .wc_payment_method label {
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.wc-checkout-layout .wc_payment_method input[type="radio"]:checked + label {
    color: #0e59f2;
}

.wc-checkout-layout .wc_payment_method input[type="radio"]:checked ~ * {
    border-color: #0e59f2;
}

.wc-checkout-layout .payment_box {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
}

.wc-checkout-layout .payment_box p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

/* Place order button */
.wc-checkout-layout #place_order {
    width: 100%;
    height: 56px;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #0e59f2 0%, #7c3aed 100%) !important;
    color: #fff !important;
    font-weight: 900 !important;
    letter-spacing: .3px;
    box-shadow: 0 14px 28px rgba(14,89,242,.18) !important;
    border: none !important;
    font-size: 16px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.wc-checkout-layout #place_order:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(14,89,242,.25) !important;
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .wc-cart-layout .wc-myacc-sidebar,
    .wc-checkout-layout .wc-myacc-sidebar {
        width: 240px;
    }

    .wc-cart-layout .wc-myacc-main,
    .wc-checkout-layout .wc-myacc-main {
        margin-right: 240px;
        padding: 20px;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .wc-cart-layout .wc-myacc-layout,
    .wc-checkout-layout .wc-myacc-layout {
        flex-direction: column;
    }

    .wc-cart-layout .wc-myacc-sidebar,
    .wc-checkout-layout .wc-myacc-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-left: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .wc-cart-layout .wc-myacc-main,
    .wc-checkout-layout .wc-myacc-main {
        margin-right: 0;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    /* Layout adjustments */
    .wc-cart-layout .wc-myacc-main,
    .wc-checkout-layout .wc-myacc-main {
        padding: 16px;
    }

    .wc-cart-layout .wc-myacc-sidebar,
    .wc-checkout-layout .wc-myacc-sidebar {
        padding: 16px;
    }

    /* Cart table responsive */
    .wc-cart-layout .cart-table-wrapper table.shop_table,
    .wc-checkout-layout #order_review table.shop_table {
        font-size: 13px;
    }

    .wc-cart-layout .product-thumbnail img {
        width: 60px;
        height: 60px;
    }

    /* Cart actions responsive */
    .wc-cart-layout .actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .wc-cart-layout .coupon {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .wc-cart-layout .coupon input.input-text {
        flex: 1;
        min-width: auto;
        width: 100%;
    }

    .wc-cart-layout .coupon .button {
        width: 100%;
    }

    /* Checkout responsive improvements */
    .wc-checkout-layout .checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wc-checkout-layout .col2-set {
        gap: 20px;
    }

    .wc-checkout-layout .form-row {
        margin-bottom: 20px;
    }

    .wc-checkout-layout .form-row input.input-text,
    .wc-checkout-layout .form-row select,
    .wc-checkout-layout .form-row textarea {
        height: 52px;
        font-size: 15px;
        padding: 0 16px;
    }

    .wc-checkout-layout .form-row textarea {
        height: 100px;
        padding: 12px 16px;
    }

    /* Order review responsive */
    .wc-checkout-layout .order-review-wrapper {
        margin-top: 20px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .wc-cart-layout .wc-myacc-main,
    .wc-checkout-layout .wc-myacc-main {
        padding: 12px;
    }

    .wc-cart-layout .wc-myacc-sidebar,
    .wc-checkout-layout .wc-myacc-sidebar {
        padding: 12px;
    }

    .wc-cart-layout .cart-table-wrapper,
    .wc-checkout-layout .checkout-form-section,
    .wc-checkout-layout .order-review-wrapper {
        border-radius: 12px;
        padding: 16px;
    }

    .wc-cart-layout .product-thumbnail img {
        width: 50px;
        height: 50px;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table,
    .wc-checkout-layout #order_review table.shop_table {
        font-size: 12px;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table th,
    .wc-cart-layout .cart-table-wrapper table.shop_table td,
    .wc-checkout-layout #order_review table.shop_table th,
    .wc-checkout-layout #order_review table.shop_table td {
        padding: 8px 4px;
    }

    .wc-checkout-layout .form-row input.input-text,
    .wc-checkout-layout .form-row select,
    .wc-checkout-layout .form-row textarea {
        height: 48px;
        font-size: 14px;
        padding: 0 12px;
    }

    .wc-checkout-layout .form-row textarea {
        height: 80px;
        padding: 10px 12px;
    }
}

/* Extra small mobile */
@media (max-width: 360px) {
    .wc-myacc-sidebar {
        padding: 8px;
    }

    .wc-myacc-main {
        padding: 8px;
    }

    .page-title {
        font-size: 18px;
    }

    .cart-table-wrapper table.shop_table,
    #order_review table.shop_table {
        font-size: 11px;
    }

    .cart-table-wrapper table.shop_table th,
    .cart-table-wrapper table.shop_table td,
    #order_review table.shop_table th,
    #order_review table.shop_table td {
        padding: 6px 2px;
    }
}

/* Enhanced Error Messages for Checkout */
.wc-checkout-layout .woocommerce-error,
.wc-checkout-layout .woocommerce-message,
.wc-checkout-layout .woocommerce-info {
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    font-weight: 600;
    border: 2px solid;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wc-checkout-layout .woocommerce-error {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.wc-checkout-layout .woocommerce-error:before {
    content: "⚠️";
    margin-left: 8px;
    font-size: 16px;
}

.wc-checkout-layout .woocommerce-message {
    background: #f0fdf4;
    color: #059669;
    border-color: #a7f3d0;
}

.wc-checkout-layout .woocommerce-message:before {
    content: "✅";
    margin-left: 8px;
    font-size: 16px;
}

.wc-checkout-layout .woocommerce-info {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.wc-checkout-layout .woocommerce-info:before {
    content: "ℹ️";
    margin-left: 8px;
    font-size: 16px;
}

/* Field-specific error messages */
.wc-checkout-layout .form-row .woocommerce-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
}

.wc-checkout-layout .form-row .woocommerce-error:before {
    content: "❌";
    margin-left: 4px;
    font-size: 12px;
}

/* Hide coupon code section completely in checkout */
.wc-checkout-layout .woocommerce-form-coupon,
.wc-checkout-layout .checkout_coupon,
.wc-checkout-layout .coupon,
.wc-checkout-layout .woocommerce-form-coupon-toggle,
.wc-checkout-layout .showcoupon,
.wc-checkout-layout .woocommerce-form-coupon-toggle a,
.wc-checkout-layout .woocommerce-form-coupon-toggle p,
.wc-checkout-layout .woocommerce-form-coupon-toggle .woocommerce-info {
    display: none !important;
}

/* Hide any coupon-related elements */
.wc-checkout-layout .coupon_code,
.wc-checkout-layout .apply_coupon,
.wc-checkout-layout .coupon input,
.wc-checkout-layout .coupon button,
.wc-checkout-layout .coupon label,
.wc-checkout-layout .coupon p {
    display: none !important;
}

/* Mobile responsive for cart table */
@media (max-width: 768px) {
    /* Hide columns on mobile */
    .wc-cart-layout .cart-table-wrapper .product-thumbnail,
    .wc-cart-layout .cart-table-wrapper .product-price,
    .wc-cart-layout .cart-table-wrapper .product-subtotal,
    .wc-cart-layout .product-thumbnail,
    .wc-cart-layout .product-price,
    .wc-cart-layout .product-subtotal {
        display: none !important;
    }

    /* Make table responsive */
    .wc-cart-layout .cart-table-wrapper table.shop_table {
        font-size: 13px;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table thead {
        display: none;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table tbody,
    .wc-cart-layout .cart-table-wrapper table.shop_table tr,
    .wc-cart-layout .cart-table-wrapper table.shop_table td {
        display: block;
        width: 100%;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table tr {
        margin-bottom: 20px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 12px;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table td {
        padding: 10px 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table td:before {
        content: attr(data-title);
        font-weight: 700;
        color: #0e59f2;
        min-width: 100px;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table .product-remove {
        padding: 0;
        display: block;
        border: none;
        margin-bottom: 10px;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table .product-remove a.remove {
        float: right;
        font-size: 24px;
        color: #dc2626;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table .product-name {
        padding: 0;
        margin-bottom: 15px;
        border: none;
        display: block !important;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table .product-name:before {
        display: none;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table .product-quantity {
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table .product-quantity:before {
        content: 'تعداد:';
    }

    .wc-cart-layout .quantity input.qty {
        width: 60px;
        height: 36px;
        font-size: 14px;
    }
}

/* Small mobile - further optimization */
@media (max-width: 480px) {
    .wc-cart-layout .cart-table-wrapper table.shop_table tr {
        margin-bottom: 16px;
        padding: 12px;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table td {
        padding: 8px 0;
        font-size: 13px;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table td:before {
        min-width: 80px;
        font-size: 13px;
    }

    .wc-cart-layout .quantity input.qty {
        width: 50px;
        height: 32px;
        font-size: 13px;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table .product-remove a.remove {
        font-size: 20px;
    }
}

/* Extra small mobile */
@media (max-width: 360px) {
    .wc-cart-layout .cart-table-wrapper table.shop_table {
        font-size: 12px;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table tr {
        margin-bottom: 12px;
        padding: 10px;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table td {
        padding: 6px 0;
        font-size: 12px;
    }

    .wc-cart-layout .cart-table-wrapper table.shop_table td:before {
        min-width: 60px;
        font-size: 12px;
    }

    .wc-cart-layout .quantity input.qty {
        width: 40px;
        height: 28px;
        font-size: 12px;
    }
}

/* Checkout order review responsive */
@media (max-width: 768px) {
    .wc-checkout-layout #order_review table.shop_table {
        font-size: 13px;
    }

    .wc-checkout-layout #order_review table.shop_table thead {
        display: none;
    }

    .wc-checkout-layout #order_review table.shop_table tbody,
    .wc-checkout-layout #order_review table.shop_table tr,
    .wc-checkout-layout #order_review table.shop_table td {
        display: block;
        width: 100%;
    }

    .wc-checkout-layout #order_review table.shop_table tr {
        margin-bottom: 16px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 12px;
    }

    .wc-checkout-layout #order_review table.shop_table td {
        padding: 10px 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .wc-checkout-layout #order_review table.shop_table td:before {
        content: attr(data-title);
        font-weight: 700;
        color: #0e59f2;
        min-width: 100px;
    }

    .wc-checkout-layout #order_review table.shop_table .order-total th,
    .wc-checkout-layout #order_review table.shop_table .order-total td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
    }
}

/* Small mobile checkout table */
@media (max-width: 480px) {
    .wc-checkout-layout #order_review table.shop_table {
        font-size: 12px;
    }

    .wc-checkout-layout #order_review table.shop_table tr {
        margin-bottom: 12px;
        padding: 10px;
    }

    .wc-checkout-layout #order_review table.shop_table td {
        padding: 8px 0;
        font-size: 12px;
    }

    .wc-checkout-layout #order_review table.shop_table td:before {
        min-width: 80px;
        font-size: 12px;
    }
}

/* Extra small checkout table */
@media (max-width: 360px) {
    .wc-checkout-layout #order_review table.shop_table {
        font-size: 11px;
    }

    .wc-checkout-layout #order_review table.shop_table tr {
        margin-bottom: 10px;
        padding: 8px;
    }

    .wc-checkout-layout #order_review table.shop_table td {
        padding: 6px 0;
        font-size: 11px;
    }

    .wc-checkout-layout #order_review table.shop_table td:before {
        min-width: 60px;
        font-size: 11px;
    }
}

/* Skill Product Archive Widget Styles */
.skill-product-archive {
    width: 100%;
}

.skill-products-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.skill-product-archive[data-columns="1"] .skill-products-grid {
    grid-template-columns: 1fr;
}

.skill-product-archive[data-columns="2"] .skill-products-grid {
    grid-template-columns: repeat(2, 1fr);
}

.skill-product-archive[data-columns="3"] .skill-products-grid {
    grid-template-columns: repeat(3, 1fr);
}

.skill-product-archive[data-columns="4"] .skill-products-grid {
    grid-template-columns: repeat(4, 1fr);
}

.skill-product-archive[data-columns="5"] .skill-products-grid {
    grid-template-columns: repeat(5, 1fr);
}

.skill-product-archive[data-columns="6"] .skill-products-grid {
    grid-template-columns: repeat(6, 1fr);
}

.skill-product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.skill-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.skill-product-content {
    position: relative;
}

.skill-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.skill-product-image {
    position: relative;
    overflow: hidden;
}

.skill-product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.skill-product-item:hover .skill-product-image img {
    transform: scale(1.05);
}

.skill-product-info {
    padding: 20px;
}

.skill-product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.skill-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.skill-product-title a:hover {
    color: #007cba;
}

.skill-product-rating {
    margin-bottom: 10px;
}

.skill-product-rating .star-rating {
    font-size: 14px;
}

.skill-product-price {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

.skill-product-price del {
    color: #999;
    font-size: 14px;
    margin-left: 5px;
}

.skill-product-actions {
    margin-top: 15px;
}

.skill-product-actions .button {
    width: 100%;
    background: #007cba;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-product-actions .button:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.skill-pagination {
    text-align: center;
    margin-top: 30px;
}

.skill-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.skill-pagination .page-numbers li {
    margin: 0;
}

.skill-pagination .page-numbers a,
.skill-pagination .page-numbers span {
    display: block;
    padding: 8px 12px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.skill-pagination .page-numbers a:hover,
.skill-pagination .page-numbers .current {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.skill-no-products {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.skill-no-products p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* Responsive styles for product archive */
@media (max-width: 1200px) {
    .skill-product-archive[data-columns="6"] .skill-products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .skill-product-archive[data-columns="5"] .skill-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .skill-product-archive[data-columns="6"] .skill-products-grid,
    .skill-product-archive[data-columns="5"] .skill-products-grid,
    .skill-product-archive[data-columns="4"] .skill-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .skill-product-archive[data-columns="3"] .skill-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skill-product-archive[data-columns="6"] .skill-products-grid,
    .skill-product-archive[data-columns="5"] .skill-products-grid,
    .skill-product-archive[data-columns="4"] .skill-products-grid,
    .skill-product-archive[data-columns="3"] .skill-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skill-product-archive[data-columns="2"] .skill-products-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-product-info {
        padding: 15px;
    }
    
    .skill-product-title {
        font-size: 14px;
    }
    
    .skill-product-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .skill-product-archive[data-columns="6"] .skill-products-grid,
    .skill-product-archive[data-columns="5"] .skill-products-grid,
    .skill-product-archive[data-columns="4"] .skill-products-grid,
    .skill-product-archive[data-columns="3"] .skill-products-grid,
    .skill-product-archive[data-columns="2"] .skill-products-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-products-grid {
        gap: 15px;
    }
    
    .skill-product-image img {
        height: 150px;
    }
    
    .skill-product-info {
        padding: 12px;
    }
    
    .skill-product-title {
        font-size: 13px;
    }
    
    .skill-product-price {
        font-size: 15px;
    }
}