/* ====== WooCommerce Overrides ====== */

/* ====== Modern Cart — Premium Interactive Design ====== */

/* ── Page Header ── */
.cart-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 30px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04) 0%, rgba(var(--primary-rgb), 0.01) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    border-radius: 20px;
    margin-bottom: 35px;
}
.cart-page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}
.cart-page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}
.cart-page-subtitle strong {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    padding: 2px 8px;
    border-radius: 12px;
}

/* ── Empty State ── */
.cart-empty-wrap {
    padding: 100px 30px;
    background: rgba(var(--primary-rgb), 0.02);
    border: 1px dashed rgba(var(--primary-rgb), 0.15);
    border-radius: 24px;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}
.cart-empty-icon-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}
.cart-empty-icon-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 2px solid rgba(var(--primary-rgb), 0.12);
    font-size: 56px;
    color: var(--primary);
    box-shadow: var(--shadow);
    animation: floatEmpty 4s ease-in-out infinite;
}
@keyframes floatEmpty {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-12px) rotate(3deg); }
}
.cart-empty-dots {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.2;
    animation: pulseEmpty 2s ease-in-out infinite;
}
@keyframes pulseEmpty {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.2); opacity: 0.4; }
}
.cart-empty-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.cart-empty-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 440px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* ── Cart Items List ── */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Cart Item Card ── */
.cart-item {
    display: flex;
    gap: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    transition: var(--transition-smooth);
    animation: cartItemIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
[data-theme="dark"] .cart-item {
    background: rgba(14, 20, 40, 0.65);
    border-color: rgba(255, 255, 255, 0.06);
}
.cart-item:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.08);
    transform: translateY(-3px);
}
.cart-item.cart-item-removing {
    opacity: 0;
    transform: scale(0.9) translateX(50px);
    transition: all 0.4s ease;
}
@keyframes cartItemIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cart-item:nth-child(1) { animation-delay: 0.05s; }
.cart-item:nth-child(2) { animation-delay: 0.1s; }
.cart-item:nth-child(3) { animation-delay: 0.15s; }
.cart-item:nth-child(4) { animation-delay: 0.2s; }
.cart-item:nth-child(5) { animation-delay: 0.25s; }

/* Remove Button */
.cart-item-remove {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--text-muted) !important;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    z-index: 2;
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}
.cart-item:hover .cart-item-remove {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent) !important;
    border-color: rgba(var(--accent-rgb), 0.2);
}
.cart-item-remove:hover {
    background: var(--accent) !important;
    color: #fff !important;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.2);
}

/* Image / Media */
.cart-item-media {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-section);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    align-self: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-item:hover .cart-item-media img {
    transform: scale(1.1);
}
.cart-item-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(var(--accent-rgb), 0.3);
}

/* Body */
.cart-item-body {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    align-items: center;
    gap: 20px;
    min-width: 0;
}
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .cart-item-media {
        width: 100px;
        height: 100px;
        flex: 0 0 100px;
    }
    .cart-item-body {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 15px;
    }
}

/* Info */
.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cart-item-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}
.cart-item-title a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}
.cart-item-title a:hover {
    color: var(--primary);
}
.cart-item-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}
.cart-item-cat {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    padding: 4px 12px;
    border-radius: 50px;
    width: fit-content;
}

/* Pricing */
.cart-item-pricing {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-left: 1px solid rgba(var(--primary-rgb), 0.08);
    border-right: 1px solid rgba(var(--primary-rgb), 0.08);
    padding: 0 20px;
}
@media (max-width: 768px) {
    .cart-item-pricing {
        border: none;
        padding: 0;
        justify-content: flex-start;
        gap: 30px;
    }
}
.cart-item-unit-price,
.cart-item-total-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cart-item-unit-price .price-label,
.cart-item-total-price .price-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cart-item-unit-price .price-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
}
.cart-item-total-price .price-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

/* Quantity Stepper */
.cart-item-qty {
    display: flex;
    justify-content: flex-end;
}
@media (max-width: 768px) {
    .cart-item-qty {
        justify-content: flex-start;
    }
}
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 2px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 50px;
    overflow: hidden;
    background: var(--card-bg);
    transition: var(--transition);
}
.qty-stepper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}
.qty-stepper .qty-step {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
}
.qty-stepper .qty-step:hover {
    background: rgba(var(--primary-rgb), 0.06);
    color: var(--primary);
}
.qty-stepper .qty-step:active {
    transform: scale(0.9);
}
.qty-stepper input.qty {
    width: 40px;
    height: 36px;
    border: none;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    background: transparent;
    color: var(--text);
    -moz-appearance: textfield;
}

