/* ===========================================
   WOOCOMMERCE SHOP STYLES
   =========================================== */

/* Shop Layout */
.shop-section {
    position: relative;
    z-index: 1;
    background: #f8fafc;
    overflow: hidden;
    padding-top: 60px;
    padding-bottom: 80px;
}
.shop-section::before,
.shop-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}
.shop-section::before {
    top: -15%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(59,130,246, 0.25);
}
.shop-section::after {
    bottom: -10%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: rgba(96,165,250, 0.15);
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    padding: 0;
}

/* Shop Sidebar */
.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 30px;
}
.shop-sidebar .widget {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}
.shop-sidebar .widget:hover {
    box-shadow: 0 15px 50px rgba(59,130,246, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 1);
}
.shop-sidebar .widget-title {
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 20px 0;
    padding: 0;
    background: none;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
.shop-sidebar .widget-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 6px;
}
.shop-sidebar .widget_search form {
    display: flex;
    gap: 0;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 100px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.shop-sidebar .widget_search form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59,130,246, 0.15);
}
.shop-sidebar .widget_search input[type="search"],
.shop-sidebar .widget_search .search-field {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    background: transparent;
    min-width: 0;
    color: #334155;
}
.shop-sidebar .widget_search button,
.shop-sidebar .widget_search input[type="submit"] {
    padding: 14px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.shop-sidebar .widget_search button:hover {
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3);
}
.shop-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.shop-sidebar ul li {
    padding: 0;
    border-bottom: 1px dashed rgba(59,130,246, 0.15);
}
.shop-sidebar ul li:last-child {
    border-bottom: none;
}
.shop-sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 14px 0;
    font-size: 15px;
    color: #475569;
    transition: all 0.3s ease;
    font-weight: 600;
}
.shop-sidebar ul li a::before {
    content: '\2022';
    font-weight: 900;
    margin-right: 12px;
    font-size: 18px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}
.shop-sidebar ul li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}
.shop-sidebar ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.shop-sidebar .widget_trust {
    padding: 10px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.76)),
        radial-gradient(circle at top right, rgba(59,130,246, 0.16), transparent 42%);
    border-color: rgba(59,130,246, 0.14);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.trust-badges {
    display: grid;
    gap: 8px;
}

.trust-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid rgba(59,130,246, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: #1e293b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.trust-item::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #3b82f6, #38bdf8);
    opacity: 0;
    transform: scaleY(0.55);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.trust-item svg {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59,130,246, 0.12), rgba(59,130,246, 0.08));
    stroke: #3b82f6;
    box-shadow: 0 8px 18px rgba(59,130,246, 0.13);
}

.trust-item span {
    min-width: 0;
}

.trust-item:hover {
    transform: translateY(-2px);
    border-color: rgba(59,130,246, 0.24);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 28px rgba(59,130,246, 0.1);
}

.trust-item:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

[dir="rtl"] .trust-item,
.rtl .trust-item,
body.rtl .trust-item {
    flex-direction: row-reverse;
    text-align: right;
    justify-content: flex-start;
}

/* Shop Content */
.shop-content {
    min-width: 0;
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}
.shop-toolbar:hover {
    box-shadow: 0 15px 50px rgba(59,130,246, 0.08);
}
.shop-results {
    display: flex;
    align-items: center;
    gap: 20px;
}
.shop-results .woocommerce-result-count {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 600;
}
.shop-results .woocommerce-ordering {
    margin: 0;
}
.shop-results .woocommerce-ordering select,
.shop-results .orderby {
    padding: 10px 40px 10px 20px;
    border: 2px solid transparent;
    border-radius: 100px;
    font-size: 14px;
    color: #1e293b;
    background: white;
    outline: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    appearance: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.shop-results .woocommerce-ordering select:focus,
.shop-results .orderby:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59,130,246, 0.15);
}
.shop-view-toggle {
    display: flex;
    gap: 8px;
}
.view-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #94a3b8;
    border: 2px solid transparent;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.view-btn:hover,
.view-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(59,130,246, 0.3);
    transform: translateY(-2px);
}

/* Product Grid */
.shop-content ul.products,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0 !important;
}

/* Product Card - Ultra Premium */
.woocommerce ul.products li.product {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px !important;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03), inset 0 0 0 1px rgba(255,255,255,0.4);
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(59,130,246, 0.15), inset 0 0 0 1px rgba(255,255,255,0.8);
    border-color: rgba(59,130,246, 0.3);
    background: rgba(255, 255, 255, 0.7);
}

/* Image Container - Fix for gray backgrounds */
.woocommerce ul.products li.product a {
    display: block;
    position: relative;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    overflow: hidden;
}
.woocommerce ul.products li.product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    border-radius: 0;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.woocommerce ul.products li.product:hover img {
    transform: scale(1.1) rotate(-1deg);
}

/* Product Category Badge */
.woocommerce ul.products li.product .ast-woo-product-category,
.woocommerce ul.products li.product .product-category {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(59,130,246, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto 16px;
    display: inline-block;
    align-self: center;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 0 12px 12px;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.5;
    transition: color 0.3s ease;
    text-align: center;
}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--primary);
}

/* Price */
.woocommerce ul.products li.product .price {
    padding: 0 12px;
    color: var(--primary);
    font-weight: 900;
    font-size: 22px;
    display: block;
    text-align: center;
    margin-bottom: 24px;
    margin-top: auto;
}
.woocommerce ul.products li.product .price del {
    color: #94a3b8;
    font-weight: 600;
    font-size: 15px;
    margin-right: 8px;
}
.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: var(--primary);
}

/* Stock Status */
.woocommerce ul.products li.product .stock {
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.woocommerce ul.products li.product .stock.out-of-stock {
    color: #ef4444;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 18px !important;
    font-weight: 800 !important;
    padding: 16px 24px !important;
    font-size: 15px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(59,130,246, 0.25) !important;
}
.woocommerce ul.products li.product .button::after,
.woocommerce ul.products li.product .add_to_cart_button::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s ease;
}
.woocommerce ul.products li.product .button:hover::after,
.woocommerce ul.products li.product .add_to_cart_button:hover::after {
    transform: translateX(4px);
}
.woocommerce ul.products li.product .button::before,
.woocommerce ul.products li.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.4), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}
.woocommerce ul.products li.product .button:hover::before,
.woocommerce ul.products li.product .add_to_cart_button:hover::before {
    left: 100%;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    box-shadow: 0 12px 30px rgba(59,130,246, 0.45) !important;
    transform: translateY(-4px) scale(1.02);
}

/* Sale Badge */
.woocommerce span.onsale {
    position: absolute;
    top: 24px;
    right: 24px;
    left: auto;
    min-width: auto;
    min-height: auto;
    padding: 8px 18px;
    border-radius: 100px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-weight: 900;
    font-size: 12px;
    line-height: 1.4;
    z-index: 5;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* No Products */
.woocommerce .woocommerce-info {
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    font-size: 16px;
    background: rgba(59,130,246, 0.05);
    border: 1px dashed rgba(59,130,246, 0.3);
    color: var(--primary);
    font-weight: 700;
    backdrop-filter: blur(10px);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 240px 1fr;
        gap: 24px;
    }
    .shop-content ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }
}
@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .shop-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    .shop-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        border-radius: 24px;
    }
    .shop-view-toggle {
        display: none;
    }
}
@media (max-width: 480px) {
    .shop-content ul.products,
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}


/* ===========================================
   SINGLE PRODUCT
   =========================================== */
