/*
Theme Name: TeesBox Official
Author: Design Reference v3
Version: 16.0 (Hero Button Fix)
*/

/* --- 1. CORE VARIABLES --- */
:root {
  --red: #c8332a;
  --cream: #f5efe0;
  --cream-d: #ede4cf;
  --dark: #0e0e0e;
  --dark-border: #1a1a1a;
  --gold-l: #e8c96a;
  --border: 2px solid #161616;
  --max: 1380px;
  --pad: 2rem;
}

/* --- 2. RESET & GLOBALS --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Lato', sans-serif; background: var(--cream); color: #161616; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- 3. HEADER & NAV --- */
.promo { background: #000 !important; border-bottom: var(--border); height: 40px; display: flex; align-items: center; position: relative; z-index: 1001; }
.promo-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); color: #fff; font-family: 'Oswald'; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; width: 100%; text-align: center; }

.nav-outer { background: var(--red); border-bottom: 3px solid var(--dark); height: 80px; position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); width: 100%; display: flex !important; justify-content: space-between; align-items: center; }
.nav-logo-wrap { flex: 0 0 180px; }
.nav-logo-wrap img { max-height: 45px !important; width: auto !important; display: block !important; }

.nav-links { flex-grow: 1; display: flex; justify-content: center; height: 80px; }
.nav-links ul { display: flex; height: 100%; }
.nav-links li a { 
    color: #fff !important; font-family: 'Oswald'; font-weight: 700; text-transform: uppercase; 
    padding: 0 1.5rem; font-size: 0.75rem; letter-spacing: 1px; height: 80px; display: flex; align-items: center; position: relative;
}
.nav-links li a:hover { background: rgba(0,0,0,0.1); }
.nav-links li a::after { content: ''; position: absolute; bottom: 20px; left: 1.5rem; right: 1.5rem; height: 2px; background: var(--gold-l); transform: scaleX(0); transition: transform 0.3s; }
.nav-links li a:hover::after { transform: scaleX(1); }

