:root {
    --mkj-primary: #dd6f1d;
    --mkj-secondary: #333333;
    --mkj-radius: 8px;
    --mkj-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --mkj-section-gap: 2rem;
}

/* Typography & spacing */
.page-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.illa-cart-area,
.illa-page-content {
    padding-top: 2rem;
}

/* Buttons */
.illa-btn,
.checkout-button {
    border-radius: var(--mkj-radius);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.15s;
}

.illa-btn:hover,
.checkout-button:hover {
    opacity: 0.92;
}

/* Forms */
.form-control:focus,
.input-text:focus {
    border-color: var(--mkj-primary);
    box-shadow: 0 0 0 0.2rem rgba(221, 111, 29, 0.15);
}

/* Cart table */
.illa-cart-table th,
.illa-cart-table td {
    vertical-align: middle;
    padding: 12px 10px;
}

.illa-cart-table .product-remove {
    display: block;
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
}

.mkj-empty-cart {
    background: #fff;
    border-radius: var(--mkj-radius);
    border: 1px dashed #dee2e6;
}

.mkj-shipping-select {
    max-width: 100%;
    border-radius: var(--mkj-radius);
}

/* Checkout steps — already styled inline; reinforce tap targets */
.mkj-checkout-steps .step-item {
    min-height: 44px;
}

/* Product cards on home */
.illa-product-card,
.product-card {
    border-radius: var(--mkj-radius);
    overflow: hidden;
    box-shadow: var(--mkj-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.illa-product-card .product-thumb,
.product-card .product-thumb {
    aspect-ratio: 1;
    object-fit: cover;
}

/* Sticky order summary on checkout (desktop) */
@media (min-width: 992px) {
    .mkj-order-summary {
        position: sticky;
        top: 100px;
    }

    .illa-cart-total:not(.mkj-order-summary) {
        position: sticky;
        top: 100px;
    }
}

/* Product detail */
.product-price-wrap .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mkj-primary);
}

.product-price-wrap del {
    color: #999;
    font-size: 1rem;
}

/* Home product tabs */
.illa-woo-tab__nav .nav-link.active,
.illa-woo-tab__nav button.nav-link.active,
.illa-product-tab .nav-link.active,
.illa-product-tab button.nav-link.active {
    background-color: var(--mkj-primary) !important;
    color: #fff !important;
    border-color: var(--mkj-primary) !important;
}

.illa-woo-tab__nav .nav-link,
.illa-woo-tab__nav button.nav-link,
.illa-product-tab .nav-link,
.illa-product-tab button.nav-link {
    border-radius: var(--mkj-radius);
    min-height: 44px;
    transition: background-color 0.2s, color 0.2s;
}

/* Mobile slider spacing */
@media (max-width: 767px) {
    .illa-slider-area {
        margin-bottom: 1.5rem;
    }
}

/* Cart trigger */
.mkj-cart-trigger {
    cursor: pointer;
    z-index: 2;
    position: relative;
}

.mkj-cart-trigger:focus {
    outline: 2px solid var(--mkj-primary);
    outline-offset: 2px;
}

.illa-overlay.is-open {
    opacity: 1;
    visibility: visible;
    z-index: 1040;
    pointer-events: auto;
    background-color: rgba(0, 0, 0, 0.55);
}

.minicart-canvas {
    z-index: 1050 !important;
    background: #fff !important;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

.minicart-canvas.is-open {
    transform: translateX(0) !important;
    -webkit-transform: translateX(0) !important;
}

.minicart-canvas .header-mini-cart,
.minicart-canvas .illa-mini-cart-lists {
    background: #fff;
}

#mini-cart-panel {
    position: static;
}

body.mkj-cart-open,
body.mkj-offcanvas-open {
    overflow: hidden;
}

/*
 * Global overlay / drawer z-index stack
 * Sticky header: 100 | Overlay: 1040 | Drawers: 1050–1060
 */
.uk-sticky-fixed,
.illa-header__middle--style-3.uk-sticky-fixed {
    z-index: 100 !important;
}

.sideinfo-canvas,
.illa-offcanvas.sideinfo-canvas {
    z-index: 1055 !important;
    background: #fff !important;
}