/* ── Cart Actions Toolbar ── */
.cart-actions-toolbar {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    border-radius: 20px;
    padding: 20px 24px;
    margin-top: 12px;
}
[data-theme="dark"] .cart-actions-toolbar {
    background: rgba(14, 20, 40, 0.4);
    border-color: rgba(255, 255, 255, 0.04);
}
.coupon-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}
.coupon-wrap input {
    width: 220px;
    border-radius: 50px !important;
    padding: 10px 20px;
    font-size: 14px;
    height: 42px;
    border: 2px solid rgba(var(--primary-rgb), 0.12) !important;
    background: var(--card-bg);
    color: var(--text);
    transition: var(--transition);
}
.coupon-wrap input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08) !important;
}
.coupon-wrap .btn-apply-coupon {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff !important;
    border: none;
    font-size: 14px;
    transition: var(--transition);
}
.coupon-wrap .btn-apply-coupon:hover {
    background: var(--primary-dark);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

/* ── Cart Totals (Invoice Style) ── */
.woocommerce-cart .cart-collaterals .cart_totals {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 30px 24px;
}
[data-theme="dark"] .woocommerce-cart .cart-collaterals .cart_totals {
    background: rgba(14, 20, 40, 0.65);
    border-color: rgba(255, 255, 255, 0.06);
}
.woocommerce-cart .cart-collaterals .cart_totals::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
}
.woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 20px 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}
.woocommerce-cart .cart-collaterals .cart_totals .shop_table {
    padding: 0;
}
.woocommerce-cart .cart-collaterals .cart_totals th,
.woocommerce-cart .cart-collaterals .cart_totals td {
    padding: 16px 0;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
    font-size: 14px;
}
.woocommerce-cart .cart-collaterals .cart_totals th {
    font-weight: 700;
    color: var(--text-light);
}
.woocommerce-cart .cart-collaterals .cart_totals td {
    color: var(--text);
    font-weight: 700;
}
.woocommerce-cart .cart-collaterals .cart_totals .order-total th,
.woocommerce-cart .cart-collaterals .cart_totals .order-total td {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    padding-top: 24px;
    border-bottom: none;
    border-top: 2px dashed rgba(var(--primary-rgb), 0.15);
}
.woocommerce-cart .cart-collaterals .cart_totals .order-total td {
    font-size: 24px;
}

/* Proceed Button */
.woocommerce-cart .wc-proceed-to-checkout {
    padding: 24px 0 0 0;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 30px;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 800;
    font-size: 16px;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.2);
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.35);
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button i {
    transition: transform 0.3s ease;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover i {
    transform: translateX(-4px);
}

/* Cart Shipping */
.woocommerce-cart .cart-collaterals .shipping-calculator-button {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.woocommerce-cart .cart-collaterals .shipping-calculator-form {
    margin-top: 12px;
}
.woocommerce-cart .cart-collaterals .shipping-calculator-form select,
.woocommerce-cart .cart-collaterals .shipping-calculator-form input {
    border-radius: var(--radius);
    border: 2px solid var(--border);
    padding: 8px 12px;
    font-size: 13px;
}

/* Cross Sells */
.woocommerce-cart .cross-sells {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.woocommerce-cart .cross-sells h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Cross-Sell Items */
.cross-item {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-rgb), 0.08) !important;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: var(--transition-smooth) !important;
    height: 100%;
}
[data-theme="dark"] .cross-item {
    background: rgba(14, 20, 40, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
}
.cross-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3) !important;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.08);
}
.cross-item img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.cross-item:hover img {
    transform: scale(1.08);
}

/* Trust Badges */
.cart-trust {
    animation: cartItemIn 0.5s 0.2s ease both;
}
.cart-trust .text-center {
    transition: transform 0.3s ease;
}
.cart-trust .text-center:hover {
    transform: translateY(-2px);
}

/* Savings Bar */
.cart-savings {
    animation: cartItemIn 0.5s 0.15s ease both;
}

/* ====== Cart Responsive ====== */
@media (max-width: 991px) {
    .cart-item {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    .cart-item-media {
        flex: 0 0 100px;
        width: 100px;
        height: 100px;
        align-self: center;
    }
    .cart-item-body {
        grid-template-columns: 1fr;
        width: 100%;
        text-align: center;
        gap: 15px;
    }
    .cart-item-info {
        align-items: center;
    }
    .cart-item-pricing {
        border: none;
        padding: 0;
        justify-content: center;
        gap: 30px;
    }
    .cart-item-qty {
        justify-content: center;
    }
    .cart-item-remove {
        opacity: 1;
        top: 12px;
        right: 12px;
    }
    .coupon-wrap input {
        width: 160px;
    }
}

@media (max-width: 575px) {
    .cart-page-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .cart-toolbar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .coupon-wrap {
        width: 100%;
    }
    .coupon-wrap input {
        width: 100%;
    }
    .cart-toolbar-left {
        text-align: center;
    }
    .cart-item-pricing {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .woocommerce-cart .cart-collaterals .cart_totals h2 {
        font-size: 18px;
    }
    .woocommerce-cart .wc-proceed-to-checkout .checkout-button {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Checkout Review Order - Card Style */
.checkout-review-order-wrapper {
    padding: 0;
}
.review-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.review-item:last-of-type {
    border-bottom: none;
}
.review-item-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: block;
}
.review-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.review-item-name {
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}
.review-item-info .variation {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}
.review-item-qty {
    font-size: 12px;
    color: var(--text-muted);
}
.review-item-total {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
    white-space: nowrap;
}
.review-totals {
    border-top: 1px solid var(--border);
    padding-top: 0;
    margin-top: 0;
}
.review-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.review-total-row:last-child {
    border-bottom: none;
}
.review-total-row.order-total {
    border-top: 2px solid var(--border);
    margin-top: 4px;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}
.review-total-row.order-total .order-total-amount {
    font-size: 20px;
}
.review-total-row.shipping th,
.review-total-row.shipping td {
    display: block;
    width: 100%;
    padding: 4px 0;
}
.review-total-row .woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}
#payment {
    margin-top: 20px;
    border-radius: var(--radius);
    overflow: hidden;
}
#payment .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}
#payment .payment_methods li {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-section);
}
#payment .payment_methods li:last-child {
    border-bottom: none;
}
#payment .payment_methods label {
    font-weight: 700;
    color: var(--text);
    margin-right: 8px;
    cursor: pointer;
}
#payment .payment_box {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-light);
    border: 1px solid var(--border);
}
#payment .place-order {
    padding: 16px;
}
#place_order {
    width: 100%;
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
#place_order::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.5s ease;
}
#place_order:hover::before {
    transform: translateX(100%) skewX(-15deg);
}
#place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.3);
}

[data-theme="dark"] .review-item-thumb img {
    border-color: var(--border);
}
[data-theme="dark"] #payment .payment_methods li {
    background: var(--bg-dark);
}
[data-theme="dark"] #payment .payment_box {
    background: var(--card-bg);
    border-color: var(--border);
}
    .woocommerce-cart .cart-item-actions-col {
        gap: 12px;
    }
}

.woocommerce-page .page-header h1 {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 800;
    color: var(--page-header-text);
}

.woocommerce-page .page-header p {
    color: var(--page-header-desc);
    font-size: 18px;
}

/* Products Grid */
.woocommerce-page ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (max-width: 991px) {
    .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .woocommerce-page ul.products { grid-template-columns: 1fr; }
}

.woocommerce-page ul.products li.product {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.woocommerce-page ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.woocommerce-page ul.products li.product a {
    text-decoration: none;
    color: inherit;
}

.woocommerce-page ul.products li.product img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.woocommerce-page ul.products li.product:hover img {
    transform: scale(1.06);
}

.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    padding: 16px 20px 8px;
    margin: 0;
}

.woocommerce-page ul.products li.product .price {
    padding: 0 20px 16px;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.woocommerce-page ul.products li.product .price del {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 400;
    margin-left: 8px;
}

.woocommerce-page ul.products li.product .price ins {
    text-decoration: none;
}

.woocommerce-page ul.products li.product .button {
    display: block;
    margin: 0 20px 20px;
    padding: 12px 24px;
    text-align: center;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.woocommerce-page ul.products li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

.woocommerce-page ul.products li.product .added_to_cart {
    display: none;
}

.woocommerce-page ul.products li.product .onsale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.woocommerce-page ul.products li.product .star-rating {
    padding: 0 20px 8px;
    font-size: 13px;
    color: var(--star);
}

/* Single Product */
.single-product .container {
    padding-top: 40px;
    padding-bottom: 60px;
}
.woocommerce-page .product {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
}

.woocommerce-page .product .images {
    flex: 0 0 42%;
    max-width: 42%;
}
.woocommerce-page .product .images .woocommerce-product-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-section);
}
.woocommerce-page .product .images .woocommerce-product-gallery img {
    width: 100%;
    height: auto;
}
.woocommerce-page .product .images .flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.woocommerce-page .product .images .flex-control-thumbs li {
    flex: 1;
}
.woocommerce-page .product .images .flex-control-thumbs li img {
    border-radius: var(--radius);
    border: 2px solid var(--border);
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}
.woocommerce-page .product .images .flex-control-thumbs li img.flex-active,
.woocommerce-page .product .images .flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: var(--primary);
}

.woocommerce-page .product .summary {
    flex: 1;
    min-width: 300px;
    padding-top: 8px;
}
.woocommerce-page .product .summary .product_title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
}
.woocommerce-page .product .summary .price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.woocommerce-page .product .summary .price del {
    color: var(--text-muted);
    font-size: 20px;
    font-weight: 400;
    order: 2;
}
.woocommerce-page .product .summary .price ins {
    text-decoration: none;
    order: 1;
}
.woocommerce-page .product .summary .description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.woocommerce-page .product .summary .stock {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.woocommerce-page .product .summary .stock.in-stock {
    color: var(--success, #10B981);
}
.woocommerce-page .product .summary .stock.out-of-stock {
    color: var(--accent);
}
.woocommerce-page .product .summary .cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}
.woocommerce-page .product .summary .quantity {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}
.woocommerce-page .product .summary .quantity:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}
.woocommerce-page .product .summary .quantity .qty-btn-single {
    width: 40px;
    height: 42px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.woocommerce-page .product .summary .quantity .qty-btn-single:hover {
    background: var(--bg-section);
    color: var(--primary);
}
.woocommerce-page .product .summary .quantity input {
    width: 50px;
    height: 42px;
    padding: 0;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    color: var(--text);
    -moz-appearance: textfield;
}
.woocommerce-page .product .summary .quantity input::-webkit-outer-spin-button,
.woocommerce-page .product .summary .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.woocommerce-page .product .summary .single_add_to_cart_button {
    padding: 14px 36px;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}
.woocommerce-page .product .summary .single_add_to_cart_button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.5s ease;
}
.woocommerce-page .product .summary .single_add_to_cart_button:hover::before {
    transform: translateX(100%) skewX(-15deg);
}
.woocommerce-page .product .summary .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}
.woocommerce-page .product .summary .product_meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.woocommerce-page .product .summary .product_meta > span {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.woocommerce-page .product .summary .product_meta > span a,
.woocommerce-page .product .summary .product_meta .sku {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}
.woocommerce-page .product .summary .product_meta > span a:hover {
    color: var(--primary);
}

.woocommerce-page .product .woocommerce-tabs {
    flex: 0 0 100%;
    margin-top: 50px;
    border-top: 1px solid var(--border);
    padding-top: 0;
}
.woocommerce-page .product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0 0 0;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
}
.woocommerce-page .product .woocommerce-tabs ul.tabs li {
    margin: 0;
}
.woocommerce-page .product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 14px 28px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 14px;
}
.woocommerce-page .product .woocommerce-tabs ul.tabs li.active a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.woocommerce-page .product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--text);
}
.woocommerce-page .product .woocommerce-tabs .panel {
    color: var(--text-light);
    line-height: 1.8;
    padding: 24px 0;
}
.woocommerce-page .product .woocommerce-tabs .panel h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

