/* Modern home page (nexa theme). Mobile first; uses --primary from the layout. */
.tz-home { --tz-ink: #14161f; --tz-ink-2: #4a4f5e; --tz-ink-3: #7b8091; --tz-line: #eceef3; --tz-bg: #f6f7fb; --tz-radius: 18px; --tz-radius-sm: 12px; --tz-gutter: 16px; background: #fff; color: var(--tz-ink); }
.tz-wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--tz-gutter); }
@media (min-width: 992px) { .tz-home { --tz-gutter: 24px; } }
.tz-section { padding: 22px 0; }
@media (min-width: 992px) { .tz-section { padding: 36px 0; } }
.tz-section-tint { background: var(--tz-bg); }
.tz-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tz-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--tz-ink); }
.tz-head p { margin: 4px 0 0; font-size: 14px; color: var(--tz-ink-3); }
@media (min-width: 992px) { .tz-head h2 { font-size: 26px; } .tz-head { margin-bottom: 20px; } }
.tz-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--primary) !important; white-space: nowrap; }
.tz-link:hover { text-decoration: underline; }
.tz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.tz-btn:hover { transform: translateY(-1px); text-decoration: none; }
.tz-btn-light { background: #fff; color: var(--tz-ink) !important; }
.tz-btn-light:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.tz-btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff !important; }
.tz-btn-primary { background: var(--primary); color: #fff !important; }
.tz-btn-primary:hover { background: var(--hov-primary); }

/* Horizontal rails (native swipe on touch, scroll-snap) */
.tz-rail { display: grid; grid-auto-flow: column; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--tz-gutter)); padding: 4px var(--tz-gutter) 8px; scroll-padding: 0 var(--tz-gutter); }
.tz-rail::-webkit-scrollbar { display: none; }
.tz-rail > * { scroll-snap-align: start; }
.tz-rail-products { grid-auto-columns: 44%; }
@media (min-width: 576px) { .tz-rail-products { grid-auto-columns: 30%; } }
@media (min-width: 992px) { .tz-rail-products { grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; } }
.tz-rail-wrap { position: relative; }
.tz-rail-nav { display: none; }
@media (min-width: 992px) and (hover: hover) {
  .tz-rail-nav { display: flex; position: absolute; top: 35%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 6px 18px rgba(20, 22, 31, .16); align-items: center; justify-content: center; font-size: 20px; color: var(--tz-ink); cursor: pointer; opacity: 0; transition: opacity .2s; }
  .tz-rail-wrap:hover .tz-rail-nav { opacity: 1; }
  .tz-rail-nav.prev { left: -18px; } .tz-rail-nav.next { right: -18px; }
}

/* Hero (bento) */
.tz-hero { padding-top: 14px; }
.tz-bento { display: grid; gap: 12px; }
@media (min-width: 992px) { .tz-bento { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 16px; } .tz-bento.single { grid-template-columns: 1fr; } }
.tz-hero-main { position: relative; border-radius: var(--tz-radius); overflow: hidden; background: var(--tz-bg); }
.tz-hero-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.tz-hero-slides::-webkit-scrollbar { display: none; }
/* Frame takes the first banner's proportions (set by JS from the loaded image),
   so a normally sized set of admin banners is shown uncropped. */
.tz-hero-slides { aspect-ratio: var(--tz-hero-ratio, 16 / 7); }
.tz-hero-slide { flex: 0 0 100%; scroll-snap-align: center; display: block; height: 100%; }
.tz-hero-slide picture { display: block; height: 100%; }
.tz-hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tz-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.tz-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .6); transition: width .25s, background .25s; }
.tz-dots button.active { width: 22px; background: #fff; }
.tz-hero-fallback { min-height: 340px; padding: 32px 24px; display: flex; flex-direction: column; justify-content: center; color: #fff;
  background: radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%), radial-gradient(70% 90% at 0% 100%, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 60%), var(--primary); }