.search-popup-wrapper.is-open {
    z-index: 1058 !important;
}

.illa-qv-wrapper.active {
    z-index: 1060 !important;
}

/* Page loader — centered overlay */
.mkj-page-loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
}

/* Mobile-first header */
@media (max-width: 991px) {
    .illa-header__top:first-of-type {
        display: none;
    }

    .illa-header__top--style-2 .top-left,
    .illa-header__top--style-2 .top-right {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        justify-content: center;
        font-size: 0.8125rem;
    }

    .illa-header__top--style-2 .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .illa-header__middle .right-element {
        gap: 0.25rem;
    }

    .currency-wrapper select {
        max-width: 4.5rem;
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
        min-height: 44px;
    }

    .illa-search-trigger button,
    .illa-sideinfo button,
    .mini-cart a,
    .mkj-cart-trigger {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .illa-header__top--style-2 {
        padding: 0.35rem 0;
    }

    .illa-header__top--style-2 .lang-wrapper {
        display: none;
    }

    .cart-account-info {
        gap: 0.15rem;
    }
}

@media (max-width: 600px) {
    body {
        position: relative !important;
    }
}

/* Home category grid — 2 / 3 / 6 columns */
.illa-cat-section__style-4 .illa-woo-cat-box .thumb {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illa-cat-section__style-4 .illa-woo-cat-box .thumb img {
    width: 100%;
    max-width: 120px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .illa-cat-section__style-4 .illa-woo-cat-box .thumb img {
        max-width: 140px;
    }
}

/* Product detail — mobile gallery + layout */
@media (max-width: 991px) {
    .illa-product-details__thumb .illa-pd-tab .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .illa-product-details__thumb .illa-pd-tab .nav-link {
        flex: 0 0 auto;
    }

    .illa-product-details__thumb .illa-pd-tab .nav-link img {
        width: 64px;
        height: 64px;
        object-fit: cover;
    }

    .illa-product-details .for-total-price,
    .illa-product-details .view-btn-div {
        margin-left: 0 !important;
        margin-top: 0 !important;
        float: none !important;
    }
}

/* Container spacing scale */
@media (max-width: 991px) {
    .illa-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .illa-page-content,
    .illa-cart-area {
        padding-top: 1.5rem;
    }
}

@media (max-width: 767px) {
    :root {
        --mkj-section-gap: 1.25rem;
    }

    .illa-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Compare table scroll wrapper */
.mkj-compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mkj-compare-wrap .compare-table {
    min-width: 600px;
}

/* Responsive cart tables */
@media (max-width: 767px) {
    .illa-cart-table thead {
        display: none;
    }
    .illa-cart-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: var(--mkj-radius);
        padding: 10px;
    }
    .illa-cart-table td {
        display: block;
        text-align: right;
        padding: 6px 0;
    }
    .illa-cart-table td::before {
        content: attr(data-title);
        float: left;
        font-weight: 600;
    }
}

/* ===== Shop cart page redesign ===== */
.mkj-cart-hero {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, transparent 100%);
}

.mkj-cart-hero__meta {
    color: #666;
    font-size: 0.9375rem;
}

.mkj-cart-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mkj-primary);
    font-weight: 600;
    text-decoration: none;
}

.mkj-cart-hero__link:hover {
    opacity: 0.85;
    color: var(--mkj-primary);
}

.mkj-cart-page {
    padding-top: 0.5rem;
}

.mkj-cart-items-card {
    background: #fff;
    border-radius: var(--mkj-radius);
    box-shadow: var(--mkj-shadow);
    overflow: hidden;
}

.mkj-cart-items-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
}

.mkj-cart-items-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.mkj-cart-items-card__count {
    font-size: 0.8125rem;
    color: #888;
    background: #f5f5f5;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.mkj-cart-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.mkj-cart-item:last-child {
    border-bottom: none;
}

.mkj-cart-item__thumb {
    display: block;
    aspect-ratio: 1;
    border-radius: var(--mkj-radius);
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #eee;
}

.mkj-cart-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mkj-cart-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.mkj-cart-item__name {
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.35;
}

.mkj-cart-item__name:hover {
    color: var(--mkj-primary);
}

