/*
Theme Name: Lomita Feed
Theme URI: https://lomitafeed.com
Author: Lomita Feed
Description: Custom WooCommerce-ready theme for Lomita Feed, a family-owned feed and pet supply store in Lomita, CA (est. 1927). Built for online ordering synced with MicroBiz Cloud POS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: lomita-feed
Tags: e-commerce, woocommerce, one-column, custom-menu, featured-images

This theme, like WordPress, is licensed under the GPL.
*/

/* -----------------------------------------------------------
   0. CSS Variables — brand palette
----------------------------------------------------------- */
:root {
  --barn-red: #8c2f21;
  --barn-red-dark: #6e2419;
  --wheat: #e8dcc3;
  --cream: #faf6ec;
  --barn-wood: #4a3527;
  --forest-green: #2f4a34;
  --text-dark: #2b2420;
  --text-light: #6b5f52;
  --white: #ffffff;
  --border: #d9cdb4;
  --max-width: 1180px;
}

/* -----------------------------------------------------------
   1. Base / reset
----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--barn-wood);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

a { color: var(--barn-red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  background: var(--barn-red);
  color: var(--white);
  padding: 0.8em 1.8em;
  border-radius: 4px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--barn-red-dark); color: var(--white); text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--barn-red); }

/* -----------------------------------------------------------
   2. Top bar (hours / phone)
----------------------------------------------------------- */
.top-bar {
  background: var(--barn-wood);
  color: var(--wheat);
  font-size: 0.85rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--wheat); }
.top-bar .top-bar-item { margin-right: 20px; }

/* -----------------------------------------------------------
   3. Site header / nav
----------------------------------------------------------- */
.site-header {
  background: var(--cream);
  border-bottom: 3px solid var(--barn-red);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { max-height: 60px; }
.site-title {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--barn-red);
  margin: 0;
}
.site-tagline {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

.main-navigation ul {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.main-navigation a {
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.main-navigation a:hover { color: var(--barn-red); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-contents {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--barn-wood);
}
.cart-count {
  background: var(--barn-red);
  color: var(--white);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* -----------------------------------------------------------
   4. Hero
----------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--barn-red) 0%, var(--barn-red-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.hero h1 { color: var(--white); font-size: 3rem; margin-bottom: 0.3em; }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 0 auto 1.8em; color: var(--wheat); }
.hero .hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* -----------------------------------------------------------
   5. Sections / category grid
----------------------------------------------------------- */
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  text-decoration: none;
}
.category-card .icon { font-size: 2.4rem; margin-bottom: 10px; }
.category-card h3 { margin-bottom: 4px; }
.category-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }

/* -----------------------------------------------------------
   6. Info strip (established / trust badges)
----------------------------------------------------------- */
.info-strip {
  background: var(--forest-green);
  color: var(--cream);
  padding: 32px 0;
}
.info-strip .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  text-align: center;
}
.info-strip .info-item strong {
  display: block;
  font-size: 1.6rem;
  font-family: Georgia, serif;
}
.info-strip .info-item span { font-size: 0.85rem; color: var(--wheat); }

/* -----------------------------------------------------------
   7. Page header (about / contact / shop)
----------------------------------------------------------- */
.page-header {
  background: var(--wheat);
  padding: 48px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin: 0; }

.page-content { padding: 56px 0; }

/* -----------------------------------------------------------
   8. Contact / location page
----------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}
.contact-card h3 { margin-bottom: 12px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.map-embed { border: 0; width: 100%; height: 340px; border-radius: 8px; }

/* -----------------------------------------------------------
   9. WooCommerce tweaks
----------------------------------------------------------- */
.woocommerce ul.products li.product .price { color: var(--barn-red); font-weight: bold; }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit,
.woocommerce input.button {
  background: var(--barn-red) !important;
  color: var(--white) !important;
  border-radius: 4px !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--barn-red-dark) !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span.current {
  color: var(--barn-red);
}
.site-main { padding: 48px 0; }
.site-main .container.woocommerce-page-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* -----------------------------------------------------------
   10. Footer
----------------------------------------------------------- */
.site-footer {
  background: var(--barn-wood);
  color: var(--wheat);
  padding: 48px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: var(--white); margin-bottom: 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-grid a { color: var(--wheat); }
.footer-grid li { margin-bottom: 6px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--wheat);
}

/* -----------------------------------------------------------
   11. Responsive
----------------------------------------------------------- */
@media (max-width: 860px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .main-navigation ul { gap: 16px; flex-wrap: wrap; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 2.2rem; }
}
