/*
Theme Name: SOSCart
Theme URI: https://soscart.com
Author: SOSCart
Author URI: https://soscart.com
Description: A clean, conversion-focused WooCommerce theme for supplement/wellness brands. Built with a hero banner, trust badges, bestsellers grid, story section, blog highlights, and testimonials — ready to customize for SOSCart.
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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soscart
Tags: e-commerce, woocommerce, custom-menu, footer-widgets, one-column, two-columns

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

/* =========================================================
   0. CSS VARIABLES / DESIGN TOKENS
   ========================================================= */
:root {
  --sc-color-primary: #2f6f4f;       /* deep herbal green */
  --sc-color-primary-dark: #234f39;
  --sc-color-accent: #d98f2b;        /* warm gold/orange accent */
  --sc-color-bg: #ffffff;
  --sc-color-bg-alt: #f7f5ef;        /* warm off-white section bg */
  --sc-color-text: #26302b;
  --sc-color-text-muted: #5b665f;
  --sc-color-border: #e4e0d4;
  --sc-font-heading: 'Georgia', 'Times New Roman', serif;
  --sc-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sc-radius: 10px;
  --sc-shadow: 0 4px 18px rgba(38, 48, 43, 0.08);
  --sc-container: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sc-font-body);
  color: var(--sc-color-text);
  background: var(--sc-color-bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sc-color-primary); text-decoration: none; }
a:hover { color: var(--sc-color-primary-dark); }

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

.sc-section { padding: 64px 0; }
.sc-section--alt { background: var(--sc-color-bg-alt); }

.sc-heading {
  font-family: var(--sc-font-heading);
  font-weight: 700;
  text-align: center;
  margin: 0 0 40px;
  font-size: 2rem;
  color: var(--sc-color-primary-dark);
}

