/* ==========================================================================
   DIKU — Cart Page
   Custom stylesheet for the div-based RTL cart template.
   Loaded only on .woocommerce-cart via functions.php.
   ========================================================================== */


/* --------------------------------------------------------------------------
   0. PAGE SHELL — RTL, background, font
   -------------------------------------------------------------------------- */

.diku-cart-page {
    direction: rtl;
    font-family: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F5F3EF;
    min-height: 60vh;
    padding: 48px 24px 100px;
    box-sizing: border-box;
}

/* ── WooCommerce notices — modern card style ─────────────────────────── */

.diku-cart-page .woocommerce-notices-wrapper {
    width: 100%;
    max-width: 780px;
    /* matches the stacked cart layout width */
    margin: 0 auto 24px;
}

/* Shared reset: WooCommerce renders notices as <ul> */
.diku-cart-page .woocommerce-message,
.diku-cart-page .woocommerce-error,
.diku-cart-page .woocommerce-info {
    /* Layout */
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 16px 20px 16px 20px;

    /* Card surface */
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.05),
        0 4px 24px rgba(0, 0, 0, 0.06);

    /* Kill the default ugly coloured top-border WooCommerce adds */
    border-top: none;

    /* Typography */
    font-family: 'Assistant', -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2A2E2B;
    direction: rtl;
}

/* ── Success notice (cart updated, coupon applied…) ── */
.diku-cart-page .woocommerce-message {
    /* Refined right-side accent stripe (RTL: right = logical start) */
    border-right: 4px solid #6B9E8A;
    padding-right: 16px;
}

/* Leading icon via ::before */
.diku-cart-page .woocommerce-message::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #E8F5F1;
    color: #6B9E8A;
    font-size: 13px;
    font-weight: 800;
    order: -1;
    /* push icon to the right in RTL flex */
}

/* ── Error notice ── */
.diku-cart-page .woocommerce-error {
    border-right: 4px solid #D07B7B;
    padding-right: 16px;
}

.diku-cart-page .woocommerce-error::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #FDEAEA;
    color: #D07B7B;
    font-size: 14px;
    font-weight: 800;
    order: -1;
}

/* ── Info notice ── */
.diku-cart-page .woocommerce-info {
    border-right: 4px solid #7AABCA;
    padding-right: 16px;
}

.diku-cart-page .woocommerce-info::before {
    content: 'i';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #EAF3F9;
    color: #7AABCA;
    font-size: 13px;
    font-weight: 800;
    font-style: italic;
    order: -1;
}

/* Individual notice items inside the <ul> */
.diku-cart-page .woocommerce-message li,
.diku-cart-page .woocommerce-error li,
.diku-cart-page .woocommerce-info li {
    flex: 1;
    margin: 0;
    padding: 0;
}

/* ── "ביטול" / Undo link inside the removal success notice ── */
.diku-cart-page .woocommerce-message .restore-item,
.diku-cart-page .woocommerce-message a:not(.button) {
    display: inline-block;
    color: #6B9E8A;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(90, 158, 139, 0.45);
    padding-bottom: 1px;
    margin-right: 6px;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.diku-cart-page .woocommerce-message .restore-item:hover,
.diku-cart-page .woocommerce-message a:not(.button):hover {
    color: #3E8270;
    border-color: #3E8270;
}

/* Kill any residual default WooCommerce top-border on all notice types */
.diku-cart-page .woocommerce-message,
.diku-cart-page .woocommerce-error,
.diku-cart-page .woocommerce-info {
    border-top: none !important;
}


/* --------------------------------------------------------------------------
   1. STACKED SINGLE-COLUMN LAYOUT
      Products first, Cart Totals directly below — centred, no side-by-side.
   -------------------------------------------------------------------------- */

.diku-cart-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* centre both blocks horizontally */
    gap: 32px;
    max-width: 780px;
    /* comfortable reading width for a single column */
    margin: 0 auto;
}

/* Page heading */
.diku-cart-title {
    font-size: 26px;
    font-weight: 800;
    color: #2A2E2B;
    margin: 0 0 28px;
    letter-spacing: -0.3px;
    width: 100%;
    text-align: right;
}

/* Both columns stretch to the full layout width */
.diku-cart-main,
.diku-cart-sidebar {
    width: 100%;
    min-width: 0;
}


/* --------------------------------------------------------------------------
   2. PRODUCT CARDS
   -------------------------------------------------------------------------- */

