:root{
    --amazon-dark:#131921;
    --amazon-blue:#232f3e;
    --amazon-soft:#37475a;
    --amazon-orange:#febd69;
    --amazon-orange-dark:#f3a847;
    --jmc-red:#d62828;
    --jmc-blue:#003b8e;
    --jmc-green:#067d62;
    --page:#eaeded;
    --text:#0f1111;
    --muted:#565959;
    --border:#d5d9d9;
    --card:#ffffff;
    --shadow:0 2px 8px rgba(15,17,17,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    margin:0;
    font-family:'Inter',Arial,sans-serif;
    color:var(--text);
    background:var(--page);
}
a{text-decoration:none}
button,input,select{font:inherit}

/* HEADER */
.market-header{position:sticky;top:0;z-index:1000}
.market-topbar{background:var(--amazon-dark);padding:8px 0}
.topbar-grid{
    display:grid;
    grid-template-columns:auto auto minmax(280px,1fr) auto auto;
    align-items:center;
    gap:10px;
}
.brand{
    min-width:170px;
    height:52px;
    display:flex;
    align-items:center;
    padding:2px 8px;
    border:1px solid transparent;
    border-radius:3px;
}
.brand:hover{border-color:#fff}
.brand img{height:46px;max-width:160px;object-fit:contain}
.delivery-chip,
.header-contact{
    color:#fff;
    min-height:48px;
    background:transparent;
    border:1px solid transparent;
    border-radius:3px;
    padding:5px 8px;
    align-items:center;
    gap:8px;
}
.delivery-chip:hover,.header-contact:hover{border-color:#fff;color:#fff}
.delivery-chip i,.header-contact i{font-size:1.15rem}
.delivery-chip span,.header-contact span{display:flex;flex-direction:column;line-height:1.08}
.delivery-chip small,.header-contact small{font-size:.68rem;color:#ccc}
.delivery-chip strong,.header-contact strong{font-size:.78rem}
.main-search{
    display:grid;
    grid-template-columns:96px 1fr 52px;
    height:46px;
    border-radius:7px;
    overflow:hidden;
    background:#fff;
}
.main-search:focus-within{box-shadow:0 0 0 3px var(--amazon-orange-dark)}
.main-search select{
    border:0;
    border-right:1px solid #ddd;
    background:#f3f3f3;
    color:#444;
    padding:0 8px;
    font-size:.76rem;
}
.main-search input{
    border:0;
    outline:0;
    padding:0 14px;
    min-width:0;
}
.main-search button{
    border:0;
    background:var(--amazon-orange);
    color:#111;
    font-size:1.25rem;
}
.main-search button:hover{background:var(--amazon-orange-dark)}
.cart-button{
    min-height:50px;
    display:flex;
    align-items:center;
    gap:6px;
    border:1px solid transparent;
    background:transparent;
    color:#fff;
    border-radius:3px;
    padding:3px 8px;
    position:relative;
    font-weight:800;
}
.cart-button:hover{border-color:#fff}
.cart-button>i{font-size:1.8rem}
.cart-count{
    position:absolute;
    top:0;
    left:27px;
    min-width:20px;
    height:20px;
    display:grid;
    place-items:center;
    border-radius:20px;
    color:var(--amazon-orange);
    background:var(--amazon-dark);
    font-weight:800;
    font-size:.85rem;
}
.cart-label{margin-top:12px;font-size:.8rem}
.market-subbar{background:var(--amazon-blue);color:#fff}
.subbar-inner{
    min-height:40px;
    display:flex;
    align-items:center;
    overflow-x:auto;
    white-space:nowrap;
}
.subbar-link{
    color:#fff;
    border:1px solid transparent;
    padding:8px 10px;
    font-size:.79rem;
    font-weight:600;
    background:transparent;
}
.subbar-link:hover{border-color:#fff;color:#fff}
.category-menu-trigger{display:flex;align-items:center;gap:6px}
.subbar-status{font-size:.72rem;color:#d5d9d9;align-items:center;gap:6px;padding-right:4px}

/* HERO */
.hero-market{padding:18px 0 0;background:linear-gradient(180deg,#c9e6ff 0,#e9eef2 75%,var(--page) 100%)}
.hero-card{
    min-height:320px;
    background:linear-gradient(135deg,#dcefff,#f5fbff);
    display:grid;
    grid-template-columns:1fr;
    border-radius:4px;
    overflow:hidden;
    box-shadow:var(--shadow);
    position:relative;
}
.hero-content{
    padding:54px clamp(24px,5vw,72px);
    max-width:900px;
    align-self:center;
    z-index:2;
}
.hero-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:var(--jmc-red);
    font-weight:800;
    font-size:.79rem;
    text-transform:uppercase;
    letter-spacing:.08em;
    margin-bottom:16px;
}
.hero-content h1{
    font-size:clamp(2.35rem,5vw,4.9rem);
    line-height:.98;
    letter-spacing:-.055em;
    font-weight:800;
    max-width:760px;
    margin:0 0 20px;
    color:#17243b;
}
.hero-content h1 span{color:var(--jmc-red)}
.hero-content p{
    max-width:670px;
    color:#4f5c6b;
    font-size:1rem;
    line-height:1.75;
    margin-bottom:24px;
}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px}
.btn-shop-primary,.btn-shop-secondary{
    min-height:46px;
    border-radius:999px;
    padding:0 20px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-weight:800;
    font-size:.86rem;
}
.btn-shop-primary{background:var(--jmc-red);color:#fff}
.btn-shop-primary:hover{background:#b91f1f;color:#fff}
.btn-shop-secondary{background:#fff;border:1px solid #c9d0d8;color:#182235}
.btn-shop-secondary:hover{color:var(--jmc-blue);border-color:var(--jmc-blue)}
.hero-trust{display:flex;flex-wrap:wrap;gap:16px;margin-top:24px;font-size:.75rem;color:#4e5c6d}
.hero-trust i{color:var(--jmc-green)}
.hero-image{position:relative;min-height:420px}
.hero-image>img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-price-card{
    position:absolute;
    right:18px;
    bottom:18px;
    background:#fff;
    box-shadow:0 7px 25px rgba(0,0,0,.18);
    border-radius:7px;
    padding:13px 15px;
    display:flex;
    align-items:center;
    gap:10px;
}
.hero-price-card i{font-size:1.4rem;color:var(--jmc-green)}
.hero-price-card small{display:block;color:#667;font-size:.67rem}
.hero-price-card strong{font-size:.8rem}

/* STATS */
.market-stats{padding:14px 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.stat-box{
    background:#fff;
    padding:18px;
    display:flex;
    align-items:center;
    gap:13px;
    box-shadow:var(--shadow);
    border-radius:5px;
}
.stat-box>i{
    width:44px;height:44px;border-radius:50%;
    display:grid;place-items:center;
    background:#f3f5f7;color:var(--jmc-blue);font-size:1.2rem;
}
.stat-box strong{display:block;font-size:1.2rem}
.stat-box span{font-size:.72rem;color:var(--muted)}

/* SECTIONS */
.category-strip-section,.catalog-section,.services-section,.stores-section{padding:18px 0}
.section-heading-row{
    display:flex;align-items:flex-end;justify-content:space-between;gap:14px;
    background:#fff;padding:20px 22px 12px;
}
.section-heading-row h2{font-size:1.4rem;font-weight:800;margin:0;color:#172033}
.section-kicker{color:var(--jmc-red);font-size:.69rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;margin-bottom:5px}
.section-description{font-size:.8rem;color:var(--muted);margin:6px 0 0}
.section-link{font-size:.78rem;font-weight:700;color:var(--jmc-blue)}
.category-strip{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:1px;
    background:#e3e6e6;
    border-top:1px solid #eee;
}
.category-card{
    border:0;background:#fff;
    min-height:125px;
    padding:18px 12px;
    text-align:center;
    cursor:pointer;
}
.category-card:hover{box-shadow:inset 0 0 0 2px var(--amazon-orange)}
.category-icon{
    width:58px;height:58px;margin:0 auto 10px;border-radius:50%;
    display:grid;place-items:center;background:#f4f6f8;color:var(--jmc-blue);font-size:1.5rem;
}
.category-card strong{display:block;font-size:.78rem}
.category-card small{font-size:.67rem;color:var(--muted)}

/* CATALOG */
.catalog-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:14px}
.catalog-sidebar{align-self:start;position:sticky;top:112px}
.filter-card{background:#fff;padding:18px;border-radius:4px;box-shadow:var(--shadow)}
.filter-title{font-weight:800;margin-bottom:18px;font-size:.95rem}
.filter-group{margin-bottom:17px}
.filter-group label{display:block;font-size:.74rem;font-weight:700;margin-bottom:6px}
.filter-group .form-select{font-size:.75rem;border-radius:4px;border-color:var(--border)}
.filter-reset,.filter-apply-button{
    width:100%;min-height:40px;border:1px solid #a2a6ac;border-radius:7px;
    background:#fff;font-weight:700;font-size:.75rem;
}
.filter-apply-button{background:var(--amazon-orange);border-color:var(--amazon-orange-dark);margin-top:8px}
.catalog-main{min-width:0}
.catalog-head{
    min-height:58px;
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    background:#fff;padding:10px 14px;margin-bottom:1px;border-radius:4px 4px 0 0;
}
.catalog-count{font-size:.86rem}
.catalog-updated{font-size:.68rem;color:var(--muted);margin-top:3px}
.mobile-filter-button{border:1px solid #a2a6ac;background:#fff;border-radius:7px;padding:8px 11px;font-size:.75rem;font-weight:700}

/* PRODUCT CARD */
.product-card{
    height:100%;
    background:#fff;
    border:1px solid #e3e6e6;
    border-radius:4px;
    overflow:hidden;
    position:relative;
    transition:box-shadow .15s ease;
}
.product-card:hover{box-shadow:0 4px 14px rgba(15,17,17,.17)}
.product-image{
    position:relative;
    height:220px;
    background:#f7f8f8;
    display:grid;place-items:center;
    overflow:hidden;
}
.product-image img{width:100%;height:100%;object-fit:contain;padding:14px}
.product-placeholder{
    width:90px;height:90px;border-radius:50%;
    background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.08);
    display:grid;place-items:center;color:#8d99a6;font-size:2rem;
}
.product-status{
    position:absolute;left:10px;top:10px;
    padding:5px 8px;border-radius:3px;font-size:.62rem;font-weight:800;
}
.product-status.available{background:#e7f6ef;color:#067d62}
.product-status.unavailable{background:#fce8e8;color:#b12704}
.product-favorite{
    position:absolute;right:10px;top:10px;
    background:#fff4d7;color:#8a5a00;border-radius:3px;
    font-size:.6rem;font-weight:800;padding:5px 7px;
}
.product-body{padding:13px}
.product-category{font-size:.63rem;color:#007185;font-weight:700;margin-bottom:5px;text-transform:uppercase}
.product-name{
    font-size:.88rem;line-height:1.35;font-weight:600;color:#0f1111;
    margin:0 0 7px;min-height:38px;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.product-name:hover{color:#c7511f}
.product-description{
    font-size:.7rem;line-height:1.45;color:#565959;min-height:31px;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.product-code{font-size:.63rem;color:#737373;margin-top:7px}
.price-block{margin-top:10px}
.price-main{font-size:1.32rem;font-weight:700;line-height:1;color:#0f1111}
.price-main .currency{font-size:.72rem;font-weight:600;vertical-align:top;margin-right:2px}
.price-sub{font-size:.65rem;color:#565959;margin-top:4px}
.case-price{
    margin-top:7px;padding-top:7px;border-top:1px solid #eee;
    font-size:.68rem;color:#333;
}
.product-actions{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:12px}
.add-cart-button{
    min-height:36px;border:1px solid #fcd200;background:#ffd814;border-radius:999px;
    font-size:.72rem;font-weight:700;padding:0 10px;
}
.add-cart-button:hover{background:#f7ca00}
.detail-button{
    width:38px;height:36px;border-radius:999px;border:1px solid #d5d9d9;background:#fff;color:#333;
}
.detail-button:hover{background:#f7fafa}
.loading-state,.empty-state{
    min-height:250px;background:#fff;display:flex;flex-direction:column;
    align-items:center;justify-content:center;text-align:center;gap:8px;padding:25px;
    color:#565959;
}
.loading-state .spinner-border{color:var(--jmc-blue)}
.loading-state strong,.empty-state strong{color:#111}
.load-more-wrap{text-align:center;background:#fff;padding:18px}
.load-more-button{
    min-height:40px;border:1px solid #a2a6ac;background:#fff;border-radius:8px;
    padding:0 25px;font-size:.78rem;font-weight:700;
}

/* SERVICES */
.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#e3e6e6}
.service-card{background:#fff;padding:24px}
.service-icon{
    width:48px;height:48px;border-radius:50%;display:grid;place-items:center;
    background:#fff0ed;color:var(--jmc-red);font-size:1.25rem;margin-bottom:14px;
}
.service-card h3{font-size:.9rem;font-weight:800}
.service-card p{font-size:.73rem;line-height:1.6;color:var(--muted);margin:0}

/* STORES */
.stores-section{padding-bottom:30px}
.store-card{height:100%;background:#fff;border-radius:4px;padding:20px;box-shadow:var(--shadow)}
.store-type{font-size:.62rem;color:var(--jmc-red);font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.store-name{font-size:.95rem;font-weight:800;margin-top:4px}
.store-line{display:flex;gap:8px;font-size:.71rem;color:#565959;margin-top:11px;line-height:1.5}
.store-line i{color:var(--jmc-blue)}

/* FOOTER */
.market-footer{background:var(--amazon-blue);color:#fff;padding:38px 0 16px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}
.footer-logo{height:58px;max-width:180px;object-fit:contain}
.footer-grid p{font-size:.72rem;color:#d5d9d9;max-width:480px;margin:13px 0 0}
.footer-grid h4{font-size:.82rem;font-weight:800;margin-bottom:12px}
.footer-grid a{display:block;color:#ddd;font-size:.72rem;margin:7px 0}
.footer-grid a:hover{text-decoration:underline;color:#fff}
.footer-bottom{
    margin-top:28px;padding-top:15px;border-top:1px solid rgba(255,255,255,.15);
    display:flex;justify-content:space-between;gap:16px;color:#bbb;font-size:.65rem;
}

/* CART */
.cart-canvas{width:min(440px,94vw)!important}
.cart-canvas-header{background:var(--amazon-dark);color:#fff}
.cart-canvas-header small{color:#bbb}
.cart-canvas-header h5{font-weight:800}
.cart-line{border-bottom:1px solid #e7e7e7;padding:14px 0}
.cart-line-title{font-size:.8rem;font-weight:700;line-height:1.35}
.cart-line-code{font-size:.65rem;color:#666;margin-top:3px}
.cart-line-price{font-size:.72rem;color:#b12704;font-weight:700;margin-top:6px}
.cart-line-controls{display:flex;align-items:center;justify-content:space-between;margin-top:10px}
.qty-control{display:inline-flex;align-items:center;border:1px solid #888c8c;border-radius:7px;overflow:hidden}
.qty-control button{width:32px;height:31px;border:0;background:#f0f2f2}
.qty-control span{min-width:34px;text-align:center;font-size:.76rem;font-weight:800}
.cart-remove{border:0;background:transparent;color:#007185;font-size:.68rem}
.cart-summary{border-top:1px solid #ddd;padding-top:15px}
.cart-summary-line{display:flex;justify-content:space-between;font-size:.8rem;margin-bottom:10px}
.cart-summary p{font-size:.66rem;line-height:1.5;color:#565959}
.whatsapp-order-button{
    width:100%;border:0;border-radius:8px;min-height:44px;background:#25d366;color:#072c16;
    font-weight:800;font-size:.78rem;
}
.clear-cart-button{
    width:100%;border:0;background:transparent;color:#007185;font-size:.72rem;margin-top:10px;
}

/* PRODUCT MODAL */
.product-modal-content{border:0;border-radius:6px;overflow:hidden}
.product-modal-grid{display:grid;grid-template-columns:1fr 1.1fr}
.product-modal-media{min-height:480px;background:#f7f8f8;display:grid;place-items:center}
.product-modal-media img{width:100%;height:100%;max-height:580px;object-fit:contain;padding:26px}
.product-modal-info{padding:30px}
.product-modal-category{font-size:.7rem;color:#007185;font-weight:700;text-transform:uppercase}
.product-modal-info h2{font-size:1.65rem;font-weight:700;margin:8px 0 8px}
.product-modal-code{font-size:.7rem;color:#666}
.product-modal-description{font-size:.8rem;line-height:1.7;color:#444;margin-top:18px}
.product-modal-specs{border-top:1px solid #eee;margin-top:20px;padding-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.product-modal-spec small{display:block;color:#777;font-size:.64rem}
.product-modal-spec strong{font-size:.75rem}
.product-modal-buybox{
    margin-top:22px;border:1px solid #d5d9d9;border-radius:8px;padding:16px;
}
.product-modal-buybox .price-main{font-size:1.6rem}
.product-modal-add{
    width:100%;min-height:42px;border:1px solid #fcd200;background:#ffd814;border-radius:999px;
    font-weight:800;font-size:.76rem;margin-top:14px;
}
.close-product-modal{
    position:absolute;right:16px;top:16px;z-index:4;width:36px;height:36px;border-radius:50%;
    border:1px solid #d5d9d9;background:#fff;
}

/* RESPONSIVE */
@media(max-width:1199.98px){
    .topbar-grid{grid-template-columns:auto minmax(280px,1fr) auto auto}
    .delivery-chip{display:none!important}
    .category-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:991.98px){
    .market-header{position:relative}
    .topbar-grid{grid-template-columns:auto 1fr auto}
    .header-contact{display:none!important}
    .main-search{grid-column:1/-1;grid-row:2;grid-template-columns:85px 1fr 48px;width:100%}
    .catalog-layout{display:block}
    .catalog-sidebar{display:none}
    .hero-card{grid-template-columns:1fr}
    .hero-image{min-height:300px}
    .hero-content{padding:38px 28px}
    .stats-grid{grid-template-columns:repeat(2,1fr)}
    .service-grid{grid-template-columns:repeat(2,1fr)}
    .footer-grid{grid-template-columns:1fr 1fr}
    .product-modal-grid{grid-template-columns:1fr}
    .product-modal-media{min-height:300px}
}
@media(max-width:767.98px){
    .category-strip{display:flex;overflow-x:auto}
    .category-card{min-width:155px}
    .product-image{height:180px}
    .footer-grid{grid-template-columns:1fr}
    .footer-bottom{flex-direction:column}
}
@media(max-width:575.98px){
    .brand{min-width:130px}
    .brand img{height:40px;max-width:125px}
    .cart-label{display:none!important}
    .main-search{grid-template-columns:70px 1fr 45px}
    .main-search select{font-size:.66rem}
    .hero-market{padding-top:8px}
    .hero-card{border-radius:0}
    .hero-content{padding:30px 20px}
    .hero-content h1{font-size:2.35rem}
    .hero-image{min-height:240px}
    .hero-trust{gap:10px;font-size:.68rem}
    .stats-grid{gap:6px}
    .stat-box{padding:14px 10px}
    .stat-box>i{width:38px;height:38px}
    .section-heading-row{padding:17px 14px 10px}
    .section-heading-row h2{font-size:1.15rem}
    .service-grid{grid-template-columns:1fr}
    .product-image{height:155px}
    .product-body{padding:10px}
    .product-name{font-size:.78rem;min-height:34px}
    .product-description{font-size:.65rem}
    .price-main{font-size:1.1rem}
    .add-cart-button{font-size:.65rem;padding:0 8px}
}
