/* Theme: stark, monochrome, small type, full-bleed product tiles (Yeezy Supply-style) */
:root {
    --theme-ink: #000000;
    --theme-paper: #ffffff;
    --theme-tile: #ececec;
    --theme-muted: #8c8c8c;
    --theme-line: #dcdcdc;
    --theme-font: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html, body { background: var(--theme-paper); color: var(--theme-ink); font-family: var(--theme-font); }
body { font-size: 11px; letter-spacing: .04em; -webkit-font-smoothing: antialiased; }
button, input { font-family: var(--theme-font); }

/* Hero: one full-screen image, nothing else */
.hero { height: 100svh; min-height: 100svh; max-height: none; }

/* Product: two edge-to-edge grey tiles, caption underneath */
.shop { padding: 0 0 96px; background: var(--theme-paper); }
.shop-product { grid-template-columns: 1fr; gap: 0; width: 100%; }
.shop-product-gallery { grid-template-columns: 1fr 1fr; gap: 0; }
.shop-product-gallery img { aspect-ratio: 4 / 5; background: var(--theme-tile); }
.shop-product-info { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 24px; padding: 18px 22px 0; }
.shop-product-category { grid-column: 1 / -1; margin: 0; color: var(--theme-muted); font-size: 10px; letter-spacing: .14em; }
.shop-product-info h2 { margin: 0; font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.shop-product-price { margin: 0; color: var(--theme-ink); font-size: 11px; letter-spacing: .06em; }
.shop-product-description { grid-column: 1 / -1; margin: 0; color: var(--theme-muted); font-size: 11px; }
.shop-add-button { grid-column: 1 / -1; justify-self: start; margin-top: 22px; border: 1px solid var(--theme-ink); padding: 13px 40px; background: transparent; color: var(--theme-ink); font-size: 10px; font-weight: 400; letter-spacing: .16em; }
.shop-add-button:hover { background: var(--theme-ink); color: var(--theme-paper); }

/* Search and bag drawer typography */
.bag-dialog, .search-dialog { font-family: var(--theme-font); }
.bag-dialog-header h2 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.bag-dialog-footer a { border-radius: 0; letter-spacing: .16em; }

/* Inner pages: small caps-style headings, square buttons */
.commerce-main h1, .document-main h1 { margin-bottom: 32px; font-family: var(--theme-font); font-size: 13px; font-weight: 400; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.commerce-button { border-radius: 0; padding: 14px 28px; font-size: 10px; letter-spacing: .16em; }
.document-footer { border-top: 1px solid var(--theme-line); }

@media (max-width: 700px) {
    .shop-product-info { padding: 16px 16px 0; }
}
/* Clickable product on the home page */
.shop-product-gallery a { display: block; }
.shop-product-info h2 a { color: inherit; text-decoration: none; }
.shop-product-info h2 a:hover { text-decoration: underline; }

/* Smooth open and close for the bag and search drawers */
.bag-dialog[open] { animation-duration: .7s; }
.bag-dialog[open]::backdrop { animation: bag-backdrop-in .7s ease both; }
.bag-dialog[open].is-closing { animation: bag-drawer-out .7s cubic-bezier(.4, 0, .2, 1) both; }
.bag-dialog[open].is-closing::backdrop { animation: bag-backdrop-out .7s ease both; }
.search-dialog[open].is-closing { animation: search-dialog-out .45s ease both; }
.search-dialog[open].is-closing::backdrop { animation: search-backdrop-out .45s ease both; }

@keyframes bag-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bag-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes bag-drawer-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: .7; transform: translateX(100%); }
}
@keyframes search-dialog-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(8px) scale(.98); }
}
@keyframes search-backdrop-out { from { opacity: 1; } to { opacity: 0; } }

