/* Homepage only: marketplace rhythm, using Camzy's existing theme. */
body.home-market { background:#fff; }
.home-market main { overflow:clip; }
.home-market main > .mobile-shortcuts { display:none; }
.home-market .section { padding-block:28px; background:#fff; }
.home-market .section-header { margin-bottom:24px; }
.home-market .section-title { color:var(--text-primary); font-size:21px; font-weight:700; }
.home-market .section-title::before, .home-market .section-title::after { display:none; }
.home-market .section-link { font-size:12px; color:var(--color-primary); }
.home-market #hero-slideshow { --hero-height:400px; position:relative; width:100%; margin:0; border-radius:0 0 8px 8px; overflow:hidden; }
.home-market #hero-slideshow .hero__slides,
.home-market #hero-slideshow .hero__slide .container { height:var(--hero-height); min-height:var(--hero-height); }
.home-market .hero__slide { overflow:hidden; }
.home-market .hero__slide:not(.is-active) { pointer-events:none; }
.home-market .hero__slide.is-active { z-index:2; }
.home-market .hero__slide--catalog-photo .hero__slide-bg::after { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 27% 50%,rgba(255,255,255,.18),transparent 45%); }
.home-market .hero__slide--catalog-photo .hero__slide-image { left:26%!important; top:50%; width:min(42%,540px)!important; height:94%!important; opacity:1; filter:drop-shadow(0 14px 20px rgba(0,0,0,.28)); }
.home-market .hero__slide--catalog-photo .hero__slide-image picture { display:block; width:100%; height:100%; }
.home-market .hero__slide-content { gap:16px; max-width:510px; animation:none; }
.home-market .hero__title { font-size:34px; line-height:1.65; max-width:490px; }
.home-market .hero__text { font-size:14px; line-height:2; }
.home-market .hero__badge { color:#fff; border-color:#ffffff30; background:#ffffff12; font-size:12px; }
.home-market .hero__actions .btn { min-height:42px; padding:10px 22px; border-radius:999px; font-size:13px; }
.home-market .hero__nav { opacity:1; top:auto; bottom:30px; transform:none; background:#fff; color:var(--text-primary); border:1px solid #e0e0e2; width:40px; height:40px; }
.home-market .hero__nav:hover { background:#f3f4f6; }
.home-market .hero__nav--prev { right:40px; }
.home-market .hero__nav--next { left:auto; right:88px; }
@media(min-width:769px) {
 .home-market .hero__actions .btn-secondary { display:none; }
 .home-market #hero-slideshow .hero__slide { transition:transform 360ms ease, opacity 280ms ease, visibility 0s 280ms; }
 .home-market #hero-slideshow .hero__slide.is-active { transition-delay:0s; }
 .home-market #hero-slideshow .hero__slide.is-preview-prev { transform:translateX(9%); }
 .home-market #hero-slideshow .hero__slide.is-preview-next { transform:translateX(-9%); }
}
@media(pointer:fine) {
 .home-market .hero__slides { cursor:grab; }
 .home-market :is(#bestsellers-grid,#new-products-grid).is-draggable { cursor:grab; }
 .home-market :is(#bestsellers-grid,#new-products-grid,.special-offers__carousel).is-dragging { cursor:grabbing; scroll-snap-type:none; scroll-behavior:auto; user-select:none; }
}
.home-market #hero-slideshow [hidden] { display:none; }
.home-quick { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding-block:24px; }
.home-quick__item { display:flex; flex-direction:column; align-items:center; gap:10px; flex:0 0 96px; text-align:center; font-size:12px; font-weight:700; line-height:2; color:var(--text-primary); }
.home-quick__icon { display:grid; place-items:center; width:54px; height:54px; border-radius:50%; background:var(--color-primary); color:white; }
.home-quick__icon :is(svg, img) { width:28px; height:28px; }
.home-quick__item--1 .home-quick__icon { background:#28394c; }
.home-quick__item--2 .home-quick__icon { background:#1c646a; }
.home-quick__item--3 .home-quick__icon { background:#49644d; }
.home-quick__item--4 .home-quick__icon { background:#8c591d; }
.home-quick__item--5 .home-quick__icon { background:#515582; }
.home-quick__item--6 .home-quick__icon { background:#303b46; }
.home-quick__more { border:0; padding:0; background:none; font-family:inherit; cursor:pointer; }
.home-quick__more .home-quick__icon {
 background:#edf1f4; color:#303b46;
}
.home-quick__more .home-quick__icon svg { width:22px; height:22px; transform:rotate(90deg); }
.home-quick__more:hover .home-quick__icon { background:#dfe8ed; }
.home-more {
 position:fixed; inset:0; margin:auto; padding:0; width:min(700px, calc(100% - 24px));
 max-width:none; max-height:calc(100dvh - 32px); overflow:hidden;
 border:1px solid var(--border-color-light); border-radius:22px;
 background:#fff; color:var(--text-primary); box-shadow:0 18px 54px #15253038;
}
.home-more::backdrop { background:#15253072; }
html:has(.home-more[open]) { overflow:hidden; }
.home-more__panel { display:flex; flex-direction:column; max-height:inherit; }
.home-more__header {
 display:flex; align-items:center; justify-content:space-between; gap:12px;
 padding:12px 22px; border-bottom:1px solid var(--border-color-light);
}
.home-more__header h2 { margin:0; font-size:17px; color:var(--color-primary); }
.home-more__header button {
 display:grid; place-items:center; width:40px; height:40px; padding:0;
 border:0; border-radius:12px; background:#edf1f4; color:inherit; cursor:pointer;
}
.home-more__header svg, .home-more__arrow svg { width:19px; height:19px; }
.home-more__body { min-height:0; overflow:auto; overscroll-behavior:contain; padding:20px 22px 24px; }
.home-more__links { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:18px 8px; }
.home-more__links .home-quick__item { gap:6px; padding:5px 2px; border-radius:12px; }
.home-more__links .home-quick__item:hover { background:#f4f7f8; }
.home-more__body h3 { margin:24px 0 10px; font-size:14px; }
.home-more__services { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.home-more__service {
 display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px;
 padding:12px; border:1px solid var(--border-color-light); border-radius:14px;
 background:#f7f9fa; color:inherit; font-size:13px;
}
.home-more__service:hover { border-color:var(--color-primary); }
.home-more__service .home-quick__icon { width:38px; height:38px; border-radius:12px; }
.home-more__service .home-quick__icon svg { width:20px; height:20px; }
.home-more__service small { display:block; margin-top:3px; color:var(--text-secondary); font-size:11px; line-height:1.75; }
.home-more__arrow { display:grid; color:var(--text-secondary); }
.home-quick__more:focus-visible, .home-more :is(a,button):focus-visible {
 outline:2px solid var(--color-primary); outline-offset:2px;
}
@media(max-width:600px) {
 .home-more__header { padding:8px 14px; }
 .home-more__body { padding:14px; }
 .home-more__links { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .home-more__services { grid-template-columns:1fr; }
}
.home-market .mobile-bottom-nav--floating:not(.is-positioned) .mobile-bottom-nav__indicator { left:auto; right:4px; transform:none; }
.home-market .special-offers { margin:0 0 24px; }
.home-market .special-offers__wrap { background:linear-gradient(120deg,var(--color-primary),var(--color-primary-dark)); border-radius:16px; padding:18px 0 18px 18px; }
.home-market .special-offers__left { flex:0 0 155px; justify-content:center; gap:16px; padding:8px 16px; }
.home-market .special-offers__title-text { font-size:22px; white-space:normal; line-height:1.7; }
.home-market .special-offers__logo { order:1; }
.home-market .special-offers__countdown { order:2; direction:ltr; }
.home-market .special-offers__see-all { order:3; background:#fff; color:var(--text-primary); padding:8px 14px; font-size:12px; }
.home-market .special-offers__carousel { gap:3px; padding:0; scroll-snap-type:x proximity; }
.home-offers-status { padding:14px; text-align:center; color:#fff; }
.home-offers-status p { margin:0; }
.home-offers-status button { margin-top:8px; }
.home-market .so-card { width:170px!important; min-width:170px!important; max-width:170px!important; flex:0 0 170px!important; min-height:272px; scroll-snap-align:start; }
.home-market .so-card:first-child { border-radius:0 8px 8px 0; }
.home-market .so-card:last-child { border-radius:8px 0 0 8px; }
.home-market .so-card__img { height:158px; aspect-ratio:auto; padding:12px; background:#fff; }
.home-market .so-card__body { padding:8px 10px 12px; gap:6px; }
.home-market .so-card__title { font-size:12px; font-weight:400; line-height:1.85; min-height:44px; }
.home-market .so-card__discount { background:var(--color-primary); border-radius:999px; font-size:11px; }
.home-market .so-card__new-price { font-size:15px; }
.home-promos { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.home-promo { min-width:0; min-height:160px; position:relative; display:flex; align-items:center; gap:8px; overflow:hidden; padding:24px 18px; border-radius:16px; background:#f7e8e9; color:#662528; }
.home-promo--1 { background:#e5eef0; color:#1c4a54; }
.home-promo--2 { background:#eae8f1; color:#3e365d; }
.home-promo--3 { background:#f6efdf; color:#705527; }
.home-promo > div { flex:1; min-width:0; }
.home-promo__eyebrow { display:block; font-size:10px; line-height:1.8; opacity:.8; }
.home-promo h2 { font-size:16px; font-weight:800; line-height:1.8; margin:8px 0 14px; }
.home-promo__link { display:flex; align-items:center; gap:4px; font-size:11px; }
.home-promo__link svg { width:14px; height:14px; }
.home-promo__art { display:grid; place-items:center; flex:none; width:clamp(38px, 5.5vw, 82px); aspect-ratio:1; border-radius:22%; background:#ffffff8c; }
.home-promo__art :is(svg, img) { width:72%; height:72%; }
.home-market .categories-section .section-header { justify-content:center; }
.home-market .categories-section .section-link { display:none; }
.home-market #categories-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:24px 16px; overflow:visible; }
.home-market .category-card { padding:8px; min-width:0; border:0; background:#fff; }
.home-market .category-card__photo { display:block; width:112px; max-width:100%; aspect-ratio:1; margin-inline:auto; border-radius:24%; overflow:hidden; background:#f5f6f7; }
.home-market .category-card__photo img { display:block; width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
.home-market .category-card__name { font-size:12px; font-weight:700; line-height:2; }
.home-market .category-card__count { display:none; }
.home-market #bestsellers > .container, .home-market #new-products > .container, .home-market #brands > .container { border:1px solid var(--border-color-light); border-radius:16px; padding:24px 20px; }
.home-market #bestsellers, .home-market #new-products, .home-market #brands { padding-block:12px; }
.home-market .why-us { color:var(--text-primary); background:#fafafa; }
.home-market .why-us .section-title { color:var(--text-primary); }
.home-market .why-us-card { background:#fff; border-color:var(--border-color-light); color:var(--text-primary); }
.home-market .why-us-card p { color:var(--text-secondary); }
.home-market .article-card { border-radius:12px; overflow:hidden; }
@media(max-width:1100px) and (min-width:769px) {
 .home-quick { gap:12px; }
 .home-quick__item { flex-basis:76px; font-size:11px; }
 .home-promos { gap:10px; }
 .home-promo { padding:20px 12px; }
 .home-market .hero__slide--catalog-photo .hero__slide-image { left:23%!important; }
 .home-market .hero__slide-content { max-width:48%; }
}
@media(max-width:768px) {
 .home-market .section { padding-block:22px; }
 .home-market .section-title { font-size:17px; }
 .home-market .section-header { margin-bottom:18px; }
 .home-market #hero-slideshow { --hero-height:clamp(176px, 49vw, 242px); width:100%; height:auto; margin:8px 0 0; border-radius:0; background:transparent; }
 .home-market #hero-slideshow .hero__slides { width:calc(100% - 44px); margin-inline:auto; overflow:visible; }
 .home-market #hero-slideshow .hero__slide { border-radius:14px; transition:transform 380ms ease, opacity 260ms ease, visibility 0s 260ms; }
 .home-market #hero-slideshow .hero__slide:is(.is-active,.is-preview-prev,.is-preview-next) { opacity:1; visibility:visible; transition-delay:0s; }
 .home-market #hero-slideshow .hero__slide.is-preview-prev { transform:translateX(calc(100% + 10px)) scaleY(.94); }
 .home-market #hero-slideshow .hero__slide.is-preview-next { transform:translateX(calc(-100% - 10px)) scaleY(.94); }
 .home-market #hero-slideshow .hero__slide .container { padding:12px 15px; align-items:center; }
 .home-market .hero__slide-content { max-width:60%; gap:8px; align-items:flex-start; text-align:right; margin-left:auto; margin-right:0; }
 .home-market .hero__badge { font-size:9px; border:0; background:transparent; padding:0; white-space:nowrap; }
 .home-market .hero__badge svg { display:none; }
 .home-market .hero__title { font-size:18px; line-height:1.9; max-width:none; }
 .home-market .hero__text { display:none; }
 .home-market .hero__actions { margin:2px 0 0; }
 .home-market .hero__actions .btn { min-height:32px; padding:5px 10px; font-size:10px; width:auto; }
 .home-market .hero__actions .btn-secondary { display:none; }
 .home-market .hero__actions .btn svg { width:12px; height:12px; }
 .home-market .hero__slide--catalog-photo .hero__slide-image { left:22%!important; width:min(48%, 230px)!important; height:88%!important; }
 .home-market .hero__nav { display:none; }
 .home-quick { overflow-x:auto; justify-content:flex-start; gap:18px; padding:18px 16px; scrollbar-width:none; }
 .home-quick__item { flex:0 0 58px; font-size:10px; gap:7px; line-height:1.9; }
 .home-quick__icon { width:50px; height:50px; }
 .home-quick__icon :is(svg, img) { width:25px; height:25px; }
 .home-market .special-offers { margin:0 0 20px; }
 .home-market .special-offers > .container { padding-inline:0; }
 .home-market .special-offers__wrap { display:flex; flex-direction:column; padding:12px 0 14px; border-radius:12px; }
 .home-market .special-offers__left { flex:auto; width:100%; display:flex; flex-direction:row; align-items:center; gap:8px; padding:0 12px 12px; }
 .home-market .special-offers__logo { display:none; }
 .home-market .special-offers__title-text { font-size:16px; white-space:nowrap; line-height:1.8; }
 .home-market .special-offers__countdown { order:0; gap:1px; margin-inline-start:auto; }
 .home-market .so-countdown__box { width:21px; height:23px; font-size:11px; }
 .home-market .so-countdown__sep { width:3px; font-size:10px; }
 .home-market .special-offers__see-all { order:1; padding:0; background:transparent; color:#fff; font-size:10px; }
 .home-market .special-offers__see-all svg { width:12px; }
 .home-market .special-offers__right { width:100%; }
 .home-market .special-offers__carousel { padding:0 8px; gap:3px; }
 .home-market .so-card { width:148px!important; min-width:148px!important; max-width:148px!important; flex:0 0 148px!important; min-height:240px; }
 .home-market .so-card__img { height:128px; padding:10px; }
 .home-market .so-card__title { font-size:11px; line-height:1.9; min-height:42px; }
 .home-market .so-card__new-price { font-size:14px; }
 .home-market .so-card__currency { font-size:9px; }
 .home-promos { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding-inline:16px; margin-bottom:8px; }
 .home-promo { min-height:128px; padding:16px 12px; border-radius:12px; }
 .home-promo h2 { font-size:13px; margin:6px 0 12px; }
 .home-promo__eyebrow { font-size:9px; }
 .home-promo__link { font-size:10px; }
 .home-promo__art { width:clamp(32px, 10vw, 60px); }
 .home-market #categories-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px 6px; }
 .home-market .category-card { padding:0; }
 .home-market .category-card__photo { width:72px; }
 .home-market .category-card__name { font-size:10px; line-height:1.9; }
 .home-market #bestsellers > .container, .home-market #new-products > .container, .home-market #brands > .container { border-radius:0; border-inline:0; padding:18px 16px; }
 .home-market #bestsellers-grid, .home-market #new-products-grid { display:flex; overflow-x:auto; gap:0; padding-bottom:8px; scrollbar-width:none; scroll-snap-type:x proximity; }
 .home-market #bestsellers-grid > .product-card, .home-market #new-products-grid > .product-card { flex:0 0 166px; min-width:166px; border:0; border-left:1px solid var(--border-color-light); border-radius:0; box-shadow:none; scroll-snap-align:start; }
 .home-market .product-card__image { height:146px; aspect-ratio:auto; background:#fff; padding:12px; }
 .home-market .product-card__title { font-size:12px; line-height:1.9; }
 .home-market .product-card__brand, .home-market .product-card__rating, .home-market .product-card__actions { display:none; }
 .home-market .product-card__price { flex-wrap:wrap; }
 .home-market .product-card__price-current { font-size:14px; }
 .home-market .articles-grid { display:flex; overflow-x:auto; gap:12px; scrollbar-width:none; }
 .home-market .article-card { flex:0 0 270px; min-width:0; }
 .home-market .why-us-grid { gap:10px; }
 .home-market .why-us-card { padding:16px 10px; border-radius:12px; }
 .home-market .why-us-card h3 { font-size:12px; }
 .home-market .why-us-card p { font-size:11px; }
 .home-market .cta-section { padding-block:24px; margin-top:12px; }
 .home-market .hero__slide--catalog-photo .hero__title { font-size:clamp(15px,4.6vw,20px); }
}
@media(max-width:360px) {
 .home-market .special-offers__title-text { font-size:14px; }
 .home-market .so-countdown__box { width:18px; font-size:10px; }
 .home-market .hero__slide-content { max-width:64%; }
}
@media(prefers-reduced-motion:reduce) {
 .home-market #hero-slideshow .hero__slide { transition:none; }
}

/* Keep pending homepage content in the same grids and carousels as its cards. */
.home-market .home-skeleton { pointer-events:none; }
.home-skeleton i { display:block; height:12px; width:86%; margin-block:6px; border-radius:var(--radius-sm); background:var(--bg-surface-alt); }
.home-skeleton i + i { width:60%; }
.home-skeleton :is(.so-card__img,.home-product__image,.article-card__image) i { width:100%; height:100%; margin:0; }
.home-skeleton .article-card__image { padding:12px; }
.home-skeleton .home-ranked__image { width:auto; }
.home-skeleton .home-ranked__name i { width:82%; }
.home-skeleton .home-skeleton__price { width:48%; height:16px; margin-inline-start:auto; }
.home-skeleton .home-discover__images { margin-top:32px; }
.home-skeleton .home-discover__images span { background:var(--bg-surface); padding:12px; height:115px; }
.home-skeleton .home-discover__images i { width:100%; height:100%; margin:0; }
.home-market #recommendations > [aria-busy=true] > :not(.home-skeleton) { display:none; }
@media (prefers-reduced-motion:no-preference) {
 .home-skeleton i { animation:home-skeleton-pulse 1.5s ease-in-out infinite alternate; }
 @keyframes home-skeleton-pulse { to { opacity:.5; } }
}

@media (max-width:768px) {
 .home-skeleton .home-discover__images span { height:76px; padding:8px; }
}