.nav-cart { background: var(--dark); color: #fff !important; padding: .6rem 1.2rem; font-family: 'Oswald'; font-weight: 700; text-transform: uppercase; font-size: 0.75rem; }

/* --- 4. HERO --- */
.hero { position: relative; min-height: 580px; background: var(--dark); border-bottom: var(--border); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(115deg, #1a0a04 0%, #3a1208 35%, #6a2010 65%, #c8332a 100%); z-index: 1; }
.hero-content { position: relative; z-index: 10; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); width: 100%; }
.hero-h { font-family: 'Alfa Slab One', serif !important; font-size: 6.2rem; line-height: 0.85; color: var(--cream); margin: 1.5rem 0; text-transform: uppercase; }
.hero-h em { color: var(--gold-l); font-style: normal; }
.hero-sub { color: rgba(255,255,255,0.9) !important; max-width: 450px; line-height: 1.7; margin-bottom: 2.5rem; font-size: 1.05rem; display: block !important; }

.btn-primary { background: var(--cream); color: var(--dark); padding: 1rem 2.5rem; font-family: 'Oswald'; font-weight: 700; text-transform: uppercase; display: inline-block; border: 2px solid var(--cream); transition: 0.3s; vertical-align: middle; }
.btn-primary:hover { background: var(--gold-l); border-color: var(--gold-l); transform: translateY(-3px); }

/* FIXED: Color forced to cream and display set to inline-block for alignment */
.btn-ghost { 
    border: 2px solid rgba(255,255,255,0.4) !important; 
    color: var(--cream) !important; 
    padding: 1rem 2.5rem; 
    font-family: 'Oswald'; 
    font-weight: 700; 
    text-transform: uppercase; 
    display: inline-block; 
    margin-left: 1rem; 
    transition: 0.3s;
    vertical-align: middle;
}
.btn-ghost:hover { transform: translateY(-3px); border-color: white; background: rgba(255,255,255,0.1); color: #fff !important; }

/* --- 5. CATEGORY STRIP --- */
.cat-strip { background: var(--cream); border-bottom: var(--border); }
.cat-grid { max-width: var(--max); margin: 0 auto; display: grid !important; grid-template-columns: repeat(4, 1fr) !important; }
.cat-item { padding: 1.8rem var(--pad); border-right: var(--border); display: flex; justify-content: space-between; align-items: center; color: var(--dark); font-family: 'Oswald'; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }
.cat-item:last-child { border-right: none; }
.cat-item:hover { background: var(--cream-d); }

/* --- 6. PRODUCT GRIDS (Tall 3:4) --- */
.sec-head-wrap { max-width: var(--max); margin: 0 auto; padding: 6rem var(--pad) 2rem; display: flex; justify-content: space-between; align-items: flex-end; }
.sec-title-main { font-family: 'Alfa Slab One', serif; font-size: 3rem; text-transform: uppercase; line-height: 1; }
.sec-title-main em { font-style: normal; color: var(--red); }
.sec-link-top { font-family: 'Oswald'; text-transform: uppercase; font-weight: 700; font-size: 0.75rem; color: var(--red); }

.prod-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; border: var(--border); border-bottom: none; max-width: var(--max); margin: 0 auto; }
.p-card { background: var(--cream); border-right: var(--border); border-bottom: var(--border); display: flex; flex-direction: column; overflow: hidden; }
.p-card:nth-child(4n) { border-right: none; }

.p-img { height: 480px; background: var(--cream-d); border-bottom: var(--border); position: relative; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: cover !important; transition: 0.6s; }
.p-card:hover .p-img img { transform: scale(1.05); }

.p-cta { position: absolute; bottom: 0; left: 0; right: 0; background: var(--red); color: #fff; text-align: center; padding: 0.8rem; font-family: 'Oswald'; text-transform: uppercase; font-size: 0.7rem; transform: translateY(100%); transition: 0.3s ease; }
.p-card:hover .p-cta { transform: translateY(0); }

.p-info { padding: 1.5rem; background: var(--cream); }
.p-name { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-weight: 700; font-size: 0.95rem; margin-bottom: 5px; line-height: 1.3; }
.p-price { color: var(--red); font-weight: 900; font-size: 1.1rem; }

/* --- 7. HERITAGE BANNER --- */
.heritage-section { 
    position: relative; 
    min-height: 450px; 
    display: flex; 
    align-items: center; 
    margin: 4rem 0; 
    overflow: hidden; 
    border-top: 3px solid var(--dark); 
    border-bottom: 3px solid var(--dark); 
}
.heritage-bg { 
    position: absolute; inset: 0; 
    background: linear-gradient(130deg, #0a2010 0%, #1a4020 40%, #2d6030 100%) !important; 
    z-index: 1; 
}
.heritage-content { position: relative; z-index: 5; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); width: 100%; }
.heritage-h { font-family: 'Alfa Slab One', serif; font-size: 5rem; color: var(--cream); line-height: 0.9; text-transform: uppercase; margin-bottom: 20px; }

/* --- 8. COLLECTIONS --- */
.coll-grid-home { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; border: 3px solid var(--dark); max-width: var(--max); margin: 0 auto 6rem; background: var(--dark); }
.coll-item-home { min-height: 400px; border-right: 3px solid var(--dark); position: relative; display: flex; align-items: flex-end; padding: 3rem; overflow: hidden; cursor: pointer; }
.coll-bg { position: absolute; inset: 0; z-index: 1; transition: 0.8s; }
.coll-bg-1 { background: linear-gradient(155deg, #1c0a04, #7a2a10); }
.coll-bg-2 { background: linear-gradient(155deg, #0c1c0c, #325832); }
.coll-bg-3 { background: linear-gradient(155deg, #080c20, #1e2848); }
.coll-item-home:hover .coll-bg { transform: scale(1.1); }
.coll-content-home { position: relative; z-index: 5; color: white; }
.btn-coll { font-family: Oswald; font-size: 0.7rem; text-transform: uppercase; color: white; border: 1px solid rgba(255,255,255,0.5); padding: 8px 20px; transition: 0.3s; }
.coll-item-home:hover .btn-coll { background: white !important; color: black !important; }

/* --- 9. COMPACT FOOTER & USP --- */
.usp-outer { background: #000; border-top: 3px solid var(--red); border-bottom: 1px solid var(--dark-border); }
.usp-grid { max-width: var(--max); margin: 0 auto; display: grid !important; grid-template-columns: repeat(3, 1fr) !important; border-left: 1px solid var(--dark-border); }
.usp-item { padding: 2rem var(--pad); display: flex; align-items: center; justify-content: center; gap: 1.5rem; border-right: 1px solid var(--dark-border); }
.usp-icon-circle { width: 50px; height: 50px; border: 2px solid var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 1.2rem; flex-shrink: 0; }
.usp-main { display: block; font-family: 'Oswald'; font-weight: 700; text-transform: uppercase; color: #fff; font-size: 0.9rem; }
.usp-sub { display: block; font-size: 0.75rem; color: #888; margin-top: 2px; font-weight: 400; }

.footer-outer { background: var(--dark); padding: 5rem 0 0; color: #999; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 5rem; display: grid !important; grid-template-columns: 1.5fr 1fr 1fr 1.5fr !important; gap: 4rem; }
.logo-bw { font-family: 'Alfa Slab One', serif; font-size: 2.2rem; color: #fff; text-transform: uppercase; display: block; margin-bottom: 1rem; line-height: 1; }
.logo-bw em { font-style: normal; color: var(--red); }
.f-head { font-family: 'Oswald'; color: #fff; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 1.5rem; }
.f-links li { margin-bottom: 0.8rem; }
.f-links a { font-size: 0.85rem; color: #999; }
.f-links a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid var(--dark-border); padding: 2rem 0; background: #000; }
.footer-bottom-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: flex; justify-content: space-between; align-items: center; }

#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }