/*
Theme Name: sht! Child
Theme URI: https://sht.life
Template: twentytwentyfive
Description: Custom child theme for sht.life — BMX & Streetwear e-commerce
Author: Dinny
Version: 1.0.0
Text Domain: sht-child
*/

/* ========================================
   GLOBAL RESETS & BASE
   ======================================== */
body {
  font-family: 'Barlow', sans-serif !important;
  background: #f9fafa;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* Override TT5 defaults */
.wp-site-blocks { padding: 0 !important; }
.has-global-padding { padding: 0 !important; }
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none;
}

/* ========================================
   TOP BAR
   ======================================== */
.sht-topbar { background: #ECF2F5; padding: 8px 0; }
.sht-topbar-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1440px; margin: 0 auto; padding: 0 15px; }
.sht-topbar-msg { font-size: 13px; font-weight: 600; }
.sht-topbar-nav { display: flex; gap: 1em; list-style: none; margin: 0; padding: 0; }
.sht-topbar-nav a { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.sht-topbar-nav a:hover { opacity: .7; }
.sht-bolt { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }

/* ========================================
   HEADER
   ======================================== */
.sht-header { background: #121212; color: #fff; position: sticky; top: 0; z-index: 100; }
.sht-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1440px; margin: 0 auto; padding: 0 15px; height: 95px; }
.sht-header-left { display: flex; }
.sht-htoggle { padding: 0 30px; height: 95px; display: flex; align-items: center; font: 600 16px/1 'Barlow', sans-serif; text-transform: uppercase; color: #fff; background: none; border: none; cursor: pointer; }
.sht-htoggle:hover, .sht-htoggle.on { background: rgba(255,255,255,.18); }
.sht-header-logo { display: flex; align-items: center; justify-content: center; }
.sht-header-logo img { height: 38px; }
.sht-header-right { display: flex; justify-content: flex-end; align-items: center; gap: 40px; }
.sht-hicon { display: flex; align-items: center; gap: 8px; font: 600 14px/1 'Barlow', sans-serif; text-transform: uppercase; color: #fff; background: none; border: none; cursor: pointer; }
.sht-hicon svg { width: 22px; height: 22px; fill: #fff; }
.sht-badge { background: #E4F0F8; color: #000; font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }

/* Hamburger */
.sht-ham { display: none; flex-direction: column; gap: 5px; width: 24px; background: none; border: none; cursor: pointer; padding: 0; margin-right: 15px; }
.sht-ham span { display: block; width: 24px; height: 3px; background: #fff; border-radius: 2px; }

/* ========================================
   NAVIGATION
   ======================================== */
.sht-nav { background: #fff; border-bottom: 1px solid #DADFE2; }
.sht-nav ul { display: flex; list-style: none; max-width: 1440px; margin: 0 auto; padding: 0 15px; }
.sht-nav a { display: block; padding: 13px 20px; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.sht-nav a:hover { background: #F8F8F8; }

/* ========================================
   SLIDER
   ======================================== */
.sht-slider { position: relative; overflow: hidden; background: #78909c; }
.sht-slider-track { display: flex; transition: transform 1.2s ease; }
.sht-slide { min-width: 100%; height: 400px; display: flex; align-items: center; background-size: cover; background-position: center; position: relative; }
.sht-slide::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.sht-slide-content { position: relative; z-index: 2; padding: 0 40px; }
.sht-slide h2 { font-size: 3.6rem; font-weight: 900; text-transform: uppercase; line-height: 1.1; color: #fff; margin: 0; }
.sht-slide p { font-size: 1rem; text-transform: uppercase; color: #fff; margin: 0; }
.sht-slide-btn { display: inline-block; margin-top: 14px; padding: 12px 28px; background: #00C22D; color: #fff; font: 600 14px 'Barlow', sans-serif; text-transform: uppercase; }
.sht-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.sht-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); background: none; cursor: pointer; padding: 0; }
.sht-dot.on { background: #fff; border-color: #fff; }

/* ========================================
   CATEGORY BOXES
   ======================================== */
.sht-cats { display: flex; gap: 10px; max-width: 1440px; margin: 0 auto; padding: 10px 15px; height: 560px; }
.sht-cats-left { flex: 0 0 calc(50% - 5px); }
.sht-cats-right { flex: 0 0 calc(50% - 5px); display: flex; flex-direction: column; gap: 10px; }
.sht-cats-right-top { flex: 1; }
.sht-cats-right-bottom { flex: 1; display: flex; gap: 10px; }
.sht-cats-right-bottom > a { flex: 1; }

.sht-cbox { display: flex; flex-direction: column; justify-content: flex-end; background-size: cover; background-position: center; position: relative; height: 100%; cursor: pointer; }
.sht-cbox::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.2); transition: background .3s; }
.sht-cbox:hover::after { background: rgba(0,0,0,.35); }
.sht-cbox--sm::after { background: rgba(0,0,0,.3); }
.sht-cbox--sm:hover::after { background: rgba(0,0,0,.4); }
.sht-ci { position: relative; z-index: 2; }
.sht-cbox--bmx .sht-ci { padding: 40px; }
.sht-cbox--street .sht-ci { padding: 40px; }
.sht-cbox--sm .sht-ci { padding: 30px; }

.sht-ct { color: #fff; text-transform: uppercase; line-height: 1; font-weight: 800; margin: 0; }
.sht-ct--xl { font-size: 39px; }
.sht-ct--lg { font-size: 29px; font-weight: 400; text-transform: none; line-height: 1.2; text-shadow: 1px 0 13px rgba(0,0,0,.92); }
.sht-ct--md { font-size: 24px; }
.sht-csub { color: #fff; font-size: 14px; font-weight: 500; margin-top: 6px; }
.sht-citems { display: flex; gap: 28px; margin-top: 8px; list-style: none; color: #fff; font-size: 14px; font-weight: 600; padding: 0; }
.sht-cbtn { display: inline-block; margin-top: 16px; padding: 13px 30px; background: #fff; color: #000; font: 600 13px 'Barlow', sans-serif; border-radius: 3px; }
.sht-cbtn:hover { opacity: .85; }

/* ========================================
   FOOTER
   ======================================== */
.sht-footer { background: #121212; color: #fff; padding: 50px 0; }
.sht-footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1440px; margin: 0 auto; padding: 0 15px; }
.sht-footer h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; }
.sht-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.sht-footer a { font-size: 13px; font-weight: 500; text-transform: uppercase; color: rgba(255,255,255,.7); }
.sht-footer a:hover { color: #fff; }

/* ========================================
   MOBILE OVERLAY & MENU
   ======================================== */
.sht-mob-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; opacity: 0; visibility: hidden; transition: all .3s; }
.sht-mob-overlay.on { opacity: 1; visibility: visible; }
.sht-mob { position: fixed; top: 0; left: -100%; width: 320px; max-width: 85vw; height: 100vh; background: #121212; color: #fff; z-index: 200; transition: left .35s ease; overflow-y: auto; padding: 20px 0; }
.sht-mob.on { left: 0; }
.sht-mob-close { display: flex; align-items: center; gap: 8px; background: none; border: none; color: #fff; font: 700 12px 'Barlow', sans-serif; text-transform: uppercase; cursor: pointer; padding: 15px 25px; }
.sht-mob-close svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 12px; }
.sht-mob-tabs { display: flex; padding: 0 25px; gap: 10px; margin-bottom: 20px; }
.sht-mob-tab { flex: 1; padding: 14px; text-align: center; font: 600 14px 'Barlow', sans-serif; text-transform: uppercase; background: rgba(255,255,255,.08); border: none; color: #fff; cursor: pointer; }
.sht-mob-tab.on { background: rgba(255,255,255,.2); }
.sht-mob-list { list-style: none; padding: 0 25px; margin: 0; }
.sht-mob-list a { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 15px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.sht-mob-list .sht-mi { width: 28px; height: 28px; fill: #fff; flex-shrink: 0; }
.sht-mob-section { padding: 20px 25px 0; border-top: 1px solid rgba(255,255,255,.1); margin-top: 20px; }
.sht-mob-section a { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 14px; font-weight: 500; color: #fff; }
.sht-mob-section .sht-mi { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }
.sht-mob-btns { display: flex; gap: 10px; padding: 20px 25px; }
.sht-mob-btn { flex: 1; padding: 12px; text-align: center; font: 600 13px 'Barlow', sans-serif; text-transform: uppercase; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; }
.sht-mob-btn--p { background: #fff; color: #121212; border-color: #fff; }

/* ========================================
   WOOCOMMERCE OVERRIDES
   ======================================== */
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: #121212;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  border-radius: 3px;
  padding: 12px 24px;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: #282a30;
  color: #fff;
}
.woocommerce ul.products li.product .price {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
}
.woocommerce ul.products li.product a img {
  border-radius: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .sht-topbar, .sht-nav { display: none; }
  .sht-header-left { display: none; }
  .sht-ham { display: flex; }
  .sht-header-inner { height: 60px; grid-template-columns: auto 1fr auto; }
  .sht-header-logo img { height: 29px; }
  .sht-header-right { gap: 20px; }
  .sht-hicon span:not(.sht-badge) { display: none; }
  .sht-slide { height: 300px; }
  .sht-slide h2 { font-size: 3.2rem; }
  .sht-cats { flex-direction: column; height: auto; }
  .sht-cats-left { flex: none; height: 375px; }
  .sht-cats-right { flex: none; }
  .sht-cats-right-top { flex: none; height: 280px; }
  .sht-cats-right-bottom { flex: none; height: 260px; }
  .sht-footer-inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 767px) {
  .sht-slide h2 { font-size: 2.4rem; }
  .sht-slide { height: 260px; }
  .sht-cats-left { height: 320px; }
  .sht-cats-right-top { height: 240px; }
  .sht-cats-right-bottom { flex-direction: column; height: auto; }
  .sht-cats-right-bottom > a { flex: none; height: 220px; }
}
