/* =========================================================
   HOTHEADZ — Storefront Stylesheet
   ========================================================= */

:root {
    --black:        #0a0908;
    --near-black:   #121110;
    --charcoal:     #1a1918;
    --line:         #2c2a29;
    --red:          #d81f26;
    --red-dark:     #9c1418;
    --white:        #f5f3f0;
    --grey:         #9a9591;
    --pink:         #e88fb0;
    --orange:       #e0651a;

    --font-display: 'Anton', 'Arial Narrow', sans-serif;
    --font-brush:   'Permanent Marker', cursive;
    --font-body:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------------------------------------------------------
   Announcement bar
   --------------------------------------------------------- */
.announcement-bar {
    background: var(--black);
    border-bottom: 1px solid var(--line);
    text-align: center;
    padding: 9px 16px;
    font-size: 12px;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--white);
}

/* ---------------------------------------------------------
   Header / Nav
   --------------------------------------------------------- */
.site-header {
    background: var(--black);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
}
.nav-right { justify-content: flex-end; }

.nav-left a, .nav-right a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--white);
    transition: color .15s ease;
    white-space: nowrap;
}
.nav-left a:hover, .nav-right a:hover { color: var(--red); }

.logo {
    font-family: var(--font-brush);
    font-size: 30px;
    color: var(--red);
    letter-spacing: 0.02em;
    text-shadow: 0 0 14px rgba(216,31,38,0.35);
}

.cart-link { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.cart-badge {
    background: var(--red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    width: 16px; height: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
    top: -6px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    background: linear-gradient(100deg, rgba(10,9,8,0.96) 0%, rgba(10,9,8,0.72) 42%, rgba(10,9,8,0.15) 68%),
                url('../images/hero/hero-bg.jpg') center right / cover no-repeat;
    overflow: hidden;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 32px;
    width: 100%;
    position: relative;
}

.hero-badge {
    position: absolute;
    right: 32px;
    top: 40px;
    width: 128px; height: 128px;
    border: 1px solid rgba(245,243,240,0.6);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
}
.hero-badge svg { width: 100%; height: 100%; }

.hero-content { max-width: 620px; }

.hero-title {
    font-family: var(--font-brush);
    line-height: 0.95;
    margin: 0 0 18px;
    text-transform: uppercase;
}
.hero-title .line1 {
    display: block;
    font-size: clamp(48px, 7vw, 84px);
    color: var(--white);
    transform: rotate(-1.5deg);
}
.hero-title .line2 {
    display: block;
    font-size: clamp(64px, 10vw, 118px);
    color: var(--red);
    transform: rotate(-1.5deg);
    text-shadow: 0 0 30px rgba(216,31,38,0.4);
}

.hero-sub {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--white);
    max-width: 380px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 3px;
    border: 1px solid transparent;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #b8181e; }

.btn-outline { background: transparent; color: var(--white); border-color: var(--red); }
.btn-outline:hover { background: var(--red); }

/* ---------------------------------------------------------
   Feature strip
   --------------------------------------------------------- */
.feature-strip {
    border-bottom: 1px solid var(--line);
    background: var(--black);
}
.feature-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    border-right: 1px solid var(--line);
}
.feature:last-child { border-right: none; }
.feature-icon {
    width: 30px; height: 30px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
}
.feature-title { font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em; }
.feature-sub { font-size: 11.5px; color: var(--grey); margin-top: 2px; }

/* ---------------------------------------------------------
   Collection banner (Inferno)
   --------------------------------------------------------- */
.collection-banner {
    background: var(--near-black);
    border-bottom: 1px solid var(--line);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.collection-banner-inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: center;
}
.eyebrow {
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}
.collection-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 0.95;
    text-transform: uppercase;
    margin: 0 0 6px;
}
.collection-title .accent {
    display: block;
    font-family: var(--font-brush);
    color: var(--red);
    text-transform: none;
    font-size: 1.15em;
}
.collection-copy {
    color: var(--grey);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    max-width: 340px;
    margin: 18px 0 26px;
}
.collection-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.collection-product-card {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: var(--charcoal);
    transition: transform .2s ease, box-shadow .2s ease;
}
.collection-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.45);
}
.collection-product-card img { aspect-ratio: 4/4.5; object-fit: cover; width: 100%; }

/* ---------------------------------------------------------
   Section headings
   --------------------------------------------------------- */
.section { padding: 60px 0; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 26px;
}
.section-title {
    font-family: var(--font-display);
    color: var(--red);
    font-size: 22px;
    letter-spacing: 0.04em;
    margin: 0;
    text-transform: uppercase;
}
.view-all {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: underline;
    color: var(--white);
}
.view-all:hover { color: var(--red); }

