/* Crazyshop-inspired chrome for Appily Twentyfour */

.cs-promo-bar { background: var(--black); color: rgba(255,255,255,.85); font-size: .78rem; }
.cs-promo-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; gap: 12px; flex-wrap: wrap; }
.cs-promo-inner a { color: var(--accent); font-weight: 700; }
.cs-promo-links { display: flex; gap: 16px; align-items: center; }

.cs-header { position: sticky; top: 0; z-index: 100; background: var(--black); }
.cs-header-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 16px 0; }
.cs-brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.cs-brand-icon { width: 40px; height: 40px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.cs-brand-name { font-size: 1.35rem; font-weight: 800; }

.cs-search { display: flex; max-width: 640px; width: 100%; margin: 0 auto; background: var(--white); }
.cs-search input { flex: 1; border: none; padding: 14px 18px; font-size: .9rem; outline: none; min-width: 0; }
.cs-search button { border: none; background: var(--accent); color: var(--white); padding: 0 24px; font-weight: 800; font-size: .78rem; cursor: pointer; }
.cs-search button:hover { background: var(--accent-dark); }

.cs-header-actions { display: flex; align-items: center; gap: 14px; }
.cs-call { display: flex; align-items: center; gap: 8px; color: var(--white); font-size: .72rem; line-height: 1.3; }
.cs-call strong { color: var(--accent); font-size: .85rem; }
.cs-action { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.1rem; }
.cs-action em { position: absolute; top: -2px; right: -2px; background: var(--accent); color: var(--white); font-style: normal; font-size: .62rem; font-weight: 800; min-width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cs-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.cs-mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 999px;
  transition: transform .25s, opacity .25s;
}
.cs-mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cs-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.cs-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer navigation */
.cs-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 198;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .28s ease;
}
.cs-mobile-overlay.is-open { opacity: 1; }
.cs-mobile-overlay[hidden] { display: none; }
.cs-mobile-overlay:not([hidden]) { display: block; }

.cs-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 199;
  width: min(360px, 92vw);
  height: 100%;
  max-height: 100dvh;
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
  box-shadow: -12px 0 40px rgba(17, 17, 17, 0.18);
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0 24px;
}
.cs-mobile-drawer.is-open { transform: translateX(0); }
.cs-mobile-drawer[hidden] { display: none; }
.cs-mobile-drawer:not([hidden]) { display: block; }

.cs-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 2;
}
.cs-mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
}
.cs-mobile-close {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.cs-mobile-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}
.cs-mobile-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.cs-mobile-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.cs-mobile-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 16px 0;
}
.cs-mobile-quick-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
}
.cs-mobile-quick-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.cs-mobile-quick-icon { font-size: 1rem; }

.cs-mobile-section { padding: 16px 16px 0; }
.cs-mobile-label {
  margin: 0 0 10px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cs-mobile-links {
  display: grid;
  gap: 8px;
}
.cs-mobile-link {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  transition: border-color .15s, background .15s, color .15s;
}
.cs-mobile-link:hover,
.cs-mobile-link.is-active {
  border-color: var(--accent);
  background: rgba(240, 90, 64, 0.08);
  color: var(--accent);
}
.cs-mobile-link-deal {
  background: linear-gradient(90deg, rgba(240, 90, 64, 0.12), rgba(255, 213, 79, 0.18));
  border-color: rgba(240, 90, 64, 0.25);
}

.cs-mobile-accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.cs-mobile-accordion[aria-expanded="true"] {
  border-color: var(--accent);
  background: rgba(240, 90, 64, 0.06);
  color: var(--accent);
}
.cs-mobile-accordion-icon {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
}
.cs-mobile-accordion[aria-expanded="true"] .cs-mobile-accordion-icon { transform: rotate(45deg); }

.cs-mobile-cats {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px dashed var(--line);
}
.cs-mobile-cats[hidden] { display: none; }
.cs-mobile-cats a {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--white);
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
}
.cs-mobile-cats a:hover { color: var(--accent); background: rgba(240, 90, 64, 0.06); }

.cs-mobile-support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cs-mobile-support a {
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}
.cs-mobile-support a:hover { border-color: var(--accent); color: var(--accent); }

.cs-mobile-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 16px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
  font-size: .88rem;
  font-weight: 700;
}

body.nav-open { overflow: hidden; }

.cs-navbar { background: var(--accent); }
.cs-navbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}
.cs-categories-btn {
  justify-self: start;
  background: rgba(0,0,0,.15);
  color: var(--white);
  border: none;
  padding: 14px 20px;
  font-weight: 800;
  font-size: .78rem;
  cursor: pointer;
}
.cs-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.cs-nav-links a {
  color: var(--white);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  padding: 14px 18px;
  white-space: nowrap;
  opacity: .92;
}
.cs-nav-links a:hover, .cs-nav-links a.is-active { opacity: 1; text-decoration: underline; }
.cs-flash {
  justify-self: end;
  color: var(--white);
  font-weight: 800;
  font-size: .78rem;
  padding: 14px 16px;
  white-space: nowrap;
}