/* Upsells & Related */
.woocommerce-page .upsells,
.woocommerce-page .related {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.woocommerce-page .upsells h2,
.woocommerce-page .related h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Single Product Responsive */
@media (max-width: 991px) {
    .woocommerce-page .product {
        flex-direction: column;
        padding: 24px;
        gap: 30px;
    }
    .woocommerce-page .product .images {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .woocommerce-page .product .summary .product_title {
        font-size: 26px;
    }
}

/* ====== Product Tabs ====== */
.dsw-product-tabs {
    margin-top: 40px;
}
.dsw-tabs-nav {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
}
.dsw-tabs-nav li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.dsw-tabs-nav li a i {
    font-size: 14px;
}
.dsw-tabs-nav li.active a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.dsw-tabs-nav li a:hover {
    color: var(--primary);
}
.dsw-tab-panel {
    display: none;
    animation: tabFadeIn 0.3s ease;
}
.dsw-tab-panel.active {
    display: block;
}
.dsw-tab-panel h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.dsw-tab-panel .woocommerce-Reviews {
    max-width: 700px;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

[data-theme="dark"] .dsw-tabs-nav {
    border-bottom-color: var(--border);
}
[data-theme="dark"] .dsw-tabs-nav li a {
    color: var(--text-muted);
}
[data-theme="dark"] .dsw-tabs-nav li.active a {
    color: var(--primary);
}

/* ====== Single Product Meta ====== */
.dsw-product-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}
.dsw-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.dsw-meta-label {
    font-weight: 600;
    color: var(--text-light);
    min-width: 80px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dsw-meta-label i {
    color: var(--primary);
    font-size: 13px;
}
.dsw-meta-value a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.dsw-meta-value a:hover {
    text-decoration: underline;
}

/* ====== Order Details (order/order-details.php) ====== */
.dsw-order-details {
    animation: cartItemIn 0.4s ease both;
}
.dsw-order-items-table {
    width: 100%;
    border-collapse: collapse;
}
.dsw-order-items-table thead {
    background: var(--bg-section);
}
.dsw-order-items-table thead th {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: start;
}
.dsw-order-items-table tbody td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 14px;
    color: var(--text);
}
.dsw-order-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dsw-order-item-thumb img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.dsw-order-item-name {
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}
.dsw-order-item-sku {
    font-size: 11px;
    color: var(--text-muted);
}
.dsw-order-item-line-total {
    font-weight: 700;
    color: var(--primary);
}
.dsw-order-items-table tfoot td {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}
.dsw-order-items-table tfoot tr:last-child td {
    border-bottom: none;
}
.dsw-order-total-row td {
    font-weight: 800;
    font-size: 18px;
    color: var(--primary) !important;
    border-top: 2px solid var(--primary);
    padding-top: 14px !important;
}
.dsw-order-address {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}
.dsw-order-phone,
.dsw-order-email {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}
.dsw-order-payment {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

@media (max-width: 767px) {
    .dsw-order-items-table thead {
        display: none;
    }
    .dsw-order-items-table tbody tr {
        display: block;
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 12px;
        background: var(--card-bg);
    }
    .dsw-order-items-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
    }
    .dsw-order-items-table tbody td:last-child {
        border-bottom: none;
    }
    .dsw-order-items-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-light);
        font-size: 12px;
    }
    .dsw-order-items-table tfoot tr {
        display: flex;
        justify-content: space-between;
        padding: 10px 14px;
    }
    .dsw-order-items-table tfoot td {
        border: none;
        padding: 0;
    }
}

[data-theme="dark"] .dsw-order-items-table thead {
    background: var(--bg-dark);
}
[data-theme="dark"] .dsw-order-item-thumb img {
    border-color: var(--border);
}
@media (max-width: 575px) {
    .woocommerce-page .product {
        padding: 16px;
        gap: 20px;
    }
    .woocommerce-page .product .summary .price {
        font-size: 24px;
    }
    .woocommerce-page .product .summary .cart {
        flex-direction: column;
    }
    .woocommerce-page .product .summary .single_add_to_cart_button {
        width: 100%;
    }
    .woocommerce-page .product .woocommerce-tabs ul.tabs li a {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ====== Checkout — Premium Design ====== */

/* Steps Header */
.checkout-steps {
    direction: ltr;
}
[dir="rtl"] .checkout-steps {
    direction: rtl;
}
.checkout-steps .step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.checkout-steps .step.active {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
    border-color: rgba(var(--primary-rgb), 0.2);
}
.checkout-steps .step.done {
    color: var(--success, #10B981);
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.2);
}
.checkout-steps .step i {
    font-size: 14px;
}
.step-line {
    width: 30px;
    height: 2px;
    background: var(--border);
    position: relative;
}

/* Form Layout */
.woocommerce-checkout .woocommerce {
    max-width: 1100px;
    margin: 0 auto;
}
.woocommerce-checkout .checkout {
    display: block;
}

/* Section Cards */
.checkout-section-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

/* Summary Sticky */
.checkout-summary-sticky {
    position: sticky;
    top: 100px;
}

/* Section Title */
.checkout-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-section-title i {
    color: var(--primary);
    font-size: 16px;
}

/* Form Rows */
.woocommerce-checkout .form-row {
    margin-bottom: 16px;
}
.woocommerce-checkout .form-row label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 6px;
}
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text);
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08);
    outline: none;
}
.woocommerce-checkout .form-row .select2-container .select2-selection--single {
    height: 48px;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 6px 12px;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
    color: var(--text);
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 10px;
}

