/* =========================================================
   HODDIE's own look (2026-11-15, the user: "follow the style of the video i provided"). Loaded after styles.css on the
   shop's pages. The home page slider (index.html + js/hoddie.js), frosted glass pills, and each hoodie's own colour behind
   its photo. A shop file: update_shop.py never changes it.
   ========================================================= */

:root { --hd-bg: #8C8274; --hd-deep: #6F6251; --hd-glass: rgba(255,255,255,.2); --hd-glass-line: rgba(255,255,255,.38);
  --hd-ink: #1A1A1A; --hd-ease: cubic-bezier(.65, 0, .2, 1); }

/* ---------- every page: the search pill (fixed width, so nothing in the header row moves with the language) ---------- */
.icon-btn.hd-search { width: 150px; height: 38px; flex: none; justify-content: flex-start; gap: 8px; padding: 0 14px 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.45); border: 1px solid rgba(17,17,17,.1); transition: background .2s, border-color .2s; }
.icon-btn.hd-search svg { width: 17px; height: 17px; flex: none; }
.hd-search-text { min-width: 0; font-size: 13px; color: rgba(17,17,17,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .icon-btn.hd-search:hover { background: rgba(255,255,255,.7); } }
@media (min-width: 720px) { .icon-btn.hd-search { width: 250px; } }
@media (max-width: 359px) { .icon-btn.hd-search { width: 120px; } }

/* ---------- every page: the word logo is wide, so it sits lower than the template's logos ---------- */
.logo img { height: 26px; }
.footer-logo img { height: 34px; }
@media (min-width: 720px) { .logo img { height: 30px; } .footer-logo img { height: 40px; } }

/* ---------- every page: the hoodie photos are cut out (transparent), so they sit on their own colour ---------- */
.card-media { background: color-mix(in srgb, var(--acc, #8C8274) 16%, #F4F0EA); }
.card-media img.pack, .tile-img img.pack, .line .thumb img.pack { background: transparent; padding: 8% 6%; }
.line .thumb { background: #F1ECE4; }
.gallery { background: var(--hd-tint, #E9E2D6); transition: background .6s; }
.gallery-track img.pack { background: transparent; padding: 6% 8%; }

/* ======================= HOME: the hoodie slider ======================= */
body[data-page="home"] { background-color: var(--hd-deep); transition: background-color .9s ease; }
body[data-page="home"] .site-footer { margin-top: 0; }

/* the header floats on the frosted panel. The body is a flex column (styles.css), where an absolute header would ignore
   the "Opening soon" bar above it; so it stays in the flow and a negative margin lets the panel slide up under it. */
body[data-page="home"]:not(.menu-open) .site-header { position: relative; margin-bottom: calc(-1 * var(--header-h) - 4px); background: transparent; box-shadow: none; color: #fff; }
[data-head="light"] body[data-page="home"]:not(.menu-open) .site-header { background: transparent; box-shadow: none; color: #fff; }
body[data-page="home"] .header-inner { max-width: none; padding-left: 20px; padding-right: 20px; margin-top: 4px; }
body[data-page="home"] .desktop-nav { display: none !important; }
body[data-page="home"] .logo { margin-inline-end: auto; }   /* computers: the nav is hidden here, so the logo pushes the rest right */
body[data-page="home"]:not(.menu-open) .logo { padding: 7px 16px; border-radius: 999px; background: var(--hd-glass); border: 1px solid var(--hd-glass-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body[data-page="home"]:not(.menu-open) .logo img { height: 20px; filter: brightness(0) invert(1); }
body[data-page="home"]:not(.menu-open) .icon-btn.hd-search { background: var(--hd-glass); border-color: var(--hd-glass-line); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body[data-page="home"]:not(.menu-open) .hd-search-text { color: rgba(255,255,255,.85); }
body[data-page="home"]:not(.menu-open) .icon-btn { color: #fff; }
[data-head="light"] body[data-page="home"]:not(.menu-open) .menu-btn { border-color: var(--hd-glass-line); background: var(--hd-glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
[data-head="light"] body[data-page="home"]:not(.menu-open) .menu-btn i { background: #fff; }
[data-head="light"] body[data-page="home"] .bottom-nav { background: var(--hd-deep); box-shadow: 0 -1px 0 rgba(255,255,255,.14); transition: background-color .9s ease; }
[data-head="light"] body[data-page="home"] .bottom-nav a { color: rgba(255,255,255,.6); }
[data-head="light"] body[data-page="home"] .bottom-nav a[aria-current="page"] { color: #fff; }

/* the frame: the deep colour around a lighter frosted panel */
.hd-stage { padding: 8px; display: flex; min-height: calc(100svh - var(--bottomnav-h) - var(--safe-b)); outline: none; }
#pauseBar ~ main .hd-stage { min-height: calc(100svh - var(--bottomnav-h) - var(--safe-b) - 34px); }
.hd-glass { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  padding-top: calc(var(--header-h) - 2px); background: var(--hd-bg); transition: background-color .9s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), inset 0 1px 0 rgba(255,255,255,.4); }
.hd-glass::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 38%, rgba(255,255,255,.22), rgba(255,255,255,0) 62%); }

/* the hoodies: absolutely placed; --d is the place from the middle (-3 .. 3), set by hoddie.js */
.hd-ring { --w: min(76vw, 330px, calc((100svh - 380px) / 1.2)); --gap: 50vw; --dir: 1;
  position: relative; flex: 1; min-height: 250px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
html[dir="rtl"] .hd-ring { --dir: -1; }
.hd-item { --s: .56; position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 1000 / 1200; padding: 0; margin: 0; border: 0;
  background: none; border-radius: 18px; cursor: pointer; z-index: 1; -webkit-tap-highlight-color: transparent;
  transform: translate(-50%, -50%) translateX(calc(var(--d, 0) * var(--gap) * var(--dir))) scale(var(--s));
  transition: transform .9s var(--hd-ease), opacity .6s ease, filter .6s ease; }
.hd-img { display: block; width: 100%; height: 100%; }
.hd-img img { width: 100%; height: 100%; object-fit: contain; padding: 0 !important; background: none !important; pointer-events: none;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.18)); -webkit-user-drag: none; }
.hd-item[data-pos="0"] { --s: 1; z-index: 3; cursor: zoom-in; }
.hd-item[data-pos="-1"], .hd-item[data-pos="1"] { --s: .56; z-index: 2; }
.hd-item[data-pos="-2"], .hd-item[data-pos="2"] { --s: .46; z-index: 1; opacity: .9; }
.hd-item[data-pos="far"] { --s: .4; opacity: 0; pointer-events: none; }
@media (hover: hover) { .hd-item[data-pos="-1"]:hover, .hd-item[data-pos="1"]:hover { filter: brightness(1.06); --s: .6; } }
.hd-item:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
/* the name and price under a side hoodie (big type: the hoodie is shown at about half size) */
.hd-label { position: absolute; left: -20%; right: -20%; top: 102%; display: grid; gap: 2px; text-align: center; color: #fff; opacity: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.18); transition: opacity .5s ease; pointer-events: none; }
.hd-label b { font-size: 25px; font-weight: 600; line-height: 1.2; }
.hd-label span { font-size: 23px; font-weight: 500; opacity: .92; }

/* the frosted card under the middle hoodie */
.hd-card { position: relative; z-index: 4; margin: 0 12px 12px; padding: 14px 14px 14px 16px; border-radius: 18px; color: var(--hd-ink);
  background: rgba(255,255,255,.34); border: 1px solid rgba(255,255,255,.5); -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 10px 30px rgba(0,0,0,.08); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.hd-card-text { min-width: 0; }
.hd-name { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--hd-ink); }
.hd-short { margin: 4px 0 6px; font-size: 12.5px; line-height: 1.45; color: rgba(26,26,26,.62);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hd-price { margin: 0; font-size: 14px; color: rgba(26,26,26,.75); }
.hd-price b { color: var(--hd-ink); font-weight: 600; }
.hd-card-btns { display: grid; justify-items: end; gap: 8px; }
.hd-add, .hd-order { border: 0; border-radius: 999px; font-weight: 500; transition: transform .15s, background .2s; white-space: nowrap; }
.hd-add { height: 30px; padding: 0 16px; background: rgba(30,30,30,.72); color: #fff; font-size: 12.5px; letter-spacing: .02em; }
.hd-order { height: 42px; padding: 0 22px; background: #0E0E0E; color: #fff; font-size: 15px; }
.hd-add:active, .hd-order:active { transform: scale(.96); }
.hd-add:disabled, .hd-order:disabled { opacity: .45; cursor: not-allowed; }
@media (hover: hover) { .hd-add:hover:not(:disabled) { background: #1E1E1E; } .hd-order:hover:not(:disabled) { background: #2A2A2A; } }
.hd-card.swap .hd-card-text { animation: hdIn .6s var(--hd-ease) both; }
@keyframes hdIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* the round social buttons (computers: bottom right, as in the video; phones: the footer has them) */
.hd-social { display: none; }
.hd-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--hd-glass);
  border: 1px solid var(--hd-glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, transform .2s; }
.hd-social a svg { width: 19px; height: 19px; }
@media (hover: hover) { .hd-social a:hover { background: rgba(255,255,255,.34); transform: translateY(-2px); } }

@media (min-width: 720px) {
  .hd-stage { padding: 22px; min-height: calc(100svh - 0px); }
  #pauseBar ~ main .hd-stage { min-height: calc(100svh - 34px); }
  body[data-page="home"] .header-inner { padding-left: 44px; padding-right: 44px; margin-top: 14px; }
  body[data-page="home"]:not(.menu-open) .site-header { margin-bottom: calc(-1 * var(--header-h) - 14px); }
  .hd-glass { border-radius: 26px; padding-top: calc(var(--header-h) + 6px); }
  .hd-ring { --w: min(30vw, calc((100svh - 330px) / 1.2), 430px); --gap: min(25vw, 380px); min-height: 360px; }
  .hd-item[data-pos="-1"] .hd-label, .hd-item[data-pos="1"] .hd-label { opacity: 1; }
  .hd-card { width: min(470px, calc(100% - 48px)); margin: 4px auto 30px; padding: 16px 16px 16px 20px; }
  .hd-short { -webkit-line-clamp: 3; }
  .hd-social { display: flex; gap: 10px; position: absolute; right: 26px; bottom: 26px; z-index: 4; }
  html[dir="rtl"] .hd-social { right: auto; left: 26px; }
}
@media (min-width: 1100px) { .hd-ring { --gap: min(24vw, 400px); } }

@media (prefers-reduced-motion: reduce) {
  .hd-item, .hd-glass, body[data-page="home"] { transition: none; }
  .hd-card.swap .hd-card-text { animation: none; }
}
