/*
Theme Name: ZEDI
Theme URI: https://example.com/zedi
Author: ZEDI
Author URI: https://example.com
Description: Bold editorial fashion theme in black, white, and red. Every text and image on the homepage is editable from Appearance → Customize.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zedi
Tags: e-commerce, fashion, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* ---------- Reset / Base ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  font-weight:400;line-height:1.5;color:#141414;background:#fff;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;background:none;border:0;color:inherit}
input{font:inherit}
ul{list-style:none}

:root{
  --brand-red:#d4262a;
  --brand-red-deep:#a01a1d;
  --fg:#141414;
  --bg:#ffffff;
  --muted:#737373;
  --border:#e5e5e5;
  --secondary:#f5f5f5;
  --font-display:'Playfair Display','Times New Roman',serif;
}
.font-display{font-family:var(--font-display);font-weight:400;letter-spacing:-.02em}

/* ---------- Layout helpers ---------- */
.container{padding:0 1rem}
@media(min-width:768px){.container{padding:0 2rem}}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--border)}
.announcement{background:#141414;color:#fff;font-size:11px;letter-spacing:.2em;text-transform:uppercase;overflow:hidden}
.marquee{display:flex;overflow:hidden;user-select:none}
.marquee-track{display:flex;flex-shrink:0;gap:3rem;min-width:100%;animation:scroll 30s linear infinite;padding:.5rem 0}
.marquee-track .grp{display:flex;gap:3rem;padding:0 1.5rem;white-space:nowrap;align-items:center}
.dot{color:var(--brand-red)}
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-100%)}}