.cs-hero { padding: 20px 0; background: var(--cream); }
.cs-hero-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.cs-sidebar { background: var(--white); border: 1px solid var(--line); }
.cs-sidebar ul { list-style: none; margin: 0; padding: 0; }
.cs-sidebar li { border-bottom: 1px solid var(--line); }
.cs-sidebar a { display: block; padding: 11px 16px; font-size: .85rem; font-weight: 500; }
.cs-sidebar a:hover { color: var(--accent); }
.cs-hero-main { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; min-height: 420px; }

.cs-hero-slider {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 420px;
}
.cs-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 420px;
  height: 100%;
}
.cs-slide.is-active { display: grid; }
.cs-slide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 40px);
}
.cs-slide-copy h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.cs-slide-price {
  margin: 0 0 22px;
  font-size: 1rem;
  color: var(--muted);
}
.cs-slide-price strong {
  color: var(--ink);
  font-weight: 700;
}
.cs-btn-hero {
  align-self: flex-start;
  padding: 14px 28px;
  font-size: .78rem;
  letter-spacing: .06em;
}
.cs-slide-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, #dceef8 0%, #c5e3f5 55%, #b8daf0 100%);
}
.cs-slide-img img {
  width: auto;
  max-width: 100%;
  max-height: min(340px, 42vh);
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(26, 26, 26, 0.08));
}

.cs-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.cs-hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.18);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.cs-hero-dot.is-active {
  background: var(--accent);
  transform: scale(1.1);
}