.diku-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Each product row = white card */
.diku-cart-item {
    display: grid;
    /*
     * Columns (right → left in RTL):
     *   image  | details (flex) | qty   | price | × remove
     *   90px     1fr              auto    100px    36px
     */
    grid-template-columns: 90px 1fr auto 100px 36px;
    grid-template-areas: "image details qty price remove";
    align-items: center;
    gap: 0 18px;

    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);

    position: relative;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.diku-cart-item:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

/* ── Grid area assignments ── */
.diku-item-image {
    grid-area: image;
}

.diku-item-details {
    grid-area: details;
}

.diku-item-qty {
    grid-area: qty;
}

.diku-item-price {
    grid-area: price;
    text-align: left;
}

/* price numerals read LTR */
.diku-item-remove {
    grid-area: remove;
    justify-self: center;
}

/* ── Product thumbnail ── */
.diku-item-image a,
.diku-item-image {
    display: block;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.diku-item-img,
.diku-item-image img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s ease;
}

.diku-cart-item:hover .diku-item-img,
.diku-cart-item:hover .diku-item-image img {
    transform: scale(1.04);
}

/* ── Product name + meta ── */
.diku-item-name {
    margin-bottom: 5px;
}

.diku-item-name a,
.diku-item-name span {
    font-size: 16px;
    font-weight: 700;
    color: #2A2E2B;
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.2s;
}

.diku-item-name a:hover {
    color: #6B9E8A;
}

.diku-item-details .variation,
.diku-item-details .wc-item-meta,
.diku-item-details dl.variation {
    margin: 3px 0 0;
    font-size: 12px;
    color: #7A827E;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.diku-item-details dl.variation dt,
.diku-item-details dl.variation dd {
    display: inline;
    margin: 0;
    font-weight: 600;
}

.diku-item-details dl.variation dt {
    color: #4A4E4B;
}

/* Mobile-only price (hidden on desktop) */
.diku-item-price-mobile {
    display: none;
}

/* ── Subtotal price ── */
.diku-item-price .woocommerce-Price-amount,
.diku-item-price bdi {
    font-size: 18px;
    font-weight: 800;
    color: #6B9E8A;
    direction: ltr;
    display: inline-block;
}

/* ── × Remove button ── */
.diku-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #F0EDE8;
    color: #9A9E9B;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    line-height: 1;
}

.diku-remove-btn svg {
    display: block;
    flex-shrink: 0;
}

.diku-remove-btn:hover {
    background: #E07070;
    color: #fff;
    transform: scale(1.15);
}


/* --------------------------------------------------------------------------
   3. QUANTITY SELECTOR — modern pill with +/−
   -------------------------------------------------------------------------- */

.diku-qty-wrap {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border: 1.5px solid #DDD8D1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.diku-qty-btn {
    width: 34px;
    height: 38px;
    border: none;
    background: #F4F1EC;
    color: #3A3E3B;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.18s ease;
    flex-shrink: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

.diku-qty-btn:hover {
    background: #DDD8D1;
}

.diku-qty-btn:active {
    background: #CBC5BD;
}

.diku-qty-wrap input.qty {
    width: 42px;
    height: 38px;
    text-align: center;
    border: none;
    border-left: 1px solid #DDD8D1;
    border-right: 1px solid #DDD8D1;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #2A2E2B;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
    outline: none;
    direction: ltr;
}

.diku-qty-wrap input.qty::-webkit-outer-spin-button,
.diku-qty-wrap input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
}


/* --------------------------------------------------------------------------
   4. CART FOOTER — coupon input + update button
   -------------------------------------------------------------------------- */

.diku-cart-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Update cart — hidden, triggered automatically by JS on qty change */
.diku-update-btn,
button[name="update_cart"] {
    display: none !important;
}


/* --------------------------------------------------------------------------
   5. CART TOTALS CARD — stacked below products
   -------------------------------------------------------------------------- */

.diku-cart-sidebar {
    /* no sticky — totals sit naturally below the product list */
}

.diku-totals-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 20px 48px rgba(0, 0, 0, 0.06);
    width: 100%;
    box-sizing: border-box;
}

/* Section title */
.diku-totals-title {
    font-size: 20px;
    font-weight: 800;
    color: #2A2E2B;
    margin: 0 0 22px;
    padding-bottom: 18px;
    border-bottom: 1.5px solid #EDEAE5;
    letter-spacing: -0.2px;
}

/* Rows container */
.diku-totals-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

/* Each row: label ↔ value */
.diku-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #F0EDE8;
}

.diku-total-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.diku-row-label {
    font-size: 19px;
    font-weight: 600;
    color: #6A706C;
    text-align: right;
}