.mkj-cart-item__remove {
    border: none;
    background: transparent;
    color: #bbb;
    padding: 0.25rem;
    min-width: 36px;
    min-height: 36px;
    cursor: pointer;
    transition: color 0.2s;
}

.mkj-cart-item__remove:hover {
    color: #dc3545;
}

.mkj-cart-item__variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.mkj-cart-item__variant {
    font-size: 0.75rem;
    color: #666;
    background: #f7f7f7;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.mkj-cart-item__footer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.75rem 1rem;
}

.mkj-cart-item__price-old {
    display: block;
    font-size: 0.8125rem;
    color: #999;
}

.mkj-cart-item__price-current {
    font-weight: 700;
    color: var(--mkj-primary);
}

.mkj-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: var(--mkj-radius);
    overflow: hidden;
}

.mkj-qty-btn {
    border: none;
    background: #f8f8f8;
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

.mkj-qty-btn:hover {
    background: #eee;
}

.mkj-qty-input {
    width: 44px;
    height: 36px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-weight: 600;
    -moz-appearance: textfield;
}

.mkj-qty-input::-webkit-outer-spin-button,
.mkj-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mkj-cart-item__line-total {
    text-align: right;
    min-width: 5rem;
}

.mkj-cart-item__line-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
}

.mkj-cart-shipping-card {
    background: #fff;
    border-radius: var(--mkj-radius);
    box-shadow: var(--mkj-shadow);
    padding: 1.25rem;
}

.mkj-cart-shipping-card__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
    color: #333;
}

.mkj-empty-cart--page {
    background: #fff;
    border-radius: var(--mkj-radius);
    box-shadow: var(--mkj-shadow);
}

.mkj-empty-cart__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(221, 111, 29, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--mkj-primary);
}

.mkj-order-summary__card {
    background: #fff;
    border-radius: var(--mkj-radius);
    box-shadow: var(--mkj-shadow);
    padding: 1.5rem;
}

.mkj-order-summary__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
}

.mkj-order-summary__lines {
    margin: 0 0 1rem;
}

.mkj-order-summary__line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.mkj-order-summary__line dt {
    margin: 0;
    font-weight: 500;
    color: #555;
    font-size: 0.9375rem;
}

.mkj-order-summary__line dd {
    margin: 0;
    font-weight: 600;
    color: #222;
}

.mkj-order-summary__line--discount dd {
    color: #28a745;
}

.mkj-coupon-box {
    margin: 1rem 0;
    padding: 1rem;
    background: #fafafa;
    border-radius: var(--mkj-radius);
    border: 1px dashed #ddd;
}

.mkj-coupon-box__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

.mkj-coupon-box__row {
    display: flex;
    gap: 0.5rem;
}

.mkj-coupon-input {
    flex: 1;
    min-height: 44px;
    border-radius: var(--mkj-radius);
}

.mkj-coupon-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding-left: 1rem;
    padding-right: 1rem;
}

.mkj-order-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-top: 0.5rem;
    border-top: 2px solid #eee;
    font-size: 1.125rem;
}

.mkj-order-summary__total strong {
    font-size: 1.5rem;
    color: var(--mkj-primary);
}

.mkj-checkout-btn {
    width: 100%;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.mkj-order-summary__secondary {
    display: block;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
    text-decoration: none;
}

.mkj-order-summary__secondary:hover {
    color: var(--mkj-primary);
}

.mkj-trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.mkj-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    background: #fff;
    border-radius: var(--mkj-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    line-height: 1.3;
}

.mkj-trust-badge img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

@media (min-width: 992px) {
    .mkj-order-summary {
        position: sticky;
        top: 100px;
    }

    .mkj-trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .mkj-cart-item {
        grid-template-columns: 72px 1fr;
        padding: 1rem;
    }

    .mkj-cart-item__footer {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .mkj-cart-item__price {
        grid-column: 1 / -1;
    }

    .mkj-cart-item__line-total {
        text-align: right;
    }

    .mkj-coupon-box__row {
        flex-direction: column;
    }

    .mkj-coupon-btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .mkj-cart-item__footer {
        grid-template-columns: 1fr;
    }

    .mkj-cart-item__line-total {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Footer payment methods strip */
.mkj-footer-payments img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}
