    margin: 0 auto;
    text-align: center;
}
.cr-order-confirm .confirm-icon {
    font-size: 64px;
    color: #64b496;
    display: block;
    margin-bottom: 8px;
}
.cr-order-confirm h2 { margin-bottom: 8px; }
.cr-order-confirm .order-meta { margin-bottom: 24px; color: #777; }
.cr-order-confirm table {
    width: 100%;
    margin-bottom: 24px;
    border: 1px solid #eee;
    border-collapse: collapse;
}
.cr-order-confirm table td, .cr-order-confirm table th {
    border: 1px solid #eee;
    padding: 10px 14px;
    text-align: left;
}
.cr-order-confirm .confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Form validation feedback */
.cr-field-error { border-color: #e05858 !important; }

/* Catalog nav button — show in the header on desktop only; on mobile it lives
   inside the slide-out menu (styled as a button), not beside the cart icon. */
@media (max-width: 991px) {
    .cr-catalog-btn { display: none !important; }
}
.cr-mobile-menu .cr-mobile-catalog > a {
    display: inline-block;
    background-color: #64b496;
    color: #fff !important;
    padding: 10px 28px;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: 600;
}
.cr-mobile-menu .cr-mobile-catalog > a:hover {
    background-color: #000;
    color: #fff !important;
}

/* Preorder button — top-right corner of the blog-details banner image */
.cr-blog-details { position: relative; }
.cr-preorder-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
}
@media (max-width: 767px) {
    .cr-preorder-btn { top: 12px; right: 12px; padding: 6px 16px; font-size: 13px; }
}

/* Banner and Image Layout Fixes — Object Fit & Container Sizing */
.cr-product-banner-image {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    height: 240px !important;
    background-color: #f8fafc !important;
}
.cr-product-banner-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.cr-ice-cubes, #cr-sidebar-banner {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    height: auto !important;
    display: block !important;
}
#cr-sidebar-banner img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 12px !important;
}

.cr-product-card .cr-product-image,
.cr-product-image {
    height: 280px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}
.cr-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Category Tab Card Height & Image Lock Fix */
.cr-side-categories {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    height: 240px !important;
    max-height: 240px !important;
    background-color: #f8fafc !important;
}

.cr-side-categories img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 240px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Header: more breathing room around the main menu row (Home / Shop / …) —
   space above (from the divider line) and below (from the banner). The header
   height is left to grow with the content so the extra padding never overlaps
   the banner. */
header {
    height: auto !important;
}
#cr-main-menu-desk .cr-menu-list {
    padding: 16px 0;
}

/* Product card: the add-to-cart bag icon sat at bottom:-16px, so its lower
   half hung past the image edge and was clipped ("half visible"). Pull it fully
   inside the image and lift it above neighbouring content so the whole icon shows. */
.cr-product-card .cr-product-image .cr-shopping-bag {
    bottom: 12px;
    z-index: 3;
}

/* Center the main menu links across the bar; keep the Catalog button pinned
   to the right so the nav sits visually centered. (Desktop only — the mobile
   menu is unaffected.) */
@media (min-width: 992px) {
    #cr-main-menu-desk .cr-menu-list {
        justify-content: center;
        position: relative;
    }
    #cr-main-menu-desk .cr-catalog-btn {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }
}

/* Sticky menu bar: white background + subtle shadow while pinned on scroll. */
#cr-main-menu-desk.menu_fixed {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Offer countdown on product cards — only rendered when the product has a
   timed offer (active_offer.ends_at). */
.cr-card-timer {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #fff4f0;
    color: #e05858;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}
.cr-card-timer i { font-size: 14px; }

/* same countdown reused on offer-linked banners — give it room before the CTA */
.cr-left-side-contain .cr-card-timer,
.cr-ice-cubes-contain .cr-card-timer,
.cr-product-banner-contain .cr-card-timer,
.cr-products-rightbar-content .cr-card-timer {
    margin: 8px 0 12px;
}

/* Categories browse page (categories.html) — category / sub-category cards */
.cr-browse-card {
    display: block;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}
.cr-browse-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.cr-browse-thumb {
    height: 200px;
    background: #f4f5f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cr-browse-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cr-browse-card h5 {
    margin: 0;
    padding: 14px 12px;
    text-align: center;
    font-size: 15px;
    color: #333;
}
.cr-browse-card h5 span { color: #999; font-weight: 400; font-size: 13px; }

/* Side Cart Drawer Scrolling & Height Fix */
.cr-cart-view {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

.cr-cart-view .cr-cart-inner {
    height: 100vh !important;
    max-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    overflow: hidden !important;
}

.cr-cart-view .cr-cart-inner .cr-cart-top {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.cr-cart-view .cr-cart-inner .cr-cart-top .cr-cart-title {
    flex: 0 0 auto !important;
    margin-bottom: 10px !important;
    padding: 15px 0 !important;
}

.cr-cart-view .cr-cart-inner .cr-cart-top ul.crcart-pro-items {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 6px !important;
    margin-bottom: 10px !important;
    max-height: calc(100vh - 220px) !important;
}

.cr-cart-view .cr-cart-inner .cr-cart-top ul.crcart-pro-items::-webkit-scrollbar {
    width: 6px;
}

.cr-cart-view .cr-cart-inner .cr-cart-top ul.crcart-pro-items::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.cr-cart-view .cr-cart-inner .cr-cart-top ul.crcart-pro-items::-webkit-scrollbar-thumb {
    background: #64b496;
    border-radius: 4px;
}

.cr-cart-view .cr-cart-inner .cr-cart-bottom {
    flex: 0 0 auto !important;
    position: static !important;
    background: #ffffff !important;
    padding-top: 10px !important;
    padding-bottom: 20px !important;
    border-top: 1px solid #e9e9e9 !important;
    top: 0 !important;
    margin-top: auto !important;
}

/* Header count badges - anchored cleanly above icon with spacing */
.cr-right-bar-item { 
    position: relative !important; 
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.cr-icon-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 2px !important;
}

.cr-right-bar-item span.cr-badge,
.cr-icon-wrap span.cr-badge {
    position: absolute !important;
    top: -10px !important;
    right: -6px !important;
    left: auto !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    border-radius: 50% !important;
    background: #64b496 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    line-height: 17px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    z-index: 5 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}
.cr-right-bar-item span.cr-badge.is-empty,
.cr-icon-wrap span.cr-badge.is-empty { display: none !important; }



/* ------------------- order placed success overlay ------------------- */
.cr-order-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: cr-fade-in 0.2s ease-out;
}
.cr-order-success-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: cr-pop-in 0.25s ease-out;
}
.cr-order-success-icon i {
    font-size: 64px;
    color: #16a34a;
    line-height: 1;
}
.cr-order-success-card h3 {
    margin: 14px 0 8px;
    font-weight: 700;
    color: #0f172a;
}
.cr-order-success-no { margin: 0 0 6px; color: #334155; }
.cr-order-success-sub { margin: 0 0 20px; color: #64748b; font-size: 14px; }
.cr-order-success-card .cr-button { display: inline-block; }
@keyframes cr-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cr-pop-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---- mobile cart drawer: use dynamic vh so the Checkout button is never
        pushed below the browser chrome (100vh overshoots on mobile) ---- */
@supports (height: 100dvh) {
    .cr-cart-view,
    .cr-cart-view .cr-cart-inner {
        height: 100dvh !important;
        max-height: 100dvh !important;
    }
    .cr-cart-view .cr-cart-inner .cr-cart-top ul.crcart-pro-items {
        max-height: calc(100dvh - 240px) !important;
    }
}

/* ------- Mobile Cart Card Layout (under 768px) ------- */
@media (max-width: 767.98px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .section-cart {
        padding-top: 30px !important;
        padding-bottom: 40px !important;
        overflow-x: hidden !important;
    }

    .cr-cart-content,
    .cr-cart-content > .row,
    .cr-cart-content .row > form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .cr-table-content {
        overflow: visible !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
    }

    .cr-table-content table {
        display: block !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
    }

    /* Hide desktop table header on mobile */
    .cr-table-content table thead {
        display: none !important;
    }

    .cr-table-content table tbody {
        display: block !important;
        width: 100% !important;
    }

    /* Each item as a clean mobile card */
    .cr-table-content table tbody tr {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        position: relative !important;
        padding: 14px 12px !important;
        margin-bottom: 12px !important;
        border: 1px solid #e9e9e9 !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        box-sizing: border-box !important;
    }

    /* Checkbox cell */
    .cr-table-content table tbody tr td.cr-cart-select {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        width: 28px !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Product name + thumbnail cell */
    .cr-table-content table tbody tr td.cr-cart-name {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 calc(100% - 36px) !important;
        width: auto !important;
        padding: 0 0 0 6px !important;
        border: none !important;
    }

    .cr-table-content table tbody tr td.cr-cart-name a {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        color: #2b2b2b !important;
        font-weight: 600 !important;
        font-size: 13.5px !important;
        line-height: 1.35 !important;
        text-decoration: none !important;
    }

    .cr-table-content table tbody tr td.cr-cart-name img.cr-cart-img {
        width: 52px !important;
        height: 52px !important;
        border-radius: 8px !important;
        object-fit: cover !important;
        border: 1px solid #f0f0f0 !important;
        margin-right: 0 !important;
        flex: 0 0 auto !important;
    }

    /* Unit price cell: hide on mobile */
    .cr-table-content table tbody tr td.cr-cart-price {
        display: none !important;
    }

    /* Bottom action row inside card: Quantity + Subtotal + Delete */
    .cr-table-content table tbody tr td.cr-cart-qty {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        margin-top: 12px !important;
        padding: 0 !important;
        border: none !important;
    }

    .cr-table-content table tbody tr td.cr-cart-qty .cart-qty-plus-minus {
        transform: scale(0.9) !important;
        transform-origin: left center !important;
        margin: 0 !important;
    }

    .cr-table-content table tbody tr td.cr-cart-subtotal {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 1 1 auto !important;
        margin-top: 12px !important;
        padding: 0 8px 0 0 !important;
        border: none !important;
        font-size: 14.5px !important;
        font-weight: 700 !important;
        color: #64b496 !important;
        text-align: right !important;
    }

    .cr-table-content table tbody tr td.cr-cart-remove {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        margin-top: 12px !important;
        padding: 0 !important;
        border: none !important;
    }

    .cr-table-content table tbody tr td.cr-cart-remove a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background: #fef2f2 !important;
        color: #ef4444 !important;
        font-size: 16px !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    .cr-table-content table tbody tr td.cr-cart-remove a:hover {
        background: #fee2e2 !important;
        color: #dc2626 !important;
    }

    /* Checkout & Continue shopping buttons */
    .cr-cart-update-bottom {
        flex-direction: column-reverse !important;
        gap: 12px !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
        padding-top: 16px !important;
    }

    .cr-cart-update-bottom a.cr-button,
    .cr-cart-update-bottom a.cr-links {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        box-sizing: border-box !important;
    }
}