/* ---------------------------------------------------------
   Product grid / cards
   --------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.product-grid.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.product-grid.carousel::-webkit-scrollbar { display: none; }
.product-grid.carousel .product-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
}
.product-card {
    display: block;
    color: var(--white);
    position: relative;
}
.product-thumb {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: var(--charcoal);
    aspect-ratio: 4/4.6;
    margin-bottom: 12px;
}
.product-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }

.product-quickadd {
    position: absolute;
    left: 10px; right: 10px; bottom: 10px;
    background: rgba(10,9,8,0.85);
    border: 1px solid var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    padding: 10px;
    border-radius: 3px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}
.product-card:hover .product-quickadd { opacity: 1; transform: translateY(0); }

.product-name {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 4px;
}
.product-price { font-size: 13px; color: var(--grey); margin: 0 0 8px; }

.swatches { display: flex; gap: 6px; }
.swatch {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(245,243,240,0.35);
    display: inline-block;
}

.carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.carousel-nav button {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--white);
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 14px;
}
.carousel-nav button:hover { border-color: var(--red); color: var(--red); }

/* ---------------------------------------------------------
   Lookbook + Newsletter split
   --------------------------------------------------------- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--line);
}
.split-panel {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.split-panel::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(10,9,8,0.92) 10%, rgba(10,9,8,0.35) 60%, rgba(10,9,8,0.55) 100%);
}
.split-panel.lookbook { background-image: url('../images/hero/lookbook.jpg'); }
.split-panel.newsletter { background-image: url('../images/hero/newsletter-bg.jpg'); }

.split-content { position: relative; z-index: 1; max-width: 380px; }
.split-title {
    font-family: var(--font-display);
    font-size: 32px;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.split-sub { font-size: 13px; color: var(--grey); margin-bottom: 20px; line-height: 1.6; }

.newsletter-form { display: flex; gap: 10px; max-width: 380px; }
.newsletter-form input {
    flex: 1;
    padding: 13px 14px;
    background: rgba(245,243,240,0.06);
    border: 1px solid rgba(245,243,240,0.3);
    color: var(--white);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    border-radius: 3px;
}
.newsletter-form input::placeholder { color: var(--grey); text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }
.newsletter-form button {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 0 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 3px;
    white-space: nowrap;
}
.newsletter-form button:hover { background: #b8181e; }
.newsletter-msg { margin-top: 10px; font-size: 12.5px; }
.newsletter-msg.ok { color: #6bd68c; }
.newsletter-msg.error { color: #ff8080; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
    background: var(--black);
    border-top: 1px solid var(--line);
    padding: 56px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
    gap: 30px;
    padding-bottom: 40px;
}
.footer-logo { font-family: var(--font-brush); color: var(--red); font-size: 24px; margin-bottom: 12px; }
.footer-about { font-size: 12.5px; color: var(--grey); line-height: 1.7; max-width: 260px; }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a {
    width: 32px; height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .15s ease, color .15s ease;
}
.footer-social a:hover { border-color: var(--red); color: var(--red); }

.footer-col h4 {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--white);
    margin: 0 0 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 12.5px; color: var(--grey); }
.footer-col ul li a:hover { color: var(--red); }

.footer-tagline-panel {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    background: url('../images/hero/footer-model.jpg') center/cover no-repeat;
}
.footer-tagline-panel::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(10,9,8,0.85), rgba(10,9,8,0.15));
}
.footer-tagline { position: relative; z-index: 1; font-family: var(--font-display); font-size: 20px; line-height: 1.2; text-transform: uppercase; }
.footer-tagline .accent { color: var(--red); font-size: 1.3em; }

.footer-bottom {
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 18px 0;
    font-size: 11.5px;
    color: var(--grey);
    letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   Product detail page
   --------------------------------------------------------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 50px 0 80px;
}
.product-gallery-main {
    border-radius: 8px;
    overflow: hidden;
    background: var(--charcoal);
    aspect-ratio: 4/4.6;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.pd-title { font-family: var(--font-display); font-size: 30px; text-transform: uppercase; margin: 0 0 10px; }
.pd-price { font-size: 20px; color: var(--red); font-weight: 700; margin-bottom: 20px; }
.pd-desc { color: var(--grey); font-size: 14.5px; line-height: 1.7; margin-bottom: 28px; }

.pd-option-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 10px; text-transform: uppercase; }
.pd-swatches { display: flex; gap: 10px; margin-bottom: 26px; }
.pd-swatch {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
}
.pd-swatch.selected { border-color: var(--red); }

.pd-qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; }
.qty-control button { background: none; border: none; color: var(--white); width: 36px; height: 40px; font-size: 16px; }
.qty-control input {
    width: 44px; text-align: center; background: none; border: none; color: var(--white); font-size: 14px;
}

.pd-add-btn { width: 100%; justify-content: center; padding: 16px; font-size: 13px; }

.pd-meta { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12.5px; color: var(--grey); }
.pd-meta div { margin-bottom: 6px; }

/* ---------------------------------------------------------
   Cart page
   --------------------------------------------------------- */
.cart-page { padding: 50px 0 80px; }
.cart-row {
    display: grid;
    grid-template-columns: 90px 1fr auto auto auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.cart-row img { width: 90px; height: 100px; object-fit: cover; border-radius: 4px; }
.cart-remove { color: var(--grey); font-size: 12px; text-decoration: underline; }
.cart-remove:hover { color: var(--red); }
.cart-summary { max-width: 340px; margin-left: auto; margin-top: 30px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--grey); }

/* ---------------------------------------------------------
   Toast (add to cart confirmation)
   --------------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--near-black);
    border: 1px solid var(--red);
    color: var(--white);
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    z-index: 999;
    transform: translateY(20px);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 980px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .collection-banner-inner { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nav-left, .nav-right > a:not(.cart-link) { display: none; }
    .mobile-menu-toggle { display: block; }
    .nav-wrap { padding: 14px 20px; }
    .container { padding: 0 20px; }
    .feature-strip .container { grid-template-columns: 1fr 1fr; }
    .feature { border-right: none; border-bottom: 1px solid var(--line); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .collection-products { grid-template-columns: 1fr; }
    .split-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero { min-height: 560px; }
    .hero-badge { display: none; }
}

/* Mobile nav drawer */
.mobile-drawer {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    display: none;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-panel {
    background: var(--near-black);
    width: 78%; max-width: 320px;
    height: 100%;
    padding: 24px;
    border-right: 1px solid var(--line);
}
.mobile-drawer-panel a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.mobile-drawer-close { background: none; border: none; color: var(--white); font-size: 22px; margin-bottom: 10px; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