/* Review Order Card */
.checkout-order-review-card {
    margin-bottom: 0;
}
.checkout-review-order-wrapper {
    padding: 0;
}

/* Review Items */
.review-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    animation: reviewItemIn 0.4s ease both;
}
.review-item:last-of-type {
    border-bottom: none;
}
@keyframes reviewItemIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}
.review-item-thumb {
    flex: 0 0 56px;
}
.review-item-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: block;
}
.review-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.review-item-name {
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
    line-height: 1.3;
}
.review-item-info .variation {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}
.review-item-qty {
    font-size: 12px;
    color: var(--text-muted);
}
.review-item-total {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
    white-space: nowrap;
}

/* Totals */
.review-totals {
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 8px;
}
.review-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.review-total-row:last-child {
    border-bottom: none;
}
.review-total-row.order-total {
    border-top: 2px solid var(--border);
    margin-top: 6px;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}
.review-total-row.order-total .order-total-amount {
    font-size: 20px;
}
.review-total-row.shipping {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.review-total-row.shipping th,
.review-total-row.shipping td {
    display: block;
    width: 100%;
    padding: 2px 0;
}
.review-total-row .woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Payment Section */
#payment {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}
.payment-methods-header {
    margin-bottom: 0;
}
.payment-section-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
#payment .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}
#payment .payment_methods li {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
#payment .payment_methods li:last-child {
    margin-bottom: 0;
}
#payment .payment_methods li:hover {
    border-color: rgba(var(--primary-rgb), 0.2);
}
#payment .payment_methods li.payment_method_selected {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.03);
}
#payment .payment_methods input {
    margin-left: 8px;
}
[dir="rtl"] #payment .payment_methods input {
    margin-left: 0;
    margin-right: 8px;
}
#payment .payment_methods label {
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}
#payment .payment_box {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-light);
    border: 1px solid var(--border);
}

/* Place Order */
#payment .place-order {
    padding: 16px 0 0;
}
.btn-place-order {
    padding: 16px 36px !important;
    font-size: 17px !important;
    letter-spacing: 0.3px;
    border-radius: 50px !important;
}

/* Terms */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-top: 16px;
    padding: 14px;
    background: var(--bg-section);
    border-radius: var(--radius);
    font-size: 13px;
}
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: var(--primary);
}

/* Checkout Trust */
.checkout-trust {
    animation: reviewItemIn 0.4s 0.2s ease both;
}
.checkout-trust .text-center {
    transition: transform 0.3s ease;
}
.checkout-trust .text-center:hover {
    transform: translateY(-2px);
}

/* Checkout Responsive */
@media (max-width: 991px) {
    .checkout-summary-sticky {
        position: static;
    }
    .checkout-steps {
        font-size: 12px;
    }
    .checkout-steps .step {
        padding: 4px 10px;
        font-size: 11px;
    }
    .step-line {
        width: 16px;
    }
    .checkout-section-card {
        padding: 20px;
    }
}
@media (max-width: 575px) {
    .checkout-section-card {
        padding: 16px;
    }
    .checkout-section-title {
        font-size: 16px;
    }
    .review-item-thumb img {
        width: 44px;
        height: 44px;
    }
    .review-item-name {
        font-size: 13px;
    }
    .review-total-row.order-total {
        font-size: 16px;
    }
    .btn-place-order {
        font-size: 15px !important;
        padding: 14px 24px !important;
    }
}

/* Dark Mode Checkout */
[data-theme="dark"] .checkout-section-card {
    background: var(--card-bg);
    border-color: var(--border);
}
[data-theme="dark"] .woocommerce-checkout .form-row input,
[data-theme="dark"] .woocommerce-checkout .form-row select,
[data-theme="dark"] .woocommerce-checkout .form-row textarea {
    background: var(--bg-dark);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] #payment .payment_methods li {
    background: var(--bg-dark);
    border-color: var(--border);
}
[data-theme="dark"] #payment .payment_methods li.payment_method_selected {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
}
[data-theme="dark"] #payment .payment_box {
    background: var(--card-bg);
    border-color: var(--border);
}
[data-theme="dark"] .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    background: var(--bg-dark);
}
[data-theme="dark"] .checkout-steps .step {
    background: var(--bg-dark);
    border-color: var(--border);
}
[data-theme="dark"] .checkout-steps .step.active {
    background: rgba(var(--primary-rgb), 0.08);
}
[data-theme="dark"] .review-item-thumb img {
    border-color: var(--border);
}

/* RTL */
[dir="rtl"] .woocommerce-cart .cart-collaterals .cart_totals td {
    text-align: left;
}
[dir="rtl"] .cart-item-remove {
    right: auto;
    left: 12px;
}
[dir="rtl"] .cart-item-sale-badge {
    left: auto;
    right: 8px;
}
[dir="rtl"] .badge-top-right {
    right: auto;
    left: -30px;
}

[dir="rtl"] .woocommerce-page .onsale {
    right: auto;
    left: 12px;
}

[dir="rtl"] .woocommerce-page .product .woocommerce-tabs ul.tabs {
    padding: 0;
}

/* ====== My Account ====== */
.woocommerce-MyAccount-navigation {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 30px;
}
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--border);
}
.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 14px 24px;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.04);
}
[data-theme="dark"] .woocommerce-MyAccount-navigation {
    background: var(--card-bg);
    border-color: var(--border);
}
[data-theme="dark"] .woocommerce-MyAccount-navigation ul li {
    border-color: var(--border);
}

/* ====== My Account Dashboard ====== */
.myaccount-dashboard {
    animation: cartItemIn 0.4s ease both;
}