.cs-hero-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
}
.cs-stack-card {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 16px 18px;
  border-radius: 4px;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.cs-stack-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 26, 26, 0.1);
}
.cs-stack-copy span {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
}
.cs-stack-copy strong {
  display: block;
  margin-top: 6px;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.25;
}
.cs-stack-card img {
  width: 96px;
  height: 76px;
  object-fit: contain;
  justify-self: end;
}
.cs-stack-mint { background: var(--mint); color: var(--ink); }
.cs-stack-red { background: #e53935; color: #fff; }
.cs-stack-gold { background: var(--yellow); color: var(--ink); }

.cs-new-layout { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.cs-vertical-banner { position: relative; display: block; background: #e8dff5; overflow: hidden; min-height: 380px; border: 1px solid var(--line); }
.cs-vertical-banner img { width: 100%; height: 60%; object-fit: cover; }
.cs-vertical-banner div { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.92); padding: 16px; text-align: center; }
.cs-vertical-banner span { display: block; font-size: .72rem; font-weight: 800; color: var(--accent); }

.cs-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.cs-tab { border: none; background: transparent; padding: 8px 14px; font-weight: 700; font-size: .75rem; color: var(--muted); cursor: pointer; }
.cs-tab.is-active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.cs-tab-panel { display: none; }
.cs-tab-panel.is-active { display: block; }

.cs-discount-row { padding: 20px 0; }
.cs-discount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cs-discount-banner { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius); min-height: 140px; }
.cs-discount-banner img { width: 120px; height: 100px; object-fit: cover; border-radius: var(--radius); }
.cs-discount-banner span { font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.cs-discount-banner strong { display: block; font-size: 1rem; margin: 4px 0; }
.cs-discount-banner p { margin: 0; font-size: .85rem; color: var(--muted); }
.cs-disc-yellow { background: var(--yellow); }
.cs-disc-dark { background: #2a2a2a; color: var(--white); }
.cs-disc-dark p { color: rgba(255,255,255,.7); }
.cs-disc-pink { background: var(--pink); }

.cs-cat-circles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.cs-cat-circle { text-align: center; }
.cs-cat-circle-img { width: 90px; height: 90px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; border: 3px solid var(--line); background: var(--cream); }
.cs-cat-circle-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-cat-circle strong { display: block; font-size: .78rem; }
.cs-cat-circle span { font-size: .72rem; color: var(--muted); }

.cs-deals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cs-deal-card { border: 2px solid #fde8e4; border-radius: var(--radius); overflow: hidden; background: var(--white); }
.cs-deal-img { display: block; background: var(--cream); padding: 20px; }
.cs-deal-img img { max-height: 180px; margin: 0 auto; object-fit: contain; }
.cs-deal-body { padding: 16px 20px 20px; }
.cs-deal-body h3 { font-size: .95rem; margin: 0 0 6px; }
.cs-deal-body p { font-size: .82rem; color: var(--muted); margin: 8px 0; }
.cs-timer { font-size: .78rem; margin: 12px 0; }
.cs-timer span { color: var(--accent); font-weight: 700; }

.cs-featured-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cs-featured-item { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; border: 1px solid var(--line); padding: 14px; }
.cs-featured-img { display: block; background: var(--cream); aspect-ratio: 1; overflow: hidden; }
.cs-featured-img img { width: 100%; height: 100%; object-fit: cover; }

.cs-best-layout { display: grid; grid-template-columns: 1fr 200px; gap: 20px; }
.cs-best-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cs-vertical-banner-alt { min-height: 100%; }

.cs-mega-banner { background: var(--accent); }
.cs-mega-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; min-height: 200px; }
.cs-mega-inner img { max-height: 200px; object-fit: contain; justify-self: center; }
.cs-mega-inner div { color: var(--white); padding: 24px 0; }
.cs-mega-inner h2 { margin: 0 0 16px; font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 800; }

.cs-perks { background: var(--white); border-top: 1px solid var(--line); padding: 28px 0; }
.cs-perks-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cs-perk { display: flex; gap: 12px; align-items: flex-start; }
.cs-perk-icon { font-size: 1.5rem; flex-shrink: 0; }
.cs-perk strong { display: block; font-size: .85rem; }
.cs-perk span { font-size: .75rem; color: var(--muted); }

.cs-footer { background: #1a1a1a; color: rgba(255,255,255,.7); padding: 48px 0 0; }
.cs-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; padding-bottom: 32px; }
.cs-footer-brand p { font-size: .82rem; line-height: 1.6; margin: 14px 0; }
.cs-brand-footer .cs-brand-name { color: var(--white); }
.cs-app-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cs-app-btn { display: inline-block; padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); font-size: .72rem; color: var(--white); }
.cs-footer-col h4 { color: var(--white); font-size: .82rem; text-transform: uppercase; margin: 0 0 16px; }
.cs-footer-col a, .cs-footer-col p { display: block; font-size: .82rem; margin: 0 0 8px; }
.cs-footer-col a:hover { color: var(--white); }
.cs-footer-cats { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.cs-footer-cats a { color: rgba(255,255,255,.7); }
.cs-footer-base { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .75rem; flex-wrap: wrap; gap: 12px; }
.cs-payments { opacity: .85; font-weight: 600; letter-spacing: .02em; }

.cs-back-top, .at24-back-top { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 42px; height: 42px; border: none; border-radius: var(--radius); background: var(--accent); color: var(--white); font-size: 1.1rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.cs-back-top.is-visible, .at24-back-top.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 1100px) {
  .cs-hero-grid { grid-template-columns: 1fr; }
  .cs-sidebar { display: none; }
  .cs-hero-main { grid-template-columns: 1fr; min-height: auto; }
  .cs-hero-stack { flex-direction: row; min-height: auto; }
  .cs-stack-card { min-height: 120px; }
  .cs-new-layout, .cs-best-layout { grid-template-columns: 1fr; }
  .cs-discount-grid { grid-template-columns: 1fr; }
  .cs-cat-circles { grid-template-columns: repeat(4, 1fr); }
  .cs-deals-grid { grid-template-columns: 1fr; }
  .cs-best-grid { grid-template-columns: repeat(3, 1fr); }
  .cs-featured-list { grid-template-columns: 1fr; }
  .cs-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-perks-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-mega-inner { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 768px) {
  .cs-header-main { grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; }
  .cs-search { grid-column: 1 / -1; order: 3; max-width: none; }
  .cs-search input { padding: 12px 14px; }
  .cs-search button { padding: 0 18px; }
  .cs-call, .cs-nav-links, .cs-flash { display: none; }
  .cs-categories-btn { display: none; }
  .cs-navbar { display: none; }
  .cs-mobile-toggle { display: flex; }
  .cs-brand-name { font-size: 1.1rem; }
  .cs-promo-inner { justify-content: center; text-align: center; }
  .cs-promo-links { display: none; }
  .cs-slide { grid-template-columns: 1fr; min-height: auto; }
  .cs-hero-slider { min-height: auto; }
  .cs-slide-copy { padding: 22px 18px 8px; }
  .cs-slide-copy h2 { font-size: 1.35rem; }
  .cs-slide-img { min-height: 200px; padding: 16px; }
  .cs-slide-img img { max-height: 220px; }
  .cs-hero-dots { position: static; transform: none; justify-content: center; padding: 0 0 16px; }
  .cs-hero-main { min-height: auto; }
  .cs-hero-stack { flex-direction: column; min-height: auto; }
  .cs-stack-card { min-height: 100px; }
  .cs-section-head { flex-direction: column; align-items: flex-start; }
  .cs-section-head-tabs { flex-direction: column; align-items: stretch; }
  .cs-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .cs-product-card, .at24-product-card { min-width: 168px; flex: 0 0 168px; }
  .cs-featured-item { grid-template-columns: 110px 1fr; gap: 12px; padding: 12px; }
  .cs-discount-banner { grid-template-columns: 90px 1fr; padding: 14px; min-height: auto; }
  .cs-discount-banner img { width: 90px; height: 72px; }
  .cs-cat-circles, .cs-best-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-perks-grid, .cs-footer-grid { grid-template-columns: 1fr; }
  .cs-footer-base { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .cs-stack-card { grid-template-columns: 1fr 72px; padding: 12px; }
  .cs-stack-card img { width: 72px; height: 60px; }
  .cs-best-grid { grid-template-columns: 1fr; }
  .cs-mobile-support { grid-template-columns: 1fr; }
  .cs-mobile-quick { grid-template-columns: 1fr; }
}
