/* WooCommerce Custom Styles for CharmVilla Theme */

/* ========================================
   Shop Page - WooCommerce Overrides
   ======================================== */

/* Remove default WC styles */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    display: none;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-family: 'Gothic', sans-serif;
}

.woocommerce-message {
    background-color: #f0f9f0;
    border-left: 4px solid #4CAF50;
    color: #333;
}

.woocommerce-info {
    background-color: #f0f4f9;
    border-left: 4px solid var(--secondary);
    color: #333;
}

.woocommerce-error {
    background-color: #fdf0f0;
    border-left: 4px solid #e74c3c;
    color: #333;
}

.woocommerce-message a,
.woocommerce-info a {
    color: var(--primary);
    font-weight: 700;
}

/* WooCommerce pagination override */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin-top: 30px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    margin: 0 3px;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 8px 15px;
    color: #222;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-family: 'Gothic', sans-serif;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Product details - quantity input - FIX for stacking issue */
.product-details-des .quantity-cart-box {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.product-details-des .quantity {
    display: inline-block;
}

.product-details-des .pro-qty {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
}

.product-details-des .pro-qty .qtybtn {
    width: 35px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    background: #f8f8f8;
    user-select: none;
    border: none;
}

.product-details-des .pro-qty .qtybtn:hover {
    background: #eee;
}

.product-details-des .pro-qty input[type="number"] {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
    -moz-appearance: textfield;
    outline: none;
}

.product-details-des .pro-qty input[type="number"]::-webkit-outer-spin-button,
.product-details-des .pro-qty input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart page quantity fix */
.cart-table .pro-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
}

.cart-table .pro-qty input[type="number"] {
    width: 50px;
    height: 35px;
    text-align: center;
    border: none;
    font-size: 14px;
    -moz-appearance: textfield;
    outline: none;
}

.cart-table .pro-qty input[type="number"]::-webkit-outer-spin-button,
.cart-table .pro-qty input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Product Detail Tabs - Custom prx-reviews styling */
.prx-reviews-section {
    margin-top: 30px;
}

.prx-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 25px;
}

.prx-tab {
    padding: 12px 25px;
    border: none;
    background: transparent;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.prx-tab.active {
    color: #222;
}

.prx-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #222;
}

.prx-tab:hover {
    color: #222;
}

.prx-tab-content {
    display: none;
    padding: 10px 0;
}

.prx-tab-content.active {
    display: block;
}

.prx-table .prx-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.prx-table .prx-row span:first-child {
    font-weight: 700;
    width: 200px;
    color: #222;
}

.prx-table .prx-row span:last-child {
    color: #666;
}

/* Wishlist button styling */
.wishlist-add-btn {
    transition: all 0.3s;
}

.wishlist-add-btn.wishlisted i {
    color: #e74c3c !important;
}

.sc-action-icons {
    display: flex;
    gap: 8px;
}

/* WooCommerce Cart page styles */
.woocommerce-cart .woocommerce {
    padding: 30px 0;
}

.woocommerce table.shop_table {
    border: 1px solid #e5e5e5;
    border-collapse: collapse;
    width: 100%;
    font-family: 'Lato', sans-serif;
}

.woocommerce table.shop_table th {
    background-color: #f8f8f8;
    padding: 12px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    color: #222;
    border-bottom: 2px solid #e5e5e5;
}

.woocommerce table.shop_table td {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
}

.woocommerce table.shop_table img {
    width: 80px;
    height: auto;
}

/* WooCommerce buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.4s;
    border-radius: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: var(--primary);
    color: #fff;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--primary);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: #222;
}

/* Checkout page */
.checkout-page-wrapper {
    padding: 40px 0 60px;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle {
    margin-bottom: 20px;
}

.woocommerce form .form-row label {
    font-family: 'Lato', sans-serif;
    color: #222;
    font-weight: 600;
    font-size: 13px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 1px solid #e5e5e5;
    padding: 10px 15px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    width: 100%;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--secondary);
    outline: none;
}