.dash-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.dash-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}
.dash-greeting h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
}
.dash-greeting p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.dash-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
}
.dash-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: var(--primary);
}
.dash-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
}
.dash-stat-info {
    display: flex;
    flex-direction: column;
}
.dash-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}
.dash-stat-label {
    font-size: 13px;
    color: var(--text-light);
}
.dash-stat-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.dash-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}
.dash-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.dash-section-title i {
    color: var(--primary);
}

.dash-order-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background 0.2s;
}
.dash-order-row:last-of-type {
    border-bottom: none;
}
.dash-order-num {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-order-num strong {
    font-size: 15px;
    color: var(--text);
}
.dash-order-date {
    font-size: 12px;
    color: var(--text-muted);
}
.dash-order-status {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}
.dash-order-total {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
    white-space: nowrap;
}
.dash-order-view {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
}
.dash-order-view:hover {
    background: var(--primary);
    color: #fff;
}
.dash-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.dash-view-all:hover {
    text-decoration: underline;
}

/* ====== My Account Orders ====== */
.myaccount-orders-page {
    animation: cartItemIn 0.4s ease both;
}
.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.dash-section-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dash-section-header h3 i {
    color: var(--primary);
}

.dsw-orders-table {
    width: 100%;
    border-collapse: collapse;
}
.dsw-orders-table thead {
    background: var(--bg-section);
}
.dsw-orders-table thead th {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: start;
}
.dsw-orders-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.dsw-orders-table tbody tr:hover td {
    background: rgba(var(--primary-rgb), 0.02);
}

.order-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.status-completed { background: #d4edda; color: #155724; }
.status-processing { background: #cce5ff; color: #004085; }
.status-on-hold { background: #fff3cd; color: #856404; }
.status-pending { background: #f8f9fa; color: #6c757d; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-refunded { background: #e2e3e5; color: #383d41; }
.status-failed { background: #f8d7da; color: #721c24; }

.btn-view-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-section);
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
}
.btn-view-order:hover {
    background: var(--primary);
    color: #fff;
}

.dsw-pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.orders-empty {
    text-align: center;
    padding: 60px 20px;
}
.orders-empty-icon i {
    font-size: 56px;
    color: var(--text-light);
    opacity: 0.5;
    margin-bottom: 16px;
}
.orders-empty h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.orders-empty p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ====== My Account View Order ====== */
.myaccount-order-detail {
    animation: cartItemIn 0.4s ease both;
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
}
.btn-back:hover {
    color: var(--primary);
}
.order-detail-status-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.order-detail-date {
    font-size: 14px;
    color: var(--text-light);
}

.order-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.order-item:last-of-type {
    border-bottom: none;
}
.order-item-thumb img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.order-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.order-item-name {
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
}
.order-item-qty {
    font-size: 12px;
    color: var(--text-muted);
}
.order-item-total {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
}

.order-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.order-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}
.order-summary-row:last-of-type {
    border-bottom: none;
}
.order-summary-total {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    border-top: 2px solid var(--primary);
    margin-top: 4px;
    padding-top: 14px;
}

.order-address {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}
.order-address-phone,
.order-address-email {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

/* ====== Login Page ====== */
.myaccount-login-page {
    padding: 20px 0;
}
.login-card {
    padding: 40px 32px;
}
.login-card-header {
    text-align: center;
    margin-bottom: 28px;
}
.login-icon i {
    font-size: 52px;
    color: var(--primary);
    opacity: 0.8;
    margin-bottom: 12px;
}
.login-card-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}
.login-card-header p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}
.login-card .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.login-card .form-group .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--bg-section);
    color: var(--text);
    transition: border-color 0.3s;
}
.login-card .form-group .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.lost-password-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}
.lost-password-link:hover {
    text-decoration: underline;
}
.login-register-text {
    font-size: 14px;
    color: var(--text-light);
}
.register-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.register-link:hover {
    text-decoration: underline;
}

/* ====== Responsive My Account ====== */
@media (max-width: 767px) {
    .dash-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .dash-stats {
        grid-template-columns: 1fr 1fr;
    }
    .dsw-orders-table thead {
        display: none;
    }
    .dsw-orders-table tbody tr {
        display: block;
        padding: 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 12px;
        background: var(--card-bg);
    }
    .dsw-orders-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
        text-align: start;
    }
    .dsw-orders-table tbody td:last-child {
        border-bottom: none;
    }
    .dsw-orders-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-light);
        font-size: 12px;
    }
}

[data-theme="dark"] .dash-stat-card,
[data-theme="dark"] .dash-section,
[data-theme="dark"] .dash-header {
    background: var(--card-bg);
    border-color: var(--border);
}
[data-theme="dark"] .dsw-orders-table thead {
    background: var(--bg-dark);
}
[data-theme="dark"] .dsw-orders-table tbody td {
    border-color: var(--border);
}
[data-theme="dark"] .order-item-thumb img {
    border-color: var(--border);
}

