/* =========================================================
   JKWI SHOPPING & RENTING
   PREMIUM MARKETPLACE CSS
   Compact • Modern • Animated • Responsive
========================================================= */
/* =========================================================
   VARIABLES
========================================================= */
:root {
    --jkwi-blue: #009FE3;
    --jkwi-blue-dark: #008DCC;
    --market-black: #111827;
    --market-dark: #1F2937;
    --market-text: #374151;
    --market-muted: #7A8490;
    --market-bg: #F6F8FA;
    --market-white: #FFFFFF;
    --market-border: #E4E8EC;
    --market-green: #168A58;
    --shadow-small: 0 4px 15px rgba(0, 0, 0, .05);
    --shadow-medium: 0 12px 35px rgba(0, 0, 0, .08);
}
/* =========================================================
   RESET
========================================================= */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--market-bg);
    color: var(--market-black);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}
button,
input,
select {
    font-family: inherit;
}
button {
    cursor: pointer;
}
img {
    display: block;
    max-width: 100%;
}
/* =========================================================
   CONTAINER
========================================================= */
.market-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}
/* =========================================================
   NAVIGATION
========================================================= */
.market-nav {
    position: sticky;
    top: 0;
    z-index: 1500;
    height: 58px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--market-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.market-nav-inner {
    position: relative;
    width: min(1200px, 92%);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* =========================================================
   LOGO
========================================================= */
.market-logo {
    width: 90px;
    height: 38px;
    display: flex;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}
.market-logo img {
    width: 78px;
    max-width: 78px;
    max-height: 32px;
    object-fit: contain;
    object-position: left center;
}
/* =========================================================
   CENTER NAV BRAND
========================================================= */
.market-nav-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #555;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}
.market-nav-brand span {
    color: var(--jkwi-blue);
    margin-right: 5px;
}
/* =========================================================
   NAV ACTIONS
========================================================= */
.market-nav-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}
.market-home {
    color: #666;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}
.market-home:hover {
    color: var(--jkwi-blue);
}
/* =========================================================
   CART BUTTON
========================================================= */
.market-cart-open {
    position: relative;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid var(--market-border);
    border-radius: 5px;
    background: #fff;
    color: #444;
    font-size: 9px;
    font-weight: 800;
    transition:
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}
.market-cart-open:hover {
    border-color: var(--jkwi-blue);
    color: var(--jkwi-blue);
}
.market-cart-open:active {
    transform: scale(.95);
}
/* =========================================================
   CART BADGE
========================================================= */
.cart-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--jkwi-blue);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
}
.cart-badge.bump {
    animation: cartBadgeBounce .45s ease;
}
@keyframes cartBadgeBounce {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.45);
    }
    65% {
        transform: scale(.88);
    }
    100% {
        transform: scale(1);
    }
}
/* =========================================================
   MARKET HEADER
========================================================= */
.market-header {
    background: #fff;
    border-bottom: 1px solid var(--market-border);
    padding: 27px 0 23px;
}
.market-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}
.market-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--jkwi-blue);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 2px;
}
.market-heading h1 {
    margin: 0 0 6px;
    font-size: 29px;
    line-height: 1.1;
    letter-spacing: -.7px;
}
.market-heading h1 span {
    color: var(--jkwi-blue);
}
.market-heading p {
    max-width: 600px;
    margin: 0;
    color: var(--market-muted);
    font-size: 11px;
    line-height: 1.55;
}
/* =========================================================
   SHOP / RENT MODE
========================================================= */
.market-mode {
    display: flex;
    align-items: center;
    padding: 3px;
    background: #F0F3F5;
    border-radius: 7px;
    flex-shrink: 0;
}
.market-mode-btn {
    min-width: 65px;
    min-height: 34px;
    padding: 0 13px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #7B838B;
    font-size: 9px;
    font-weight: 800;
    transition:
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}
.market-mode-btn:hover {
    color: var(--jkwi-blue);
}
.market-mode-btn.active {
    background: #fff;
    color: var(--jkwi-blue);
    box-shadow: var(--shadow-small);
}
.market-mode-btn:active {
    transform: scale(.96);
}
/* =========================================================
   SEARCH TOOLS
========================================================= */
.market-tools {
    padding: 12px 0;
    background: var(--market-bg);
}
.market-tools-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 150px;
    gap: 8px;
}
/* =========================================================
   SEARCH
========================================================= */
.market-search {
    height: 37px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--market-border);
    border-radius: 5px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}
.market-search:focus-within {
    border-color: var(--jkwi-blue);
    box-shadow:
        0 0 0 3px rgba(0, 159, 227, .08);
}
.search-icon {
    padding-left: 10px;
    color: #89919A;
    font-size: 9px;
    font-weight: 700;
}
.market-search input {
    width: 100%;
    height: 100%;
    padding: 0 9px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--market-black);
    font-size: 10px;
}
.market-search input::placeholder {
    color: #A1A8AF;
}
.clear-search {
    width: 27px;
    height: 27px;
    margin-right: 4px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #9BA2A9;
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity .2s ease,
        color .2s ease,
        background .2s ease;
}
.market-search.has-value .clear-search {
    opacity: 1;
    pointer-events: auto;
}
.clear-search:hover {
    background: #F2F4F5;
    color: var(--jkwi-blue);
}
/* =========================================================
   SELECTS
========================================================= */
.market-select {
    width: 100%;
    height: 37px;
    padding: 0 10px;
    border: 1px solid var(--market-border);
    border-radius: 5px;
    outline: none;
    background: #fff;
    color: #555;
    font-size: 9px;
    cursor: pointer;
    transition: border-color .2s ease;
}
.market-select:focus {
    border-color: var(--jkwi-blue);
}
/* =========================================================
   CATEGORIES
========================================================= */
.market-categories {
    padding: 6px 0 13px;
    background: var(--market-bg);
}
.market-category-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 9px;
}
.market-category-top span {
    color: var(--jkwi-blue);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.5px;
}
.market-category-top h2 {
    margin: 3px 0 0;
    font-size: 17px;
    line-height: 1.2;
}
.market-category-top small {
    color: #969DA5;
    font-size: 9px;
}
.market-category-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.market-category {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--market-border);
    border-radius: 5px;
    background: #fff;
    color: #666;
    font-size: 9px;
    font-weight: 800;
    transition:
        border-color .2s ease,
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}
.market-category:hover {
    border-color: var(--jkwi-blue);
    color: var(--jkwi-blue);
}
.market-category:active {
    transform: scale(.96);
}
.market-category.active {
    border-color: var(--jkwi-blue);
    background: rgba(0, 159, 227, .06);
    color: var(--jkwi-blue);
}
/* =========================================================
   PRODUCTS
========================================================= */
.market-products {
    padding: 3px 0 55px;
    background: var(--market-bg);
}
.market-product-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 11px;
}
/* =========================================================
   PRODUCT CARD
========================================================= */
.market-product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--market-border);
    border-radius: 7px;
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}
.market-product-card:hover {
    transform: translateY(-3px);
    border-color: #B9E5F6;
    box-shadow: var(--shadow-medium);
}
/* =========================================================
   PRODUCT IMAGE
========================================================= */
.market-product-image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #E9EDF0;
}
.market-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform .5s cubic-bezier(.2,.8,.2,1);
}
.market-product-card:hover
.market-product-image img {
    transform: scale(1.06);
}
/* =========================================================
   PRODUCT BADGES
========================================================= */
.product-mode-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    padding: 4px 7px;
    border-radius: 4px;
    background: var(--jkwi-blue);
    color: #fff;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .5px;
}
.product-availability {
    position: absolute;
    right: 7px;
    bottom: 7px;
    padding: 4px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .94);
    color: var(--market-green);
    font-size: 7px;
    font-weight: 800;
}
/* =========================================================
   PRODUCT CONTENT
========================================================= */
.market-product-content {
    padding: 10px;
}
.market-product-category {
    display: block;
    overflow: hidden;
    color: var(--jkwi-blue);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .7px;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.market-product-content h3 {
    margin: 4px 0;
    overflow: hidden;
    color: var(--market-black);
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.market-product-description {
    min-height: 25px;
    margin: 0 0 9px;
    overflow: hidden;
    color: var(--market-muted);
    font-size: 8px;
    line-height: 1.45;
}
/* =========================================================
   PRODUCT FOOTER
========================================================= */
.market-product-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
}
.market-product-price small {
    display: block;
    color: #9AA1A8;
    font-size: 7px;
}
.market-product-price strong {
    display: block;
    margin-top: 2px;
    color: var(--market-black);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
/* =========================================================
   PRODUCT BUTTON
========================================================= */
.product-add-btn {
    position: relative;
    flex-shrink: 0;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid var(--jkwi-blue);
    border-radius: 4px;
    background: var(--jkwi-blue);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    overflow: hidden;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}
.product-add-btn:hover {
    background: var(--jkwi-blue-dark);
    border-color: var(--jkwi-blue-dark);
}
.product-add-btn:active {
    transform: scale(.92);
}
.product-add-btn.added {
    background: var(--market-black);
    border-color: var(--market-black);
}
.product-add-btn.cancel {
    background: #fff;
    border-color: #D9DEE3;
    color: #555;
}
.product-add-btn.cancel:hover {
    border-color: var(--jkwi-blue);
    color: var(--jkwi-blue);
}
/* =========================================================
   ADD ANIMATION
========================================================= */
.market-product-card.cart-added {
    animation: productAdded .45s ease;
}
@keyframes productAdded {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(.97);
    }
    55% {
        transform: scale(1.015);
    }
    100% {
        transform: scale(1);
    }
}
/* =========================================================
   ADDED CHECK
========================================================= */
.product-added-check {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--jkwi-blue);
    font-size: 12px;
    font-weight: 900;
    box-shadow:
        0 5px 15px rgba(0,0,0,.16);
    animation: checkPop .35s cubic-bezier(.2,.9,.3,1);
}
@keyframes checkPop {
    0% {
        opacity: 0;
        transform: scale(.2);
    }
    70% {
        opacity: 1;
        transform: scale(1.18);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
/* =========================================================
   QUICK VIEW BUTTON
========================================================= */
.product-view-btn {
    width: 100%;
    margin-top: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8A939C;
    font-size: 8px;
    font-weight: 700;
    text-align: left;
    transition: color .2s ease;
}
.product-view-btn:hover {
    color: var(--jkwi-blue);
}
/* =========================================================
   EMPTY STATE
========================================================= */
.market-empty {
    padding: 50px 20px;
    background: #fff;
    border: 1px solid var(--market-border);
    border-radius: 7px;
    text-align: center;
}
.market-empty .empty-icon {
    margin-bottom: 8px;
    color: var(--jkwi-blue);
    font-size: 24px;
    font-weight: 300;
}
.market-empty h3 {
    margin: 0 0 5px;
    font-size: 15px;
}
.market-empty p {
    margin: 0 0 14px;
    color: #8B949C;
    font-size: 10px;
}
.market-empty button {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--jkwi-blue);
    border-radius: 4px;
    background: var(--jkwi-blue);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
}
/* =========================================================
   CART OVERLAY
========================================================= */
.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1998;
    background: rgba(10, 18, 27, .42);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .28s ease,
        visibility .28s ease;
    backdrop-filter: blur(2px);
}
.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}
/* =========================================================
   CART DRAWER
========================================================= */
.market-cart {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1999;
    width: min(410px, 94vw);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    transform: translateX(105%);
    transition:
        transform .38s cubic-bezier(.2,.8,.2,1);
    box-shadow:
        -15px 0 45px rgba(0,0,0,.12);
}
.market-cart.open {
    transform: translateX(0);
}
/* =========================================================
   CART HEADER
========================================================= */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px;
    border-bottom: 1px solid var(--market-border);
}
.cart-header span {
    color: var(--jkwi-blue);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.5px;
}
.cart-header h2 {
    margin: 3px 0 0;
    font-size: 19px;
}
.cart-close {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #555;
    font-size: 22px;
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}
.cart-close:hover {
    background: #F1F3F4;
    color: var(--jkwi-blue);
}
.cart-close:active {
    transform: rotate(90deg);
}
/* =========================================================
   CART MODE INFO
========================================================= */
.cart-mode-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #F8FAFB;
    border-bottom: 1px solid #EEF0F2;
}
.cart-mode-info span {
    color: #555;
    font-size: 9px;
    font-weight: 800;
}
.cart-mode-info small {
    color: #929AA2;
    font-size: 8px;
}
/* =========================================================
   CART BODY
========================================================= */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 5px 15px;
}
/* =========================================================
   EMPTY CART
========================================================= */
.cart-empty {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}
.cart-empty strong {
    font-size: 12px;
}
.cart-empty span {
    color: #9099A1;
    font-size: 9px;
}
/* =========================================================
   CART ITEM
========================================================= */
.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #EEF0F2;
    animation: cartItemIn .3s ease;
}
@keyframes cartItemIn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.cart-item.removing {
    animation: cartItemOut .25s ease forwards;
}
@keyframes cartItemOut {
    to {
        opacity: 0;
        transform: translateX(25px);
        height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}
.cart-item-image {
    width: 65px;
    height: 58px;
    overflow: hidden;
    border-radius: 5px;
    background: #E9EDF0;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-main {
    min-width: 0;
}
.cart-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 7px;
}
.cart-item-name {
    overflow: hidden;
    color: var(--market-black);
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cart-item-price {
    flex-shrink: 0;
    color: var(--market-black);
    font-size: 10px;
    font-weight: 900;
}
.cart-item-info {
    margin-top: 3px;
    color: #89929B;
    font-size: 8px;
}
/* =========================================================
   CART CONTROLS
========================================================= */
.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.cart-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--market-border);
    border-radius: 4px;
    overflow: hidden;
}
.cart-quantity button {
    width: 24px;
    height: 23px;
    border: 0;
    background: #fff;
    color: #555;
    font-size: 12px;
    transition:
        background .2s ease,
        color .2s ease;
}
.cart-quantity button:hover {
    background: #F2F5F6;
    color: var(--jkwi-blue);
}
.cart-quantity span {
    min-width: 25px;
    color: #333;
    font-size: 8px;
    font-weight: 800;
    text-align: center;
}
.cart-remove {
    padding: 0;
    border: 0;
    background: transparent;
    color: #A0A7AE;
    font-size: 8px;
    font-weight: 700;
}
.cart-remove:hover {
    color: #D94A4A;
}
/* =========================================================
   CART FOOTER
========================================================= */
.cart-footer {
    padding: 14px;
    background: #fff;
    border-top: 1px solid var(--market-border);
}
.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}
.cart-summary-row span {
    color: #666;
    font-size: 10px;
}
.cart-summary-row strong {
    color: var(--market-black);
    font-size: 17px;
}
.cart-summary-note {
    margin-bottom: 11px;
    color: #9AA1A8;
    font-size: 7px;
    line-height: 1.4;
}
.checkout-button {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 5px;
    background: var(--jkwi-blue);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}
.checkout-button:hover {
    background: var(--jkwi-blue-dark);
    box-shadow:
        0 7px 20px rgba(0,159,227,.2);
}
.checkout-button:active {
    transform: scale(.985);
}
.checkout-button span {
    font-size: 13px;
}
/* =========================================================
   QUICK VIEW
========================================================= */
.quick-view-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10,18,27,.55);
    backdrop-filter: blur(5px);
    animation: overlayIn .2s ease;
}
.quick-view-overlay[hidden],
.rental-overlay[hidden] {
    display: none;
}
@keyframes overlayIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.quick-view {
    position: relative;
    width: min(720px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 25px 70px rgba(0,0,0,.2);
    animation: modalIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.quick-view-close,
.rental-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    z-index: 2;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: #555;
    font-size: 20px;
    box-shadow: var(--shadow-small);
}
.quick-view-close:hover,
.rental-close:hover {
    color: var(--jkwi-blue);
}
/* =========================================================
   QUICK VIEW CONTENT
========================================================= */
.quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.quick-view-image {
    min-height: 360px;
    background: #E9EDF0;
}
.quick-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quick-view-info {
    padding: 28px 25px;
}
.quick-view-info .market-eyebrow {
    margin-bottom: 8px;
}
.quick-view-info h2 {
    margin: 0 0 8px;
    font-size: 24px;
}
.quick-view-info p {
    margin: 0 0 15px;
    color: #78828B;
    font-size: 10px;
    line-height: 1.6;
}
.quick-view-price {
    margin-bottom: 15px;
}
.quick-view-price small {
    display: block;
    color: #9AA1A8;
    font-size: 8px;
}
.quick-view-price strong {
    display: block;
    margin-top: 3px;
    font-size: 21px;
}
.quick-view-add {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 5px;
    background: var(--jkwi-blue);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
}
/* =========================================================
   RENTAL MODAL
========================================================= */
.rental-overlay {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10,18,27,.55);
    backdrop-filter: blur(5px);
    animation: overlayIn .2s ease;
}
.rental-modal {
    position: relative;
    width: min(420px, 100%);
    padding: 27px;
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 25px 70px rgba(0,0,0,.2);
    animation: modalIn .35s cubic-bezier(.2,.8,.2,1);
}
.rental-modal h2 {
    margin: 0 0 7px;
    font-size: 21px;
}
.rental-modal > p {
    margin: 0 0 18px;
    color: #7B858E;
    font-size: 10px;
    line-height: 1.5;
}
.rental-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-bottom: 15px;
}
.rental-option {
    min-height: 65px;
    padding: 9px;
    border: 1px solid var(--market-border);
    border-radius: 5px;
    background: #fff;
    text-align: left;
    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}