.diku-row-value {
    font-size: 19px;
    font-weight: 700;
    color: #2A2E2B;
    text-align: left;
    direction: ltr;
}

/* Discount row — bold pink */
.diku-row-value--discount,
.diku-row-value--discount .woocommerce-Price-amount {
    color: #C4587A;
    font-size: 20px;
    font-weight: 800;
}

/* Grand total row */
.diku-total-row--grand .diku-row-label {
    font-size: 17px;
    font-weight: 800;
    color: #2A2E2B;
}

.diku-total-row--grand .diku-row-value .woocommerce-Price-amount,
.diku-total-row--grand .diku-row-value bdi {
    font-size: 26px;
    font-weight: 800;
    color: #6B9E8A;
    direction: ltr;
    display: inline-block;
}

/* Shipping section — WC outputs <tr>/<td> inside our div; display as blocks */
.diku-total-row--shipping {
    flex-direction: column;
    align-items: stretch;
}

.diku-total-row--shipping tr,
.diku-total-row--shipping td,
.diku-total-row--shipping th {
    display: block;
    border: none;
    padding: 2px 0;
    background: none;
}

.diku-total-row--shipping th {
    font-size: 15px;
    font-weight: 600;
    color: #6A706C;
}

.diku-total-row--shipping td {
    font-size: 14px;
    color: #2A2E2B;
}

.diku-total-row--shipping #shipping_method {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.diku-total-row--shipping #shipping_method li {
    margin-bottom: 4px;
}

.diku-total-row--shipping label {
    font-weight: 600;
    cursor: pointer;
}

.diku-total-row--shipping .shipping-calculator-button {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: #6B9E8A;
    text-decoration: underline;
    cursor: pointer;
}

/* Coupon remove link inside totals */
.woocommerce-remove-coupon {
    font-size: 12px;
    color: #E07070;
    text-decoration: none;
    margin-right: 6px;
}

.woocommerce-remove-coupon:hover {
    text-decoration: underline;
}


/* --------------------------------------------------------------------------
   6. PROCEED TO CHECKOUT BUTTON
   -------------------------------------------------------------------------- */

.diku-checkout-wrap {
    margin-top: 8px;
}

/* Target the WooCommerce-generated link */
.diku-checkout-wrap a.checkout-button,
.wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;

    /* ── Visual ── */
    background: #6B9E8A !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 14px !important;

    /* ── Typography ── */
    font-family: 'Assistant', -apple-system, sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    text-align: center !important;
    text-decoration: none !important;

    /* ── Sizing ── */
    padding: 0 !important;
    line-height: 60px !important;
    min-height: 60px !important;

    /* ── Shadow + motion ── */
    box-shadow: 0 6px 20px rgba(90, 158, 139, 0.35) !important;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease !important;
    cursor: pointer !important;
}

.diku-checkout-wrap a.checkout-button:hover,
.wc-proceed-to-checkout a.checkout-button:hover {
    background: #3E8270 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(90, 158, 139, 0.45) !important;
}

.diku-checkout-wrap a.checkout-button:active,
.wc-proceed-to-checkout a.checkout-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 3px 10px rgba(90, 158, 139, 0.25) !important;
}


/* --------------------------------------------------------------------------
   7. CROSS-SELLS — horizontal scroll track between items list and totals
   -------------------------------------------------------------------------- */

/* ── Section wrapper ─────────────────────────────────────────────────── */

.diku-cart-page .cross-sells {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    direction: rtl;
    text-align: right;
}

/* ── Heading — centred, matches site typography ──────────────────────── */

.diku-cart-page .cross-sells>h2 {
    font-family: 'Assistant', -apple-system, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #2A2E2B;
    text-align: center;
    margin: 0 0 24px;
    letter-spacing: 0.2px;
}

/* ── Product <ul> → horizontal scroll track ─────────────────────────── */
/* Use high-specificity to override WooCommerce's column grid classes.    */

.diku-cart-page .cross-sells ul.products,
.diku-cart-page .cross-sells .products {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 14px !important;
    /* bottom space for thin scrollbar */
    margin: 0 !important;
    list-style: none !important;

    /* Kill WooCommerce float-grid leftovers */
    width: auto !important;
    float: none !important;
    clear: both;
}

/* Thin, tasteful scrollbar */
.diku-cart-page .cross-sells .products::-webkit-scrollbar {
    height: 4px;
}

.diku-cart-page .cross-sells .products::-webkit-scrollbar-track {
    background: #EDEBE7;
    border-radius: 2px;
}