.woocommerce div.product {
    padding: 40px 0;
}
.woocommerce div.product div.images {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.woocommerce div.product div.images img {
    border-radius: var(--radius-md);
}
.woocommerce div.product div.summary {
    padding: 0;
}
.woocommerce div.product .product_title {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.woocommerce div.product p.price {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 20px;
}
.woocommerce div.product p.price del {
    color: var(--text-muted);
    font-size: 18px;
}
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}
.woocommerce div.product .cart {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}
.woocommerce div.product .cart .quantity {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.woocommerce div.product .cart .quantity .qty {
    width: 60px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}
.woocommerce div.product .cart button.single_add_to_cart_button {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    height: 48px !important;
    transition: var(--transition) !important;
}
.woocommerce div.product .cart button.single_add_to_cart_button:hover {
    box-shadow: var(--shadow-glow) !important;
    transform: translateY(-2px);
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 30px;
    list-style: none;
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin: 0;
    padding: 0;
    float: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: var(--transition);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li:hover a {
    color: var(--primary);
    background: rgba(59,130,246, 0.06);
    border-bottom: 2px solid var(--primary);
    margin-bottom: -2px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
    display: none;
}
.woocommerce div.product .woocommerce-tabs .panel {
    margin: 0;
    padding: 30px 0;
    border: none;
    box-shadow: none;
}

/* Related Products */
.woocommerce .related.products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.woocommerce .related.products h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
}

/* ===========================================
   CART PAGE
   =========================================== */
.woocommerce .cart_totals {
    background: white; border: 1px solid var(--border);
    border-radius: 16px; padding: 28px; margin-top: 0;
}
.woocommerce .cart_totals h2 {
    font-size: 18px; font-weight: 800; margin-bottom: 20px;
    padding-bottom: 14px; border-bottom: 2px solid var(--border-light);
    color: var(--text-primary);
}
.woocommerce table.cart {
    border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; background: white;
}
.woocommerce table.cart th {
    background: var(--bg-secondary); padding: 14px 20px;
    font-weight: 700; font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}
.woocommerce table.cart td {
    padding: 20px; vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
}
.woocommerce table.cart td.product-remove a {
    color: #ef4444; font-size: 18px; opacity: 0.6;
    transition: var(--transition);
}
.woocommerce table.cart td.product-remove a:hover {
    opacity: 1; transform: scale(1.1);
}
.woocommerce table.cart td.product-name a {
    font-weight: 700; color: var(--text-primary); font-size: 15px;
}
.woocommerce table.cart td.product-name a:hover { color: var(--primary); }
.woocommerce table.cart td.product-thumbnail img {
    width: 72px; height: 72px; object-fit: cover;
    border-radius: 12px; border: 1px solid var(--border);
}
.woocommerce table.cart .quantity {
    border: 2px solid var(--border); border-radius: 10px;
    overflow: hidden; display: inline-flex;
}
.woocommerce table.cart .quantity .qty {
    width: 44px; height: 40px; border: none; text-align: center;
    font-size: 15px; font-weight: 700; background: white;
}
.woocommerce table.cart .quantity .qty:focus {
    box-shadow: none; outline: none;
}
.woocommerce table.cart .quantity .plus,
.woocommerce table.cart .quantity .minus {
    background: var(--bg-secondary); border: none; color: var(--text-primary);
    width: 36px; height: 40px; font-size: 16px; font-weight: 700;
    transition: var(--transition);
}
.woocommerce table.cart .quantity .plus:hover,
.woocommerce table.cart .quantity .minus:hover {
    background: var(--primary); color: white;
}
.woocommerce .cart-collaterals {
    display: grid; grid-template-columns: 1fr 380px; gap: 24px; margin-top: 24px;
}
.woocommerce .cart_totals table {
    width: 100%; border-collapse: collapse;
}
.woocommerce .cart_totals td,
.woocommerce .cart_totals th {
    padding: 14px 0; border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.woocommerce .cart_totals th {
    font-weight: 600; color: var(--text-secondary);
}
.woocommerce .cart_totals td {
    text-align: right; font-weight: 600;
}
.woocommerce .cart_totals .order-total td {
    font-size: 20px; font-weight: 900; color: var(--primary);
    border-bottom: none; padding-top: 16px;
}
.woocommerce .cart_totals .order-total th {
    font-size: 16px; font-weight: 800; border-bottom: none;
}
.woocommerce .cart_totals .shipping {
    border-bottom: none;
}
.woocommerce .cart_totals .cart-subtotal {
    border-bottom: 2px solid var(--border-light);
}
.woocommerce .update-cart {
    margin-top: 16px;
}
.woocommerce .button.alt,
.woocommerce .checkout-button {
    background: var(--gradient-primary) !important;
    color: white !important; border: none !important;
    border-radius: 12px !important; font-weight: 800 !important;
    padding: 16px 32px !important; font-size: 16px !important;
    width: 100%; transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(59,130,246,0.25) !important;
}
.woocommerce .button.alt:hover,
.woocommerce .checkout-button:hover {
    box-shadow: 0 8px 30px rgba(59,130,246,0.4) !important;
    transform: translateY(-2px) !important;
}

/* Cart Coupon */
.woocommerce .cart-collaterals .coupon {
    display: flex; gap: 10px; margin-bottom: 20px;
}
.woocommerce .cart-collaterals .coupon input {
    flex: 1; border: 2px solid var(--border); border-radius: 10px;
    padding: 12px 16px; font-size: 14px;
}
.woocommerce .cart-collaterals .coupon input:focus {
    border-color: var(--primary); outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}
.woocommerce .cart-collaterals .coupon button {
    background: var(--bg-secondary) !important; color: var(--text-primary) !important;
    border: 2px solid var(--border) !important; border-radius: 10px !important;
    padding: 12px 20px !important; font-weight: 700 !important; font-size: 13px !important;
    transition: var(--transition) !important;
}
.woocommerce .cart-collaterals .coupon button:hover {
    border-color: var(--primary) !important; color: var(--primary) !important;
}

/* Return to shop */
.woocommerce .return-to-shop {
    margin-top: 20px;
}
.woocommerce .return-to-shop .button {
    background: white !important; color: var(--primary) !important;
    border: 2px solid rgba(59,130,246,0.2) !important;
    border-radius: 10px !important; padding: 10px 20px !important;
    font-weight: 600 !important; transition: var(--transition) !important;
}
.woocommerce .return-to-shop .button:hover {
    border-color: var(--primary) !important; background: var(--primary) !important; color: white !important;
}

/* Empty Cart */
.woocommerce-cart .cart-empty {
    text-align: center; padding: 60px 20px; font-size: 18px;
    color: var(--text-secondary);
}

/* Responsive Cart */
@media (max-width: 992px) {
    .woocommerce .cart-collaterals {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .woocommerce table.cart td.product-thumbnail img {
        width: 56px; height: 56px;
    }
    .woocommerce table.cart th,
    .woocommerce table.cart td {
        padding: 12px 14px;
    }
}
.woocommerce table.cart th {
    background: var(--bg-secondary);
    padding: 16px 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}
.woocommerce table.cart td {
    padding: 20px;
    vertical-align: middle;
}
.woocommerce table.cart td.product-remove a {
    color: #ef4444;
    font-size: 20px;
}
.woocommerce table.cart td.product-name a {
    font-weight: 600;
    color: var(--text-primary);
}
.woocommerce table.cart td.product-name a:hover {
    color: var(--primary);
}
.woocommerce .cart-collaterals {
    margin-top: 30px;
}
.woocommerce .cart_totals h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}
.woocommerce .cart_totals table {
    width: 100%;
}
.woocommerce .cart_totals td,
.woocommerce .cart_totals th {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.woocommerce .cart_totals .order-total td {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
}
.woocommerce .checkout-button {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 800 !important;
    padding: 14px 32px !important;
}
.woocommerce .checkout-button:hover {
    box-shadow: var(--shadow-glow) !important;
}

/* ===========================================
   CHECKOUT
   =========================================== */
.woocommerce-checkout #payment {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    background: white;
}
.woocommerce-checkout #payment ul.payment_methods {
    padding: 0;
    border: none;
}
.woocommerce-checkout #payment ul.payment_methods li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}
.woocommerce-checkout #payment ul.payment_methods li:last-child {
    border-bottom: none;
}
.woocommerce-checkout #payment #place_order {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    padding: 16px 40px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    transition: var(--transition) !important;
}
.woocommerce-checkout #payment #place_order:hover {
    box-shadow: var(--shadow-glow) !important;
    transform: translateY(-2px) !important;
}

/* Checkout Form */
.woocommerce-checkout .form-row {
    margin-bottom: 18px;
}
.woocommerce-checkout .form-row label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.woocommerce-checkout .form-row label .required {
    color: #ef4444;
}
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 15px;
    transition: var(--transition);
    width: 100%;
}
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59,130,246, 0.08);
    outline: none;
}
.woocommerce-checkout select {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 15px;
    transition: var(--transition);
    width: 100%;
    background: white;
}
.woocommerce-checkout select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Checkout Order Review */
.woocommerce-checkout #order_review {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.woocommerce-checkout #order_review_heading {
    font-size: 20px;
    font-weight: 800;
    padding: 24px 28px;
    margin: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.woocommerce-checkout .shop_table {
    border: none;
    margin: 0;
}
.woocommerce-checkout .shop_table thead th {
    background: var(--bg-secondary);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.woocommerce-checkout .shop_table tbody td {
    padding: 16px 28px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.woocommerce-checkout .shop_table tfoot td,
.woocommerce-checkout .shop_table tfoot th {
    padding: 14px 28px;
    border-top: 1px solid var(--border);
}
.woocommerce-checkout .shop_table tfoot td {
    font-weight: 800;
    font-size: 16px;
}
.woocommerce-checkout .shop_table tfoot tr:last-child td {
    font-size: 20px;
    color: var(--primary);
    background: rgba(59,130,246, 0.04);
}

/* Checkout Coupon */
.woocommerce-checkout .checkout_coupon {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(59,130,246, 0.03);
}
.woocommerce-checkout .checkout_coupon label {
    font-weight: 700;
    font-size: 14px;
    margin: 0;
}
.woocommerce-checkout .checkout_coupon input {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
}
.woocommerce-checkout .checkout_coupon button {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    transition: var(--transition) !important;
}

/* ===========================================
   FORMS
   =========================================== */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 15px;
    transition: var(--transition);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59,130,246, 0.08);
}

/* ===========================================
   ACCOUNT PAGES
   =========================================== */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px;
    margin-bottom: 32px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
    text-align: center;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59,130,246, 0.3);
}
.woocommerce-account .woocommerce-MyAccount-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

/* Orders Table */
.woocommerce-account table.woocommerce-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.woocommerce-account table.woocommerce-orders-table thead th {
    background: var(--bg-secondary);
    padding: 16px 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.woocommerce-account table.woocommerce-orders-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    vertical-align: middle;
}
.woocommerce-account table.woocommerce-orders-table tbody tr:last-child td {
    border-bottom: none;
}
.woocommerce-account table.woocommerce-orders-table tbody tr {
    transition: var(--transition);
}
.woocommerce-account table.woocommerce-orders-table tbody tr:hover {
    background: rgba(59,130,246, 0.02);
}
.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__order-number {
    font-weight: 800;
    color: var(--primary);
}
.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__order-number a {
    color: var(--primary);
    font-weight: 800;
}
.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__order-number a:hover {
    text-decoration: underline;
}
.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__order-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}
.woocommerce-account table.woocommerce-orders-table .order-status-on-hold {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}
.woocommerce-account table.woocommerce-orders-table .order-status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}
.woocommerce-account table.woocommerce-orders-table .order-status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
.woocommerce-account table.woocommerce-orders-table .order-status-refunded {
    background: rgba(59,130,246, 0.1);
    color: #2563eb;
}
.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__order-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
    text-decoration: none;
}
.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__order-actions a:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.woocommerce-account .woocommerce-MyAccount-order-actions {
    margin: 0;
    list-style: none;
}
.woocommerce-account .woocommerce-MyAccount-order-actions li {
    list-style: none;
}

/* View Order Button */
.woocommerce-orders-table__actions .button {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 18px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    transition: var(--transition) !important;
}
.woocommerce-orders-table__actions .button:hover {
    box-shadow: var(--shadow-glow) !important;
    transform: translateY(-2px);
}