.rental-option:hover {
    border-color: var(--jkwi-blue);
}
.rental-option.active {
    border-color: var(--jkwi-blue);
    background: rgba(0,159,227,.05);
}
.rental-option:active {
    transform: scale(.97);
}
.rental-option strong {
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
}
.rental-option span {
    color: #89929B;
    font-size: 7px;
}
.rental-confirm {
    width: 100%;
    min-height: 39px;
    border: 0;
    border-radius: 5px;
    background: var(--jkwi-blue);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
}
/* =========================================================
   TOAST
========================================================= */
.market-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 3000;
    min-width: 235px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--market-border);
    border-radius: 6px;
    background: rgba(255,255,255,.97);
    box-shadow: var(--shadow-medium);
    transform: translateY(120px);
    opacity: 0;
    pointer-events: none;
    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        opacity .25s ease;
}
.market-toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--jkwi-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}
.market-toast strong {
    display: block;
    margin-bottom: 2px;
    font-size: 9px;
}
.market-toast small {
    color: #89929B;
    font-size: 8px;
}
/* =========================================================
   TABLET
========================================================= */
@media (max-width: 1050px) {
    .market-container,
    .market-nav-inner {
        width: 94%;
    }
    .market-product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}
/* =========================================================
   TABLET SMALL
========================================================= */
@media (max-width: 900px) {
    .market-tools-row {
        grid-template-columns:
            minmax(0, 1fr) 150px;
    }
    .market-tools-row
    .market-select:last-child {
        display: none;
    }
    .market-product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
    .market-product-image {
        height: 135px;
    }
}
/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 650px) {
    .market-nav {
        height: 55px;
    }
    .market-nav-inner {
        width: 94%;
    }
    .market-logo {
        width: 76px;
    }
    .market-logo img {
        width: 68px;
        max-width: 68px;
        max-height: 29px;
    }
    .market-nav-brand {
        display: none;
    }
    .market-nav-actions {
        gap: 7px;
    }
    .market-home {
        font-size: 9px;
    }
    .market-cart-open {
        min-height: 29px;
        padding: 0 8px;
    }
    .market-header {
        padding: 23px 0 20px;
    }
    .market-header-content {
        display: block;
    }
    .market-heading h1 {
        font-size: 25px;
    }
    .market-heading p {
        font-size: 10px;
    }
    .market-mode {
        width: fit-content;
        margin-top: 13px;
    }
    .market-mode-btn {
        min-height: 32px;
        padding: 0 17px;
    }
    .market-tools {
        padding: 9px 0;
    }
    .market-tools-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .market-tools-row
    .market-select:last-child {
        display: block;
    }
    .market-select,
    .market-search {
        height: 35px;
    }
    .market-category-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    .market-category-list::-webkit-scrollbar {
        display: none;
    }
    .market-category {
        flex-shrink: 0;
    }
    .market-product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .market-product-image {
        height: 120px;
    }
    .market-product-content {
        padding: 9px;
    }
    .market-product-content h3 {
        font-size: 12px;
    }
    .market-product-description {
        font-size: 8px;
    }
    .market-product-price strong {
        font-size: 11px;
    }
    .product-add-btn {
        min-height: 27px;
        padding: 0 7px;
        font-size: 7px;
    }
    .quick-view-content {
        grid-template-columns: 1fr;
    }
    .quick-view-image {
        height: 230px;
        min-height: 230px;
    }
    .quick-view-info {
        padding: 20px;
    }
    .rental-modal {
        padding: 22px;
    }
    .market-toast {
        right: 10px;
        left: 10px;
        bottom: 10px;
        min-width: 0;
    }
}
/* =========================================================
   SMALL MOBILE
========================================================= */
@media (max-width: 380px) {
    .market-container,
    .market-nav-inner {
        width: 94%;
    }
    .market-logo {
        width: 68px;
    }
    .market-logo img {
        width: 61px;
        max-width: 61px;
    }
    .market-home {
        display: none;
    }
    .market-heading h1 {
        font-size: 22px;
    }
    .market-product-grid {
        gap: 6px;
    }
    .market-product-image {
        height: 105px;
    }
    .market-product-content {
        padding: 8px;
    }
    .market-product-content h3 {
        font-size: 11px;
    }
    .market-product-description {
        min-height: 22px;
        font-size: 7.5px;
    }
    .market-product-price strong {
        font-size: 10px;
    }
    .product-add-btn {
        min-height: 25px;
        padding: 0 6px;
        font-size: 6.5px;
    }
    .rental-options {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   ACCESSIBILITY
========================================================= */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--jkwi-blue);
    outline-offset: 2px;
}
/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}