/* ====== My Address ====== */
.address-card {
    height: 100%;
}
.address-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}
.address-card-header h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.address-card-header h4 i {
    color: var(--primary);
}
.btn-edit-address {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-edit-address:hover {
    text-decoration: underline;
}
.address-card-body {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ====== Notices ====== */
.woocommerce-page .woocommerce-notices-wrapper .alert {
    border-radius: var(--radius);
    border: none;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 14px;
}
.woocommerce-page .woocommerce-notices-wrapper .alert-success {
    background: #d4edda;
    color: #155724;
}
.woocommerce-page .woocommerce-notices-wrapper .alert-danger {
    background: #f8d7da;
    color: #721c24;
}
.woocommerce-page .woocommerce-notices-wrapper .alert-info {
    background: #d1ecf1;
    color: #0c5460;
}
.woocommerce-page .woocommerce-notices-wrapper .btn-close {
    filter: none;
    opacity: 0.5;
}

/* ====== Pagination ====== */
.woocommerce-page nav.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
}
.woocommerce-page nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-page nav.woocommerce-pagination ul li {
    margin: 0;
}
.woocommerce-page nav.woocommerce-pagination ul li a,
.woocommerce-page nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.woocommerce-page nav.woocommerce-pagination ul li a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.woocommerce-page nav.woocommerce-pagination ul li span.current {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}
[data-theme="dark"] .woocommerce-page nav.woocommerce-pagination ul li a {
    background: var(--card-bg);
    border-color: var(--border);
    color: var(--text);
}

/* ====== Result Count & Ordering ====== */
.woocommerce-page .woocommerce-result-count {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.woocommerce-page .woocommerce-ordering select {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-primary);
    background: var(--card-bg);
    color: var(--text);
    font-size: 14px;
    margin-bottom: 20px;
}
[data-theme="dark"] .woocommerce-page .woocommerce-ordering select {
    background: var(--card-bg);
    color: var(--text);
    border-color: var(--border);
}

/* ====== Related Products ====== */
.woocommerce-page .related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.woocommerce-page .related h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* ====== Dark Mode General ====== */
[data-theme="dark"] .woocommerce-page .product {
    background: var(--card-bg);
    border-color: var(--border);
}
[data-theme="dark"] .woocommerce-page .product .images .woocommerce-product-gallery {
    border-color: var(--border);
    background: var(--bg-dark);
}
[data-theme="dark"] .woocommerce-page .product .images .flex-control-thumbs li img {
    border-color: var(--border);
}
[data-theme="dark"] .woocommerce-page ul.products li.product {
    background: var(--card-bg);
    border-color: var(--border);
}
[data-theme="dark"] .woocommerce-page .shop_table {
    background: var(--card-bg);
    border-color: var(--border);
}
[data-theme="dark"] .woocommerce-page .shop_table th {
    background: var(--bg-dark);
}
[data-theme="dark"] .woocommerce-page .quantity input {
    color: var(--text);
}
[data-theme="dark"] .woocommerce-page .product .summary .quantity {
    border-color: var(--border);
}
[data-theme="dark"] .woocommerce-page .product .summary .quantity input {
    color: var(--text);
}

/* ====== Empty Cart ====== */
.cart-empty-page {
    max-width: 520px;
    margin: 40px auto;
    padding: 40px 20px;
}
.cart-empty-icon-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}
.cart-empty-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--bg-section);
    border: 3px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    animation: cartEmptyBounce 2s ease-in-out infinite;
}
.cart-empty-icon i {
    font-size: 40px;
    color: var(--text-light);
}
.cart-empty-dots {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    gap: 4px;
}
.cart-empty-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
    animation: cartEmptyDotPulse 1.5s ease-in-out infinite;
}
.cart-empty-dots span:nth-child(2) { animation-delay: 0.3s; }
.cart-empty-dots span:nth-child(3) { animation-delay: 0.6s; }

@keyframes cartEmptyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes cartEmptyDotPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.cart-empty-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}
.cart-empty-desc {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.cart-empty-suggestions {
    margin-bottom: 24px;
}
.cart-empty-suggestions h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}
.suggestion-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.suggestion-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}
.suggestion-badge:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}
.suggestion-badge i {
    font-size: 13px;
}

[data-theme="dark"] .cart-empty-icon {
    background: var(--bg-dark);
    border-color: var(--border);
}
[data-theme="dark"] .suggestion-badge {
    background: var(--bg-dark);
}
[data-theme="dark"] .suggestion-badge:hover {
    background: var(--primary);
}

/* ====== Dark Mode Cart ====== */
[data-theme="dark"] .woocommerce-cart .cart-collaterals .cart_totals {
    background: var(--card-bg);
    border-color: var(--border);
}
[data-theme="dark"] .woocommerce-cart .cart-item {
    background: var(--card-bg);
    border-color: var(--border);
}
[data-theme="dark"] .woocommerce-cart .cart-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
}
[data-theme="dark"] .woocommerce-cart .qty-stepper {
    background: var(--bg-dark);
    border-color: var(--border);
}
[data-theme="dark"] .woocommerce-cart .qty-stepper input.qty {
    color: var(--text);
}
[data-theme="dark"] .woocommerce-cart .qty-stepper .qty-step:hover {
    background: var(--bg-section);
}
[data-theme="dark"] .woocommerce-cart .cart-actions-toolbar {
    background: var(--card-bg) !important;
    border-color: var(--border) !important;
}
[data-theme="dark"] .woocommerce-cart .cart-item-media {
    border-color: var(--border);
    background: var(--bg-dark);
}
[data-theme="dark"] .woocommerce-cart .cart-item-cat {
    background: rgba(var(--primary-rgb), 0.1);
}
[data-theme="dark"] .coupon-wrap input {
    background: var(--bg-dark) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

/* ====== Thank You Page ====== */
.thankyou-page {
    max-width: 800px;
    margin: 0 auto;
}
.thankyou-hero {
    padding: 60px 20px 40px;
    position: relative;
}
.thankyou-check-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}
.thankyou-check-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success, #10B981);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: thankyouPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.thankyou-check-circle i {
    font-size: 36px;
    color: #fff;
}
.thankyou-rings {
    position: absolute;
    inset: -10px;
    z-index: 1;
}
.thankyou-rings span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--success, #10B981);
    opacity: 0;
    animation: ringExpand 2s ease-out infinite;
}
.thankyou-rings .ring-2 { animation-delay: 0.6s; }
.thankyou-rings .ring-3 { animation-delay: 1.2s; }

