/* ============================================================
   SOETUPPA.EE — GLOBAL STYLES (sisemised lehed: blogi, tootevalik, toode, kontakt, arhiivid)
   Kehtib KÕIKJAL peale avalehe (avalehel on oma homepage.css).
   Sama värvipalett, sama font, sama aksent kui avalehel.
   ============================================================ */

:root {
  --sp-orange:   #e8762b;
  --sp-orange-d: #c9601a;
  --sp-navy:     #1a2332;
  --sp-bg-light: #fafbfc;
  --sp-text:     #212b38;
  --sp-text-2:   #5a6775;
  --sp-line:     #e4e8ee;
  --sp-white:    #ffffff;
  --sp-radius:   8px;
  --sp-font:     'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Scope: KÕIK lehed PEALE avalehe */
body:not(.home):not(.page-template-front-page) {
  font-family: var(--sp-font);
  color: var(--sp-text);
  background: var(--sp-bg-light);
  line-height: 1.65;
}

body:not(.home):not(.page-template-front-page) a {
  color: var(--sp-orange-d);
  text-decoration: none;
}
body:not(.home):not(.page-template-front-page) a:hover {
  color: var(--sp-orange);
  text-decoration: underline;
}

/* ============================================================
   HEADER — Storefront default-it värvime üle
   ============================================================ */
body:not(.home):not(.page-template-front-page) .site-header {
  background: var(--sp-navy) !important;
  color: var(--sp-white);
  border-bottom: 3px solid var(--sp-orange);
  padding: 1rem 0;
}
body:not(.home):not(.page-template-front-page) .site-header a,
body:not(.home):not(.page-template-front-page) .site-branding a,
body:not(.home):not(.page-template-front-page) .site-title a {
  color: var(--sp-white) !important;
}
body:not(.home):not(.page-template-front-page) .site-branding .site-title {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}
body:not(.home):not(.page-template-front-page) .site-branding .site-description {
  color: var(--sp-orange) !important;
  font-weight: 500;
}

/* Peamenüü */
body:not(.home):not(.page-template-front-page) .main-navigation a {
  color: var(--sp-white) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}
body:not(.home):not(.page-template-front-page) .main-navigation a:hover {
  color: var(--sp-orange) !important;
  text-decoration: none;
}
body:not(.home):not(.page-template-front-page) .main-navigation ul ul {
  background: var(--sp-navy) !important;
  border-top: 2px solid var(--sp-orange);
}

/* ============================================================
   FOOTER
   ============================================================ */
body:not(.home):not(.page-template-front-page) .site-footer {
  background: var(--sp-navy) !important;
  color: var(--sp-white);
  border-top: 3px solid var(--sp-orange);
  padding: 2rem 0;
}
body:not(.home):not(.page-template-front-page) .site-footer a {
  color: var(--sp-orange) !important;
}
body:not(.home):not(.page-template-front-page) .site-footer .site-info {
  color: var(--sp-white);
}

/* ============================================================
   SISU ALA
   ============================================================ */
body:not(.home):not(.page-template-front-page) .site-content,
body:not(.home):not(.page-template-front-page) #content {
  padding: 2rem 0;
}

body:not(.home):not(.page-template-front-page) h1,
body:not(.home):not(.page-template-front-page) h2,
body:not(.home):not(.page-template-front-page) h3,
body:not(.home):not(.page-template-front-page) .entry-title {
  color: var(--sp-navy);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}
body:not(.home):not(.page-template-front-page) h1,
body:not(.home):not(.page-template-front-page) .entry-title { font-size: 2.2rem; }
body:not(.home):not(.page-template-front-page) h2 { font-size: 1.7rem; margin-top: 2rem; }
body:not(.home):not(.page-template-front-page) h3 { font-size: 1.35rem; margin-top: 1.5rem; }

/* Sisu paragraafid */
body:not(.home):not(.page-template-front-page) .entry-content p,
body:not(.home):not(.page-template-front-page) .page-content p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Entry meta (autor, kuupäev) */
body:not(.home):not(.page-template-front-page) .entry-meta,
body:not(.home):not(.page-template-front-page) .posted-on {
  color: var(--sp-text-2);
  font-size: 0.9rem;
}

/* ============================================================
   NUPUD — ühtne stiil
   ============================================================ */
body:not(.home):not(.page-template-front-page) .button,
body:not(.home):not(.page-template-front-page) button,
body:not(.home):not(.page-template-front-page) input[type="submit"],
body:not(.home):not(.page-template-front-page) .wp-block-button__link,
body:not(.home):not(.page-template-front-page) .woocommerce a.button,
body:not(.home):not(.page-template-front-page) .woocommerce button.button {
  background: var(--sp-orange) !important;
  color: var(--sp-white) !important;
  border: none !important;
  border-radius: var(--sp-radius) !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600;
  text-transform: none;
  transition: background 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  text-decoration: none;
}
body:not(.home):not(.page-template-front-page) .button:hover,
body:not(.home):not(.page-template-front-page) button:hover,
body:not(.home):not(.page-template-front-page) input[type="submit"]:hover,
body:not(.home):not(.page-template-front-page) .wp-block-button__link:hover,
body:not(.home):not(.page-template-front-page) .woocommerce a.button:hover,
body:not(.home):not(.page-template-front-page) .woocommerce button.button:hover {
  background: var(--sp-orange-d) !important;
  color: var(--sp-white) !important;
  transform: translateY(-1px);
  text-decoration: none;
}

