/*
Theme Name:  TMR Warenhandel (Storefront Child)
Description: Kindliches, modernes Shop-Design für TMR Warenhandel auf Basis von Storefront — Farben und Formen nach dem TMR-Logo (Orange, Grün, Blau, abgerundet, verspielt).
Author:      TMR Warenhandel
Template:    storefront
Version:     1.2.0
Text Domain: storefront-tmr
*/

/* ==========================================================================
   TMR Warenhandel – Design-Token
   ========================================================================== */
:root {
  --tmr-orange: #F7941D;
  --tmr-orange-dark: #E07800;
  --tmr-green: #8CC63E;
  --tmr-green-dark: #6FA51F;
  --tmr-blue: #29ABE2;
  --tmr-blue-dark: #1B87B8;
  --tmr-ink: #23272B;
  --tmr-gray: #5B6770;
  --tmr-bg-soft: #F5F9FD;
  --tmr-radius: 14px;
  --tmr-radius-big: 22px;
  --tmr-shadow: 0 4px 16px rgba(35, 39, 43, 0.08);
  --tmr-shadow-hover: 0 10px 28px rgba(35, 39, 43, 0.14);
  --tmr-font-head: "Baloo 2", "Trebuchet MS", sans-serif;
  --tmr-font-body: "Nunito", "Segoe UI", sans-serif;
}

/* ==========================================================================
   Grundlayout & Typografie
   ========================================================================== */
body {
  font-family: var(--tmr-font-body);
  color: var(--tmr-ink);
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6,
.site-branding .site-title,
.woocommerce-loop-product__title {
  font-family: var(--tmr-font-head);
  font-weight: 600;
  color: var(--tmr-ink);
}

a {
  color: var(--tmr-blue-dark);
}
a:hover {
  color: var(--tmr-orange);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header,
.storefront-handheld-footer-bar {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(35, 39, 43, 0.07);
}
.site-header {
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--tmr-orange), var(--tmr-green), var(--tmr-blue)) 1;
}
.site-branding img.custom-logo {
  max-height: 90px;
  width: auto;
}
.site-header .custom-logo-link {
  display: inline-block;
}

/* Hauptnavigation */
.main-navigation ul li a,
.site-title a,
ul.menu li a,
.site-header-cart .cart-contents,
.site-header .handheld-navigation ul li a {
  color: var(--tmr-ink);
  font-family: var(--tmr-font-head);
  font-weight: 600;
}
.main-navigation ul li a:hover,
.site-header-cart .cart-contents:hover {
  color: var(--tmr-orange);
}
.main-navigation ul.menu > li.current-menu-item > a {
  color: var(--tmr-blue);
}
.storefront-primary-navigation,
.main-navigation ul.menu ul.sub-menu {
  background-color: #ffffff;
}

/* Suche im Header */
.site-search .widget_product_search input[type="search"] {
  border-radius: 999px;
  border: 2px solid #E3EAF0;
  background: var(--tmr-bg-soft);
}

/* Warenkorb-Zähler */
.site-header-cart .cart-contents .count {
  background-color: var(--tmr-orange);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
button, input[type="button"], input[type="reset"], input[type="submit"],
.button, .added_to_cart,
.woocommerce #respond input#submit,
.wp-block-button__link {
  background-color: var(--tmr-orange);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  font-family: var(--tmr-font-head);
  font-weight: 600;
  padding: 0.62em 1.5em;
  box-shadow: 0 3px 0 var(--tmr-orange-dark);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
button:hover, .button:hover, .added_to_cart:hover,
input[type="submit"]:hover, .wp-block-button__link:hover {
  background-color: var(--tmr-orange-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #b96300, var(--tmr-shadow);
}
.button.alt, .button.checkout,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
#place_order {
  background-color: var(--tmr-green) !important;
  box-shadow: 0 3px 0 var(--tmr-green-dark) !important;
  color: #fff !important;
}
.button.alt:hover, .button.checkout:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
#place_order:hover {
  background-color: var(--tmr-green-dark) !important;
}

/* ==========================================================================
   Produktkacheln
   ========================================================================== */
ul.products li.product {
  background: #ffffff;
  border-radius: var(--tmr-radius);
  box-shadow: var(--tmr-shadow);
  padding: 1em 1em 1.4em;
  transition: transform .15s ease, box-shadow .15s ease;
}
ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--tmr-shadow-hover);
}
ul.products li.product img {
  border-radius: calc(var(--tmr-radius) - 6px);
}
ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.02em;
  color: var(--tmr-ink);
}
ul.products li.product .price,
.woocommerce div.product p.price {
  color: var(--tmr-blue-dark);
  font-family: var(--tmr-font-head);
  font-weight: 700;
  font-size: 1.15em;
}
.woocommerce div.product p.price {
  font-size: 1.6em;
}
.price .woocommerce-price-suffix {
  font-size: 0.62em;
  font-weight: 400;
  color: var(--tmr-gray);
  display: block;
}
span.onsale {
  background-color: var(--tmr-green);
  color: #fff;
  border-radius: 999px;
  font-family: var(--tmr-font-head);
}
.star-rating span::before, p.stars a:hover::after, p.stars a.active::after {
  color: var(--tmr-orange);
}