/* My Account page */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 25%;
    float: left;
    padding-right: 30px;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 75%;
    float: left;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #e5e5e5;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 15px;
    color: #555;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    transition: 0.3s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #f8f8f8;
    color: var(--primary);
    font-weight: 700;
}

/* Login / Register forms */
.woocommerce form.login,
.woocommerce form.register {
    border: 1px solid #e5e5e5;
    padding: 25px;
    border-radius: 4px;
}

/* Product meta info on single product */
.product-meta-info p {
    margin-bottom: 5px;
    font-size: 13px;
}

.product-meta-info p strong {
    color: #222;
}

/* AJAX add to cart - added message */
.wc-forward::after {
    content: ' →';
}

/* ==========================================
   MOBILE ONLY: THE ULTIMATE VERTICAL OVERRIDE
   (Destroys all theme horizontal locks)
   ========================================== */
@media (max-width: 767px) {
    
    /* General Fixes */
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content { width: 100%; float: none; padding-right: 0; }
    .woocommerce-account .woocommerce-MyAccount-navigation { margin-bottom: 30px; }
    .product-details-des .quantity-cart-box { flex-wrap: wrap; }
    .checkout-page-wrapper .form-row-first,
    .checkout-page-wrapper .form-row-last { width: 100% !important; margin-right: 0 !important; }

    /* --- 1. Force the Grid Container to Block --- */
    .shop-product-wrapper .sc-shop-grid {
        display: block !important;
    }

    /* --- 2. Force ALL Product Wrappers to Column Stack --- */
    .sc-shop-grid > div,
    .sc-shop-grid > li,
    .sc-shop-grid .type-product,
    .sc-shop-grid .type-product > div,
    .sc-shop-grid .type-product .product-wrapper,
    .sc-shop-grid .type-product .product-inner {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    /* --- 3. Image Block (Force 100% width, Top position) --- */
    .sc-shop-grid .type-product .product-img,
    .sc-shop-grid .type-product .product-thumb {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important; /* Disables flex-row sizing */
        position: relative !important;
        float: none !important;
        border: none !important;
    }

    .sc-shop-grid .type-product .product-img img,
    .sc-shop-grid .type-product .product-thumb img {
        width: 100% !important;
        display: block !important;
    }

    /* --- 4. The Action Bar (Force Middle position, Horizontal) --- */
    .sc-shop-grid .type-product .product-action,
    .sc-shop-grid .type-product .action-links,
    .sc-shop-grid .type-product .pro-action {
        position: static !important; /* Removes absolute positioning */
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important; /* Forces it to take a full row */
        height: auto !important;
        background: #fafafa !important;
        border-top: 1px solid #eee !important;
        border-bottom: 1px solid #eee !important;
        padding: 10px 15px !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* Left Side Icons (Search, Heart) */
    .sc-shop-grid .type-product .action-icons,
    .sc-shop-grid .type-product .pro-action-right {
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
        margin: 0 !important;
    }

    .sc-shop-grid .type-product .action-icons a {
        font-size: 18px !important;
        color: #777 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Right Side ADD TO CART Button (Fix the vertical text) */
    .sc-shop-grid .type-product a.button,
    .sc-shop-grid .type-product a.added_to_cart,
    .sc-shop-grid .type-product .pro-action-left {
        writing-mode: horizontal-tb !important; 
        transform: none !important;
        white-space: nowrap !important; /* Stops the text from wrapping */
        display: inline-block !important;
        width: auto !important;
        margin: 0 0 0 auto !important; /* Pushes to the right */
        padding: 0 !important;
        background: transparent !important;
        color: #111 !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        border: none !important;
    }

    /* --- 5. Content Block (Force Bottom position) --- */
    .sc-shop-grid .type-product .product-content,
    .sc-shop-grid .type-product .product-info {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important; /* Forces it to take a full row */
        text-align: center !important;
        padding: 20px 15px !important;
        position: static !important;
        float: none !important;
    }

    .sc-shop-grid .type-product .product-content .category {
        display: block !important;
        font-size: 12px !important;
        color: #999 !important;
        margin-bottom: 5px !important;
    }

    .sc-shop-grid .type-product .product-content h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .sc-shop-grid .type-product .product-content .price {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #111 !important;
        display: block !important;
    }
}

/* Added to cart flash */
.added_to_cart {
    display: inline-block;
    background: var(--primary);
    color: #fff !important;
    padding: 5px 12px;
    font-size: 12px;
    margin-top: 5px;
    text-transform: uppercase;
    font-family: 'Lato', sans-serif;
}

/* WooCommerce ordering select on shop page */
.woocommerce-ordering select {
    border: 1px solid #e5e5e5;
    padding: 5px 10px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
}

/* Fix for WooCommerce default wrappers */
.woocommerce .woocommerce-breadcrumb {
    display: none; /* We use our own breadcrumb */
}

/* Minicart Sidebar Overlay */
.offcanvas-minicart-wrapper .minicart-inner-content {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: #fff;
    z-index: 10000;
    transition: right 0.4s ease;
    overflow-y: auto;
    padding: 30px;
    box-shadow: -3px 0 10px rgba(0,0,0,0.1);
}

.offcanvas-minicart-wrapper .minicart-inner .offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
}

.offcanvas-minicart-wrapper.open .minicart-inner-content {
    right: 0;
}

.offcanvas-minicart-wrapper.open .minicart-inner .offcanvas-overlay {
    display: block;
}

/* Minicart items */
.minicart-close {
    text-align: right;
    cursor: pointer;
    font-size: 28px;
    margin-bottom: 15px;
}

.minicart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.minicart-thumb {
    width: 80px;
    flex-shrink: 0;
}

.minicart-thumb img {
    width: 100%;
    height: auto;
}

.minicart-content {
    flex: 1;
}

.minicart-content .product-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.minicart-content .product-name a {
    color: #222;
}

.minicart-content .product-name a:hover {
    color: var(--primary);
}

.minicart-content .cart-quantity {
    color: #666;
}

.minicart-content .cart-price {
    font-weight: 700;
    color: #222;
}

.minicart-remove {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0;
}

.minicart-remove:hover {
    color: #e74c3c;
}

.minicart-pricing-box {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.minicart-pricing-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.minicart-pricing-box ul li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.minicart-pricing-box ul li.total {
    border-top: 1px solid #eee;
    padding-top: 12px;
    font-weight: 700;
}

.minicart-button {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.minicart-button a {
    display: block;
    text-align: center;
    padding: 12px 20px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.3s;
}

.minicart-button a:first-child {
    background: #222;
    color: #fff;
}

.minicart-button a:first-child:hover {
    background: var(--primary);
}

.minicart-button a:last-child {
    background: var(--primary);
    color: #fff;
}

.minicart-button a:last-child:hover {
    background: #222;
}

.minicart-item-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Cart page custom styles */
.cart-main-wrapper {
    padding: 40px 0 60px;
}

.cart-table {
    margin-bottom: 30px;
}

.cart-table thead th {
    background-color: #f8f8f8;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    padding: 15px;
}

.cart-table tbody td {
    padding: 15px;
    vertical-align: middle;
}

.cart-table .pro-thumbnail img {
    width: 80px;
    height: auto;
}

.cart-table .pro-title a {
    color: #333;
    font-weight: 600;
}

.cart-table .pro-title a:hover {
    color: var(--primary);
}

.cart-table .pro-remove a {
    color: #999;
    font-size: 18px;
}

.cart-table .pro-remove a:hover {
    color: #e74c3c;
}

.cart-update-option {
    padding: 20px 0;
    margin-bottom: 30px;
}

.cart-update-option input[type="text"] {
    border: 1px solid #ddd;
    padding: 10px 15px;
    width: 250px;
    margin-right: 10px;
}

.cart-calculator-wrapper {
    background: #f8f8f8;
    padding: 30px;
    margin-top: 20px;
}

.cart-calculator-wrapper h6 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cart-calculator-wrapper .table tr td:last-child {
    text-align: right;
    font-weight: 600;
}

.cart-calculator-wrapper .table tr.total td {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    border-top: 2px solid #ddd;
}

/* Wishlist page */
.wishlist-main-wrapper {
    padding: 40px 0 60px;
}

/* WooCommerce notices styling */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    list-style: none;
}

.woocommerce-message {
    background-color: #f0f9f0;
    border-left: 4px solid #4CAF50;
    color: #333;
}

.woocommerce-info {
    background-color: #f0f4f9;
    border-left: 4px solid #2196F3;
    color: #333;
}

.woocommerce-error {
    background-color: #fdf0f0;
    border-left: 4px solid #e74c3c;
    color: #333;
}

.woocommerce-message a,
.woocommerce-info a {
    color: var(--primary);
    font-weight: 700;
}

/* Store notice override */
.woocommerce-store-notice {
    display: none !important;
}

/* Search results */
.woocommerce-products-header__title {
    font-size: 24px;
    margin-bottom: 20px;
}

/* User dropdown in header */
.user-hover {
    position: relative;
}

.user-hover .dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 150px;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.user-hover .dropdown-list li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-size: 13px;
    text-transform: capitalize;
    transition: 0.3s;
    white-space: nowrap;
}

.user-hover .dropdown-list li a:hover {
    background: #f8f8f8;
    color: var(--primary);
}

/* WooCommerce Pagination */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin-top: 30px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    border: none;
    list-style: none;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    margin: 0 3px;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 8px 15px;
    color: #222;
    border: 1px solid #e5e5e5;
    background: #fff;
    display: block;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* =========================================
   CHECKOUT PAGE - Full Layout Fix
   ========================================= */
.checkout-page-wrapper .woocommerce {
    width: 100%;
}

.checkout-page-wrapper .woocommerce-checkout {
    width: 100%;
}

/* Make checkout form use proper columns */
.checkout-page-wrapper .col2-set {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.checkout-page-wrapper .col2-set .col-1,
.checkout-page-wrapper .col2-set .col-2 {
    flex: 1;
    min-width: 300px;
}

/* Fix ALL checkout form fields to be full width */
.checkout-page-wrapper .woocommerce-billing-fields__field-wrapper,
.checkout-page-wrapper .woocommerce-shipping-fields__field-wrapper,
.checkout-page-wrapper .woocommerce-additional-fields__field-wrapper {
    width: 100%;
}

.checkout-page-wrapper .form-row {
    width: 100% !important;
    float: none !important;
    margin-bottom: 15px;
    padding: 0 !important;
}

.checkout-page-wrapper .form-row-first,
.checkout-page-wrapper .form-row-last {
    width: 48% !important;
    display: inline-block;
    vertical-align: top;
}

.checkout-page-wrapper .form-row-first {
    margin-right: 3% !important;
}

.checkout-page-wrapper .form-row-wide {
    width: 100% !important;
    clear: both;
}

.checkout-page-wrapper .form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.checkout-page-wrapper .form-row input.input-text,
.checkout-page-wrapper .form-row textarea,
.checkout-page-wrapper .form-row select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s;
    border-radius: 0;
    box-sizing: border-box;
}

.checkout-page-wrapper .form-row input.input-text:focus,
.checkout-page-wrapper .form-row textarea:focus,
.checkout-page-wrapper .form-row select:focus {
    border-color: #999;
    outline: none;
}

/* Select2 overrides for WooCommerce dropdowns */
.checkout-page-wrapper .select2-container {
    width: 100% !important;
}

.checkout-page-wrapper .select2-container .select2-selection--single {
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 0;
}

.checkout-page-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 45px;
    padding-left: 15px;
}

.checkout-page-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
}

/* Billing/Shipping section titles */
.checkout-page-wrapper h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Order review table */
.checkout-page-wrapper .woocommerce-checkout-review-order {
    background: #f8f8f8;
    padding: 30px;
    margin-top: 20px;
}

.checkout-page-wrapper .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.checkout-page-wrapper .woocommerce-checkout-review-order-table th,
.checkout-page-wrapper .woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

.checkout-page-wrapper .woocommerce-checkout-review-order-table th {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
}

.checkout-page-wrapper .woocommerce-checkout-review-order-table .order-total th,
.checkout-page-wrapper .woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid #ddd;
}

/* Place order button */
.checkout-page-wrapper #place_order {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #222;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}

.checkout-page-wrapper #place_order:hover {
    background: var(--primary);
}

/* Coupon toggle & login toggle on checkout */
.checkout-page-wrapper .woocommerce-form-coupon-toggle .woocommerce-info,
.checkout-page-wrapper .woocommerce-form-login-toggle .woocommerce-info {
    background: #f8f8f8;
    border-left: 3px solid #222;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.checkout-page-wrapper .checkout_coupon {
    padding: 20px;
    border: 1px solid #ddd;
    margin-bottom: 30px;
}

.checkout-page-wrapper .checkout_coupon .form-row-first {
    width: 70% !important;
}

.checkout-page-wrapper .checkout_coupon .form-row-last {
    width: 25% !important;
}

/* Payment methods */
.checkout-page-wrapper .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkout-page-wrapper .wc_payment_method {
    padding: 15px;
    border: 1px solid #eee;
    margin-bottom: 10px;
}

.checkout-page-wrapper .wc_payment_method label {
    font-weight: 700;
    cursor: pointer;
}

.checkout-page-wrapper .payment_box {
    padding: 10px 15px;
    background: #f8f8f8;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

/* Privacy text */
.checkout-page-wrapper .woocommerce-privacy-policy-text p {
    font-size: 13px;
    color: #666;
}

/* Responsive checkout */
@media (max-width: 768px) {
    .checkout-page-wrapper .form-row-first,
    .checkout-page-wrapper .form-row-last {
        width: 100% !important;
        margin-right: 0 !important;
    }
	a.added_to_cart,
.added_to_cart.wc-forward,
.sc-shop-grid .type-product a.added_to_cart {
    display: none !important;
}

    .checkout-page-wrapper .col2-set .col-1,
    .checkout-page-wrapper .col2-set .col-2 {
        min-width: 100%;
    }
}

/* =========================================
   LOGIN / REGISTER PAGE
   ========================================= */

/* Side by side login/register */
.woocommerce-account .u-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.woocommerce-account .u-columns .u-column1,
.woocommerce-account .u-columns .u-column2,
.woocommerce-account .u-columns > .col-1,
.woocommerce-account .u-columns > .col-2 {
    flex: 1;
    min-width: 300px;
}

/* Login and Register forms */
.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register,
.woocommerce form.login,
.woocommerce form.register {
    border: 1px solid #e5e5e5;
    padding: 30px;
    border-radius: 0;
    background: #fff;
}

.woocommerce form.woocommerce-form-login h2,
.woocommerce form.woocommerce-form-register h2,
.woocommerce form.login h2,
.woocommerce form.register h2,
.woocommerce-account .u-columns h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form fields */
.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="password"],
.woocommerce form .form-row input.input-text {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    border-radius: 0;
}

.woocommerce form .form-row input:focus {
    border-color: #999;
    outline: none;
}

/* Login button */
.woocommerce form .form-row button.woocommerce-button,
.woocommerce form .form-row button[type="submit"],
.woocommerce form button.woocommerce-form-login__submit,
.woocommerce form button.woocommerce-form-register__submit {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #222;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 5px;
}

.woocommerce form .form-row button:hover,
.woocommerce form button.woocommerce-form-login__submit:hover,
.woocommerce form button.woocommerce-form-register__submit:hover {
    background: var(--primary);
}

/* Remember me checkbox */
.woocommerce form .form-row .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

/* Lost password link */
.woocommerce .lost_password,
.woocommerce .woocommerce-LostPassword {
    margin-top: 10px;
}

.woocommerce .lost_password a,
.woocommerce .woocommerce-LostPassword a {
    color: var(--primary);
    font-size: 13px;
}

/* Responsive login/register */
@media (max-width: 768px) {
    .woocommerce-account .u-columns .u-column1,
    .woocommerce-account .u-columns .u-column2,
    .woocommerce-account .u-columns > .col-1,
    .woocommerce-account .u-columns > .col-2 {
        min-width: 100%;
    }
}

/* =========================================
   SEARCH RESULTS PAGE
   ========================================= */
.search-results-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.search-results-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

.search-results-title span {
    color: var(--primary);
    font-style: italic;
}

.search-result-count {
    font-size: 14px;
    color: #666;
}

.no-results {
    padding: 60px 20px;
}

.no-results h4 {
    font-size: 22px;
    color: #333;
}

.no-results p {
    color: #666;
    font-size: 14px;
}

/* =========================================
   GENERAL WOOCOMMERCE FORM FIXES
   ========================================= */

/* Fix woocommerce_error list styling */
.woocommerce-error {
    list-style: none !important;
    padding-left: 20px !important;
}

.woocommerce-error li {
    list-style: none;
}

/* WooCommerce notices buttons */
.woocommerce-message .button {
    float: right;
    background: #222;
    color: #fff !important;
    padding: 8px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce-message .button:hover {
    background: var(--primary);
}

/* Fix required asterisk */
abbr[title] {
    text-decoration: none;
    border-bottom: none;
    color: #e74c3c;
}

/* =========================================
   CUSTOMISED PENDANT - Name Input Field
   ========================================= */
.custom-pendant-field {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border: 2px solid #e8c78e;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.custom-pendant-field::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    opacity: 0.3;
}

.custom-pendant-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 15px;
    color: #333;
    letter-spacing: 0.5px;
}

.custom-pendant-field label .pe-7s-pen {
    color: #c9956b;
    margin-right: 6px;
}

.custom-pendant-field label span {
    color: #e74c3c;
}

.custom-pendant-field input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0d0b8;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.5px;
}

.custom-pendant-field input[type="text"]:focus {
    border-color: #c9956b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 149, 107, 0.15);
}

.custom-pendant-field input[type="text"]::placeholder {
    color: #bbb;
    font-style: italic;
}

.custom-pendant-field .pendant-info {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.custom-pendant-field .pendant-info i {
    margin-right: 4px;
}

.custom-pendant-field .pendant-cod-notice {
    font-size: 12px;
    color: #c0392b;
    margin-top: 5px;
    padding: 6px 10px;
    background: #fef0f0;
    border-radius: 4px;
    border-left: 3px solid #e74c3c;
}

.custom-pendant-field .pendant-cod-notice i {
    margin-right: 4px;
}

/* Pendant name preview animation */
.custom-pendant-field .pendant-name-preview {
    margin-top: 12px;
    padding: 10px 15px;
    background: #fff;
    border-radius: 6px;
    text-align: center;
    font-family: 'Dancing Script', cursive, 'Lato', sans-serif;
    font-size: 22px;
    color: #c9956b;
    display: none;
    border: 1px dashed #e0d0b8;
}

.custom-pendant-field .pendant-name-preview.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* COD disabled notice on checkout */
.woocommerce-info.cod-disabled-notice {
    background: #fff9f0;
    border-left: 4px solid #e8a317;
    color: #856404;
    padding: 15px 20px;
    font-size: 14px;
}

/* Engraved name display in cart */
.woocommerce-cart dl.variation dt {
    font-weight: 700;
    color: #333;
}

.woocommerce-cart dl.variation dd p {
    color: #c9956b;
    font-weight: 600;
}
/* ==========================================

   PRICE FILTER TEXT CUTOFF FIX

   ========================================== */

.price-input {

    display: flex !important;

    align-items: center !important;

    white-space: nowrap !important; /* Forces the label and input to stay on one line */

}



input#amount {

    min-width: 140px !important; /* Guarantees enough room for large numbers like ₹15000 - ₹15000 */

    width: auto !important;

    background: transparent !important;

    box-shadow: none !important;

    padding: 0 0 0 5px !important; /* Adds a tiny space between "Price:" and the number */

}