/*
Theme Name:   Ade-Obi Foods
Theme URI:    https://adeobifoods.com
Description:  Ade-Obi Foods custom child theme based on Storefront
Author:       Ade-Obi Foods
Template:     storefront
Version:      1.0.0
Tags:         woocommerce, custom, african-foods
Text Domain:  adeobifoods
*/

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

:root {
  --cream:        #FAF5EC;
  --brown:        #3B2516;
  --terracotta:   #C0562B;
  --terra-light:  #E8714A;
  --green:        #2A4A2E;
  --green-light:  #4A7A50;
  --gold:         #D4A017;
  --gray:         #7A6A5A;
  --white:        #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--brown); }

/* ─── HIDE DEFAULT STOREFRONT HEADER/FOOTER ON FRONT PAGE ── */
body.home .site-header,
body.home .site-footer { display: none !important; }

/* ─── TOPBAR ─────────────────────────────────── */
.ao-topbar {
  background: var(--green);
  color: #c8dfc9;
  font-size: 12px;
  text-align: center;
  padding: 7px 1rem;
  letter-spacing: 0.04em;
}

/* ─── HEADER ─────────────────────────────────── */
.ao-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 12px rgba(59,37,22,0.08);
}
.ao-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.ao-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.ao-logo-icon {
  width: 44px; height: 44px;
  background: var(--terracotta);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; color: var(--white);
  letter-spacing: -1px; flex-shrink: 0;
}
.ao-logo-text { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--brown); line-height: 1; }
.ao-logo-text span { display: block; font-size: 10px; font-weight: 400; font-family: var(--font-body); color: var(--gray); letter-spacing: 0.1em; text-transform: uppercase; }
.ao-nav { display: flex; gap: 0; }
.ao-nav a {
  font-size: 14px; font-weight: 500; color: var(--brown);
  text-decoration: none; padding: 0 14px; height: 68px;
  display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.ao-nav a:hover, .ao-nav a.active { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.ao-header-actions { display: flex; align-items: center; gap: 6px; }
.ao-btn-icon {
  width: 38px; height: 38px; background: none; border: none; cursor: pointer;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--brown); font-size: 18px; transition: background .2s; text-decoration: none;
}
.ao-btn-icon:hover { background: #f0ebe3; }
.ao-cart-wrap { position: relative; display: flex; align-items: center; }
.ao-cart-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--terracotta); color: #fff;
  border-radius: 50%; width: 16px; height: 16px;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ─── HERO SLIDER ────────────────────────────── */
.ao-hero { position: relative; height: 580px; overflow: hidden; }
.ao-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .7s ease; pointer-events: none;
}
.ao-slide.active { opacity: 1; pointer-events: all; }
.ao-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ao-slide-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(42,74,46,0.82) 0%, rgba(59,37,22,0.45) 100%); }
.ao-slide-content { position: relative; z-index: 2; text-align: center; color: #fff; max-width: 680px; padding: 0 2rem; }
.ao-slide-tag {
  display: inline-block;
  background: rgba(208,166,23,0.2); border: 1px solid var(--gold);
  color: var(--gold); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 18px;
}
.ao-slide-content h2 { font-family: var(--font-display); font-size: clamp(2rem,5vw,3.2rem); font-weight: 900; line-height: 1.1; margin-bottom: 16px; color: #fff; }
.ao-slide-content p { font-size: 1.05rem; color: rgba(255,255,255,0.82); margin-bottom: 28px; line-height: 1.6; }
.ao-slide-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ao-hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.ao-hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); cursor: pointer; transition: background .2s, transform .2s; }
.ao-hero-dots button.active { background: #fff; transform: scale(1.3); }
.ao-hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.ao-hero-arrow:hover { background: rgba(255,255,255,0.28); }
.ao-hero-arrow.prev { left: 20px; }
.ao-hero-arrow.next { right: 20px; }

/* ─── BUTTONS ────────────────────────────────── */
.ao-btn-primary {
  background: var(--terracotta); color: #fff !important;
  border: none; border-radius: 4px; padding: 13px 28px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .2s, transform .15s;
}
.ao-btn-primary:hover { background: var(--terra-light); transform: translateY(-1px); }
.ao-btn-outline {
  background: transparent; color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.65); border-radius: 4px; padding: 12px 28px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .2s, border-color .2s;
}
.ao-btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ─── SECTION SHARED ─────────────────────────── */
.ao-section { padding: 64px 1.5rem; }
.ao-section-inner { max-width: 1200px; margin: 0 auto; }
.ao-section-title { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 700; color: var(--brown); text-align: center; margin-bottom: 8px; }
.ao-section-sub { text-align: center; color: var(--gray); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.ao-divider { width: 48px; height: 3px; background: var(--terracotta); margin: 10px auto 36px; border-radius: 2px; }
.ao-section-alt { background: var(--white); }

/* ─── CATEGORIES ─────────────────────────────── */
.ao-cats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media(max-width:900px){ .ao-cats-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:500px){ .ao-cats-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.ao-cat-card { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 3/4; cursor: pointer; display: block; text-decoration: none; }
.ao-cat-card:hover .ao-cat-overlay { opacity: 1; }
.ao-cat-card:hover .ao-cat-bg { transform: scale(1.05); }
.ao-cat-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s ease; background-color: #5a3520; }
.ao-cat-overlay { position: absolute; inset: 0; background: rgba(59,37,22,0.35); opacity: 0; transition: opacity .3s; }
.ao-cat-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(30,15,5,0.9) 0%, transparent 100%); padding: 32px 14px 14px; color: #fff; }
.ao-cat-label h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; color: #fff; }
.ao-cat-label span { font-size: 11px; color: rgba(255,255,255,0.7); }

/* ─── PRODUCTS ───────────────────────────────── */
.ao-products-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
@media(max-width:1100px){ .ao-products-grid { grid-template-columns: repeat(4,1fr); } }
@media(max-width:700px){ .ao-products-grid { grid-template-columns: repeat(2,1fr); } }
.ao-product-card { background: #fff; border-radius: 8px; overflow: hidden; transition: box-shadow .25s, transform .2s; border: 1px solid rgba(59,37,22,0.07); }
.ao-product-card:hover { box-shadow: 0 8px 28px rgba(59,37,22,0.12); transform: translateY(-3px); }
.ao-product-img { aspect-ratio: 1; background-size: cover; background-position: center; background-color: #e8ddd0; position: relative; display: block; }
.ao-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ao-product-badge { position: absolute; top: 8px; left: 8px; background: var(--terracotta); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 3px; }
.ao-product-info { padding: 12px; }
.ao-product-info h4 { font-size: 13px; font-weight: 500; margin-bottom: 6px; line-height: 1.3; color: var(--brown); }
.ao-product-info h4 a { color: var(--brown); text-decoration: none; }
.ao-product-info h4 a:hover { color: var(--terracotta); }
.ao-product-price { font-size: 14px; font-weight: 700; color: var(--terracotta); }
.ao-product-price del { font-size: 11px; color: var(--gray); font-weight: 400; }
.ao-product-card .button {
  width: 100%; margin-top: 8px; display: block; text-align: center;
  background: var(--green); color: #fff !important; border: none;
  border-radius: 4px; padding: 7px; font-size: 12px; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: background .2s;
}
.ao-product-card .button:hover { background: var(--green-light); }

/* ─── STRIP BANNER ───────────────────────────── */
.ao-strip { background: var(--green); padding: 40px 1.5rem; }
.ao-strip-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; text-align: center; }
@media(max-width:700px){ .ao-strip-inner { grid-template-columns: 1fr; } }
.ao-strip-item { color: #fff; }
.ao-strip-icon { font-size: 28px; margin-bottom: 10px; }
.ao-strip-item h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 4px; color: #fff; }
.ao-strip-item p { font-size: 13px; color: rgba(255,255,255,0.72); }

/* ─── NEWSLETTER ─────────────────────────────── */
.ao-newsletter { background: var(--terracotta); padding: 60px 1.5rem; text-align: center; }
.ao-newsletter h2 { font-family: var(--font-display); font-size: 2rem; color: #fff; margin-bottom: 10px; }
.ao-newsletter p { color: rgba(255,255,255,0.82); margin-bottom: 28px; font-size: 15px; }
.ao-newsletter-form { display: flex; gap: 0; max-width: 460px; margin: 0 auto; }
.ao-newsletter-form input { flex: 1; padding: 13px 18px; border: none; border-radius: 4px 0 0 4px; font-family: var(--font-body); font-size: 14px; outline: none; }
.ao-newsletter-form button { background: var(--brown); color: #fff; border: none; padding: 13px 22px; border-radius: 0 4px 4px 0; font-family: var(--font-body); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s; }
.ao-newsletter-form button:hover { background: #5a3822; }

/* ─── FOOTER ─────────────────────────────────── */
.ao-footer { background: var(--brown); color: rgba(255,255,255,0.75); padding: 52px 1.5rem 24px; }
.ao-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media(max-width:900px){ .ao-footer-inner { grid-template-columns: 1fr 1fr; } }
@media(max-width:500px){ .ao-footer-inner { grid-template-columns: 1fr; } }
.ao-footer-brand p { margin-top: 14px; font-size: 13px; line-height: 1.7; }
.ao-footer-brand .ao-logo-text { color: #fff; }
.ao-footer h5 { color: #fff; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.ao-footer ul { list-style: none; }
.ao-footer ul li { margin-bottom: 10px; }
.ao-footer ul a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 13px; transition: color .2s; }
.ao-footer ul a:hover { color: #fff; }
.ao-footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; flex-wrap: wrap; gap: 8px; }
.ao-footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.ao-footer-bottom a:hover { color: #fff; }