@keyframes thankyouPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@keyframes ringExpand {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(2); opacity: 0; }
}

.thankyou-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}
.thankyou-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 28px;
}

.thankyou-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.thankyou-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.thankyou-badge i {
    color: var(--primary);
    font-size: 14px;
}

.thankyou-items-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    animation: cartItemIn 0.5s 0.3s ease both;
}
.thankyou-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.thankyou-section-title i {
    color: var(--primary);
}

.thankyou-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.thankyou-item:last-of-type {
    border-bottom: none;
}
.thankyou-item-thumb {
    flex: 0 0 56px;
}
.thankyou-item-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.thankyou-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.thankyou-item-name {
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
}
.thankyou-item-qty {
    font-size: 12px;
    color: var(--text-muted);
}
.thankyou-item-total {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
    white-space: nowrap;
}

.thankyou-totals {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--border);
}
.thankyou-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-light);
}
.thankyou-grand-total {
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.thankyou-actions {
    animation: cartItemIn 0.5s 0.4s ease both;
}

/* Thank You Responsive */
@media (max-width: 575px) {
    .thankyou-title {
        font-size: 24px;
    }
    .thankyou-badge {
        font-size: 12px;
        padding: 8px 14px;
    }
    .thankyou-items-card {
        padding: 20px;
    }
    .thankyou-item-thumb img {
        width: 44px;
        height: 44px;
    }
}

[data-theme="dark"] .thankyou-badge {
    background: var(--bg-dark);
    border-color: var(--border);
}
[data-theme="dark"] .thankyou-items-card {
    background: var(--card-bg);
    border-color: var(--border);
}
[data-theme="dark"] .thankyou-item-thumb img {
    border-color: var(--border);
}

/* ====== WooCommerce Gutenberg Cart Block Overrides ====== */

/* Main Container */
.wp-block-woocommerce-cart,
.wc-block-cart {
    display: grid !important;
    grid-template-columns: 2.5fr 1fr !important;
    gap: 40px !important;
    margin-top: 40px !important;
    margin-bottom: 60px !important;
}

@media (max-width: 991px) {
    .wp-block-woocommerce-cart,
    .wc-block-cart {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* Sidebar Totals Card */
.wc-block-cart__totals,
.wc-block-components-sidebar {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(var(--primary-rgb), 0.12) !important;
    padding: 30px 24px !important;
    box-shadow: var(--shadow) !important;
    position: relative !important;
    overflow: hidden !important;
    height: fit-content !important;
}
[data-theme="dark"] .wc-block-cart__totals,
[data-theme="dark"] .wc-block-components-sidebar {
    background: rgba(14, 20, 40, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}
.wc-block-cart__totals::before,
.wc-block-components-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
}

/* Titles */
.wc-block-cart__totals-title,
.wc-block-components-sidebar h2 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--text) !important;
    margin-bottom: 24px !important;
    border-bottom: none !important;
    padding: 0 !important;
}

/* Checkout Button inside Block */
.wc-block-cart__submit-button,
.wc-block-components-checkout-button,
.wc-block-cart__totals .wp-block-button__link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 30px !important;
    background: var(--gradient-primary) !important;
    color: #ffffff !important; /* Force true white */
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    border: none !important;
    width: 100% !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.2) !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-button:hover,
.wc-block-cart__totals .wp-block-button__link:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.35) !important;
    color: #ffffff !important;
}

/* Items Card Container */
.wc-block-cart__items,
.wc-block-cart-items {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.08) !important;
    border-radius: 24px !important;
    padding: 24px !important;
}
[data-theme="dark"] .wc-block-cart__items,
[data-theme="dark"] .wc-block-cart-items {
    background: rgba(14, 20, 40, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
}

/* Single Item Row inside Block */
.wc-block-cart-items__row,
.wc-block-cart-item {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
    transition: var(--transition-smooth) !important;
    display: flex !important;
    gap: 20px !important;
}
.wc-block-cart-items__row:hover,
.wc-block-cart-item:hover {
    border-color: rgba(var(--primary-rgb), 0.25) !important;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.06) !important;
    transform: translateY(-2px) !important;
}

/* Stepper inside Block */
.wc-block-components-quantity-selector {
    border: 2px solid rgba(var(--primary-rgb), 0.15) !important;
    border-radius: 50px !important;
    overflow: hidden !important;
    background: var(--card-bg) !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 38px !important;
}
.wc-block-components-quantity-selector__button {
    width: 36px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
}
.wc-block-components-quantity-selector__button:hover {
    background: rgba(var(--primary-rgb), 0.06) !important;
    color: var(--primary) !important;
}
.wc-block-components-quantity-selector__input {
    width: 40px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-weight: 800 !important;
    color: var(--text) !important;
}

/* Remove button inside Block */
.wc-block-cart-item__remove-link {
    color: var(--text-muted) !important;
    transition: var(--transition) !important;
}
.wc-block-cart-item__remove-link:hover {
    color: var(--accent) !important;
    transform: scale(1.1) !important;
}

.wc-block-cart-items__header {
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 10px 15px !important;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.1) !important;
    margin-bottom: 20px !important;
}
.wc-block-cart-items__header-title {
    font-weight: 800 !important;
    color: var(--text-light) !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