/* ============================================================
   BLOGIPOSTITUSED — kaart ja üksik post
   ============================================================ */
body.blog .site-main article,
body.archive .site-main article,
body.single-post .site-main article {
  background: var(--sp-white);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
body.blog .site-main article:hover,
body.archive .site-main article:hover {
  box-shadow: 0 4px 12px rgba(232, 118, 43, 0.12);
  transform: translateY(-2px);
}

body.blog .entry-title a,
body.archive .entry-title a {
  color: var(--sp-navy) !important;
  text-decoration: none;
}
body.blog .entry-title a:hover,
body.archive .entry-title a:hover {
  color: var(--sp-orange) !important;
}

/* Single post pilt */
body.single-post .wp-post-image,
body.single-post .post-thumbnail img {
  border-radius: var(--sp-radius);
  margin-bottom: 1.5rem;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   WOOCOMMERCE — tootekaardid
   ============================================================ */
body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product {
  background: var(--sp-white);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
body.woocommerce ul.products li.product:hover,
body.woocommerce-page ul.products li.product:hover {
  box-shadow: 0 4px 12px rgba(232, 118, 43, 0.12);
  transform: translateY(-2px);
}

body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  color: var(--sp-navy);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 0 0.25rem;
}

body.woocommerce .price,
body.woocommerce-page .price {
  color: var(--sp-orange) !important;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Single product */
body.single-product .product_title {
  color: var(--sp-navy);
}
body.single-product .summary .price {
  font-size: 1.75rem;
}

/* ============================================================
   CF7 vormid — Küsi pakkumist
   ============================================================ */
body:not(.home):not(.page-template-front-page) .wpcf7 form {
  background: var(--sp-white);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
body:not(.home):not(.page-template-front-page) .wpcf7 label {
  display: block;
  font-weight: 600;
  color: var(--sp-navy);
  margin-bottom: 0.4rem;
  margin-top: 1rem;
}
body:not(.home):not(.page-template-front-page) .wpcf7 input[type="text"],
body:not(.home):not(.page-template-front-page) .wpcf7 input[type="email"],
body:not(.home):not(.page-template-front-page) .wpcf7 input[type="tel"],
body:not(.home):not(.page-template-front-page) .wpcf7 input[type="url"],
body:not(.home):not(.page-template-front-page) .wpcf7 textarea,
body:not(.home):not(.page-template-front-page) .wpcf7 select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  font-family: var(--sp-font);
  font-size: 1rem;
  background: var(--sp-white);
  transition: border-color 0.2s ease;
}
body:not(.home):not(.page-template-front-page) .wpcf7 input:focus,
body:not(.home):not(.page-template-front-page) .wpcf7 textarea:focus,
body:not(.home):not(.page-template-front-page) .wpcf7 select:focus {
  border-color: var(--sp-orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 118, 43, 0.15);
}
body:not(.home):not(.page-template-front-page) .wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================================
   WIDGET ALA (sidebar)
   ============================================================ */
body:not(.home):not(.page-template-front-page) .widget-area .widget {
  background: var(--sp-white);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
body:not(.home):not(.page-template-front-page) .widget-area .widget-title {
  color: var(--sp-navy);
  font-size: 1.1rem;
  border-bottom: 2px solid var(--sp-orange);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* ============================================================
   BREADCRUMBS (Rank Math / WooCommerce)
   ============================================================ */
body:not(.home):not(.page-template-front-page) .rank-math-breadcrumb,
body:not(.home):not(.page-template-front-page) .woocommerce-breadcrumb {
  color: var(--sp-text-2);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sp-line);
}
body:not(.home):not(.page-template-front-page) .rank-math-breadcrumb a,
body:not(.home):not(.page-template-front-page) .woocommerce-breadcrumb a {
  color: var(--sp-orange-d);
}

/* ============================================================
   TABELID
   ============================================================ */
body:not(.home):not(.page-template-front-page) table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
body:not(.home):not(.page-template-front-page) table th,
body:not(.home):not(.page-template-front-page) table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--sp-line);
  text-align: left;
}
body:not(.home):not(.page-template-front-page) table th {
  background: var(--sp-navy);
  color: var(--sp-white);
  font-weight: 600;
}

/* ============================================================
   TSITAADID / BLOCKQUOTE
   ============================================================ */
body:not(.home):not(.page-template-front-page) blockquote {
  border-left: 4px solid var(--sp-orange);
  background: var(--sp-white);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--sp-radius) var(--sp-radius) 0;
  font-style: italic;
  color: var(--sp-text-2);
}

/* ============================================================
   MOBIILI KOHANDUSED
   ============================================================ */
@media (max-width: 768px) {
  body:not(.home):not(.page-template-front-page) h1,
  body:not(.home):not(.page-template-front-page) .entry-title { font-size: 1.7rem; }
  body:not(.home):not(.page-template-front-page) h2 { font-size: 1.4rem; }
  body:not(.home):not(.page-template-front-page) .site-content { padding: 1rem 0; }
  body:not(.home):not(.page-template-front-page) .wpcf7 form { padding: 1.25rem; }
}