.diku-cart-page .cross-sells .products::-webkit-scrollbar-thumb {
    background: #C0C8C2;
    border-radius: 2px;
}

/* ── Each product card ───────────────────────────────────────────────── */

.diku-cart-page .cross-sells .products li.product,
.diku-cart-page .cross-sells .products .product {
    /* Fixed card width — shows ≈ 3 cards on desktop, hinting at more */
    flex: 0 0 210px !important;
    width: 210px !important;
    min-width: 0;
    scroll-snap-align: start;

    /* Card surface — mirrors cart-item cards */
    background: #FFFFFF !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07) !important;
    padding: 14px !important;
    margin: 0 !important;

    /* RTL inner layout */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    /* right-align all children */
    gap: 8px;
    text-align: right !important;
    direction: rtl;

    /* Subtle hover lift */
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    /* Kill any float WooCommerce sets on li.product */
    float: none !important;
    clear: none !important;
}

.diku-cart-page .cross-sells .products li.product:hover,
.diku-cart-page .cross-sells .products .product:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.11) !important;
}

/* ── Product image ────────────────────────────────────────────────────── */

.diku-cart-page .cross-sells .products .product a.woocommerce-loop-product__link,
.diku-cart-page .cross-sells .products .product>a:first-child {
    display: block;
    width: 100%;
}

.diku-cart-page .cross-sells .products .product img {
    display: block !important;
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin: 0 0 6px !important;
    box-shadow: none !important;
}

/* ── Product title ────────────────────────────────────────────────────── */