/* Dashboard Welcome */
.woocommerce-account .woocommerce-MyAccount-content h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.woocommerce-account .woocommerce-MyAccount-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Address Forms */
.woocommerce-account .woocommerce-addresses .woocommerce-column {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}
.woocommerce-account .woocommerce-addresses .woocommerce-column__title {
    padding: 20px 24px;
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.woocommerce-account .woocommerce-addresses address {
    padding: 20px 24px;
    font-style: normal;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.woocommerce-account .woocommerce-addresses .edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    margin: 0 24px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
}
.woocommerce-account .woocommerce-addresses .edit:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* ===========================================
   VIEW SINGLE ORDER
   =========================================== */
.woocommerce-account .order-details-header {
    background: linear-gradient(135deg, rgba(59,130,246, 0.06) 0%, rgba(37,99,235, 0.06) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.woocommerce-account .order-details-header p {
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.woocommerce-account .order-details-header p strong {
    color: var(--text-primary);
    font-weight: 800;
}
.woocommerce-account .order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}
.woocommerce-account .order-status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.woocommerce-account .order-details-header .order-status-on-hold {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}
.woocommerce-account .order-details-header .order-status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* View Order Table */
.woocommerce-account .woocommerce-order-details {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}
.woocommerce-account .woocommerce-order-details__title {
    font-size: 18px;
    font-weight: 800;
    padding: 24px 28px 16px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}
.woocommerce-account .woocommerce-order-details table {
    margin: 0;
    border: none;
}
.woocommerce-account .woocommerce-order-details thead th {
    background: var(--bg-secondary);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.woocommerce-account .woocommerce-order-details tbody td {
    padding: 18px 28px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    vertical-align: middle;
}
.woocommerce-account .woocommerce-order-details tbody tr:last-child td {
    border-bottom: none;
}
.woocommerce-account .woocommerce-order-details tfoot th {
    padding: 14px 28px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}
.woocommerce-account .woocommerce-order-details tfoot td {
    padding: 14px 28px;
    font-weight: 800;
    font-size: 14px;
    color: var(--text-primary);
    border-top: 1px solid var(--border);
}
.woocommerce-account .woocommerce-order-details tfoot tr:last-child td {
    font-size: 18px;
    color: var(--primary);
    background: rgba(59,130,246, 0.04);
    font-weight: 900;
}

/* Order Again Button */
.woocommerce-order-actions {
    margin: 24px 0;
}
.woocommerce-order-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: var(--transition) !important;
}
.woocommerce-order-actions .button:hover {
    box-shadow: var(--shadow-glow) !important;
    transform: translateY(-2px) !important;
}

/* View Order Billing Address */
.woocommerce-account .woocommerce-customer-details {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.woocommerce-account .woocommerce-customer-details__title {
    font-size: 18px;
    font-weight: 800;
    padding: 24px 28px 16px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}
.woocommerce-account .woocommerce-customer-details address {
    padding: 0 28px 28px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
    font-style: normal;
}
.woocommerce-account .woocommerce-customer-details address a {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive View Order */
@media (max-width: 768px) {
    .woocommerce-account .order-details-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .woocommerce-account .woocommerce-order-details thead th,
    .woocommerce-account .woocommerce-order-details tbody td,
    .woocommerce-account .woocommerce-order-details tfoot th,
    .woocommerce-account .woocommerce-order-details tfoot td {
        padding: 12px 16px;
    }
}

/* Responsive Account */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 20px;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        grid-template-columns: repeat(2, 1fr);
    }
    .woocommerce-account table.woocommerce-orders-table {
        display: block;
        overflow-x: auto;
    }
    .woocommerce-account table.woocommerce-orders-table thead th,
    .woocommerce-account table.woocommerce-orders-table tbody td {
        padding: 12px 14px;
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 12px 10px;
        font-size: 13px;
    }
}

/* ===========================================
   NOTICES
   =========================================== */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
    border-radius: var(--radius-md);
    border: none;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 14px;
}
.woocommerce .woocommerce-info {
    background: rgba(59,130,246, 0.08);
    color: var(--primary-dark);
    border-left: 4px solid var(--primary);
}
.woocommerce .woocommerce-message {
    background: rgba(34, 197, 94, 0.08);
    color: #166534;
    border-left: 4px solid #22c55e;
}
.woocommerce .woocommerce-error {
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* ===========================================
   WIDGETS
   =========================================== */
.widget {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.widget:hover {
    box-shadow: var(--shadow-sm);
}
.widget-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    color: var(--text-primary);
    position: relative;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
}
.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.widget ul li a {
    color: var(--text-secondary);
    transition: var(--transition);
}
.widget ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}
.widget_search {
    padding: 24px;
}
.widget_search form {
    display: flex;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
.widget_search form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59,130,246, 0.08);
}
.widget_search input[type="search"],
.widget_search input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 14px;
    outline: none;
    background: transparent;
}
.widget_search button,
.widget_search input[type="submit"] {
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}
.widget_search button:hover {
    opacity: 0.9;
}
.widget_product_categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.widget_product_categories ul li .count {
    background: var(--bg-secondary);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

/* Recent Posts Widget */
.widget_recent_entries ul li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.widget_recent_entries ul li .post-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Comments Widget */
.widget_recent_comments ul li {
    font-size: 13px;
}
.widget_recent_comments ul li a {
    font-weight: 600;
}

/* Popular Products Widget */
.woocommerce .widget_products ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}
.woocommerce .widget_products ul li img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.woocommerce .widget_products ul li .product-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}
.woocommerce .widget_products ul li .product-title:hover {
    color: var(--primary);
}
.woocommerce .widget_products ul li .amount {
    font-weight: 800;
    color: var(--primary);
    font-size: 15px;
}

/* Newsletter Widget */
.widget_newsletter p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.widget_newsletter form,
.widget_newsletter .tnp-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.widget_newsletter input[type="email"],
.widget_newsletter .tnp-email {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.widget_newsletter input[type="email"]:focus,
.widget_newsletter .tnp-email:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59,130,246, 0.08);
}
.widget_newsletter input[type="submit"],
.widget_newsletter button {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}
.widget_newsletter input[type="submit"]:hover,
.widget_newsletter button:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* ===========================================
   RESPONSIVE SHOP
   =========================================== */
@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .shop-sidebar {
        order: 2;
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .shop-content {
        order: 1;
    }
    .shop-content ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .shop-content ul.products,
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto !important;
    }
    .shop-toolbar {
        flex-direction: column;
        gap: 12px;
    }
    .shop-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   ORDER RECEIVED / THANK YOU
   =========================================== */
.thankyou-hero {
    text-align: center;
    padding: 100px 0 60px;
    position: relative;
}
.thankyou-success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    position: relative;
}
.thankyou-checkmark-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(34, 197, 94, 0.2);
    animation: checkmarkPulse 2s ease-in-out infinite;
}
.thankyou-checkmark-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
}
@keyframes checkmarkPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.3; }
}
.woocommerce-order {
    max-width: 900px;
    margin: 0 auto;
}
.ty-not-found {
    text-align: center;
    padding: 60px 20px;
}
.ty-not-found h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}
.ty-not-found p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Info Cards */
.thankyou-info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    list-style: none;
    padding: 0;
}
.ty-info-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.ty-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ty-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.ty-info-card:hover::before {
    transform: scaleX(1);
}
.ty-info-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin: 0 auto 14px;
}
.ty-icon-order { background: rgba(59,130,246, 0.08); color: var(--primary); }
.ty-icon-date { background: rgba(59, 130, 246, 0.08); color: #3b82f6; }
.ty-icon-email { background: rgba(34, 197, 94, 0.08); color: #22c55e; }
.ty-icon-total { background: rgba(249, 115, 22, 0.08); color: #f97316; }
.ty-info-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.ty-info-value {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}
.ty-total-price {
    color: var(--primary) !important;
    font-size: 17px !important;
}

/* Content Grid */
.ty-content-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    margin-bottom: 32px;
}
.ty-side-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cards */
.ty-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.ty-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 28px 16px;
}
.ty-card-header svg {
    color: var(--primary);
    flex-shrink: 0;
}
.ty-card-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

/* Order Table */
.ty-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.ty-table thead th {
    background: var(--bg-secondary);
    padding: 12px 28px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    text-align: left;
}
.ty-table tbody td {
    padding: 16px 28px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.ty-table tbody tr:last-child td {
    border-bottom: none;
}
.ty-product-name {
    font-weight: 600;
    color: var(--text-primary);
}
.ty-qty {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 13px;
}
.ty-product-total {
    font-weight: 700;
    white-space: nowrap;
}
.ty-table tfoot th {
    padding: 14px 28px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    text-align: left;
}
.ty-table tfoot td {
    padding: 14px 28px;
    font-weight: 800;
    font-size: 14px;
    color: var(--text-primary);
    border-top: 1px solid var(--border);
}
.ty-table tfoot tr:last-child td {
    font-size: 18px;
    color: var(--primary);
    background: rgba(59,130,246, 0.04);
}

/* Address */
.ty-address-body {
    padding: 0 28px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
}
.ty-address-body p {
    margin: 0;
}
.ty-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-top: 4px;
}
.ty-contact-link:hover {
    text-decoration: underline;
}

/* Help Card */
.ty-help-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
    background: var(--bg-secondary);
    border-color: transparent;
}
.ty-help-card svg {
    color: var(--primary);
    margin-bottom: 12px;
}
.ty-help-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

/* Actions */
.thankyou-actions {
    text-align: center;
    margin-top: 40px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 992px) {
    .ty-content-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .thankyou-info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .ty-info-card {
        padding: 18px 12px;
    }
    .ty-table thead th,
    .ty-table tbody td,
    .ty-table tfoot td,
    .ty-table tfoot th {
        padding: 12px 16px;
    }
}
@media (max-width: 480px) {
    .thankyou-info-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .ty-info-icon {
        width: 42px;
        height: 42px;
    }
    .ty-info-label { font-size: 10px; }
    .ty-info-value { font-size: 13px; }
    .thankyou-actions {
        flex-direction: column;
        align-items: center;
    }
    .thankyou-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ===========================================
   CUSTOM SINGLE PRODUCT & REDESIGNED CARDS
   =========================================== */

/* Product card overlay link for clickability */
.premium-product-card {
    position: relative;
}
.ppc-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}
.ppc-btn.add-to-cart-btn,
.ppc-btn.add-to-cart-btn * {
    position: relative;
    z-index: 6;
}

.shop-content {
    width: 100%;
    min-width: 0;
}

.shop-content ul.products,
.woocommerce ul.products {
    display: grid !important;
    gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    justify-content: stretch;
    align-items: stretch;
}

/* Fix emoji sizing specifically inside products */
.woocommerce ul.products li.product img.emoji,
.premium-product-card img.emoji {
    display: inline-block !important;
    width: 1.2em !important;
    height: 1.2em !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 0.1em !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    border: none !important;
    background: transparent !important;
    object-fit: contain !important;
    padding: 0 !important;
}

.shop-content ul.products li.product.premium-product-card-wrap,
.woocommerce ul.products li.product.premium-product-card-wrap {
    width: auto !important;
    min-width: 300px !important;
    max-width: none !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
    transform: none;
}

.shop-content ul.products li.product.premium-product-card-wrap:hover,
.woocommerce ul.products li.product.premium-product-card-wrap:hover {
    transform: none;
    box-shadow: none !important;
    background: transparent !important;
    border-color: transparent;
}

.woocommerce ul.products li.product.premium-product-card-wrap a {
    display: inline-flex;
}

.woocommerce ul.products li.product.premium-product-card-wrap .ppc-overlay-link {
    display: block;
}

.woocommerce ul.products li.product.premium-product-card-wrap .premium-product-card {
    width: 100% !important;
    min-width: 300px !important;
    max-width: none !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(59,130,246, 0.14);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.shop-content .premium-product-card {
    width: 100% !important;
    min-width: 300px !important;
    max-width: none !important;
}

.woocommerce ul.products li.product.premium-product-card-wrap .premium-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(59,130,246, 0.16);
    border-color: rgba(59,130,246, 0.26);
}

.woocommerce ul.products li.product.premium-product-card-wrap .ppc-header {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    padding: 0;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 24px 24px 0 0;
}

.woocommerce ul.products li.product.premium-product-card-wrap .ppc-product-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 8px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce ul.products li.product.premium-product-card-wrap:hover .ppc-product-img {
    transform: scale(1.05) rotate(-2deg);
}

.woocommerce ul.products li.product.premium-product-card-wrap .ppc-quick-view {
    display: none !important;
}

.woocommerce ul.products li.product.premium-product-card-wrap .ppc-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 18px 20px;
    text-align: center;
}

.woocommerce ul.products li.product.premium-product-card-wrap .ppc-category {
    margin: 0;
    max-width: 100%;
    white-space: nowrap;
}

.woocommerce ul.products li.product.premium-product-card-wrap .ppc-name {
    width: 100%;
    margin: 0;
    min-height: 46px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: break-word;
}

.woocommerce ul.products li.product.premium-product-card-wrap .ppc-desc {
    width: 100%;
    min-height: 44px;
    margin: 0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.65;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.woocommerce ul.products li.product.premium-product-card-wrap .ppc-price {
    margin: 2px 0 0;
    color: #6d5dfc;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.1;
    direction: ltr;
}

.woocommerce ul.products li.product.premium-product-card-wrap .ppc-status {
    min-height: 28px;
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    font-size: 12px;
    font-weight: 900;
}

.woocommerce ul.products li.product.premium-product-card-wrap .ppc-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px;
    margin-top: 2px;
    padding: 12px 14px !important;
    border-radius: 15px !important;
    justify-content: center;
    gap: 8px;
    font-size: 14px !important;
    line-height: 1.2;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .shop-content ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .shop-content ul.products,
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }

    .woocommerce ul.products li.product.premium-product-card-wrap .premium-product-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* Breadcrumbs */