@media (min-width: 992px) { .tz-hero-fallback { min-height: 440px; padding: 56px; } }
.tz-eyebrow { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tz-hero-fallback h1 { color: #fff; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 10px; max-width: 14ch; }
@media (min-width: 992px) { .tz-hero-fallback h1 { font-size: 52px; } }
.tz-hero-fallback p { font-size: 16px; opacity: .9; max-width: 46ch; margin: 0 0 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575px) {
  .tz-hero-fallback { min-height: 0; padding: 26px 20px; }
  .tz-hero-fallback h1 { font-size: 29px; }
  .tz-hero-fallback p { font-size: 15px; margin-bottom: 18px; }
  .tz-hero-ctas .tz-btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
}
.tz-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.tz-hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 992px) { .tz-hero-side { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 16px; } }
.tz-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 16px; border-radius: var(--tz-radius); overflow: hidden; color: #fff !important; background: #1f2433; isolation: isolate; }
.tz-tile:hover { text-decoration: none; }
.tz-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .5s; }
.tz-tile:hover img { transform: scale(1.04); }
.tz-tile.has-text::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 60%); }
.tz-tile-title { font-size: 17px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.tz-tile-sub { font-size: 13px; opacity: .85; margin-top: 4px; }
.tz-tile-accent { background: linear-gradient(135deg, #ff7a59, #ffb057); }
.tz-tile-dark { background: linear-gradient(135deg, #1b1f2c, #353c55); }
@media (min-width: 992px) { .tz-tile { min-height: 0; padding: 22px; } .tz-tile-title { font-size: 20px; } }
.tz-hero-side.single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.tz-tile-lg { min-height: 140px; padding: 22px; }
.tz-tile-lg .tz-tile-title { font-size: 26px; }
.tz-tile-lg .tz-tile-sub { font-size: 17px; font-weight: 600; opacity: .95; margin-top: 6px; }
@media (min-width: 992px) { .tz-tile-lg { padding: 32px; } .tz-tile-lg .tz-tile-title { font-size: 34px; } .tz-tile-lg .tz-tile-sub { font-size: 19px; } }
.tz-tile-center { justify-content: center; align-items: center; text-align: center; }
.tz-tile-lg.tz-tile-center .tz-tile-title { font-size: 32px; text-transform: capitalize; }
@media (min-width: 992px) { .tz-tile-lg.tz-tile-center .tz-tile-title { font-size: 44px; } }

/* USP strip */
.tz-usps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--tz-gutter)); padding: 0 var(--tz-gutter); }
.tz-usps::-webkit-scrollbar { display: none; }
.tz-usp { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--tz-radius-sm); background: var(--tz-bg); }
.tz-usp i { font-size: 26px; color: var(--primary); }
.tz-usp strong { display: block; font-size: 14px; color: var(--tz-ink); }

/* Category rail */
/* Category cards: grid that fills the row, so a few categories still look intentional */
.tz-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .tz-cats { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; } }
.tz-cat { --tz-cat-tint: #eef6ec; position: relative; display: flex; flex-direction: column-reverse; gap: 10px; padding: 14px; border-radius: var(--tz-radius); background: var(--tz-cat-tint); color: var(--tz-ink) !important; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tz-cat:nth-child(4n+2) { --tz-cat-tint: #eaf1fb; }
.tz-cat:nth-child(4n+3) { --tz-cat-tint: #fdf3e6; }
.tz-cat:nth-child(4n+4) { --tz-cat-tint: #f1edfb; }
.tz-cat:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 22, 31, .10); }
.tz-cat-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: var(--tz-radius-sm); background: #fff; overflow: hidden; }
.tz-cat-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .3s; }
.tz-cat:hover .tz-cat-img img { transform: scale(1.05); }
.tz-cat-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tz-cat-name { font-size: 15px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tz-cat-cta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--primary); }
.tz-cat:hover .tz-cat-cta i { transform: translateX(3px); }
.tz-cat-cta i { transition: transform .2s; }
@media (min-width: 768px) {
  .tz-cat { flex-direction: row; align-items: center; gap: 18px; padding: 20px 20px 20px 26px; min-height: 180px; }
  .tz-cat-text { flex: 1; gap: 10px; }
  .tz-cat-name { font-size: 22px; }
  .tz-cat-cta { font-size: 14px; }
  .tz-cat-img { flex: 0 0 46%; max-width: 240px; aspect-ratio: 1 / 1; }
}

