/*
Theme Name: MagpieRobins Theme
Theme URI: https://magpierobins.co.uk
Description: Premium British streetwear and leather goods.
Version: 2.0
Author: MagpieRobins
*/

:root {
  --bg: #F5F2EC;
  --ink: #0A0A0A;
  --stone: #7A6F60;
  --bg-card: #EDEAE3;
  --bg-dark: #0A0A0A;
  --white: #FFFFFF;
  --gold: #C9A96E;
  --font-display: 'Anton', Impact, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --container: 1280px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* TICKER */
.ticker {
  background: var(--bg-dark);
  color: var(--white);
  overflow: hidden;
  padding: 0.6rem 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ticker-inner {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item { display: inline-flex; align-items: center; gap: 1rem; }
.ticker-item::before { content: '◆'; color: var(--gold); font-size: 0.5rem; }

/* HEADER */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  border-bottom-color: var(--gold);
}

/* HERO */
.page-hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.1;
}
.page-hero .accent { color: var(--gold); }
.page-hero p {
  color: var(--stone);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 1rem auto 0;
}

/* HOME HERO */
.home-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a1a 100%);
  color: var(--white);
  padding: 2rem;
}
.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1;
}
.home-hero .tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.home-hero .btn { margin-top: 2.5rem; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: #b8944f; opacity: 1; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--ink); opacity: 1; }

/* SECTIONS */
.section { padding: 5rem 0; }

/* PRODUCT GRID */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 1.5rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
li.product {
  background: var(--white) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
  float: none !important;
  margin: 0 !important;
  width: auto !important;
}
li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1) !important;
}
li.product img {
  width: 100% !important;
  height: 320px !important;
  object-fit: cover !important;
  margin: 0 !important;
}
li.product .woocommerce-loop-product__title {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 1rem 1rem 0.3rem !important;
  color: var(--ink) !important;
}
li.product .price {
  padding: 0 1rem 0.8rem !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--gold) !important;
}
li.product .button {
  margin: 0 1rem 1rem !important;
  background: var(--ink) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 0.7rem 1.5rem !important;
  font-weight: 600 !important;
}
li.product .button:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
  opacity: 1 !important;
}

/* SHOP TOOLBAR */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.shop-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--bg-card);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--ink);
  color: var(--white);
}

/* NEWSLETTER */
.newsletter-bar {
  background: var(--bg-dark);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.newsletter-bar h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* FOOTER */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); text-transform: uppercase; letter-spacing: 2px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
}

/* WOOCOMMERCE OVERRIDES */
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count { display: none !important; }
.woocommerce .page-title { display: none !important; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  li.product img { height: 220px !important; }
}
@media (max-width: 480px) {
  ul.products { grid-template-columns: 1fr !important; }
}
/* ── HERO ─────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #0A0A0A;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.30) 50%, rgba(10,10,10,0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F5F2EC;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #F5F2EC;
  margin: 0 0 2rem;
  text-transform: uppercase;
  line-height: 1;
}

.hero-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: transparent;
  border: 1.5px solid #F5F2EC;
  color: #F5F2EC;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.hero-btn:hover {
  background: #F5F2EC;
  color: #0A0A0A;
}

/* ── BEST SELLERS ─────────────────────────────── */
.best-sellers-section {
  background: #F5F2EC;
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0A0A0A;
  margin: 0 0 0.4rem;
}

.section-subtitle {
  font-size: 0.85rem;
  color: #7A6F60;
  letter-spacing: 0.05em;
  margin: 0 0 3rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.product-card {
  display: block;
  text-decoration: none;
  color: #0A0A0A;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card__img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #E8E4DC;
  margin-bottom: 1rem;
}

.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__img-wrap img {
  transform: scale(1.04);
}

.product-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}

.product-card__price {
  font-size: 0.85rem;
  color: #7A6F60;
}

.no-products {
  color: #7A6F60;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ── FEATURE SECTIONS ─────────────────────────── */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
}

.feature-section--reverse {
  direction: rtl;
}

.feature-section--reverse > * {
  direction: ltr;
}

.feature-section__media {
  overflow: hidden;
}

.feature-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-section__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
  background: #0A0A0A;
}

.feature-section__title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F5F2EC;
  margin: 0 0 1rem;
}

.feature-section__desc {
  font-size: 0.9rem;
  color: #7A6F60;
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 360px;
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid #7A6F60;
  color: #F5F2EC;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  align-self: flex-start;
}

.btn-outline:hover {
  border-color: #F5F2EC;
}

/* ── NEWSLETTER ───────────────────────────────── */
.newsletter-section {
  background: #0A0A0A;
  padding: 6rem 2rem;
  border-top: 1px solid #1a1a1a;
}

.newsletter-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F5F2EC;
  margin: 0 0 0.75rem;
}

.newsletter-desc {
  font-size: 0.9rem;
  color: #7A6F60;
  line-height: 1.7;
  margin: 0 0 2.5rem;
}

.newsletter-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-right: none;
  color: #F5F2EC;
  font-size: 0.85rem;
  outline: none;
}

.newsletter-input::placeholder {
  color: #4a4a4a;
}

.newsletter-input:focus {
  border-color: #7A6F60;
}

.newsletter-btn {
  padding: 0.85rem 1.5rem;
  background: #F5F2EC;
  border: 1px solid #F5F2EC;
  color: #0A0A0A;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.newsletter-btn:hover {
  background: #7A6F60;
  border-color: #7A6F60;
  color: #F5F2EC;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 768px) {
  .feature-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .feature-section--reverse {
    direction: ltr;
  }
  .feature-section__media {
    aspect-ratio: 4/3;
  }
  .feature-section__content {
    padding: 3rem 1.5rem;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-input {
    border-right: 1px solid #2a2a2a;
    border-bottom: none;
  }
  .newsletter-btn {
    padding: 1rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-cart {
  font-size: 1.2rem;
  position: relative;
  line-height: 1;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .btn.btn-primary { display: none; }
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--white);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}