.sc-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--sc-color-accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.sc-btn:hover { background: #c07d1e; color: #fff; transform: translateY(-1px); }
.sc-btn--outline {
  background: transparent;
  border: 2px solid var(--sc-color-primary);
  color: var(--sc-color-primary);
}
.sc-btn--outline:hover { background: var(--sc-color-primary); color: #fff; }

/* =========================================================
   1. TOP UTILITY BAR
   ========================================================= */
.sc-topbar {
  background: var(--sc-color-primary-dark);
  color: #fff;
  font-size: 0.85rem;
}
.sc-topbar .sc-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.sc-topbar a { color: #fff; opacity: 0.9; }
.sc-topbar a:hover { opacity: 1; }
.sc-topbar__links { display: flex; gap: 20px; }

/* =========================================================
   2. HEADER
   ========================================================= */
.sc-header {
  border-bottom: 1px solid var(--sc-color-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.sc-header .sc-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.sc-logo {
  font-family: var(--sc-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sc-color-primary-dark);
}
.sc-logo img { max-height: 44px; }

.sc-main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.sc-main-nav a {
  color: var(--sc-color-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.sc-main-nav a:hover { color: var(--sc-color-primary); }

.sc-header__actions { display: flex; align-items: center; gap: 18px; }
.sc-header__icon { font-size: 1.2rem; position: relative; }
.sc-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--sc-color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .sc-main-nav { display: none; }
  .sc-menu-toggle { display: block; }
}

/* =========================================================
   3. HERO
   ========================================================= */
.sc-hero {
  background: linear-gradient(135deg, var(--sc-color-bg-alt) 0%, #eef2e6 100%);
  padding: 72px 0;
}
.sc-hero .sc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.sc-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--sc-color-primary);
  font-weight: 700;
  margin-bottom: 12px;
}
.sc-hero__title {
  font-family: var(--sc-font-heading);
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--sc-color-primary-dark);
}
.sc-hero__subtitle {
  font-size: 1.1rem;
  color: var(--sc-color-text-muted);
  margin-bottom: 28px;
}
.sc-hero__media img { border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); }

@media (max-width: 880px) {
  .sc-hero .sc-container { grid-template-columns: 1fr; }
  .sc-hero__title { font-size: 2rem; }
}

/* =========================================================
   4. AS SEEN IN STRIP
   ========================================================= */
.sc-asseenin {
  padding: 28px 0;
  border-bottom: 1px solid var(--sc-color-border);
}
.sc-asseenin .sc-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.65;
}
.sc-asseenin span { font-weight: 700; letter-spacing: 0.03em; color: var(--sc-color-text-muted); }

/* =========================================================
   5. TRUST FEATURES ROW
   ========================================================= */
.sc-features .sc-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.sc-feature { text-align: center; }
.sc-feature__icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--sc-color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.sc-feature__title { font-weight: 700; margin: 0 0 6px; font-size: 1rem; }
.sc-feature__desc { font-size: 0.9rem; color: var(--sc-color-text-muted); margin: 0; }

@media (max-width: 880px) {
  .sc-features .sc-container { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   6. BESTSELLERS / PRODUCT GRID
   ========================================================= */
.sc-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sc-product-card {
  background: #fff;
  border: 1px solid var(--sc-color-border);
  border-radius: var(--sc-radius);
  padding: 20px;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
}
.sc-product-card:hover { box-shadow: var(--sc-shadow); transform: translateY(-3px); }
.sc-product-card img { border-radius: 6px; margin-bottom: 14px; }
.sc-product-card__title { font-weight: 700; margin: 0 0 6px; }
.sc-product-card__price { color: var(--sc-color-primary); font-weight: 700; margin-bottom: 14px; }

@media (max-width: 880px) {
  .sc-products-grid { grid-template-columns: repeat(2, 1fr); }
}

.sc-center { text-align: center; margin-top: 36px; }

/* =========================================================
   7. CERTIFICATION BADGES
   ========================================================= */
.sc-badges .sc-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.sc-badge { text-align: center; width: 110px; }
.sc-badge__icon { font-size: 1.8rem; margin-bottom: 8px; }
.sc-badge__label { font-size: 0.8rem; font-weight: 700; color: var(--sc-color-text-muted); }

/* =========================================================
   8. STORY SECTION
   ========================================================= */
.sc-story .sc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.sc-story__media img { border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); }
.sc-story__title { font-family: var(--sc-font-heading); font-size: 1.8rem; color: var(--sc-color-primary-dark); }
.sc-story__text { color: var(--sc-color-text-muted); margin-bottom: 24px; }

@media (max-width: 880px) {
  .sc-story .sc-container { grid-template-columns: 1fr; }
}

/* =========================================================
   9. ARTICLES / BLOG GRID
   ========================================================= */
.sc-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sc-article-card {
  border-radius: var(--sc-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sc-color-border);
}
.sc-article-card img { aspect-ratio: 16/9; object-fit: cover; }
.sc-article-card__body { padding: 16px; }
.sc-article-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--sc-color-text);
}

@media (max-width: 880px) {
  .sc-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   10. TESTIMONIALS
   ========================================================= */
.sc-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sc-testimonial-card {
  background: #fff;
  border: 1px solid var(--sc-color-border);
  border-radius: var(--sc-radius);
  padding: 24px;
}
.sc-testimonial-card__quote {
  font-style: italic;
  color: var(--sc-color-text);
  margin: 0 0 16px;
}
.sc-testimonial-card__author { font-weight: 700; font-size: 0.9rem; }
.sc-testimonial-card__location { font-size: 0.8rem; color: var(--sc-color-text-muted); }

@media (max-width: 880px) {
  .sc-testimonials-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   11. TRUST / GUARANTEE STRIP
   ========================================================= */
.sc-guarantee {
  background: var(--sc-color-primary-dark);
  color: #fff;
}
.sc-guarantee .sc-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  padding: 40px 0;
}
.sc-guarantee__item h4 { margin: 0 0 6px; }
.sc-guarantee__item p { margin: 0; opacity: 0.85; font-size: 0.9rem; }

@media (max-width: 880px) {
  .sc-guarantee .sc-container { grid-template-columns: 1fr; }
}

/* =========================================================
   12. FOOTER
   ========================================================= */
.sc-footer {
  background: #1c241f;
  color: #cdd5cd;
  padding: 56px 0 24px;
}
.sc-footer-columns {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.sc-footer h5 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sc-footer ul { list-style: none; margin: 0; padding: 0; }
.sc-footer li { margin-bottom: 10px; }
.sc-footer a { color: #cdd5cd; font-size: 0.9rem; }
.sc-footer a:hover { color: #fff; }
.sc-footer-social { display: flex; gap: 14px; margin-top: 16px; }
.sc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #8b968a;
}

@media (max-width: 880px) {
  .sc-footer-columns { grid-template-columns: 1fr 1fr; }
}