/* Einzelprodukt */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--tmr-blue);
}
.single-product div.product .woocommerce-product-gallery {
  border-radius: var(--tmr-radius);
  overflow: hidden;
}

/* ==========================================================================
   Hinweisboxen / Formulare
   ========================================================================== */
.woocommerce-message, .woocommerce-info, .woocommerce-noreviews, p.no-comments {
  background-color: var(--tmr-bg-soft);
  color: var(--tmr-ink);
  border-top: 3px solid var(--tmr-blue);
  border-radius: 0 0 var(--tmr-radius) var(--tmr-radius);
}
.woocommerce-message { border-top-color: var(--tmr-green); }
.woocommerce-error { border-radius: 0 0 var(--tmr-radius) var(--tmr-radius); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="search"], input[type="number"], input[type="url"], textarea, select {
  border-radius: 10px;
  border: 2px solid #E3EAF0;
  background: #fff;
}
input:focus, textarea:focus {
  border-color: var(--tmr-blue);
  outline: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #2A3540;
  color: #C9D4DD;
  border-top: 5px solid transparent;
  border-image: linear-gradient(90deg, var(--tmr-orange), var(--tmr-green), var(--tmr-blue)) 1;
}
.site-footer a {
  color: #ffffff;
}
.site-footer a:hover {
  color: var(--tmr-orange);
}
.tmr-footer-nav {
  text-align: center;
  padding: 1.2em 0 0.4em;
}
.tmr-footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.6em;
  justify-content: center;
}
.tmr-footer-nav ul li {
  margin: 0;
}
.tmr-footer-nav a {
  font-family: var(--tmr-font-head);
  font-weight: 600;
}
.tmr-footer-disclaimer {
  text-align: center;
  font-size: 0.82em;
  color: #93A3B1;
  max-width: 760px;
  margin: 0.8em auto 0;
}
.site-info {
  text-align: center;
  background: transparent;
}

/* ==========================================================================
   Startseiten-Sektionen (template-home.php)
   ========================================================================== */
.tmr-hero {
  background: linear-gradient(160deg, #EAF6FE 0%, #ffffff 55%, #F4FAEC 100%);
  border-radius: var(--tmr-radius-big);
  padding: 3.2em 2em;
  text-align: center;
  margin-bottom: 2.6em;
}
.tmr-hero h1 {
  font-size: 2.6em;
  margin-bottom: 0.35em;
}
.tmr-hero h1 .t { color: var(--tmr-orange); }
.tmr-hero h1 .m { color: var(--tmr-green); }
.tmr-hero h1 .r { color: var(--tmr-blue); }
.tmr-hero p.tmr-sub {
  font-size: 1.2em;
  color: var(--tmr-gray);
  max-width: 620px;
  margin: 0 auto 1.4em;
}
.tmr-hero .button {
  font-size: 1.1em;
  padding: 0.75em 2.2em;
}

.tmr-usps {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  justify-content: center;
  margin: 0 0 2.8em;
  padding: 0;
  list-style: none;
}
.tmr-usps li {
  background: #fff;
  border-radius: var(--tmr-radius);
  box-shadow: var(--tmr-shadow);
  padding: 0.9em 1.4em;
  font-weight: 700;
  font-family: var(--tmr-font-head);
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
}
.tmr-usps li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 999px;
  color: #fff;
  font-size: 0.9em;
}
.tmr-usps li:nth-child(3n+1)::before { background: var(--tmr-orange); }
.tmr-usps li:nth-child(3n+2)::before { background: var(--tmr-green); }
.tmr-usps li:nth-child(3n)::before   { background: var(--tmr-blue); }

.tmr-section-title {
  text-align: center;
  font-size: 1.9em;
  margin: 1.2em 0 1em;
}
.tmr-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.1em;
  margin-bottom: 2.8em;
}
.tmr-cat-tile {
  display: block;
  border-radius: var(--tmr-radius);
  padding: 1.5em 1.2em;
  text-align: center;
  color: #fff !important;
  font-family: var(--tmr-font-head);
  font-weight: 700;
  font-size: 1.06em;
  box-shadow: var(--tmr-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.tmr-cat-tile:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: var(--tmr-shadow-hover);
  color: #fff !important;
}
.tmr-cat-tile small {
  display: block;
  font-family: var(--tmr-font-body);
  font-weight: 400;
  opacity: 0.9;
  margin-top: 0.25em;
}
.tmr-cat-tile.c0 { background: linear-gradient(145deg, var(--tmr-orange), var(--tmr-orange-dark)); }
.tmr-cat-tile.c1 { background: linear-gradient(145deg, var(--tmr-green), var(--tmr-green-dark)); }
.tmr-cat-tile.c2 { background: linear-gradient(145deg, var(--tmr-blue), var(--tmr-blue-dark)); }

@media (max-width: 640px) {
  .tmr-hero { padding: 2.2em 1.2em; }
  .tmr-hero h1 { font-size: 1.9em; }
}