/* Product card */
.tz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .tz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .tz-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
.tz-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border-radius: var(--tz-radius-sm); }
.tz-card-media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--tz-radius-sm); overflow: hidden; background: var(--tz-bg); }
.tz-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s, opacity .3s; }
.tz-card-media .alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .tz-card:hover .tz-card-media img.main { transform: scale(1.04); } .tz-card:hover .tz-card-media .alt { opacity: 1; } }
.tz-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 2; }
.tz-badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #e8f6ee; color: #11734b; }
.tz-badge.sale { background: #ffe8e3; color: #c2361b; }
.tz-wish { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; color: var(--tz-ink-2); font-size: 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); cursor: pointer; }
.tz-wish:hover { color: #e0245e; }
.tz-card-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tz-card-name { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--tz-ink) !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.tz-card-name:hover { text-decoration: none; color: var(--primary) !important; }
.tz-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--tz-ink-3); }
.tz-rating i { color: #f5a623; font-size: 13px; }
.tz-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.tz-price strong { font-size: 16px; font-weight: 800; color: var(--tz-ink); }
.tz-price del { font-size: 13px; color: var(--tz-ink-3); }
.tz-add { margin-top: 8px; width: 100%; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--tz-ink); background: #fff; color: var(--tz-ink); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: background .15s, color .15s; }
.tz-add:hover { background: var(--tz-ink); color: #fff; }
.tz-card-foot { margin-top: auto; }

/* Deal band */
.tz-deal { border-radius: var(--tz-radius); padding: 18px; background: linear-gradient(135deg, #fff1ec, #fff8ef); }
@media (min-width: 992px) { .tz-deal { padding: 28px; } }
.tz-deal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tz-deal-head h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; margin: 0; }
.tz-deal-head h2 i { color: #ff5a1f; }
.tz-countdown .countdown-item, .tz-countdown .aiz-count-down > * { font-variant-numeric: tabular-nums; }
.tz-deal .tz-card { padding: 8px; }

/* Banners */
.tz-banners { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .tz-banners.cols-2 { grid-template-columns: 1fr 1fr; } .tz-banners.cols-3 { grid-template-columns: repeat(3, 1fr); } .tz-banners { gap: 16px; } }
.tz-banner { display: block; border-radius: var(--tz-radius); overflow: hidden; background: var(--tz-bg); }
.tz-banner img { width: 100%; height: auto; display: block; transition: transform .5s; }
.tz-banner:hover img { transform: scale(1.02); }

/* Partner CTA */
.tz-partner { display: grid; gap: 18px; align-items: center; border-radius: var(--tz-radius); padding: 24px; color: #fff; background: radial-gradient(80% 140% at 100% 0%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 60%), #151a2b; }
@media (min-width: 992px) { .tz-partner { grid-template-columns: 1.4fr 1fr; padding: 40px 48px; } }
.tz-partner h2 { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 8px; }
@media (min-width: 992px) { .tz-partner h2 { font-size: 32px; } }
.tz-partner p { margin: 0; opacity: .8; }
.tz-partner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tz-partner li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tz-partner li i { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); font-size: 16px; }

/* Brands */
.tz-brands { grid-auto-columns: 140px; }
@media (min-width: 992px) { .tz-brands { grid-auto-columns: calc((100% - 5 * 12px) / 6); } }
.tz-brand { display: flex; align-items: center; justify-content: center; height: 84px; padding: 14px; border: 1px solid var(--tz-line); border-radius: var(--tz-radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
.tz-brand:hover { border-color: transparent; box-shadow: 0 8px 20px rgba(20, 22, 31, .08); }
.tz-brand img { max-height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.tz-brand:hover img { filter: none; opacity: 1; }

.tz-loadmore { display: flex; justify-content: center; margin-top: 22px; }
.tz-loadmore button { min-width: 220px; }

@media (prefers-reduced-motion: reduce) { .tz-home *, .tz-home *::before { transition: none !important; scroll-behavior: auto !important; } }