.diku-cart-page .cross-sells .products .product .woocommerce-loop-product__title {
    font-family: 'Assistant', -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2A2E2B !important;
    line-height: 1.4 !important;
    text-align: right !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

/* ── Price ────────────────────────────────────────────────────────────── */

.diku-cart-page .cross-sells .products .product .price {
    font-family: 'Assistant', -apple-system, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #6B9E8A !important;
    text-align: right !important;
    margin: 0 !important;
    width: 100%;
}

.diku-cart-page .cross-sells .products .product .price del {
    color: #A0A8A3 !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    margin-left: 4px;
}

.diku-cart-page .cross-sells .products .product .price ins {
    text-decoration: none !important;
}

/* ── Add to Cart button ───────────────────────────────────────────────── */

.diku-cart-page .cross-sells .products .product .button,
.diku-cart-page .cross-sells .products .product a.add_to_cart_button {
    display: block !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 9px 0 !important;
    box-sizing: border-box !important;

    background: #F3F8F6 !important;
    color: #6B9E8A !important;
    border: 1.5px solid #6B9E8A !important;
    border-radius: 10px !important;

    font-family: 'Assistant', -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    letter-spacing: 0.2px !important;
    cursor: pointer !important;
    transition: background 0.18s ease, color 0.18s ease !important;
    box-shadow: none !important;
}

.diku-cart-page .cross-sells .products .product .button:hover,
.diku-cart-page .cross-sells .products .product a.add_to_cart_button:hover {
    background: #6B9E8A !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.diku-cart-page .cross-sells .products .product a.add_to_cart_button.loading,
.diku-cart-page .cross-sells .products .product a.add_to_cart_button.added {
    background: #6B9E8A !important;
    color: #FFFFFF !important;
    opacity: 0.8 !important;
}

/* ── Remove link underlines ───────────────────────────────────────────── */
.diku-cart-page .cross-sells .products .product a,
.diku-cart-page .cross-sells .products .product a:hover {
    text-decoration: none !important;
}

/* ── Rating stars (hide to keep cards compact) ───────────────────────── */
.diku-cart-page .cross-sells .products .product .star-rating {
    display: none;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .diku-cart-page .cross-sells>h2 {
        font-size: 18px;
    }

    .diku-cart-page .cross-sells .products li.product,
    .diku-cart-page .cross-sells .products .product {
        flex: 0 0 165px !important;
        width: 165px !important;
    }

    .diku-cart-page .cross-sells .products .product img {
        height: 120px !important;
    }
}


/* --------------------------------------------------------------------------
   8. EMPTY CART STATE
   -------------------------------------------------------------------------- */

/* Centred empty-state container */
.diku-empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 72px 24px 96px;
    direction: rtl;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

/* Strip ALL WooCommerce box chrome — text sits directly on the page bg */
.diku-empty-cart .woocommerce-info {
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;

    font-family: 'Assistant', -apple-system, sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #2A2E2B !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

/* Kill the ::before / ::after decorations WooCommerce adds */
.diku-empty-cart .woocommerce-info::before,
.diku-empty-cart .woocommerce-info::after {
    display: none !important;
}

/* "חזרה לחנות" button */
.diku-empty-cart .return-to-shop {
    margin: 0;
}

.diku-empty-cart .diku-return-btn,
.diku-empty-cart .return-to-shop .button {
    display: inline-block !important;
    padding: 0 40px !important;
    line-height: 54px !important;
    min-height: 54px !important;
    box-sizing: border-box !important;

    background: #6B9E8A !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 14px !important;

    font-family: 'Assistant', -apple-system, sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;

    box-shadow: 0 6px 20px rgba(90, 158, 139, 0.35) !important;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease !important;
}

.diku-empty-cart .diku-return-btn:hover,
.diku-empty-cart .return-to-shop .button:hover {
    background: #3E8270 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(90, 158, 139, 0.45) !important;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE — Tablet & Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
    .diku-cart-layout {
        max-width: 100%;
        gap: 24px;
    }

    .diku-cart-title {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .diku-cart-page {
        padding: 24px 12px 80px;
    }

    /* Switch product card from grid to flex column */
    .diku-cart-item {
        grid-template-columns: 72px 1fr 32px;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "image details remove"
            "image qty     qty"
            ".     price   price";
        gap: 10px 14px;
        padding: 16px;
    }

    .diku-item-price {
        text-align: right;
        grid-area: price;
    }

    .diku-item-price-mobile {
        display: none;
    }

    /* kept hidden — grid handles it */

    .diku-item-image,
    .diku-item-image a {
        width: 72px;
        height: 72px;
    }

    .diku-item-img,
    .diku-item-image img {
        width: 72px !important;
        height: 72px !important;
    }

    .diku-item-name a,
    .diku-item-name span {
        font-size: 15px;
    }

    .diku-item-price .woocommerce-Price-amount,
    .diku-item-price bdi {
        font-size: 16px;
    }

    .diku-update-btn {
        width: 100%;
        text-align: center;
    }

    /* Totals card */
    .diku-totals-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .diku-totals-title {
        font-size: 18px;
    }

    .diku-total-row--grand .diku-row-value .woocommerce-Price-amount,
    .diku-total-row--grand .diku-row-value bdi {
        font-size: 22px;
    }

    /* Checkout button */
    .diku-checkout-wrap a.checkout-button,
    .wc-proceed-to-checkout a.checkout-button {
        font-size: 17px !important;
        line-height: 54px !important;
        min-height: 54px !important;
        border-radius: 12px !important;
    }
}


/* --------------------------------------------------------------------------
   10. UTILITY — hide default WooCommerce floats / widths that fight our grid
   -------------------------------------------------------------------------- */

.woocommerce-cart .cart-collaterals {
    width: 100% !important;
    float: none !important;
}

.woocommerce-cart .cart_totals {
    width: 100% !important;
    float: none !important;
}


/* --------------------------------------------------------------------------
   11. INLINE VARIATION SWITCHER
   -------------------------------------------------------------------------- */

.diku-variation-switcher {
    margin-top: 8px;
}

/* The <select> element */
.diku-variation-select {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    width: 100%;
    max-width: 240px;

    /* RTL: text on the right, arrow on the left */
    padding: 7px 10px 7px 34px;
    direction: rtl;
    text-align: right;

    /* Custom chevron arrow — positioned left for RTL */
    background-color: #FAFAF8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%238A8E8B' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 11px center;

    border: 1.5px solid #DDD8D1;
    border-radius: 8px;

    font-family: 'Assistant', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #2A2E2B;
    line-height: 1.4;
    cursor: pointer;

    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.diku-variation-select:hover {
    border-color: #B0AAA2;
    background-color: #F5F3EF;
}

.diku-variation-select:focus {
    outline: none;
    border-color: #6B9E8A;
    box-shadow: 0 0 0 3px rgba(90, 158, 139, 0.14);
    background-color: #FFFFFF;
}

.diku-variation-select:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Hide the redundant WooCommerce variation meta when our switcher is shown */
.diku-has-variation-switcher dl.variation,
.diku-has-variation-switcher .wc-item-meta {
    display: none !important;
}

/* Loading overlay on the card while the AJAX swap runs */
.diku-cart-item.diku-item-loading {
    opacity: 0.55;
    pointer-events: none;
}

.diku-cart-item.diku-item-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.45);
    z-index: 2;
}

/* Mobile: let the select fill the full details column width */
@media (max-width: 600px) {
    .diku-variation-select {
        max-width: 100%;
    }
}