/* Heaven N Deals — storefront theme (teal + coral). Loaded after the app CSS. */
:root {
  --hnd-teal: #0b5e66;
  --hnd-teal-dark: #083f45;
  --hnd-coral: #f0544f;
  --hnd-ink: #14213d;
  --hnd-bg: #f2f7f7;
}

/* Site-wide background: soft tint, fine dot grid, two faint brand glows */
body {
  background-color: var(--hnd-bg) !important;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(11, 94, 102, 0.09) 1px, transparent 0),
    radial-gradient(900px 520px at 100% -10%, rgba(240, 84, 79, 0.07), transparent 70%),
    radial-gradient(900px 600px at -10% 40%, rgba(11, 94, 102, 0.07), transparent 70%) !important;
  background-size: 22px 22px, 100% 100%, 100% 100% !important;
  background-attachment: fixed !important;
}
body:has(aside a[href="/admin"]), body:has(a[href="/admin/dashboard"]) { background-image: none !important; }

/* Headings in Poppins, matching the logo */
h1, h2, h3, .hnd-display {
  font-family: 'Poppins', 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
}
h1.font-extrabold, h2.font-extrabold { font-weight: 800; color: var(--hnd-ink); }

/* Coral underline under homepage section titles */
section h2.tracking-tight::after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  margin-top: 8px;
  background: var(--hnd-coral);
}
section .justify-center > h2.tracking-tight::after { margin-left: auto; margin-right: auto; }
section .border-b.border-gray-100 { border-color: rgba(11, 94, 102, 0.12) !important; }

/* Hero banners */
.hnd-slide-pattern {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0),
    radial-gradient(420px 420px at 78% 50%, rgba(240, 84, 79, 0.35), transparent 70%);
  background-size: 18px 18px, 100% 100%;
}
.hnd-slide-card { transform: rotate(-2deg); transition: transform .5s ease; }
.hnd-slide-card + .hnd-slide-card { transform: rotate(3deg); }
a:hover .hnd-slide-card { transform: rotate(0deg) scale(1.03); }

/* Cards and panels: white on the tinted background, soft teal shadow */
main .bg-white.rounded-2xl,
main .bg-white.rounded-xl,
main .rounded-\[24px\].bg-white {
  box-shadow: 0 1px 2px rgba(11, 94, 102, 0.06), 0 10px 28px -16px rgba(11, 94, 102, 0.28);
}
main .border-gray-100 { border-color: rgba(11, 94, 102, 0.10) !important; }

/* Homepage feature tiles */
section .rounded-xl.bg-white.border .rounded-full { background: rgba(240, 84, 79, 0.10) !important; color: var(--hnd-coral) !important; }

/* New Arrivals band */
section.bg-gray-50.rounded-3xl {
  background: #ffffff !important;
  box-shadow: 0 10px 30px -18px rgba(11, 94, 102, 0.35);
}

/* Category tiles */
a.group\/item:hover span { color: var(--hnd-teal) !important; }

/* Prices: sale price coral, struck price muted */
.text-red-500, .text-red-600, .text-\[\#e53935\] { color: var(--hnd-coral) !important; }

/* Product page */
main h1 { color: var(--hnd-ink); }
main nav[aria-label="Breadcrumb"] a:hover { color: var(--hnd-teal) !important; }
main [role="tablist"] [aria-selected="true"],
main button.border-b-2[class*="border-"] { color: var(--hnd-teal) !important; border-color: var(--hnd-teal) !important; }
main button[class*="rounded-md"][class*="h-[40px]"],
main a[class*="rounded-md"][class*="h-[40px]"] { border-radius: 9999px !important; font-weight: 700; letter-spacing: .02em; }

/* Footer accent line */
footer { border-top: 4px solid var(--hnd-coral); }

/* Banner headings stay white, no section underline */
.hnd-slide h2, .hnd-slide h2.font-extrabold { color: #ffffff !important; }
.hnd-slide h2::after { display: none !important; }

/* Moving background: drifting teal/coral glows + slowly sliding dot grid */
body { background-image: none !important; }
body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -1;
}
body::before {
  inset: -25%;
  background:
    radial-gradient(closest-side, rgba(11, 94, 102, 0.18), transparent) 12% 18% / 48% 48% no-repeat,
    radial-gradient(closest-side, rgba(240, 84, 79, 0.14), transparent) 88% 26% / 42% 42% no-repeat,
    radial-gradient(closest-side, rgba(255, 201, 74, 0.12), transparent) 30% 82% / 38% 38% no-repeat,
    radial-gradient(closest-side, rgba(11, 94, 102, 0.12), transparent) 78% 88% / 52% 52% no-repeat;
  animation: hndDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}
body::after {
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(11, 94, 102, 0.11) 1px, transparent 0);
  background-size: 22px 22px;
  animation: hndDots 30s linear infinite;
}
@keyframes hndDrift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(5%, -4%, 0) rotate(8deg) scale(1.06); }
  100% { transform: translate3d(-4%, 5%, 0) rotate(-6deg) scale(0.97); }
}
@keyframes hndDots {
  to { background-position: 44px 66px; }
}
body:has(a[href="/admin/products"])::before,
body:has(a[href="/admin/products"])::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

/* Featured category tiles with the designed category images */
a.group\/item div:has(> img[src*="hnd-cat-"]) { padding: 0 !important; background: transparent !important; border-color: transparent !important; }
a.group\/item img[src*="hnd-cat-"] { object-fit: cover !important; transition: transform .35s ease; }
a.group\/item:hover img[src*="hnd-cat-"] { transform: scale(1.06) rotate(-2deg); }

/* Mobile fixes */
@media (max-width: 639px) {
  div:has(> div > div > a > .hnd-slide) { aspect-ratio: 5 / 4 !important; }
  div:has(> div > div > a > .hnd-slide) > button[aria-label$="slide"] { display: none !important; }
  .hnd-slide-card + .hnd-slide-card { display: none !important; }
  .hnd-slide-card { transform: rotate(-3deg); }
}
/* Mobile sticky buy bar on the product page */
button.flex-1.h-9.rounded-lg.shrink-0.border { background: #ffffff !important; color: #0b5e66 !important; border-color: #0b5e66 !important; }
button.flex-1.h-9.rounded-lg.shrink-0:not(.border) { background: #f0544f !important; color: #ffffff !important; }

/* Small phones: keep header icons inside the screen */
@media (max-width: 400px) { img[src*="/theme/logo.svg"] { max-width: 150px !important; } }

/* Logo hover lift */
img[src*="/theme/logo.svg"] { transition: transform .3s ease; }
a:hover > img[src*="/theme/logo.svg"] { transform: scale(1.04); }

/* iOS Safari fix (2026-11-26): the hero slider sits in a grid cell. Safari's default min-width:auto let that cell grow to its slider content (799px inside a 406px column), which stretched the page to 811px on a 430px screen and blew up the banner height. Pin the cell to its column. */
@media (max-width:1023.98px){
div:has(> div > div > a > .hnd-slide){min-width:0 !important;max-width:100% !important;}
div:has(> div > div > a > .hnd-slide) > div{min-width:0 !important;max-width:100% !important;}
}

/* Hide the BRANDS menu link (2026-11-26) */
a[href="/brands"], a[href="/brands"]+span { display:none !important; }
