/*
Theme Name:   Scale Model Garage (Storefront child)
Theme URI:    https://99dollarwebsites.shop
Description:  Demo-store child theme for Storefront. Warm charcoal header, brass accents, deep-red buttons. Built for 99DollarWebSites sample stores — change the five colour variables below to re-skin it for a customer.
Author:       99DollarWebSites
Template:     storefront
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  scale-model-garage
*/

/* ── RE-SKIN HERE ───────────────────────────────────────────────── */
:root {
  --smg-ink:     #1a1412;   /* header / footer ground */
  --smg-paper:   #faf7f2;   /* page background */
  --smg-accent:  #7f1d1d;   /* buttons, links */
  --smg-accent-d:#5e1515;   /* button hover */
  --smg-brass:   #f4c95d;   /* highlights on dark */
  --smg-text:    #2b2622;
}

body, button, input, select, textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--smg-text);
}
body { background: var(--smg-paper); }
h1, h2, h3, h4, .site-title, .woocommerce-loop-product__title {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--smg-ink);
  letter-spacing: .01em;
}
a { color: var(--smg-accent); }
a:hover, a:focus { color: var(--smg-accent-d); }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header { background: var(--smg-ink); border-bottom: 3px solid var(--smg-brass); }
.site-header .site-branding .site-title a,
.site-header .site-branding .site-description,
.site-header a:not(.button),
.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a { color: #f3ece0; }
.site-header a:not(.button):hover,
.main-navigation ul.menu > li > a:hover { color: var(--smg-brass); }
.site-header .site-search input[type="search"] { background: #2a211d; color: #f3ece0; border-color: #4a3b33; }
.site-header-cart .cart-contents { color: #f3ece0; }
.main-navigation ul ul { background: var(--smg-ink); }
.main-navigation ul ul a { color: #f3ece0 !important; }

/* ── Buttons ────────────────────────────────────────────────────── */
button, input[type="button"], input[type="reset"], input[type="submit"],
.button, .added_to_cart, .widget a.button, .site-header-cart .widget_shopping_cart a.button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--smg-accent);
  border-color: var(--smg-accent);
  color: #fff;
  border-radius: 3px;
  font-weight: 600;
}
button:hover, input[type="submit"]:hover, .button:hover, .added_to_cart:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--smg-accent-d);
  border-color: var(--smg-accent-d);
  color: #fff;
}
button.alt, a.button.alt, .button.alt, input[type="submit"].alt {
  background: var(--smg-ink); border-color: var(--smg-ink); color: var(--smg-brass);
}
button.alt:hover, a.button.alt:hover { background: #000; border-color: #000; }

/* ── Product cards ──────────────────────────────────────────────── */
ul.products li.product {
  background: #fff;
  border: 1px solid #e7dfd2;
  border-radius: 6px;
  padding: 0 0 1.2em;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
ul.products li.product:hover { box-shadow: 0 8px 22px rgba(26,20,18,.14); transform: translateY(-2px); }
ul.products li.product img { margin-bottom: .8em; }
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .price,
ul.products li.product .button { margin-left: 1em; margin-right: 1em; }
ul.products li.product .woocommerce-loop-product__title { font-size: 1.05rem; line-height: 1.3; min-height: 2.6em; }
.price, .price ins { color: var(--smg-accent); font-weight: 700; }
.price del { color: #8a7f74; font-weight: 400; }
.onsale {
  background: var(--smg-brass); color: var(--smg-ink); border: 0;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .75rem;
}

/* ── Demo store banner (WooCommerce "store notice") ─────────────── */
.woocommerce-store-notice, p.demo_store {
  background: var(--smg-brass); color: var(--smg-ink); font-weight: 600;
}
.woocommerce-store-notice a, p.demo_store a { color: var(--smg-accent-d); }

/* ── Home hero (HTML block in the Home page) ────────────────────── */
.smg-hero {
  background: linear-gradient(135deg, #2b0d0d 0%, var(--smg-ink) 70%);
  border-bottom: 3px solid var(--smg-brass);
  color: #f3ece0;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3.5rem);
  border-radius: 6px;
  margin-bottom: 2.5rem;
}
.smg-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 .5em; max-width: 18ch; }
.smg-hero p  { font-size: 1.1rem; max-width: 52ch; margin: 0 0 1.5em; color: #e5dccd; }
.smg-hero .smg-eyebrow { color: var(--smg-brass); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; margin-bottom: .75em; }
.smg-hero .button { background: var(--smg-brass); border-color: var(--smg-brass); color: var(--smg-ink); margin-right: .6em; }
.smg-hero .button:hover { background: #fff; border-color: #fff; color: var(--smg-ink); }
.smg-hero .button.smg-ghost { background: transparent; border-color: #f3ece0; color: #f3ece0; }
.smg-hero .button.smg-ghost:hover { background: #f3ece0; color: var(--smg-ink); }

.smg-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.smg-trust li { background: #fff; border: 1px solid #e7dfd2; border-radius: 6px; padding: 1rem 1.1rem; }
.smg-trust strong { display: block; font-family: Georgia, serif; color: var(--smg-ink); margin-bottom: .2em; }

.storefront-product-section .section-title, .storefront-product-section h2.section-title {
  border-bottom: 2px solid var(--smg-brass); padding-bottom: .35em; display: inline-block;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--smg-ink); color: #cfc5b6; border-top: 3px solid var(--smg-brass); }
.site-footer a:not(.button) { color: #f3ece0; }
.site-footer a:not(.button):hover { color: var(--smg-brass); }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer .widget-title { color: var(--smg-brass); }
.smg-credit { text-align: center; padding: 1rem 0 0; font-size: .85rem; }

/* Touch targets: keep tap areas comfortable on phones */
@media (max-width: 767px) {
  .main-navigation ul li a, button, .button { min-height: 44px; }
}