.nexpers-breadcrumb {
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}
.nexpers-breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
}
.nexpers-breadcrumb ul li {
    font-size: 13px;
    color: var(--text-muted);
}
.nexpers-breadcrumb ul li a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}
.nexpers-breadcrumb ul li a:hover {
    color: var(--primary);
}
.nexpers-breadcrumb ul li::after {
    content: "/";
    margin: 0 8px;
    color: var(--text-muted);
    font-size: 11px;
}
.nexpers-breadcrumb ul li:last-child::after,
.nexpers-breadcrumb ul li.is-active::after {
    content: "";
}
.nexpers-breadcrumb ul li.is-active a {
    color: var(--primary);
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

/* Single Product Layout */
.nexpers-single-product-section {
    padding: 80px 0;
}
.nexpers-single-product-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}
.nexpers-product-detail-columns {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 60px;
}
.nexpers-product-summary-column {
    display: flex;
    flex-direction: column;
    height: auto;
}

/* Product Gallery */
.nexpers-product-gallery-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.product-gallery-main {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}
.product-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-gallery-main:hover img {
    transform: scale(1.05);
}
.product-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.product-gallery-thumb {
    aspect-ratio: 1/1;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    overflow: hidden;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.product-gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.product-gallery-thumb:hover {
    border-color: var(--primary-light);
}
.product-gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59,130,246, 0.15);
}

/* Product Summary */
.product-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
}
.product-summary-header .product-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.35;
}

/* Product cart form */
.product-cart-form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.product-summary-header .support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(59,130,246, 0.25);
    background: rgba(59,130,246, 0.05);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.product-summary-header .support-btn:hover {
    background: var(--primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(59,130,246, 0.25);
    transform: translateY(-2px);
}
.product-category-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.product-category-meta a {
    color: var(--primary);
    font-weight: 600;
    margin-left: 4px;
    text-decoration: none;
}
.product-category-meta a:hover {
    text-decoration: underline;
}

/* Product Features Compact */
.product-features-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.pf-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59,130,246, 0.05);
    border: 1px solid rgba(59,130,246, 0.1);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    transition: all 0.2s ease;
}
.pf-item svg {
    color: #3b82f6;
    flex-shrink: 0;
}
.pf-item:hover {
    background: rgba(59,130,246, 0.08);
    border-color: rgba(59,130,246, 0.2);
    transform: translateY(-1px);
}

/* Short Description blockquote */
.product-short-description {
    margin-bottom: 15px;
}

/* Overrides for inline HTML in short description */
.product-short-description > div[style*="background: linear-gradient"] {
    padding: 15px !important;
}
.product-short-description > div > div:first-child {
    margin-bottom: 12px !important;
}
.product-short-description > div > div:last-child {
    padding: 10px !important;
}
.product-short-description > div > div:last-child span:nth-of-type(1) {
    font-size: 9px !important;
    padding: 2px 8px !important;
    top: -8px !important;
}
.product-short-description > div > div:last-child span:nth-of-type(2) {
    font-size: 13px !important;
}
.product-short-description > div > div:last-child span:nth-of-type(3) {
    font-size: 20px !important;
}

.product-short-description blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-secondary);
    padding: 15px 20px;
    border-radius: 0 12px 12px 0;
    margin: 0 0 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}
.product-short-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-short-description ul li {
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
    line-height: 1.7;
}
.product-short-description ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Guarantees & Cart Section */
.product-actions-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
}
.product-guarantees-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-right: 0;
    padding-bottom: 20px;
}
.product-guarantees-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}
.product-guarantees-sidebar ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
}
.guarantee-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.product-cart-form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 5px;
}
.product-price-display {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.product-price-display .price-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}
.product-price-display .price-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
}

/* Form overrides */
.woocommerce-cart-form-wrapper select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    outline: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}
.woocommerce-cart-form-wrapper select:focus {
    border-color: var(--primary);
}
.woocommerce-cart-form-wrapper .variations {
    width: 100%;
    margin-bottom: 20px;
}
.woocommerce-cart-form-wrapper .variations td {
    padding: 10px 0;
}
.woocommerce-cart-form-wrapper .variations .label {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-secondary);
    vertical-align: middle;
}
.woocommerce-cart-form-wrapper .single_variation_wrap {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-top: 15px;
}
.woocommerce-cart-form-wrapper .woocommerce-variation-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}
.woocommerce-cart-form-wrapper .quantity {
    display: inline-flex;
    margin-right: 12px;
}
.woocommerce-cart-form-wrapper .quantity input {
    width: 60px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    text-align: center;
    font-weight: 700;
    outline: none;
}
.woocommerce-cart-form-wrapper button.single_add_to_cart_button {
    background: linear-gradient(135deg, #3b82f6, #3b82f6) !important;
    color: white !important;
    font-weight: 800;
    font-size: 15px;
    padding: 12px 28px !important;
    border-radius: var(--radius-md) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(59,130,246, 0.25);
    cursor: pointer;
    transition: var(--transition);
}
.woocommerce-cart-form-wrapper button.single_add_to_cart_button:hover {
    box-shadow: 0 8px 24px rgba(59,130,246, 0.35);
    transform: translateY(-2px);
}

/* Tabs Container */
.product-tabs-container {
    margin-top: 60px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}
.product-tabs-header ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    border-bottom: 2px solid var(--border-light);
    gap: 30px;
}
.product-tabs-header ul li {
    padding: 0;
    margin-bottom: -2px;
}
.product-tabs-header ul li a {
    display: block;
    padding: 12px 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
}
.product-tabs-header ul li a:hover {
    color: var(--primary);
}
.product-tabs-header ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.product-tabs-header ul li.is-active a {
    color: var(--primary);
}
.product-tabs-header ul li.is-active a::after {
    transform: scaleX(1);
}

.product-tabs-contents .tab-content {
    animation: fadeIn 0.4s ease;
}
.product-tabs-contents .tab-title {
    display: none;
}
.tab-content-body.content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.85;
}
.tab-content-body.content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.tab-content-body.content li {
    margin-bottom: 8px;
}

/* FAQ Accordion */
.faq-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-accordion-wrapper .accordion {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.faq-accordion-wrapper .accordion:hover {
    border-color: var(--primary-light);
    background: rgba(59,130,246, 0.02);
}
.faq-accordion-wrapper .accordion.active {
    background: white;
    border-color: var(--primary);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 8px 30px rgba(59,130,246, 0.05);
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}
.accordion-header .icon {
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition);
}
.faq-accordion-wrapper .accordion.active .accordion-header .icon {
    color: var(--primary);
}
.faq-accordion-wrapper .accordion-panel {
    display: none;
    padding: 20px 24px;
    background: white;
    border: 1px solid var(--primary);
    border-top: none;
    border-radius: 0 0 12px 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Related Posts */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.related-post-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}
.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.related-post-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.related-post-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}
.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}
.related-post-body {
    padding: 16px;
}
.related-post-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.45;
}
.related-post-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Reviews Tab */
.woocommerce-Reviews-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
}
.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.comment-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition);
}
.comment-item:hover {
    background: white;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}
.comment-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
}
.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}
.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.comment-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.comment-stars {
    color: #e2e8f0;
    font-size: 12px;
    letter-spacing: 2px;
}
.comment-stars .star.filled {
    color: #f59e0b;
}
.comment-date {
    font-size: 11px;
    color: var(--text-muted);
}
.comment-body {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Review Form Styling */
#review_form_wrapper {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
}
#reply-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
    margin-bottom: 20px;
}
.comment-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.comment-form .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.comment-form-rating,
.comment-form-comment,
.form-submit {
    grid-column: 1 / -1;
}
.comment-form label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}
.comment-form .input,
.comment-form select {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.comment-form textarea {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    font-size: 14px;
    outline: none;
    resize: vertical;
    transition: var(--transition);
}
.comment-form .input:focus,
.comment-form select:focus,
.comment-form textarea:focus {
    border-color: var(--primary);
}
.comment-form .submit-btn {
    background: linear-gradient(135deg, #3b82f6, #3b82f6) !important;
    color: white !important;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 28px !important;
    border-radius: var(--radius-md) !important;
    border: none !important;
    cursor: pointer;
    transition: var(--transition);
}
.comment-form .submit-btn:hover {
    box-shadow: 0 6px 20px rgba(59,130,246, 0.2);
}

/* Responsive Single Product */
@media (max-width: 992px) {
    .nexpers-product-detail-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .nexpers-product-gallery-column {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .nexpers-single-product-container {
        padding: 24px;
    }
    .product-summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .product-summary-header .support-btn {
        width: 100%;
        justify-content: center;
    }
    .product-actions-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-guarantees-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-right: 0;
        padding-bottom: 16px;
    }
    .product-guarantees-sidebar ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }
    .product-tabs-header ul {
        gap: 15px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .comment-form {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .product-guarantees-sidebar ul {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}

/* ===========================================
   DEFAULT WOOCOMMERCE ORDER RECEIVED FIX
   =========================================== */
.woocommerce-order {
    max-width: 900px;
    margin: 40px auto;
}

p.woocommerce-notice.woocommerce-thankyou-order-received {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

p.woocommerce-notice.woocommerce-thankyou-order-received::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 18px;
}

ul.woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 40px !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
}

ul.woocommerce-order-overview li {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg);
    padding: 24px 20px !important;
    text-align: center !important;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin: 0 !important;
    float: none !important;
}

ul.woocommerce-order-overview li strong {
    display: block;
    font-size: 16px;
    color: var(--text-primary);
    margin-top: 8px;
    text-transform: none;
    letter-spacing: normal;
}

.woocommerce-order-details,
.woocommerce-customer-details {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.woocommerce-order-details__title,
.woocommerce-column__title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 16px;
    margin-top: 0;
}

table.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
}

table.woocommerce-table--order-details th,
table.woocommerce-table--order-details td {
    padding: 16px 0;
    border: none !important;
    border-bottom: 1px solid var(--border-light) !important;
}

table.woocommerce-table--order-details thead th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

table.woocommerce-table--order-details tbody td.product-name {
    font-weight: 600;
    color: var(--text-primary);
}

table.woocommerce-table--order-details tbody td.product-name a {
    color: var(--text-primary);
    text-decoration: none;
}

table.woocommerce-table--order-details tbody td.product-name a:hover {
    color: var(--primary);
}

table.woocommerce-table--order-details tfoot th {
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
}

table.woocommerce-table--order-details tfoot tr:last-child th,
table.woocommerce-table--order-details tfoot tr:last-child td {
    border-bottom: none !important;
    padding-top: 24px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.woocommerce-customer-details address {
    font-style: normal;
    color: var(--text-secondary);
    line-height: 1.8;
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
    margin-bottom: 0;
}

.woocommerce-customer-details--email {
    margin-top: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Fix excessive spacing inside the cart form container */
.product-cart-form-container {
    justify-content: flex-start !important;
    gap: 0 !important;
}
.product-cart-form-container .product-price-display {
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
    border-bottom: 1px dashed #e5e7eb;
}
.product-cart-form-container .woocommerce-cart-form-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.woocommerce-cart-form-wrapper form.cart {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Sidebar Telegram Support Widget */
.widget_telegram_support {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.sidebar-telegram-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    border-radius: 16px;
    text-decoration: none;
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
    box-shadow: 0 10px 25px rgba(34, 158, 217, 0.25);
    transition: all .3s cubic-bezier(.16,1,.3,1);
    overflow: hidden;
}
.sidebar-telegram-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(34, 158, 217, 0.35);
}
.sidebar-telegram-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 14px;
}
.sidebar-telegram-icon svg {
    width: 32px;
    height: 32px;
}
.sidebar-telegram-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.sidebar-telegram-title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}
.sidebar-telegram-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    line-height: 1.4;
}
.sidebar-telegram-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease;
}
.sidebar-telegram-banner:hover .sidebar-telegram-arrow {
    transform: translateX(-4px);
}
/* Flip arrow for RTL */
.rtl .sidebar-telegram-arrow svg {
    transform: scaleX(-1);
}
.rtl .sidebar-telegram-banner:hover .sidebar-telegram-arrow {
    transform: translateX(4px);
}

