/*
 Theme Name: Faith Over Fear Woo
 Theme URI: https://faithoverfearstw.com/
 Description: Dark streetwear WooCommerce theme with slide-out cart for Faith Over Fear.
 Author: ChatGPT
 Version: 1.0
 Text Domain: faithoverfearwoo
*/

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');


:root {
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --bg-elevated: #111111;
  --border-soft: #262626;
  --text: #f7f7f7;
  --muted: #9ca3af;
  --accent: #f9fafb;
  --accent-soft: #e5e7eb;
  --accent-strong: #000000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #141414 0, #050505 55%);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


a {
  color: inherit;
  text-decoration: none;
}

/* Layout wrappers */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(38,38,38,0.9);
  backdrop-filter: blur(14px);
  background: rgba(5,5,5,0.92);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

.brand span.accent {
  font-weight: 800;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.3rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.main-nav a {
  opacity: 0.7;
}

.main-nav .current-menu-item > a,
.main-nav a:hover {
  opacity: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
}

.header-cart-toggle:hover {
  background: #f9fafb;
  color: #050505;
}

.cart-count {
  font-weight: 600;
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-tag {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0.75rem 0 0.25rem;
  font-size: clamp(2.4rem, 3.1vw, 3.4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-sub {
  margin-top: 0.75rem;
  max-width: 28rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid #f9fafb;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
}

.btn-primary {
  background: #f9fafb;
  color: #050505;
}

.btn-primary:hover {
  background: #e5e7eb;
}

.btn-outline {
  background: transparent;
}

.btn-outline:hover {
  background: #111827;
}

.hero-card {
  border-radius: 1.5rem;
  border: 1px solid var(--border-soft);
  background: radial-gradient(circle at top left, #18181b, #050505);
  padding: 1.5rem;
}

.hero-card-inner {
  border-radius: 1.2rem;
  border: 1px solid rgba(55,65,81,0.9);
  padding: 1.4rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-card-main h2 {
  margin: 0.4rem 0 0.15rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-card-main p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-card-foot {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.section-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

/* WooCommerce product grid overrides */
.woocommerce ul.products,
.woocommerce-page ul.products {
  margin: 0;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--bg-soft);
  border-radius: 1.25rem;
  border: 1px solid var(--border-soft);
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

.woocommerce ul.products li.product a {
  text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.woocommerce ul.products li.product .price {
  color: var(--accent-soft);
}

.woocommerce ul.products li.product .button {
  margin-top: 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Main content wrapper for inner pages */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
}

.page-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.8rem 1.25rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* Slide-out cart */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
  z-index: 60;
}

.cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100%);
  height: 100vh;
  background: #050505;
  border-left: 1px solid var(--border-soft);
  box-shadow: -24px 0 60px rgba(0,0,0,0.7);
  transform: translateX(100%);
  transition: transform 0.22s ease-out;
  z-index: 70;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.cart-drawer-close {
  cursor: pointer;
  font-size: 1.5rem;
}

.cart-drawer-body {
  padding: 1rem 1.4rem 1.4rem;
  flex: 1;
  overflow-y: auto;
}

.cart-drawer-footer {
  padding: 1rem 1.4rem 1.4rem;
  border-top: 1px solid var(--border-soft);
}

.cart-drawer-footer .btn-primary,
.cart-drawer-footer .btn-outline {
  width: 100%;
  justify-content: center;
}

/* Woo mini-cart tweaks */
.woocommerce-mini-cart__total {
  border-top: 1px solid var(--border-soft);
  padding-top: 0.9rem;
  margin-top: 0.9rem;
}

.woocommerce-mini-cart__buttons .button {
  width: 100%;
  margin-bottom: 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #111827;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 1.8rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav ul {
    gap: 0.9rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


.brand {
  font-family: 'Unbounded', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hero h1,
.section-title,
.page-title {
  font-family: 'Unbounded', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* Checkout + cart layout enhancements */
.woocommerce-cart .cart_totals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
  background: var(--bg-soft);
  border-radius: 1.25rem;
  border: 1px solid var(--border-soft);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}

.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: #020617;
  border-radius: 999px;
  border: 1px solid #111827;
  color: var(--text);
  padding: 0.65rem 0.95rem;
  font-size: 0.85rem;
}

.woocommerce form .form-row textarea {
  border-radius: 1rem;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(249,115,22,0.45);
}

/* Primary buttons more streetwear */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.btn-primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.btn-primary:hover {
  background: #ea580c;
  border-color: #ea580c;
}

/* Mobile checkout single column */
@media (max-width: 900px) {
  .woocommerce-checkout form.checkout {
    display: block;
  }

  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review {
    margin-bottom: 1.5rem;
  }
}


/* Hero campaign split like a fashion house */
.hero--campaign {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: stretch;
  padding-top: 3rem;
}

.hero-media {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #111827;
  min-height: 260px;
}

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

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.75), transparent 50%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Category strip */
.section--strip {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.category-pill {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.category-pill:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

/* Story section */
.section--story {
  padding-top: 2.2rem;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.2rem;
  align-items: center;
}

.story-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.story-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.story-media-card {
  background: var(--bg-soft);
  border-radius: 1.2rem;
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.story-media-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.story-media-caption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Responsive for new layout */
@media (max-width: 900px) {
  .hero--campaign {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
