body{
    color: var(--text);
}

/* ===================================
   MAHRAM FINAL CLEAN CART DESIGN
=================================== */

/* ==============================
   GLOBAL CONTAINER FIX
============================== */
.woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Remove empty notice spacing */
.woocommerce-cart .woocommerce-notices-wrapper:empty {
    display: none;
}

/* ==============================
   NOTICES
============================== */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
	
}

.woocommerce-message a {
    color: var(--primary);
    font-weight: 600;
}
/* ==============================
   FIX WOOCOMMERCE NOTICE ICON ALIGNMENT
============================== */

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    position: relative;
    padding-left: 45px !important; /* space for icon */
}

.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}
/* ==============================
   CART HEADER
============================== */
.mahram-cart-header {
    margin-bottom: 35px;
}

.mahram-cart-header h1 {
    font-size: 32px;
    color: var(--primary);
    font-weight: 600;
		margin-top: 30px;
    margin-bottom: 8px;
}

.mahram-cart-header p {
    color: #aaa;
    font-size: 15px;
}

/* ==============================
   2 COLUMN LAYOUT
============================== */
.woocommerce-cart .woocommerce-cart-form {
    width: 58%;
    float: left;
}

.woocommerce-cart .cart-collaterals {
    width: 80%;
    float: right;
}


.woocommerce-cart .woocommerce::after {
    content: "";
    display: block;
    clear: both;
}

/* ==============================
   REMOVE TABLE STYLE
============================== */
.woocommerce-cart table.shop_table {
    border: none;
    background: transparent;
}

.woocommerce-cart table.shop_table thead {
    display: none;
}

.woocommerce-cart table.shop_table tbody tr {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.woocommerce-cart table.shop_table td {
    border: none;
    background: transparent;
}

/* ==============================
   PRODUCT STYLING
============================== */
.woocommerce-cart .product-thumbnail img {
    border-radius: 12px;
}

.woocommerce-cart .product-name a {
    color: var(--primary);
    font-weight: 600;
}

.woocommerce-cart input.qty {
    background: #000;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    text-align: center;
    width: 60px;
}

/* ==============================
   COUPON SECTION
============================== */
.woocommerce-cart .coupon input#coupon_code {
    background: #000;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 8px;
}

/* ==============================
   CART TOTALS CARD
============================== */
.cart_totals {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}

.cart_totals h2 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.cart_totals table {
    color: var(--text);
}

/* ==============================
   FIX WHITE BACKGROUND INSIDE CART TOTALS
============================== */
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr {
    background: var(--dark) !important;       /* force dark background */
    border-color: var(--border) !important; /* force dark borders */
}

/* Keep Proceed to Checkout button gold and intact */
.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout a {
    background: var(--primary) !important;
    color: #000 !important;
}