/* =====================================================================
   PREMIUM SINGLE-PRODUCT REDESIGN  (2026 refresh)
   Layered on top of the base rules above. Class names unchanged so no
   template/WooCommerce logic is affected. Buy-green CTA accent added.
   ===================================================================== */
.nexpers-single-product-container {
    --buy: #16a34a;
    --buy-dark: #15803d;
    --tg: #229ed9;
}

/* ---- Layout: roomier grid, sticky gallery ---- */
.nexpers-single-product-container .nexpers-product-detail-columns {
    grid-template-columns: 440px 1fr;
    gap: 56px;
}
@media (min-width: 993px) {
    .nexpers-single-product-container .nexpers-product-gallery-column {
        position: sticky;
        top: 24px;
    }
}

/* ---- Gallery: framed, soft glow, refined zoom ---- */
.nexpers-single-product-container .product-gallery-main {
    position: relative;
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(59,130,246,0.07) 0%, transparent 60%),
        linear-gradient(160deg, #ffffff 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 60px -28px rgba(59,130,246,0.35);
    padding: 28px;
}
.nexpers-single-product-container .product-gallery-main::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
    pointer-events: none;
}
.nexpers-single-product-container .product-gallery-thumb.active {
    box-shadow: 0 0 0 3px rgba(59,130,246,0.22);
}