.header-main{padding:1rem;display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
@media(min-width:768px){.header-main{padding:1rem 2rem}}
.logo img{height:32px;width:auto}
@media(min-width:768px){.logo img{height:40px}}
.header-search{display:none;flex:1;max-width:28rem;margin:0 2rem;position:relative}
@media(min-width:768px){.header-search{display:flex}}
.header-search input{width:100%;background:var(--secondary);border:0;padding:.65rem 1rem .65rem 2.5rem;font-size:14px;outline:none}
.header-search svg{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:var(--muted)}
.header-icons{display:flex;gap:1.25rem;align-items:center}
.header-icons a{position:relative;display:inline-flex}
.bag-count{position:absolute;top:-8px;right:-8px;background:var(--brand-red);color:#fff;font-size:10px;font-weight:600;width:16px;height:16px;display:flex;align-items:center;justify-content:center;border-radius:50%}

.main-nav{display:none;justify-content:center;gap:2rem;padding:0 0 .75rem;font-size:12px;letter-spacing:.18em;font-weight:500}
@media(min-width:768px){.main-nav{display:flex}}
.main-nav a{transition:color .2s}
.main-nav a:hover,.main-nav a.red{color:var(--brand-red)}
.menu-toggle{display:inline-flex}
@media(min-width:768px){.menu-toggle{display:none}}

/* ---------- Hero ---------- */
.hero{background:#141414;color:#fff;overflow:hidden}
.hero-grid{display:grid;min-height:80vh}
@media(min-width:768px){.hero-grid{grid-template-columns:1fr 1fr}}
.hero-text{display:flex;flex-direction:column;justify-content:center;padding:5rem 2rem;order:2}
@media(min-width:768px){.hero-text{padding:5rem 4rem;order:1}}
.eyebrow{font-size:12px;letter-spacing:.3em;color:var(--brand-red);margin-bottom:1.5rem;text-transform:uppercase}
.hero h1{font-family:var(--font-display);font-size:clamp(3.5rem,9vw,8rem);line-height:.9;margin-bottom:2rem;font-weight:400;letter-spacing:-.02em}
.hero h1 em{font-style:italic;color:var(--brand-red)}
.hero p{color:rgba(255,255,255,.7);max-width:28rem;margin-bottom:2.5rem;line-height:1.6}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap}
.hero-image{position:relative;order:1;min-height:50vh}
@media(min-width:768px){.hero-image{order:2;min-height:auto}}
.hero-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:1rem 2rem;font-size:12px;letter-spacing:.2em;font-weight:600;text-transform:uppercase;transition:all .2s;border:1px solid transparent}
.btn-red{background:var(--brand-red);color:#fff}
.btn-red:hover{background:#fff;color:#141414}
.btn-outline-light{border-color:rgba(255,255,255,.4);color:#fff}
.btn-outline-light:hover{background:#fff;color:#141414}
.btn-outline-dark{border-color:#141414;color:#141414}
.btn-outline-dark:hover{background:#141414;color:#fff}
.btn-white{background:#fff;color:#141414}
.btn-white:hover{background:var(--brand-red);color:#fff}

/* ---------- Sections ---------- */
.section{padding:5rem 1rem}
@media(min-width:768px){.section{padding:5rem 2rem}}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:2.5rem;gap:1rem;flex-wrap:wrap}
.section-head h2{font-family:var(--font-display);font-size:clamp(2.25rem,5vw,3.75rem);margin-top:.5rem;font-weight:400}
.section-head .eyebrow{margin-bottom:0}
.view-all{display:inline-flex;align-items:center;gap:.5rem;font-size:12px;letter-spacing:.2em;font-weight:600;border-bottom:1px solid #141414;padding-bottom:.25rem;text-transform:uppercase}
.view-all:hover{color:var(--brand-red);border-color:var(--brand-red)}

/* ---------- Categories ---------- */
.cat-grid{display:grid;gap:1rem}
@media(min-width:768px){.cat-grid{grid-template-columns:repeat(3,1fr)}}
.cat-card{position:relative;display:block;aspect-ratio:3/4;overflow:hidden;background:var(--secondary)}
.cat-card img{width:100%;height:100%;object-fit:cover;transition:transform .7s}
.cat-card:hover img{transform:scale(1.05)}
.cat-card::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(20,20,20,.7),transparent 60%)}
.cat-info{position:absolute;bottom:0;left:0;padding:2rem;color:#fff;z-index:1}
.cat-info p{font-size:12px;letter-spacing:.3em;color:rgba(255,255,255,.7);margin-bottom:.5rem;text-transform:uppercase}
.cat-info h3{font-family:var(--font-display);font-size:clamp(2rem,4vw,3rem);margin-bottom:.75rem;font-weight:400}
.cat-info span{display:inline-flex;align-items:center;gap:.5rem;font-size:12px;letter-spacing:.2em;font-weight:600;border-bottom:1px solid #fff;padding-bottom:2px}
.cat-card:hover .cat-info span{color:var(--brand-red);border-color:var(--brand-red)}

/* ---------- Products ---------- */
.prod-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem 1rem;row-gap:2.5rem}
@media(min-width:768px){.prod-grid{grid-template-columns:repeat(4,1fr)}}
.product-card{display:block;group:card}
.product-img{position:relative;overflow:hidden;background:var(--secondary);aspect-ratio:4/5;margin-bottom:.75rem}
.product-img img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.product-card:hover .product-img img{transform:scale(1.04)}
.tag{position:absolute;top:.75rem;left:.75rem;background:var(--brand-red);color:#fff;font-size:10px;letter-spacing:.15em;font-weight:600;padding:.25rem .5rem;text-transform:uppercase}
.quick-add{position:absolute;bottom:0;left:0;right:0;background:#141414;color:#fff;padding:.75rem;font-size:12px;letter-spacing:.2em;font-weight:600;opacity:0;transform:translateY(8px);transition:all .25s;text-transform:uppercase}
.product-card:hover .quick-add{opacity:1;transform:translateY(0)}
.product-brand{font-size:11px;letter-spacing:.18em;font-weight:600;text-transform:uppercase;margin-bottom:.25rem}
.product-name{font-size:14px;color:var(--muted);margin-bottom:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-price{display:flex;align-items:center;gap:.5rem;font-size:14px;font-weight:500}
.product-price .old{color:var(--muted);text-decoration:line-through;font-size:12px;font-weight:400}
.product-price .sale{color:var(--brand-red)}
.center{text-align:center;margin-top:3rem}

/* ---------- Editorial ---------- */
.editorial{position:relative;margin:5rem 0;height:70vh;overflow:hidden}
.editorial img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.editorial::after{content:"";position:absolute;inset:0;background:rgba(20,20,20,.3)}
.editorial-content{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;color:#fff;padding:1.5rem;z-index:1}
.editorial-content > div{max-width:42rem}
.editorial-content .eyebrow{color:rgba(255,255,255,.8)}
.editorial-content h2{font-family:var(--font-display);font-size:clamp(3rem,7vw,5rem);margin:1rem 0 1.5rem;font-weight:400}
.editorial-content h2 em{font-style:italic;color:var(--brand-red)}
.editorial-content p{color:rgba(255,255,255,.8);margin-bottom:2rem;max-width:28rem;margin-left:auto;margin-right:auto}

/* ---------- Designer marquee ---------- */
.designers{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:2.5rem 0;overflow:hidden}
.designers > p{text-align:center;font-size:12px;letter-spacing:.3em;color:var(--muted);margin-bottom:1.5rem;text-transform:uppercase}
.designers .marquee-track{font-family:var(--font-display);font-size:clamp(1.875rem,4vw,3rem)}
.designers .grp .star{color:var(--brand-red)}
.designers .grp .it{font-style:italic}

/* ---------- Value props ---------- */
.values{display:grid;gap:2.5rem;text-align:center;padding:5rem 1rem}
@media(min-width:768px){.values{grid-template-columns:repeat(4,1fr);padding:5rem 2rem}}
.values .icon{width:48px;height:48px;border:1px solid var(--brand-red);color:var(--brand-red);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1rem}
.values h4{font-family:var(--font-display);font-size:1.25rem;margin-bottom:.25rem}
.values p{font-size:12px;color:var(--muted);letter-spacing:.04em}

/* ---------- Footer ---------- */
.site-footer{background:#141414;color:#fff;margin-top:6rem}
.newsletter{border-bottom:1px solid rgba(255,255,255,.1);padding:4rem 1.5rem;text-align:center}
.newsletter h3{font-family:var(--font-display);font-size:clamp(1.875rem,4vw,3rem);margin-bottom:.75rem;font-weight:400}
.newsletter p{font-size:14px;color:rgba(255,255,255,.6);margin:0 auto 2rem;max-width:28rem;letter-spacing:.02em}
.newsletter form{display:flex;max-width:28rem;margin:0 auto;border-bottom:1px solid rgba(255,255,255,.3)}
.newsletter input{flex:1;background:transparent;border:0;padding:.75rem .5rem;color:#fff;font-size:14px;outline:none}
.newsletter input::placeholder{color:rgba(255,255,255,.4)}
.newsletter button{font-size:12px;letter-spacing:.2em;font-weight:600;padding:0 1rem;color:#fff}
.newsletter button:hover{color:var(--brand-red)}
.footer-cols{padding:4rem 1.5rem;display:grid;grid-template-columns:repeat(2,1fr);gap:3rem}
@media(min-width:768px){.footer-cols{grid-template-columns:repeat(4,1fr);padding:4rem 3rem}}
.footer-cols img.logo{height:40px;filter:invert(1);margin-bottom:1rem}
.footer-cols .about p{font-size:12px;color:rgba(255,255,255,.5);line-height:1.6}
.footer-cols h4{font-size:12px;letter-spacing:.2em;margin-bottom:1.25rem;color:var(--brand-red);font-weight:600;text-transform:uppercase}
.footer-cols ul li{margin-bottom:.75rem}
.footer-cols ul a{font-size:14px;color:rgba(255,255,255,.7);transition:color .2s}
.footer-cols ul a:hover{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:1.5rem;display:flex;flex-direction:column;gap:.75rem;align-items:center;justify-content:space-between;font-size:12px;color:rgba(255,255,255,.4)}
@media(min-width:768px){.footer-bottom{flex-direction:row;padding:1.5rem 3rem}}
.footer-bottom .links{display:flex;gap:1.5rem}
.footer-bottom a:hover{color:#fff}

/* ---------- Mobile nav ---------- */
.mobile-nav{display:none;flex-direction:column;border-top:1px solid var(--border)}
.mobile-nav.open{display:flex}
.mobile-nav a{padding:.85rem 1.5rem;font-size:14px;letter-spacing:.18em;border-bottom:1px solid var(--border);text-transform:uppercase}
.mobile-nav a.red{color:var(--brand-red)}