/* ==============================
   BUTTONS
============================== */
.woocommerce button.button,
.woocommerce a.button {
    background: var(--primary);
    color: #000;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 18px;
    border: none;
}

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

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 768px) {
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        width: 100%;
        float: none;
    }

    .woocommerce-cart table.shop_table tbody tr {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Force cart table and totals to stay side by side */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart-collaterals .cart_totals {
    float: right;
    width: 450px; /* adjust as needed */
    margin-left: 20px; /* space from cart table */
}

/* Make sure the main cart table has enough width */
.woocommerce-cart table.shop_table {
    width: calc(100% - 3.5px); /* table width minus totals column + margin */
}

/* Optional: responsive for mobile screens */
@media (max-width: 768px) {
    .woocommerce-cart .cart-collaterals,
    .woocommerce-cart table.shop_table {
        float: none;
        width: 100%;
        margin-left: 0;
    }
}

/* Hide Shipment 1 row in Cart Totals */
.woocommerce-cart .cart_totals .shipping {
    display: none;
}

.woocommerce-cart .cart_totals .coupon-row td {
    border: none !important;   /* remove all borders inside coupon row */
    padding: 0 !important;     /* remove extra padding causing spacing line */
}

.woocommerce-cart .cart_totals table.shop_table .order-total td {
    border-top: 1px solid var(--border) !important; /* keep a thin line above Total row if needed */
}
/* Remove top border above Total row */
.woocommerce-cart .cart_totals table.shop_table .order-total th,
.woocommerce-cart .cart_totals table.shop_table .order-total td {
    border-top: none !important;
}
/* Make Subtotal and Total rows match coupon row height */
.woocommerce-cart .cart_totals table.shop_table .cart-subtotal,
.woocommerce-cart .cart_totals table.shop_table .order-total {
    background: var(--background); /* match coupon row dark background */
    border: 1px solid var(--border); /* match coupon row border */
    border-radius: 12px;
    padding: 5px 10px;
}

.woocommerce-cart .cart_totals table.shop_table .cart-subtotal td,
.woocommerce-cart .cart_totals table.shop_table .order-total td {
    padding: 10px 0; /* match coupon row vertical spacing */
}

/* Adjust Subtotal and Total spacing to match coupon row */
.woocommerce-cart .cart_totals table.shop_table .cart-subtotal,
.woocommerce-cart .cart_totals table.shop_table .order-total {
    display: flex;                   /* keep flex */
    justify-content: flex-start;     /* align items to the left */
    gap: 150px;                       /* space between label and amount */
    align-items: center;             /* vertical alignment */
}

/* Match cart totals outer border radius to product row */
.woocommerce-cart .cart_totals {
    border-radius: 18px !important;
}
/* Ensure inner content respects cart totals border radius */
.woocommerce-cart .cart_totals {
    border-radius: 20px !important;  /* your desired radius */
    overflow: hidden;                /* clip inner content to match radius */
}


/* =====================================
   Update Cart Button: Outside table & right-aligned
===================================== */

/* Hide default table structure for actions */
.woocommerce-cart-form .actions table {
    display: none; /* remove table if any */
}

/* Force actions container to flex right */
.woocommerce-cart-form .actions {
    width: 100%;
    display: flex !important;
    justify-content: flex-end; /* move button to right */
    padding: 0;
    margin-top: 15px;
    background: transparent !important;
    border: none !important;
}

/* Style the Update Cart button */
.woocommerce-cart-form .actions .button {
    background: var(--primary) !important;
    color: #000 !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 600;
    float: none !important;
}

/* Hover effect */
.woocommerce-cart-form .actions .button:hover {
    background: var(--primary-dark) !important;
}
/* Remove bottom border of cart table */
.woocommerce-cart-form table.shop_table {
    border-bottom: none !important;
}

/* Remove borders from the last row */
.woocommerce-cart-form table.shop_table tr:last-child {
    border: none !important;
}
/* =====================================
   Update Cart Row: Remove background completely
===================================== */

/* Remove background from the cart table */
.woocommerce-cart-form table.shop_table {
    background: transparent !important;
}

/* Remove background from the last row (actions row) */
.woocommerce-cart-form table.shop_table tr:last-child,
.woocommerce-cart-form table.shop_table tr:last-child td {
    background: transparent !important;
    border: none !important; /* ensure no border */
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Keep Update Cart button floated right and styled */
.woocommerce-cart-form .actions {
    width: 100%;
    display: flex !important;
    justify-content: flex-end;
    background: transparent !important;
    border: none !important;
    padding: 0;
    margin-top: 15px;
}

.woocommerce-cart-form .actions .button {
    background: var(--primary) !important; /* gold button */
    color: #000 !important;
    border-radius: 10px !important;
    padding: 4px 15px !important;
    font-weight: 600;
    float: none !important;
}

.woocommerce-cart-form .actions .button:hover {
    background: var(--primary-dark) !important;
}

/* Force dark background for Cart Totals header */
body.woocommerce-cart .cart_totals h2 {
    background-color: var(--dark) !important;
    color: var(--primary) !important;
    border: none !important;
}

/* Coupon row inside cart totals */
body.woocommerce-cart .cart_totals .custom-coupon-row td {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

body.woocommerce-cart .cart_totals input[name="coupon_code"] {
    background: #000;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    margin-bottom: 10px;
}

body.woocommerce-cart .cart_totals button[name="apply_coupon"] {
    background: var(--primary);
    color: #000;
    border-radius: 10px;
    padding: 10px 18px;
    border: none;
}
/* Hide default coupon in cart table */
body.woocommerce-cart 
.woocommerce-cart-form 
.actions 
.coupon {
    display: none !important;
}
/* Remove old JS-injected coupon row */
body.woocommerce-cart .cart_totals tr.coupon-row {
    display: none !important;
}
/* Coupon row styled like Subtotal / Total card */
body.woocommerce-cart .cart_totals .custom-coupon-row td {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

/* Remove default WooCommerce table borders */
body.woocommerce-cart .cart_totals table.shop_table,
body.woocommerce-cart .cart_totals table.shop_table td,
body.woocommerce-cart .cart_totals table.shop_table th {
    border: none !important;
}
/* Remove default padding from table cells */
body.woocommerce-cart .cart_totals table.shop_table td {
    padding: 0 !important;
}

/* Applied coupon row internal spacing */
body.woocommerce-cart .cart_totals tr.cart-discount > td {
    padding: 8px 25px !important;
}

/* Coupon input row internal spacing */
body.woocommerce-cart .cart_totals .custom-coupon-row > td {
    padding: 8px 105px !important;
}
/* Control coupon card spacing cleanly */
.mahram-coupon-wrapper {
    padding: 10px 20px;
}

/* Full width input */
.mahram-coupon-wrapper input[name="coupon_code"] {
    width: 100%;
    display: block;
}

/* Remove extra bottom spacing */
.mahram-coupon-wrapper button {
    margin-bottom: -10;
}
/* Coupon layout */
.mahram-coupon-wrapper form {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* Input takes most space */
.mahram-coupon-wrapper input[name="coupon_code"] {
    flex: 0 0 99%;
    max-width: 100%;
}

/* Button takes remaining */
.mahram-coupon-wrapper button {
    flex: 0 0 50%;
}
/* Stack input and button vertically */
.mahram-coupon-wrapper form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Reduce left/right padding inside coupon card */
.mahram-coupon-wrapper {
    padding: 10px 5px !important; /* reduced from larger value */
}

/* Make input full width */
.mahram-coupon-wrapper input[name="coupon_code"] {
    width: 100%;
    margin: 0;
}

/* Align button left under input */
.mahram-coupon-wrapper button {
    margin: -10;
}
/* Make coupon row behave like block container */
.woocommerce-cart .cart_totals tr.custom-coupon-row {
    display: block !important;
    width: 100% !important;
}

/* Make table cell full width */
.woocommerce-cart .cart_totals tr.custom-coupon-row td {
    display: block !important;
    width: 100% !important;
}

/* Make form full width */
.woocommerce-cart .cart_totals .mahram-coupon-wrapper form {
    width: 100% !important;
}

/* Make input truly full width */
.woocommerce-cart .cart_totals input#coupon_code {
    width: 100% !important;
    box-sizing: border-box !important;
}
/* ===================================
   ORDER RECEIVED PAGE – DARK THEME
=================================== */

/* Main thank you container */
.woocommerce-order {
    background: transparent;
    color: var(--text);
}

/* Order summary top info (order number, date, etc.) */
.woocommerce-order-overview {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.woocommerce-order-overview li {
    color: var(--text-muted);
}

.woocommerce-order-overview strong {
    color: var(--text);
}

/* Thank you heading */
.woocommerce-order h2,
.woocommerce-order h3 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Order details table */
.woocommerce-order-details table.shop_table {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    border-collapse: separate !important;
    border-spacing: 0;
}

/* Table cells */
.woocommerce-order-details table.shop_table th,
.woocommerce-order-details table.shop_table td {
    background: var(--dark) !important;
    border-color: var(--border) !important;
    color: var(--text);
    padding: 14px 20px;
}

/* Product links */
.woocommerce-order-details a {
    color: var(--primary);
}

/* Totals rows */
.woocommerce-order-details tfoot th,
.woocommerce-order-details tfoot td {
    font-weight: 600;
}

/* Billing & Shipping boxes */
.woocommerce-customer-details .woocommerce-column {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

/* Remove white backgrounds */
.woocommerce-order-details,
.woocommerce-customer-details,
.woocommerce-order-details table {
    background: transparent !important;
}

/* Remove gray header strip */
.woocommerce-order-details thead {
    background: var(--dark) !important;
}

.woocommerce-order-details thead th {
    color: var(--primary);
}
/* Remove white background from Order Received headings */
.woocommerce-order-details h2,
.woocommerce-customer-details h2,
.woocommerce-column h2 {
    background: var(--dark) !important;
    color: var(--primary) !important;
    border: none !important;
    padding: 15px 20px !important;
}

/* Remove gray strip behind table heading */
.woocommerce-order-details thead,
.woocommerce-order-details thead th {
    background: var(--dark) !important;
    color: var(--primary) !important;
}

/* Remove any leftover light background */
.woocommerce-order-details,
.woocommerce-customer-details {
    background: transparent !important;
}
/* Dark border + rounded corners for Billing & Shipping inner box */
.woocommerce-customer-details address {
    border: 1px solid var(--border) !important;  /* dark border */
    border-radius: 14px !important;       /* rounded corners */
    background: var(--dark) !important;          /* match theme */
    padding: 12px 20px !important;        /* clean spacing */
}
/* ===== RESET WooCommerce customer columns ===== */
.woocommerce-customer-details {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start !important;
}

/* Remove Astra float behavior */
.woocommerce-customer-details .woocommerce-column {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Remove any extra top spacing */
.woocommerce-customer-details h2 {
    margin-top: 0 !important;
}
/* ===== MOBILE FIX FOR CART TOTALS ===== */
@media (max-width: 768px) {

    /* Reset fixed width */
    .woocommerce-cart .cart-collaterals {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
    }

    /* Make cart totals full width */
    .woocommerce-cart .cart_totals {
        width: 100% !important;
    }

    /* Prevent overflow */
    .woocommerce-cart .woocommerce {
        overflow-x: hidden;
    }
}
/* ===== MOBILE SPACING FIX ===== */
@media (max-width: 768px) {

    .woocommerce-cart .cart-collaterals {
        margin-top: 15px !important; /* reduce gap */
    }

    .woocommerce-cart .cart-collaterals .cart_totals {
        margin-top: 10px !important;
    }

}
/* Remove ":" from mobile stacked cart totals */
@media (max-width: 768px) {

    .woocommerce-cart .cart_totals table.shop_table td::before {
        content: attr(data-title) !important; /* remove colon */
    }

}
/* ===== MOBILE: Proper Left-Right Alignment (Keep Labels) ===== */
@media (max-width: 768px) {

    /* Make subtotal & total rows flex containers */
    .woocommerce-cart .cart_totals table.shop_table tr.cart-subtotal,
    .woocommerce-cart .cart_totals table.shop_table tr.order-total {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Show label normally (from ::before) */
    .woocommerce-cart .cart_totals table.shop_table tr.cart-subtotal td,
    .woocommerce-cart .cart_totals table.shop_table tr.order-total td {
        width: 100% !important;
        text-align: right !important;
        position: relative;
        padding-left: 0 !important;
    }

    /* Make label appear on left */
    .woocommerce-cart .cart_totals table.shop_table tr.cart-subtotal td::before,
    .woocommerce-cart .cart_totals table.shop_table tr.order-total td::before {
        position: absolute !important;
        left: 20px;
        font-weight: 600;
        color: var(--text);
    }

}
/* ===== MOBILE: Equal right spacing for amount ===== */
@media (max-width: 768px) {

    .woocommerce-cart .cart_totals table.shop_table tr.cart-subtotal td,
    .woocommerce-cart .cart_totals table.shop_table tr.order-total td {
        padding-right: 20px !important;
    }

}
/* ===== CLEAN DESKTOP COLUMN ALIGNMENT ===== */
@media (min-width: 769px) {

    .woocommerce-cart .woocommerce {
        display: flex;
        align-items: flex-start;
        gap: 35px;
    }

    .woocommerce-cart .woocommerce-cart-form {
        width: 85%;
        float: none !important;
    }

    .woocommerce-cart .cart-collaterals {
        width: 410px;
        float: none !important;
        margin: 30 !important;
    }
/* ===== Fine Desktop Vertical Adjustment ===== */
@media (min-width: 769px) {

    .woocommerce-cart .cart-collaterals {
        margin-top: 144px !important;  /* adjust this value */
    }

}
}
/* Delivery Charges row styling */
.woocommerce-cart .cart_totals tr.mahram-delivery-row {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.woocommerce-cart .cart_totals tr.mahram-delivery-row th,
.woocommerce-cart .cart_totals tr.mahram-delivery-row td {
    padding: 0px 0px;
    color: var(--text);
}
/* ===== Delivery row EXACTLY like Total (Desktop + Mobile) ===== */

.woocommerce-cart .cart_totals tr.mahram-delivery-row {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 20px !important;
}
/* ===== FORCE Delivery row to match Total row ===== */

@media (max-width: 768px) {

    /* Make row horizontal */
    .woocommerce-cart .cart_totals tr.mahram-delivery-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 20px !important;
    }

    /* Stop Woo from stacking */
    .woocommerce-cart .cart_totals tr.mahram-delivery-row th,
    .woocommerce-cart .cart_totals tr.mahram-delivery-row td {
        display: block !important;
        width: auto !important;
        padding: 0 !important;
    }

    /* Remove mobile pseudo label */
    .woocommerce-cart .cart_totals tr.mahram-delivery-row td::before {
        display: none !important;
        content: none !important;
    }

}

/* SHOP PAGE ONLY - Visual Category Divider */
.post-type-archive-product .shop-category-break {
    grid-column: 1 / -1;
    height: 1px;
    background: #333;
    margin: 50px 0 30px 0;
}

/* Shop + Category pages only */
.post-type-archive-product .site-content > .ast-container,
.tax-product_cat .site-content > .ast-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* Mobile */
@media (max-width: 768px) {
    .post-type-archive-product .site-content > .ast-container,
    .tax-product_cat .site-content > .ast-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ===== FORCE GOLD FOR CUSTOMER REVIEWS PLUGIN ===== */

/* Add a review text */
.single-product .cr-nav-left span {
    color: var(--primary) !important;
}

/* Product name (AUREX) */
.single-product .cr-review-form-item > span {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* Force gold for Customer Reviews submit button */

.single-product .cr-review-form-submit {
    background-color: var(--primary) !important;
    color: #000 !important;
    border: none !important;
}

/* Hover */
.single-product .cr-review-form-submit:hover {
    background-color: #c19b2e !important;
}

/* Make review arrow stroke only */

.single-product .cr-nav-left svg {
    fill: none !important;
    stroke: var(--primary) !important;
    stroke-width: 2px !important;
}

.single-product .cr-nav-left svg path {
    fill: none !important;
    stroke: var(--primary) !important;
    stroke-width: 2px !important;
}

/* ===== FIX OVERLAPPING LABELS ===== */

.single-product .cr-review-form-lbl {
    position: static !important;
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 14px !important;
    color: var(--primary) !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Add spacing between fields */
.single-product .cr-review-form-item {
    margin-bottom: 18px !important;
}
/* Force dark background for ALL review form inputs */

.single-product .cr-single-product-review textarea,
.single-product .cr-single-product-review input[type="text"],
.single-product .cr-single-product-review input[type="email"],
.single-product .cr-single-product-review input {
    background-color: var(--dark) !important;
    border: 1px solid #1e1e1e !important;
    color: var(--white) !important;
    border-radius: 12px !important;
}
/* ===== Keep grey default, gold on hover/selected ===== */

/* Hover stars */
.single-product .cr-review-form-rating-overall svg:hover,
.single-product .cr-review-form-rating-overall svg:hover path {
    fill: var(--primary) !important;
    stroke: var(--primary) !important;
}

/* Selected stars */
.single-product .cr-review-form-rating-overall .cr-star-selected svg,
.single-product .cr-review-form-rating-overall .cr-star-selected svg path {
    fill: var(--primary) !important;
    stroke: var(--primary) !important;
}

/* Remove brightness/opacity effect */
.single-product .cr-review-form-rating-overall svg {
    filter: none !important;
}

/* ===== FIX UPDATE CART BUTTON WIDTH ===== */

.woocommerce-cart-form .actions {
    display: flex !important;
    justify-content: flex-end !important;
}

.woocommerce-cart-form .actions .button {
    width: auto !important;
    min-width: 160px !important;
    flex: none !important;
    padding: 15px 22px !important;
}

/* ===== TIGHT COUPON INPUT + BUTTON SPACING ===== */

.mahram-coupon-wrapper form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important; /* small spacing only */
}

.mahram-coupon-wrapper input[name="coupon_code"] {
    margin-bottom: 0 !important;
}

.mahram-coupon-wrapper button {
    margin-top: 0px !important;
}
/* ===== HARD RESET APPLY COUPON BUTTON ===== */

.woocommerce-cart .cart_totals button[name="apply_coupon"] {

    line-height: 1 !important;      /* kill Woo default 2.5em */
    padding-top: 1px !important;
    padding-bottom: 16px !important;

    height: auto !important;
    min-height: 0 !important;
}

/* ===== FIX EXTRA SPACE UNDER APPLY COUPON ===== */

.woocommerce-cart .cart_totals .mahram-coupon-wrapper {
    padding: 12px 1px !important;
}

/* ===== FORCE PERFECT CENTER – Proceed to Checkout ===== */

.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
    text-align: center !important;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: 100% !important;
    height: 60px !important;

    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;

    line-height: normal !important;
}
/* Adjust vertical text position inside Proceed button */
.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
    padding-bottom: 17px !important;  /* adjust 2px–6px as needed */
}
/* ===== FIX COUPON CARD HEIGHT ===== */

.woocommerce-cart .cart_totals tr.custom-coupon-row {
    display: block !important;
}

.woocommerce-cart .cart_totals tr.custom-coupon-row td {
    padding: 15px 20px !important; /* uniform padding */
}

/* Remove extra bottom spacing inside wrapper */
.woocommerce-cart .cart_totals .mahram-coupon-wrapper {
    padding-bottom: 0px !important;
}

/* Remove any forced height */
.woocommerce-cart .cart_totals .mahram-coupon-wrapper form {
    margin: 0 !important;
}

/* Remove button margin */
.woocommerce-cart .cart_totals .mahram-coupon-wrapper button {
    margin-bottom: 0 !important;
}
.woocommerce-cart .cart_totals .coupon p,
.woocommerce-cart .mahram-coupon-wrapper p {
    display: contents !important;
}

/* ===== CLEAN DARK THEME SYSTEM (PRODUCT PAGE) ===== */

/* Base text system */
body.single-product {
    --text-primary: var(--white);
    --text-secondary: #d6d6d6;
    --text-muted: #9aa0a6;
}

/* Reset plugin forced colors */
body.single-product .cr-reviews-ajax-comments * {
    color: inherit !important;
}

/* Inline color override (targeted, not global) */
body.single-product .cr-reviews-ajax-comments [style*="color"] {
    color: var(--text-secondary) !important;
}

/* Reviewer name */
body.single-product .woocommerce-review__author {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Review text */
body.single-product .description {
    color: var(--text-secondary);
}

/* Date */
body.single-product .woocommerce-review__published-date {
    color: var(--text-muted);
    font-size: 12px;
}

/* Headings */
body.single-product h1,
body.single-product h2,
body.single-product h3 {
    color: var(--text-primary);
}

/* ===== FIX WHITE STRIP TEXT (SEARCH + PAGINATION BAR) ===== */

/* Entire white strip area */
body.single-product .cr-reviews-ajax-comments .cr-reviews-header,
body.single-product .cr-reviews-ajax-comments .cr-reviews-toolbar,
body.single-product .cr-reviews-ajax-comments .cr-pagination {
    color: #000000 !important;
}

/* Left text: "1–3 of 10 reviews" */
body.single-product .cr-reviews-ajax-comments .cr-pagination * {
    color: #000000 !important;
}

/* Search input text */
body.single-product .cr-reviews-ajax-comments input[type="search"] {
    color: #000000 !important;
}

/* Placeholder text */
body.single-product .cr-reviews-ajax-comments input::placeholder {
    color: var(--text-light) !important;
}

/* Dropdown (Most Recent) */
body.single-product .cr-reviews-ajax-comments select,
body.single-product .cr-reviews-ajax-comments .cr-sort-dropdown {
    color: #000000 !important;
}
/* Fix "1–3 of 10 reviews" text */
body.single-product .cr-count-row-count {
    color: #000000 !important;
    opacity: 1 !important;
    font-weight: 500;
}

/* Hide "Additional Information" tab */
body.single-product .woocommerce-tabs ul.tabs li.additional_information_tab {
    display: none !important;
}

/* Hide its content panel (extra safety) */
body.single-product #tab-additional_information {
    display: none !important;
}

/* FIXED TICKER */

.mahrem-ticker-bar{
    position:sticky;
    top:0;
    width:100%;
    height:40px;

    background:#c89b2c;

    overflow:hidden;

    z-index:999999;

    display:flex;
    align-items:center;
}

/* TRACK */
.mahrem-ticker-track{
    display:flex;
    width:max-content;
    animation:mahremTicker 18s linear infinite;
}

/* TEXT */
.mahrem-ticker-track span{
    white-space:nowrap;
    color:#000;
    font-size:14px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
    padding-right:80px;
}

/* LOOP */
@keyframes mahremTicker{
    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }
}

[class*="buy-now"]{
    display:block !important;
    
    margin-left:73.2px !important;
}

/* Force Buy Now to new line */
.wc-buy-now-btn{
    flex-basis:100% !important;
    width:100% !important;
    margin-top:2px !important;
}

/* Parent container */
form.cart{
    display:flex !important;
    flex-wrap:wrap !important;
}

/* Completely collapse the billing address heading */
#ship-to-different-address {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0.1 !important;
    min-height: 0 !important;
    height: auto !important;
}

/* Remove spacing around shipping wrapper */
.woocommerce-shipping-fields {
    margin: 0 !important;
    padding: 0 !important;
}

/* Pull checkbox upward */
#ship-to-different-address label {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}
/* Bigger Complete Order button */
#place_order {
    height: 42px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}