/* ---- Summary card feel ---- */
.nexpers-single-product-container .product-summary-header {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 18px;
    padding-bottom: 18px;
}
.nexpers-single-product-container .product-summary-header .product-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.3px;
    line-height: 1.4;
    background: linear-gradient(180deg, var(--text-primary) 0%, #2b2b46 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Support button -> Telegram-flavoured pill */
.nexpers-single-product-container .product-summary-header .support-btn {
    gap: 7px;
    padding: 10px 18px;
    border: 1.5px solid rgba(34,158,217,0.30);
    background: rgba(34,158,217,0.08);
    color: var(--tg);
    box-shadow: 0 2px 10px rgba(34,158,217,0.10);
}
.nexpers-single-product-container .product-summary-header .support-btn:hover {
    background: linear-gradient(135deg, #2aabee, #229ed9);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 22px rgba(34,158,217,0.32);
}

/* ---- Trust / feature chips: gradient icon badge ---- */
.nexpers-single-product-container .product-features-compact {
    gap: 10px;
    margin-bottom: 22px;
}
.nexpers-single-product-container .pf-item {
    gap: 9px;
    padding: 9px 15px 9px 11px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 12.5px;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.nexpers-single-product-container .pf-item svg {
    width: 28px;
    height: 28px;
    padding: 6px;
    color: #fff;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 4px 10px rgba(59,130,246,0.30);
}
.nexpers-single-product-container .pf-item:nth-child(2) svg {
    background: linear-gradient(135deg, #2aabee, #229ed9);
    box-shadow: 0 4px 10px rgba(34,158,217,0.30);
}
.nexpers-single-product-container .pf-item:nth-child(3) svg {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 4px 10px rgba(22,163,74,0.30);
}
.nexpers-single-product-container .pf-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: 0 8px 18px rgba(59,130,246,0.12);
}

/* ---- Short-description inline card: fill the empty white space ----
   The 4 feature rows are inline-styled flex-column (they hug one side and
   leave the card half-empty). High-specificity overrides (anchored on the
   inline [style*="linear-gradient"]) reflow them into a filled 2x2 grid of
   chip-cards so the whole card width is used. */
.nexpers-single-product-container .product-short-description > div[style*="linear-gradient"] {
    border-radius: var(--radius-lg) !important;
    border-color: var(--border) !important;
    box-shadow: 0 8px 24px -12px rgba(15,23,42,0.12) !important;
    padding: 18px !important;
}
/* wrapper that holds the rows -> 2-column grid */
.nexpers-single-product-container .product-short-description > div[style*="linear-gradient"] > div:first-child {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
}
/* each feature row -> filled chip-card */
.nexpers-single-product-container .product-short-description > div[style*="linear-gradient"] > div > div {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 13px 14px !important;
    margin: 0 !important;
    box-shadow: 0 2px 10px rgba(15,23,42,0.05);
    transition: var(--transition-fast);
}
.nexpers-single-product-container .product-short-description > div[style*="linear-gradient"] > div > div:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 18px rgba(59,130,246,0.12);
    transform: translateY(-2px);
}
/* keep the icon badge fixed-size, keep its inline brand color */
.nexpers-single-product-container .product-short-description > div[style*="linear-gradient"] > div > div > div:first-child {
    flex-shrink: 0;
}
/* readable label text (beats the older 9px override) */
.nexpers-single-product-container .product-short-description > div[style*="linear-gradient"] > div > div span {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
}
@media (max-width: 600px) {
    .nexpers-single-product-container .product-short-description > div[style*="linear-gradient"] > div:first-child {
        grid-template-columns: 1fr !important;
    }
}

/* ---- Purchase panel: elevated buy box ---- */
.nexpers-single-product-container .product-cart-form-container {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px !important;
    box-shadow: 0 18px 45px -24px rgba(59,130,246,0.30);
    gap: 0 !important;
}
.nexpers-single-product-container .product-price-display {
    align-items: baseline;
    gap: 10px;
    padding-bottom: 16px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px dashed var(--border) !important;
}
.nexpers-single-product-container .product-price-display .price-value {
    font-size: 28px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nexpers-single-product-container .product-price-display .price-value del {
    -webkit-text-fill-color: var(--text-muted);
    font-size: 17px;
    font-weight: 600;
    opacity: 0.7;
}

/* Variation select - custom caret, premium field */
.nexpers-single-product-container .woocommerce-cart-form-wrapper select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background-color: #fff;
    padding: 13px 16px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper select:hover {
    border-color: var(--primary-light);
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .single_variation_wrap {
    background: rgba(59,130,246,0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}
.nexpers-single-product-container .woocommerce-variation-price .price {
    color: var(--primary);
}

/* Quantity field */
.nexpers-single-product-container .woocommerce-cart-form-wrapper .quantity input {
    height: 52px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 16px;
}

/* Buy CTA - green, full-width, confident */
.nexpers-single-product-container .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 4px;
}
.nexpers-single-product-container button.single_add_to_cart_button {
    flex: 1;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    box-shadow: 0 10px 24px -6px rgba(22,163,74,0.45) !important;
    padding: 16px 28px !important;
    font-size: 16px !important;
    border-radius: var(--radius-md) !important;
    letter-spacing: 0.2px;
}
.nexpers-single-product-container button.single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    box-shadow: 0 16px 32px -8px rgba(22,163,74,0.55) !important;
    transform: translateY(-2px);
}
.nexpers-single-product-container button.single_add_to_cart_button:active {
    transform: translateY(0);
}

/* ---- Tabs: pill-style header, cleaner body ---- */
.nexpers-single-product-container .product-tabs-container {
    margin-top: 56px;
    border-top: 1px solid var(--border-light);
    padding-top: 36px;
}
.nexpers-single-product-container .product-tabs-header ul {
    gap: 8px;
    border-bottom: none;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: var(--radius-full);
    width: fit-content;
    max-width: 100%;
}
.nexpers-single-product-container .product-tabs-header ul li { margin-bottom: 0; }
.nexpers-single-product-container .product-tabs-header ul li a {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 14px;
}
.nexpers-single-product-container .product-tabs-header ul li a::after { display: none; }
.nexpers-single-product-container .product-tabs-header ul li.is-active a {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 6px 16px -4px rgba(59,130,246,0.45);
}

/* Reviews empty-state */
.nexpers-single-product-container .woocommerce-noreviews {
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
}

/* ---- Responsive polish ---- */
@media (max-width: 992px) {
    .nexpers-single-product-container .nexpers-product-detail-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .nexpers-single-product-container .nexpers-product-gallery-column { position: static; }
}
@media (max-width: 600px) {
    .nexpers-single-product-container .product-summary-header .product-title { font-size: 23px; }
    .nexpers-single-product-container .woocommerce-variation-add-to-cart { flex-wrap: wrap; }
    .nexpers-single-product-container .woocommerce-cart-form-wrapper .quantity { width: 100%; }
    .nexpers-single-product-container .woocommerce-cart-form-wrapper .quantity input { width: 100%; }
    .nexpers-single-product-container button.single_add_to_cart_button { width: 100%; flex: 1 1 100%; }
    .nexpers-single-product-container .product-tabs-header ul { width: 100%; justify-content: center; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nexpers-single-product-container * { transition: none !important; }
    .nexpers-single-product-container .pf-item:hover,
    .nexpers-single-product-container button.single_add_to_cart_button:hover { transform: none; }
}

/* ---- Review star rating (interactive, gold) ---- */
.nexpers-single-product-container .comment-form-rating {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}
.nexpers-single-product-container .comment-form-rating > label {
    display: block;
    margin-bottom: 6px;
}
.nexpers-single-product-container .comment-form-rating .stars {
    margin: 0;
    line-height: 1;
}
.nexpers-single-product-container .comment-form-rating .stars span[role="group"] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nexpers-single-product-container .comment-form-rating .stars a {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;          /* hide the "۱ از ۵ ستاره" text */
    text-decoration: none !important;
    border-radius: 10px;
    cursor: pointer;
    float: none !important;            /* neutralise WooCommerce default */
}
.nexpers-single-product-container .comment-form-rating .stars a::before {
    content: "\2605" !important;       /* ★ */
    font-family: Arial, "Segoe UI Symbol", sans-serif !important;
    font-size: 32px;
    line-height: 1;
    color: #d6d6e0;
    transition: color .15s ease, transform .15s ease;
}
.nexpers-single-product-container .comment-form-rating .stars a.bt-filled::before {
    color: #f5a623;
    text-shadow: 0 2px 8px rgba(245,166,35,0.40);
}
.nexpers-single-product-container .comment-form-rating .stars a:hover::before {
    transform: scale(1.15);
}
.nexpers-single-product-container .comment-form-rating .stars a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .nexpers-single-product-container .comment-form-rating .stars a:hover::before { transform: none; }
}

/* =====================================================
   Variation selectors — premium stacked fields
   ===================================================== */
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations,
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations tbody,
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations tr,
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations th,
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations {
    margin: 0 0 6px;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations tr {
    margin-bottom: 16px;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations .label {
    margin-bottom: 8px;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations .label label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-secondary);
    margin: 0;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations .label label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.14);
}

/* The select control itself */
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 14px 18px;
    padding-inline-start: 46px; /* room for caret on RTL/LTR start side */
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background-color: #fff;
    background-image:
        linear-gradient(180deg, #ffffff 0%, var(--bg-secondary) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: center, left 16px center;
    background-size: auto, 18px 18px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    line-height: 1.4;
    cursor: pointer;
    box-shadow: 0 2px 6px -2px rgba(15,23,42,0.06);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
html:not([dir="rtl"]) .nexpers-single-product-container .woocommerce-cart-form-wrapper .variations select {
    background-position: center, right 16px center;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations select:hover {
    border-color: var(--primary-light);
    box-shadow: 0 6px 16px -8px rgba(59,130,246,0.4);
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.16);
    outline: none;
}
/* Muted look while the placeholder ("یک گزینه را انتخاب کنید") is selected */
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations select.nexpers-placeholder {
    color: var(--text-muted);
    font-weight: 600;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations select option {
    color: var(--text-primary, #1e293b);
    font-weight: 600;
}
/* Options hidden by the availability filter */
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations select option.nexpers-hidden-option {
    display: none;
}

/* Reset link */
.nexpers-single-product-container .woocommerce-cart-form-wrapper .reset_variations {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 9px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s ease;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .reset_variations::before {
    content: "↺";
    font-size: 14px;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .reset_variations:hover {
    color: var(--primary);
}

@media (max-width: 600px) {
    .nexpers-single-product-container .woocommerce-cart-form-wrapper .variations select {
        padding: 13px 16px;
        padding-inline-start: 42px;
    }
}

/* =========================================
   FIX: Image fills card header completely
   (lazy-load safe — image stays in normal flow,
    square header reserves space so Smush loads it)
   ========================================= */
.woocommerce ul.products li.product.premium-product-card-wrap .ppc-header,
.premium-product-card .ppc-header {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    border-radius: 24px 24px 0 0 !important;
}

.woocommerce ul.products li.product.premium-product-card-wrap .ppc-product-img,
.premium-product-card .ppc-product-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 8px !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.woocommerce ul.products li.product.premium-product-card-wrap:hover .ppc-product-img,
.premium-product-card:hover .ppc-product-img {
    transform: scale(1.05);
}

/* Second image (gallery) crossfades in on hover — like license-market */
.woocommerce ul.products li.product.premium-product-card-wrap .ppc-product-img-hover,
.premium-product-card .ppc-product-img-hover {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.woocommerce ul.products li.product.premium-product-card-wrap:hover .ppc-product-img-hover,
.premium-product-card:hover .ppc-product-img-hover {
    opacity: 1;
}

/* keep the shine sweep above the image */
.premium-product-card .ppc-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

/* =========================================================
   SINGLE PRODUCT BUY-BOX — compact, clean (reliable layer)
   ========================================================= */
.nexpers-single-product-container .product-cart-form-container {
    background: #fff !important;
    border: 1px solid #eef2f7 !important;
    border-radius: 18px !important;
    padding: 20px !important;
    box-shadow: 0 10px 30px -18px rgba(59,130,246,.35) !important;
    gap: 0 !important;
}
.nexpers-single-product-container .product-price-display {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 0 0 14px !important;
    margin: 0 0 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.nexpers-single-product-container .product-price-display .price-label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
}
.nexpers-single-product-container .product-price-display .price-value {
    font-size: 26px !important;
    font-weight: 900 !important;
    direction: ltr !important;
    background: linear-gradient(135deg,#3b82f6,#3b82f6) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
/* kill leftover pink dashed debug boxes */
.nexpers-single-product-container .woocommerce-cart-form-wrapper {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}
.nexpers-single-product-container .product-short-description > div > div:last-child {
    border: none !important;
}
/* variations: compact, no dead vertical space */
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations {
    display: block !important;
    margin: 0 0 14px !important;
    border: none !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations tbody,
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations tr {
    display: block !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations .label {
    display: block !important;
    width: auto !important;
    padding: 0 0 8px !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations .label label {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations .value {
    display: block !important;
    padding: 0 !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations select {
    width: 100% !important;
    height: 50px !important;
    margin: 0 !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    background: #fff !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .reset_variations {
    margin-top: 8px !important;
}
.nexpers-single-product-container .single_variation_wrap {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 14px !important;
}
.nexpers-single-product-container .woocommerce-variation { margin: 0 !important; }
.nexpers-single-product-container .woocommerce-variation-description {
    background: #f8fafc !important;
    border: 1px solid #eef2f7 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 13.5px !important;
    color: #475569 !important;
    line-height: 1.7 !important;
    margin-bottom: 14px !important;
}
.nexpers-single-product-container .woocommerce-variation-price { margin-bottom: 14px !important; }
.nexpers-single-product-container .woocommerce-variation-price .price {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #3b82f6 !important;
    direction: ltr !important;
}
.nexpers-single-product-container .woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin: 0 !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .quantity input {
    height: 52px !important;
    width: 64px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
}
.nexpers-single-product-container button.single_add_to_cart_button {
    flex: 1 !important;
    background: linear-gradient(135deg,#22c55e,#16a34a) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 24px !important;
    height: 52px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 22px -8px rgba(22,163,74,.5) !important;
}

/* Trust stack under the gallery image (fills empty space) */
.nexpers-single-product-container .product-trust-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 16px !important;
}
.nexpers-single-product-container .trust-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    background: #fff !important;
    border: 1px solid #eef2f7 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    box-shadow: 0 6px 18px -12px rgba(15,23,42,.25) !important;
}
.nexpers-single-product-container .trust-card .trust-icon {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--c1,#3b82f6), var(--c2,#3b82f6)) !important;
}
.nexpers-single-product-container .trust-card .trust-text { display: flex !important; flex-direction: column !important; gap: 2px !important; min-width: 0 !important; }
.nexpers-single-product-container .trust-card .trust-text strong { font-size: 14px !important; font-weight: 800 !important; color: #0f172a !important; }
.nexpers-single-product-container .trust-card .trust-text span { font-size: 12px !important; color: #94a3b8 !important; }

@media (max-width: 600px) {
    .nexpers-single-product-container .woocommerce-variation-add-to-cart { flex-wrap: wrap !important; }
    .nexpers-single-product-container .woocommerce-cart-form-wrapper .quantity input { width: 100% !important; }
    .nexpers-single-product-container button.single_add_to_cart_button { flex: 1 1 100% !important; }
}

/* =========================================================
   BUY-BOX — minimal, clean, modern refresh (final layer)
   Neutralises the noisy earlier layers into one calm card.
   ========================================================= */

/* ---- Card shell ---- */
.nexpers-single-product-container .product-cart-form-container {
    background: #fff !important;
    border: 1px solid #eceef3 !important;
    border-radius: 18px !important;
    padding: 22px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -22px rgba(15, 23, 42, .25) !important;
    gap: 0 !important;
}

/* ---- Price row ---- */
.nexpers-single-product-container .product-price-display {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 0 0 16px !important;
    margin: 0 0 18px !important;
    border-bottom: 1px solid #f1f2f6 !important;
}
.nexpers-single-product-container .product-price-display .price-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .2px;
    color: #94a3b8 !important;
}
.nexpers-single-product-container .product-price-display .price-value {
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1;
    direction: ltr !important;
    color: #0f172a !important;
    background: none !important;
    -webkit-text-fill-color: #0f172a !important;
}
/* strike-through (regular) price inside the value */
.nexpers-single-product-container .product-price-display .price-value del {
    display: inline-block;
    margin-inline-end: 8px;
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration-color: #cbd5e1;
}
.nexpers-single-product-container .product-price-display .price-value ins {
    text-decoration: none !important;
}

/* ---- Wrapper cleanup ---- */
.nexpers-single-product-container .woocommerce-cart-form-wrapper {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper form.cart {
    margin: 0 !important;
    padding: 0 !important;
}

/* ---- Variations: minimal stacked field ---- */
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations {
    display: block !important;
    margin: 0 0 16px !important;
    border: none !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations tbody,
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations tr {
    display: block !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations .label {
    display: block !important;
    width: auto !important;
    padding: 0 0 8px !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations .label label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin: 0 !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations .label label::before {
    display: none !important; /* drop the dotted dot */
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations .value {
    display: block !important;
    padding: 0 !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations select {
    width: 100% !important;
    height: 48px !important;
    margin: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
    padding-inline-start: 44px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background-color: #fff !important;
    background-image:
        linear-gradient(180deg, #ffffff 0%, #fafbfc 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: center, left 16px center;
    background-size: auto, 16px 16px;
    box-shadow: none !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
}
html:not([dir="rtl"]) .nexpers-single-product-container .woocommerce-cart-form-wrapper .variations select {
    background-position: center, right 16px center;
    padding-inline-start: 16px !important;
    padding-inline-end: 44px;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations select:hover {
    border-color: #c7cbd4 !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .variations select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246, .14) !important;
    outline: none !important;
}

/* Reset link */
.nexpers-single-product-container .woocommerce-cart-form-wrapper .reset_variations {
    margin-top: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .reset_variations:hover {
    color: #3b82f6 !important;
}

/* ---- Single variation block ---- */
.nexpers-single-product-container .single_variation_wrap {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
}
.nexpers-single-product-container .woocommerce-variation { margin: 0 !important; }

.nexpers-single-product-container .woocommerce-variation-description {
    background: #f8fafc !important;
    border: 1px solid #eef0f4 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.7 !important;
    margin: 0 0 16px !important;
}
.nexpers-single-product-container .woocommerce-variation-description p { margin: 0 !important; }

.nexpers-single-product-container .woocommerce-variation-price { margin-bottom: 16px !important; }
.nexpers-single-product-container .woocommerce-variation-price .price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    direction: ltr !important;
}
.nexpers-single-product-container .woocommerce-variation-price .price del {
    color: #cbd5e1 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
.nexpers-single-product-container .woocommerce-variation-price .price ins {
    text-decoration: none !important;
}

/* ---- Quantity + Add-to-cart row ---- */
.nexpers-single-product-container .woocommerce-variation-add-to-cart,
.nexpers-single-product-container .woocommerce-cart-form-wrapper .cart:not(:has(.variations)) > .button {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin: 0 !important;
}
/* quantity stepper */
.nexpers-single-product-container .woocommerce-cart-form-wrapper .quantity {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .quantity input {
    height: 48px !important;
    width: 56px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-align: center !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
}
.nexpers-single-product-container .woocommerce-cart-form-wrapper .quantity input::-webkit-outer-spin-button,
.nexpers-single-product-container .woocommerce-cart-form-wrapper .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add-to-cart CTA — calm green, minimal */
.nexpers-single-product-container button.single_add_to_cart_button {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background: #16a34a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 24px !important;
    height: 48px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    letter-spacing: .2px;
    box-shadow: 0 1px 2px rgba(22, 163, 74, .25) !important;
    transition: background-color .18s ease, transform .12s ease, box-shadow .18s ease !important;
}
.nexpers-single-product-container button.single_add_to_cart_button::before {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.nexpers-single-product-container button.single_add_to_cart_button:hover {
    background: #15803d !important;
    box-shadow: 0 8px 20px -8px rgba(22, 163, 74, .45) !important;
    transform: translateY(-1px);
}
.nexpers-single-product-container button.single_add_to_cart_button:active {
    transform: translateY(0);
}
/* loading spinner kept by WC inside the button */
.nexpers-single-product-container button.single_add_to_cart_button.loading::after {
    margin-inline-start: 6px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .nexpers-single-product-container .product-cart-form-container { padding: 18px !important; }
    .nexpers-single-product-container .product-price-display .price-value { font-size: 23px !important; }
    .nexpers-single-product-container .woocommerce-variation-add-to-cart { flex-wrap: wrap !important; }
    .nexpers-single-product-container .woocommerce-cart-form-wrapper .quantity { width: 100% !important; justify-content: center; }
    .nexpers-single-product-container .woocommerce-cart-form-wrapper .quantity input { width: 100% !important; }
    .nexpers-single-product-container button.single_add_to_cart_button {
        flex: 1 1 100% !important;
        width: 100% !important;
        height: 50px !important;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nexpers-single-product-container button.single_add_to_cart_button { transition: none !important; transform: none !important; }
    .nexpers-single-product-container button.single_add_to_cart_button:hover { transform: none !important; }
}

/* =========================================================
   Block Checkout — relabel the "Shipping address" step to
   "اطلاعات صورت‌حساب" (digital store has no real shipping).
   Block checkout strings are translated in JS, so a PHP
   gettext filter won't work — we override the visible title
   via CSS, scoped to the shipping step only.
   ========================================================= */
#shipping-fields .wc-block-components-checkout-step__heading .wc-block-components-checkout-step__title {
    font-size: 0 !important;
    line-height: 0 !important;
}
#shipping-fields .wc-block-components-checkout-step__heading .wc-block-components-checkout-step__title::after {
    content: "اطلاعات صورت‌حساب";
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
}
html[lang^="en"] #shipping-fields .wc-block-components-checkout-step__heading .wc-block-components-checkout-step__title::after {
    content: "Billing information";
}

/* =========================================================
   Mobile responsiveness for order pages (order-received,
   My Account order details, and block checkout) — keeps
   tables and address blocks readable on small screens.
   ========================================================= */
@media (max-width: 768px) {
    /* Order detail tables: let wide tables scroll instead of overflowing */
    .woocommerce-order-details,
    .woocommerce-MyAccount-content {
        overflow-x: auto;
    }
    .woocommerce-table--order-details,
    .woocommerce-orders-table,
    .ty-table {
        font-size: 13px;
        width: 100% !important;
    }
    .woocommerce-table--order-details th,
    .woocommerce-table--order-details td,
    .woocommerce-orders-table th,
    .woocommerce-orders-table td {
        padding: 10px 8px !important;
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
    }

    /* Customer + billing address columns stack vertically */
    .woocommerce-customer-details .woocommerce-columns--addresses,
    .woocommerce-columns--2,
    .col2-set {
        display: block !important;
    }
    .woocommerce-columns--addresses .col-1,
    .woocommerce-columns--addresses .col-2,
    .col2-set .col-1,
    .col2-set .col-2 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 18px;
    }

    /* Block checkout: stack the form and order summary, single-column fields */
    .wc-block-checkout .wc-block-components-sidebar-layout,
    .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout {
        display: block !important;
    }
    .wc-block-checkout__main,
    .wc-block-checkout__sidebar {
        width: 100% !important;
        max-width: 100% !important;
        padding-inline: 0 !important;
    }
    .wc-block-components-address-form {
        grid-template-columns: 1fr !important;
    }
    .wc-block-components-address-form > * {
        grid-column: 1 / -1 !important;
    }

    /* Block order confirmation: stack summary/details */
    .wc-block-order-confirmation-summary,
    .wp-block-woocommerce-order-confirmation-totals-wrapper,
    .wc-block-order-confirmation-status {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .ty-table thead { display: none; }
    .ty-table tbody td { font-size: 13px; }
}

/* ==========================================================================
   PREMIUM REDESIGN — Variation Cards, Price, Checkout (oomoo + telegrampreemium)
   ========================================================================== */

/* ---- 1. Variation Cards (replaces select dropdown) ---- */
.nexpers-variation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.nexpers-variation-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    min-height: 72px;
}
.nexpers-variation-card:hover {
    border-color: rgba(59,130,246,0.35);
    background: rgba(59,130,246,0.04);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.12);
}
.nexpers-variation-card.active {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(37,99,235,0.06) 100%);
    box-shadow: 0 0 0 2px #3b82f6, 0 8px 28px rgba(59,130,246,0.18);
}
.nexpers-variation-card.active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 15px;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0.15;
}
.nexpers-variation-card__name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}
.nexpers-variation-card__price {
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    direction: ltr;
}
.nexpers-variation-card.active .nexpers-variation-card__name { color: #1d4ed8; }
.nexpers-variation-card.active .nexpers-variation-card__price { color: #2563eb; font-weight: 800; }

/* Checkmark on active card */
.nexpers-variation-card.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
[dir="rtl"] .nexpers-variation-card.active::after {
    right: auto;
    left: 10px;
}

/* Hide native select when cards are active */
.nexpers-variation-cards-active .variations {
    /* Keep functionally but visually hidden so WC JS still works */
}
.nexpers-variation-cards-active .variations tr {
    display: block;
    margin-bottom: 8px;
}
.nexpers-variation-cards-active .variations .label {
    display: block !important;
    padding-bottom: 10px !important;
}
.nexpers-variation-cards-active .variations .label label {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}
.nexpers-variation-cards-active .variations .value select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.nexpers-variation-cards-active .variations .value .reset_variations {
    display: none !important;
}

/* ---- 2. Improved Variation Price Display ---- */
.nexpers-single-product-container .woocommerce-variation-price {
    margin-bottom: 18px !important;
    padding: 16px 18px !important;
    background: linear-gradient(135deg, rgba(59,130,246,0.04) 0%, rgba(37,99,235,0.03) 100%) !important;
    border: 1px solid rgba(59,130,246,0.1) !important;
    border-radius: 14px !important;
}
.nexpers-single-product-container .woocommerce-variation-price .price {
    display: flex !important;
    align-items: baseline !important;
    gap: 10px !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    direction: ltr !important;
    flex-wrap: wrap;
}
.nexpers-single-product-container .woocommerce-variation-price .price .woocommerce-Price-currencySymbol {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #3b82f6 !important;
    margin-right: 2px;
}
.nexpers-single-product-container .woocommerce-variation-price .price del {
    color: #cbd5e1 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: line-through !important;
}
.nexpers-single-product-container .woocommerce-variation-price .price del .woocommerce-Price-amount {
    color: #cbd5e1 !important;
}
.nexpers-single-product-container .woocommerce-variation-price .price ins {
    text-decoration: none !important;
    color: #16a34a !important;
    font-weight: 900 !important;
}
/* RTL adjustments for price */
[dir="rtl"] .nexpers-single-product-container .woocommerce-variation-price .price {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* ---- 3. Product Cart Form — Glass Checkout (telegrampreemium inspired) ---- */
.nexpers-single-product-container .product-cart-form-container {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(59,130,246,0.1) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 12px 40px rgba(59,130,246,0.08), inset 0 1px 0 rgba(255,255,255,0.8) !important;
    transition: box-shadow 0.3s ease !important;
}
.nexpers-single-product-container .product-cart-form-container:hover {
    box-shadow: 0 16px 50px rgba(59,130,246,0.12), inset 0 1px 0 rgba(255,255,255,0.8) !important;
}

/* Price display header — enhanced */
.nexpers-single-product-container .product-price-display {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    margin-bottom: 20px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f0eeff 100%) !important;
    border: 1px solid rgba(59,130,246,0.08) !important;
    border-radius: 14px !important;
}
.nexpers-single-product-container .product-price-display .price-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #64748b !important;
}
.nexpers-single-product-container .product-price-display .price-value {
    font-size: 22px !important;
    font-weight: 900 !important;
}
.nexpers-single-product-container .product-price-display .price-value .woocommerce-Price-amount {
    color: #0f172a !important;
    font-weight: 900 !important;
}
.nexpers-single-product-container .product-price-display .price-value del .woocommerce-Price-amount {
    color: #cbd5e1 !important;
    font-size: 14px !important;
}
.nexpers-single-product-container .product-price-display .price-value ins {
    text-decoration: none !important;
}

/* ---- 4. Instant-delivery label ---- */
.nexpers-instant-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(22,163,74,0.1);
    color: #16a34a;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 8px;
}
.nexpers-instant-label::before {
    content: '';
    width: 6px; height: 6px;
    background: #16a34a;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ---- 5. Live Status Indicator ---- */
.nexpers-live-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(22,163,74,0.08);
    border: 1px solid rgba(22,163,74,0.15);
    border-radius: var(--radius-full);
    color: #16a34a;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}
.nexpers-live-dot {
    width: 8px; height: 8px;
    background: #16a34a;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ---- 6. Responsive for new elements ---- */
@media (max-width: 768px) {
    .nexpers-variation-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .nexpers-variation-card {
        padding: 12px 10px;
        min-height: 64px;
    }
    .nexpers-variation-card__name { font-size: 13px; }
    .nexpers-variation-card__price { font-size: 12px; }

    .nexpers-single-product-container .product-cart-form-container {
        padding: 18px !important;
        border-radius: 16px !important;
    }
    .nexpers-single-product-container .product-price-display {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 6px;
        padding: 12px 14px !important;
    }
}
@media (max-width: 480px) {
    .nexpers-variation-cards {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .nexpers-variation-card {
        padding: 10px 8px;
        min-height: 58px;
    }
    .nexpers-variation-card__name { font-size: 12px; }
    .nexpers-variation-card__price { font-size: 11px; }
}

/* =========================================================
   FIX: order-received / view-order details table clipping.
   The site's custom CSS (wp-custom-css) forces, with !important:
     • .woocommerce-table--order-details { overflow:hidden }
     • .woocommerce-Price-amount.amount  { font-size:32px }
   The 32px price overflowed the narrow total column and was then
   clipped by overflow:hidden. These overrides use higher
   specificity (section + table + classes) so they win over the
   custom CSS regardless of source order, without changing the
   look elsewhere (product pages keep their big green price).
   ========================================================= */

/* Never clip the price out of the order/customer cards. */
section.woocommerce-order-details,
div.woocommerce-customer-details,
section.woocommerce-order-details table.woocommerce-table--order-details {
    overflow: visible !important;
}

/* Fixed 2-column layout so the table can never overflow the container and
   the product-name column always keeps a usable width. `auto` let the name
   column collapse to ~1 word per line on narrow (≤360px) screens. */
section.woocommerce-order-details table.woocommerce-table--order-details {
    table-layout: fixed !important;
    width: 100% !important;
}
section.woocommerce-order-details table.woocommerce-table--order-details td.product-name,
section.woocommerce-order-details table.woocommerce-table--order-details th.product-name {
    width: 68% !important;
}
section.woocommerce-order-details table.woocommerce-table--order-details td.product-total,
section.woocommerce-order-details table.woocommerce-table--order-details th.product-total,
section.woocommerce-order-details table.woocommerce-table--order-details tfoot th,
section.woocommerce-order-details table.woocommerce-table--order-details tfoot td {
    width: 32% !important;
}

section.woocommerce-order-details table.woocommerce-table--order-details td.product-name,
section.woocommerce-order-details table.woocommerce-table--order-details th[scope="row"] {
    text-align: right !important;
    white-space: normal !important;   /* custom CSS forced nowrap → name column ate all the width */
    overflow-wrap: break-word;
    word-break: normal;
    vertical-align: top;
}

/* The product link itself was nowrap too — let it wrap so the name
   column shrinks and the price column fits inside the table. */
section.woocommerce-order-details table.woocommerce-table--order-details td.product-name a {
    white-space: normal !important;
    display: inline !important;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Total column: hugs the content on the start (left in RTL) side,
   single line, can't be clipped. */
section.woocommerce-order-details table.woocommerce-table--order-details td.product-total,
section.woocommerce-order-details table.woocommerce-table--order-details tfoot td {
    text-align: left !important;
    white-space: nowrap !important;
    width: 1% !important;          /* shrink-to-fit */
    word-break: normal;
    overflow-wrap: normal;
}

/* Shrink the oversized 32px price down to a table-appropriate size
   ONLY inside the order tables (product pages are untouched). */
section.woocommerce-order-details table.woocommerce-table--order-details .woocommerce-Price-amount.amount,
ul.woocommerce-order-overview li .woocommerce-Price-amount.amount {
    font-size: 16px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    direction: ltr !important;
    white-space: nowrap !important;
    align-items: initial !important;
    vertical-align: middle;
}

/* Order-overview cards: keep the total value inside its card. */
ul.woocommerce-order-overview li strong {
    overflow-wrap: break-word;
    word-break: normal;
}
ul.woocommerce-order-overview li .woocommerce-Price-amount.amount {
    font-size: 18px !important;
}

/* Custom ty-table fallback (if that thankyou template is ever active). */
table.ty-table { table-layout: auto; width: 100%; }
table.ty-table td.ty-product-name,
table.ty-table tfoot th {
    overflow-wrap: break-word;
    word-break: normal;
    text-align: right;
}
table.ty-table td.ty-product-total,
table.ty-table tfoot td {
    text-align: left;
    white-space: nowrap;
    width: 1%;
}

/* =======================================================================
   Order-received "جزییات سفارش" — clean card restyle (NexPers)
   Rows are laid out with flexbox instead of native table cells so the
   product-name column always has room (no more one-word-per-line), and the
   totals / payment / actions read as a tidy list. Scoped to the order
   details section only.
   ======================================================================= */
section.woocommerce-order-details {
    background: #fff !important;
    border: 1px solid #e9eef5 !important;
    border-radius: 18px !important;
    padding: 20px !important;
    box-shadow: 0 10px 34px rgba(30,58,138, .08) !important;
    max-width: 640px;
    margin: 20px auto !important;
    direction: rtl;
}

section.woocommerce-order-details .woocommerce-order-details__title,
section.woocommerce-order-details h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1e40af !important;
    margin: 0 0 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #eef2f7 !important;
    text-align: right !important;
}

/* Turn the table into stacked flex rows */
section.woocommerce-order-details table.woocommerce-table--order-details,
section.woocommerce-order-details table.woocommerce-table--order-details tbody,
section.woocommerce-order-details table.woocommerce-table--order-details tfoot,
section.woocommerce-order-details table.woocommerce-table--order-details tr {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
}
section.woocommerce-order-details table.woocommerce-table--order-details thead {
    display: none !important;   /* the "محصول / مجموع" header row */
}

section.woocommerce-order-details table.woocommerce-table--order-details tr {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
}
section.woocommerce-order-details table.woocommerce-table--order-details tfoot tr:last-child {
    border-bottom: 0 !important;
}
section.woocommerce-order-details table.woocommerce-table--order-details td,
section.woocommerce-order-details table.woocommerce-table--order-details th {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    vertical-align: top;
}

/* Product row */
section.woocommerce-order-details td.product-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: right !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.85 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}
section.woocommerce-order-details td.product-name a {
    color: #1e293b !important;
    text-decoration: none !important;
    display: inline !important;
}
section.woocommerce-order-details td.product-name .product-quantity {
    color: #2563eb !important;
    font-weight: 800 !important;
    white-space: nowrap;
}
section.woocommerce-order-details .wc-item-meta {
    margin: 6px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
section.woocommerce-order-details .wc-item-meta li {
    margin: 0 !important;
    font-size: 12.5px !important;
    color: #64748b !important;
    font-weight: 400 !important;
}
section.woocommerce-order-details .wc-item-meta li p,
section.woocommerce-order-details .wc-item-meta strong.wc-item-meta-label {
    display: inline !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* Price / totals values (kept LTR, on the start/left side) */
section.woocommerce-order-details td.product-total,
section.woocommerce-order-details tfoot td {
    flex: 0 0 auto !important;
    text-align: left !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    font-weight: 800 !important;
    color: #1e40af !important;
}
section.woocommerce-order-details .woocommerce-Price-amount,
section.woocommerce-order-details .woocommerce-Price-amount bdi {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block !important;
    font-weight: 800 !important;
    color: #1e40af !important;
    white-space: nowrap !important;
    letter-spacing: normal !important;
    font-family: 'Space Grotesk', Vazirmatn, Tahoma, sans-serif;
}
section.woocommerce-order-details .woocommerce-Price-currencySymbol {
    margin-inline-end: 2px;
    font-weight: 700 !important;
}
/* Give every amount cell the same width so the numbers line up in a column */
section.woocommerce-order-details td.product-total,
section.woocommerce-order-details tfoot td:has(.woocommerce-Price-amount) {
    min-width: 74px !important;
    text-align: left !important;
}

/* Totals labels (مجموع / قیمت نهایی / روش پرداخت …) */
section.woocommerce-order-details tfoot th {
    flex: 1 1 auto !important;
    text-align: right !important;
    color: #6b6484 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}
/* Emphasise the grand total (قیمت نهایی) row with a soft band */
section.woocommerce-order-details tfoot tr:nth-last-child(2) {
    background: #f8fafc !important;
    border: 1px solid #ece4fb !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    margin: 6px 0 !important;
}
section.woocommerce-order-details tfoot tr:nth-last-child(2) th {
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 15px !important;
}
section.woocommerce-order-details tfoot tr:nth-last-child(2) td { font-size: 18px !important; }

/* Payment-method row → stack the label above the pill so the pill is never
   squeezed thin (which forced it to break one letter per line). */
section.woocommerce-order-details table.woocommerce-table--order-details tfoot tr:last-child {
    flex-direction: column !important;
    align-items: flex-start !important;   /* cross-start = RIGHT in RTL */
    gap: 8px !important;
}
section.woocommerce-order-details tfoot tr:last-child th {
    flex: 0 0 auto !important;
    width: 100% !important;
    text-align: right !important;
}
section.woocommerce-order-details tfoot tr:last-child td {
    color: #1d4ed8 !important;
    background: #f3ecff !important;
    padding: 7px 16px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-align: center !important;
    flex: 0 0 auto !important;
    max-width: 100% !important;
    align-self: flex-start !important;   /* cross-start = RIGHT in RTL */
    line-height: 1.7 !important;
}
/* Let the payment / actions rows wrap the pill to a new line if space is
   tight, instead of squeezing it. */
section.woocommerce-order-details table.woocommerce-table--order-details tfoot tr {
    flex-wrap: wrap !important;
    align-items: center !important;
    row-gap: 6px;
}

/* Order-actions row (عملیات ها: پرداخت / لغو) */
section.woocommerce-order-details th.order-actions--heading {
    flex: 0 0 auto !important;
    align-self: center !important;
}
section.woocommerce-order-details tfoot td:has(.order-actions-button) {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    background: transparent !important;   /* not a pill — it holds buttons */
    padding: 0 !important;
    border-radius: 0 !important;
}
section.woocommerce-order-details a.order-actions-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 11px 22px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    transition: all .18s ease;
}
section.woocommerce-order-details a.order-actions-button.pay {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(29,78,216, .32);
}
section.woocommerce-order-details a.order-actions-button.pay:hover {
    transform: translateY(-2px);
}
section.woocommerce-order-details a.order-actions-button.cancel {
    background: #fff !important;
    color: #b42318 !important;
    border: 1.5px solid #f3c9c4 !important;
}
section.woocommerce-order-details a.order-actions-button.cancel:hover {
    background: #fff5f5 !important;
}

/* Telegram line under the table */
section.woocommerce-order-details > p {
    margin: 14px 0 0 !important;
    padding-top: 14px !important;
    border-top: 1px solid #eef2f7 !important;
    font-size: 14px !important;
    color: #1e293b !important;
    text-align: right !important;
}
section.woocommerce-order-details > p strong { color: #1e40af !important; }


/* =======================================================================
   Order-received "آدرس صورتحساب / توضیحات تکمیلی" — matching card (NexPers)
   Styled to mirror the جزییات سفارش card above it.
   ======================================================================= */
section.woocommerce-customer-details {
    background: #fff !important;
    border: 1px solid #e9eef5 !important;
    border-radius: 18px !important;
    padding: 20px !important;
    box-shadow: 0 10px 34px rgba(30,58,138, .08) !important;
    max-width: 640px;
    margin: 20px auto !important;
    direction: rtl;
}

section.woocommerce-customer-details > h2,
section.woocommerce-customer-details .woocommerce-column__title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1e40af !important;
    margin: 0 0 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #eef2f7 !important;
    text-align: right !important;
}

section.woocommerce-customer-details address {
    font-style: normal !important;
    color: #3f3557 !important;
    line-height: 2 !important;
    background: #f8fafc !important;
    border: 1px dashed #d6c8f5 !important;
    border-radius: 14px !important;
    padding: 16px 18px !important;
    margin: 0 !important;
    text-align: right !important;
    font-weight: 600;
}

section.woocommerce-customer-details .woocommerce-customer-details--email {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0 !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
    direction: ltr;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

/* Extra fields (توضیحات تکمیلی → آیدی تلگرام) */
section.woocommerce-customer-details .wc-block-order-confirmation-additional-fields-wrapper {
    margin-top: 18px !important;
    padding-top: 16px !important;
    border-top: 1px solid #eef2f7 !important;
}
section.woocommerce-customer-details .wc-block-order-confirmation-additional-fields-wrapper h2 {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: right !important;
}
section.woocommerce-customer-details .wc-block-components-additional-fields-list {
    display: grid !important;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin: 0 !important;
}
section.woocommerce-customer-details .wc-block-components-additional-fields-list dt {
    margin: 0 !important;
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    align-self: center;
}
section.woocommerce-customer-details .wc-block-components-additional-fields-list dd {
    margin: 0 !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-align: left;
    direction: ltr;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}