.logo-transparent {
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
    mix-blend-mode: multiply !important;
}
.shop-product-gallery:has(a:only-child) { grid-template-columns: minmax(0, 560px); justify-content: center; }
/* White shirt sits inside a gray box, nothing cropped */
.shop-product-gallery img.shop-product-shirt,
.product-gallery img.product-image-tee {
  box-sizing: border-box;
  padding: 6%;
  background: #ebebeb;
  object-fit: contain;
  mix-blend-mode: normal;
}
/* Size buttons and checkout button */
.size-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.shop-product-info .size-picker { grid-column: 1 / -1; margin-top: 16px; }
.size-option { min-width: 48px; border: 1px solid var(--theme-ink); padding: 12px 14px; background: transparent; color: var(--theme-ink); font: inherit; font-size: 11px; letter-spacing: .08em; cursor: pointer; }
.size-option:hover { background: #f0f0f0; }
.size-option[aria-pressed="true"] { background: var(--theme-ink); color: var(--theme-paper); }
.product-checkout { display: block; width: 100%; margin-top: 10px; border: 1px solid #000000; padding: 18px 20px; background: transparent; color: #000000; font: inherit; font-size: 12px; letter-spacing: .08em; cursor: pointer; transition: background .18s ease, color .18s ease; }
.product-checkout:hover { background: #000000; color: #ffffff; }
.shop-checkout-button { margin-top: 10px; }
.bag-item-size { margin: 0; color: var(--theme-muted); }
/* Homepage product: price under the name */
.shop-product-info { grid-template-columns: 1fr; }
/* Shop button on the cover: matches the header's inverted look */
/* Explore button on the cover */
.hero-shop {
    position: absolute;
    left: 50%;
    bottom: 12vh;
    z-index: 1;
    transform: translateX(-50%);
    display: inline-block;
    padding: 6px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #000000;
    color: #000000;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
}

/* No hover highlight or opacity change */
.hero-shop:hover {
    background: transparent;
    color: #000000;
}

.hero-shop:focus-visible {
    outline: 1px solid #000000;
    outline-offset: 3px;
}
/* Hero Section Container */
.hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    min-height: 500px;
    overflow: hidden;
    background-color: #11110f;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pushes content down to the bottom */
    align-items: center;       /* Centers it horizontally */
    padding-bottom: 60px;      /* Distance from the bottom edge */
    box-sizing: border-box;
}

/* Background Video Styling */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* Ensure the Explore button floats above the video at the bottom */
.hero-shop {
    position: absolute;
    left: 50% !important;
    right: auto !important;
    bottom: 12vh;
    transform: translateX(-50%) !important;
    z-index: 1;
}

.hero::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: #11110f url("../../assets/manican-face-fallback.png") center 24% / cover no-repeat;
    content: "";
    filter: grayscale(1) contrast(1.16) brightness(.94);
    animation: hero-placeholder-drift 24s ease-in-out infinite alternate;
}

.hero::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .2), transparent 35%, rgba(0, 0, 0, .25));
    content: "";
    pointer-events: none;
}

.hero-video {
    z-index: 1;
    object-position: center 24%;
    filter: grayscale(1) contrast(1.16) brightness(.94);
}

.hero-shop,
.hero-shop:hover {
    z-index: 3;
    border-bottom: 1px solid #ffffff;
    color: #ffffff;
}

.hero-shop:hover {
    background: transparent;
}

.hero-shop:focus-visible {
    outline-color: #ffffff;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Quiet interaction cue for the primary CTA */
.hero-shop::after {
    content: "→";
    display: inline-block;
    width: auto;
    height: auto;
    margin-left: 8px;
    vertical-align: middle;
    opacity: 0;
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.hero-shop{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.hero-shop:hover::after,
.hero-shop:focus-visible::after {
    opacity: 1;
    transform: translate(4px, -50%);
}

.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 3;
    width: 18px;
    height: 24px;
    transform: translateX(-50%);
    color: #ffffff;
    opacity: .78;
    transition: opacity .25s ease, transform .25s ease;
    animation: hero-scroll-bob 2.2s ease-in-out infinite;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.hero-scroll-cue span {
    position: absolute;
    left: 8px;
    top: 2px;
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}
.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible { opacity: 1; transform: translate(-50%, 3px); }
.hero-scroll-cue:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
@keyframes hero-scroll-bob { 0%,100% { margin-bottom: 0; } 50% { margin-bottom: -5px; } }

@keyframes hero-placeholder-drift {
    from { transform: scale(1.025) translateX(-0.4%); }
    to { transform: scale(1.07) translateX(0.4%); }
}

.member-app-section{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);align-items:center;gap:clamp(42px,8vw,120px);padding:clamp(72px,10vw,150px) 8vw;background:#f4f4f1;color:#111}
.member-app-image{display:flex;align-items:center;justify-content:center;min-height:420px;background:transparent}.member-app-image img{display:block;width:100%;max-width:720px;height:auto;max-height:620px;object-fit:contain;filter:grayscale(1);mix-blend-mode:multiply}
.member-app-content{max-width:500px}.member-app-eyebrow{margin:0 0 20px;color:#6d6d68;font-size:10px;letter-spacing:.22em}.member-app-content h2{margin:0 0 24px;font:400 clamp(32px,4vw,58px)/.95 "Avenir Next",Avenir,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.05em}.member-app-description{margin:0;color:#555;font:14px/1.8 "Avenir Next",Avenir,"Helvetica Neue",Arial,sans-serif;letter-spacing:.01em}.member-app-actions{display:flex;flex-direction:column;align-items:flex-start;gap:24px;margin-top:34px}.member-app-badges{display:flex;gap:10px;flex-wrap:wrap}.app-store-badge{display:flex;align-items:center;gap:10px;min-width:144px;padding:10px 14px;border:1px solid #111;background:#111;color:#fff}.app-store-badge strong{font:20px/1 Arial,sans-serif}.app-store-badge span{display:flex;flex-direction:column;font:500 12px/1.15 "Avenir Next",Avenir,"Helvetica Neue",Arial,sans-serif;letter-spacing:.03em}.app-store-badge small{font-size:7px;letter-spacing:.12em;font-weight:400}.member-app-login{color:#111;font:500 10px/1 "Avenir Next",Avenir,"Helvetica Neue",Arial,sans-serif;letter-spacing:.18em;text-decoration:none}.member-app-login span{margin-left:10px;font-size:16px}.member-app-login:hover{text-decoration:underline;text-underline-offset:5px}
@media(max-width:760px){.member-app-section{grid-template-columns:1fr;gap:38px;padding:72px 22px}.member-app-image{min-height:0}.member-app-content h2{font-size:42px}}

@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }
}
