/* =========================================================
   Tehnikamarket.ee – kujunduse värskendus v3 (ohutu)
   Fail: catalog/view/theme/OPC070174-1/stylesheet/tm-refresh.css
   EI MUUDA: karussellide/toodete laiusi, float'e, nuppude
   paigutust, bännerite laiusi. Muudab ainult välimust ja
   plokkide vahelisi vahesid.
   ========================================================= */

:root {
  --tm-green: #7DC23F;
  --tm-green-dark: #5E9E27;
  --tm-navy: #272262;
  --tm-text: #2b2f36;
  --tm-muted: #8a909c;
  --tm-border: #e6e9ee;
  --tm-bg: #f4f6f8;
  --tm-sale: #e53935;
  --tm-gap: 24px;
  --tm-shadow: 0 1px 2px rgba(16,24,40,.04), 0 2px 8px rgba(16,24,40,.05);
  --tm-shadow-hover: 0 4px 10px rgba(16,24,40,.06), 0 10px 24px rgba(16,24,40,.09);
}

/* ---------- 1. Taust ja tekst ---------- */
html body {
  background: var(--tm-bg) !important;
  color: var(--tm-text);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 2. Päis ja jalus: täislaiusega ribad ilma ümaruseta ---------- */
html body header,
html body .footer-top,
html body #footer,
html body .copyright-container,
html body .social,
html body .footer-top-right {
  border-radius: 0 !important;
}
html body header {
  background: #fff !important;
  border-bottom: 1px solid var(--tm-border);
}

/* ---------- 3. Plokkide vahed: üks ja sama vahe kõikjal ---------- */
html body.common-home #content,
html body.common-home #column-left {
  padding-top: var(--tm-gap) !important;
}
html body #content .slider-banner,
html body #content .box.featured,
html body #content .box.latest,
html body #content .box.bestseller,
html body #content .box.special,
html body #content .hometab {
  margin-top: 0 !important;
  margin-bottom: var(--tm-gap) !important;
}
html body #column-left > div,
html body #column-left .box,
html body #column-left .banner {
  margin-top: 0 !important;
  margin-bottom: var(--tm-gap) !important;
}

/* ---------- 4. Sektsioonikastid: puhtam raam ja vari ---------- */
html body #content .box.featured,
html body #content .box.latest,
html body #content .box.bestseller,
html body #content .box.special,
html body #content .hometab,
html body #column-left .box {
  border: 1px solid var(--tm-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--tm-shadow) !important;
}
html body #content .box.featured,
html body #content .box.latest,
html body #content .box.bestseller,
html body #content .box.special,
html body #content .hometab {
  padding: 20px !important;            /* külgedel 20px nagu teemas – karussell mahub */
}

/* ---------- 5. Pealkirjad: väiksemad, vasakule, lühike roheline joon all ---------- */
html body #content .box .box-heading,
html body #content .box h3,
html body #column-left .box .box-heading,
html body .box .box-heading,
html body .box-heading {
  font-size: 22px !important;
  letter-spacing: .02em;
  text-align: left !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
  border: 0 !important;
}
html body #content .box .box-heading::after,
html body #column-left .box .box-heading::after,
html body .box .box-heading::after,
html body .box-heading::after {
  content: '' !important;
  display: block !important;
  position: static !important;
  width: 40px !important;
  height: 3px !important;
  margin: 10px 0 0 !important;
  background: var(--tm-green) !important;
  border-radius: 2px !important;
}
html body #column-left .box .box-heading { font-size: 18px !important; }

/* ---------- 6. Tootekaardid: ainult välimus (laiused jäävad teema omad) ---------- */
html body #content .product-items .product-block,
html body #content .product-layout .product-thumb,
html body #content .slider-item .product-block {
  border: 1px solid var(--tm-border) !important;
  border-radius: 12px !important;
  transition: box-shadow .2s ease, border-color .2s ease;
}
html body #content .product-items .product-block:hover,
html body #content .product-layout .product-thumb:hover,
html body #content .slider-item .product-block:hover {
  border-color: transparent !important;
  box-shadow: var(--tm-shadow-hover) !important;
}

/* Nimi ja hind */
html body .product-thumb h4 a,
html body .product-block h4 a { color: var(--tm-text) !important; }
html body .product-thumb h4 { font-weight: 600 !important; }

html body .product-thumb .price { color: var(--tm-navy) !important; font-weight: 700 !important; }
html body .product-thumb .price-new { color: var(--tm-sale) !important; }
html body .product-thumb .price-old { color: var(--tm-muted) !important; font-size: 15px !important; }
html body .product-thumb .price-tax { display: none !important; }

/* ---------- 7. Jalus ---------- */
html body #footer {
  background: #fff !important;
  border-top: 1px solid var(--tm-border);
}
html body footer h5 { color: var(--tm-navy) !important; font-weight: 700 !important; }

/* ---------- 8. KIRJAD: üks põhikiri + pealkirjakiri ----------
   Open Sans  – kogu tavaline tekst (menüü, tootenimed, jalus, vormid)
   Archivo Narrow – ainult pealkirjad ja hinnad
   Suurused: 13 / 14 / 18 / 20 / 22 px
   ------------------------------------------------------------ */
html body,
html body p,
html body li,
html body a,
html body label,
html body input,
html body select,
html body textarea,
html body button,
html body .btn,
html body ul.dropmenu,
html body .box .box-content ul li a,
html body #content .content ul li a,
html body .list-group a,
html body .product-thumb h4,
html body .product-thumb h4 a,
html body .product-block h4 a,
html body #footer,
html body #menu.responsive-menu ul li a {
  font-family: 'Open Sans', Arial, sans-serif !important;
}
html body { font-size: 14px; color: var(--tm-text); }

/* Kategooriamenüü ja INFO lingid */
html body .box .box-content ul li a,
html body #column-left .box .box-content ul li a,
html body #column-left .box .list-group a,
html body .list-group a {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--tm-text) !important;
}
html body .box .box-content ul li a:hover,
html body #column-left .box .list-group a:hover,
html body .list-group a:hover { color: var(--tm-green-dark) !important; }

/* Tootenimed: sama kiri ja suurus mis menüül */
html body .product-thumb h4,
html body .product-block h4 {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
}
html body .product-thumb h4 a,
html body .product-block h4 a { color: var(--tm-text) !important; }
html body #content .product-block:hover h4 a,
html body #content .product-thumb:hover h4 a { color: var(--tm-green-dark) !important; }

/* Pealkirjad: Archivo Narrow, tumesinine */
html body #content .box .box-heading,
html body #content .box h3,
html body .box .box-heading,
html body .box-heading,
html body footer h5 {
  font-family: 'Archivo Narrow', Arial, sans-serif !important;
  font-weight: 700 !important;
  color: var(--tm-navy) !important;
  text-transform: uppercase !important;
}
html body footer h5 { font-size: 18px !important; }

/* Hinnad: Archivo Narrow */
html body .product-thumb .price,
html body .product-block .price {
  font-family: 'Archivo Narrow', Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--tm-navy) !important;
}
html body .product-thumb .price-new { color: var(--tm-sale) !important; }
html body .product-thumb .price-old {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--tm-muted) !important;
}

/* Jaluse lingid ja ülemine riba */
html body footer a,
html body #footer .column li a { font-size: 14px !important; color: #555b66 !important; }
html body footer a:hover,
html body #footer .column li a:hover { color: var(--tm-green-dark) !important; }
html body #top-links a,
html body #top .btn-link { font-size: 13px !important; color: #555b66 !important; }

/* ---------- 9. TOODETE VAHED: kõikjal 20px ----------
   Soovitame (ruudustik): toote ümber 10px => 20px vahe, read flexiga
   ühekõrgused, et ridade vahel poleks 60px auku.
   Slaiderid: kaart saab sees 10px külgvahe; karusselli laiusi ei puutu.
   ---------------------------------------------------- */
html body #content .box.featured .box-product {
  display: flex !important;
  flex-wrap: wrap !important;
  height: auto !important;
}
html body #content .box.featured .box-product .product-items {
  float: none !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 10px !important;
}
html body #content .box.featured .box-product .product-items .product-block {
  height: 100% !important;
}
html body #content .slider-item .product-block,
html body #content .slider-item .product-thumb {
  margin: 0 10px 10px !important;
}

/* ---------- 10. KATEGOORIAMENÜÜ: suurem ja kasutab kogu kasti laiust ---------- */
html body #column-left .box.sidebar-category .box-content ul li,
html body #column-left .box .box-content > ul > li {
  padding-right: 0 !important;
}
html body #column-left .box.sidebar-category .box-content > ul > li > a,
html body #column-left .box .box-content > ul > li > a {
  font-size: 15px !important;
  line-height: 20px !important;
  padding: 11px 22px 11px 4px !important;   /* paremal ruum ">" noolele */
  white-space: normal !important;           /* pikk nimi murdub, ei lõigu */
}
html body #column-left .box .box-content ul li a.activSub:before { right: 4px !important; }

/* ---------- 11. VAHED – mõõdetud päris lehelt, kõik 24px ----------
   NB: body EI saa klassi "common-home" (avalehel on div#common-home),
   seega ei kasuta siin body.common-home tingimusi.
   ------------------------------------------------------------------ */
/* Päis -> sisu, sisu -> jalus */
html body header { margin-bottom: 24px !important; }
html body footer { margin-top: 24px !important; }

/* Vasak veerg -> sisu: 12 + 12 = 24px (oli 15 + 15) */
@media (min-width: 768px) {
  html body #column-left { padding-right: 12px !important; }
  html body #content { padding-left: 12px !important; }
}

/* Plokkide vahed üksteise all */
html body #content .main-slider { margin-bottom: 24px !important; }
html body #content .box.featured { margin: 0 0 24px !important; }
html body #content .hometab-vertical { margin-bottom: 0 !important; }
html body #content .product-column { margin: 0 0 24px !important; }   /* oli 40px */
html body #content .product-column:last-child { margin-bottom: 0 !important; }
html body #column-left .box { padding: 20px 20px 12px !important; }

/* Uued tooted / Viimati ostetud / Sooduspakkumised = sama kast mis Soovitame */
html body #content .product-column .box,
html body #content .box.featured {
  background: #fff !important;
  border: 1px solid var(--tm-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--tm-shadow) !important;
  padding: 20px !important;
}
html body #content .product-column .box { margin: 0 !important; }

/* Pealkiri -> tooted: 16px igal pool */
html body #content .box.featured .box-heading,
html body #content .product-column .box .box-heading { margin: 0 0 16px !important; padding: 0 !important; }
html body #content .product-column .box .box-heading h3 { margin: 0 !important; padding: 0 !important; }
html body #content .product-column .box .box-heading h3::after { display: none !important; }
html body #content .box .box-content { padding: 0 !important; }

/* Tootekaardid: 20px vahe, ühtlane joondus ruudustikus ja slaiderites */
html body #content .box.featured #featured-grid { margin: -10px 0 !important; }
html body #content .box.featured .box-product .product-items .product-block { margin: 0 !important; }
html body #content .product-column .slider-wrapper-outer { margin: 0 !important; padding-bottom: 0 !important; }
html body #content .slider-item .product-block { margin: 0 10px !important; }
html body #content .box.featured .box-product .product-items .product-block,
html body #content .slider-item .product-block { padding: 10px !important; }

/* ---------- 12. TOOTELEHT: põhipilt ja pisipildid ---------- */
/* Põhipilt: ümarad nurgad, sama raam mis kaartidel */
html body .product-info .image a.thumbnail {
  border: 1px solid var(--tm-border) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  padding: 16px !important;
  margin: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
html body .product-info .image { margin-bottom: 12px !important; }
html body .product-info .image a.thumbnail img { border-radius: 0 !important; margin: 0 auto !important; }

/* Pisipildid: 4 ühesugust ruutu reas, ümarad nurgad, roheline raam hiirega */
html body #additional-carousel {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body #content #additional-carousel .slider-item {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
}
html body #content #additional-carousel .slider-item .product-block {
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  border: 1px solid var(--tm-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  overflow: hidden !important;
  cursor: pointer;
  transform: none !important;
  box-shadow: none !important;
  transition: border-color .15s ease;
}
html body #content #additional-carousel .slider-item .product-block:hover { border-color: var(--tm-green) !important; }
html body #content #additional-carousel .slider-item .product-block a {
  position: absolute !important;
  inset: 0 !important;
  padding: 6px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 0 !important;
}
html body #content #additional-carousel .slider-item .product-block img {
  position: static !important;
  transform: none !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
html body .product-info .additional-carousel .customNavigation { display: none !important; }

/* ---------- 13. TOOTEKAARDID: tühjad tähed peitu, ostukorvi nupp alla ---------- */
/* Tähed ainult siis, kui tootel on päriselt hinnang */
html body .product-thumb .rating:not(:has(i.fa-star:not(.off))) { display: none !important; }

/* Kaardi sisu: pilt -> nimi/hind -> nupp (alati allservas) */
html body #content .product-block .product-block-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  padding: 0 !important;
}
html body #content .slider-item .product-block .product-block-inner { flex: 1 1 auto; }
html body #content .product-block .product-block-inner .image { order: 1; }
html body #content .product-block .product-block-inner .caption { order: 2; flex: 1 1 auto; }
html body #content .product-block .caption h4 { min-height: 40px !important; }

/* Slaiderid: kõrgus sisu järgi (oli fikseeritud 420px -> tühi auk) */
html body #content .slider-item .product-block { height: auto !important; min-height: 0 !important; }
html body #content .product-column .slider-item .product-block { min-height: 350px !important; }

/* Nupp */
html body #content .product-block .product-block-inner .button-group,
html body.common-home #content .box-product#featured-grid .product-block-inner .button-group {
  order: 3;
  opacity: 1 !important;
  display: flex !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  width: 100% !important;
}
html body #content .product-block .button-group .wishlist,
html body #content .product-block .button-group .compare { display: none !important; }
html body #content .product-block .button-group button.addtocart {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 38px !important;
  line-height: 38px !important;
  background: var(--tm-green) !important;
  color: #fff !important;
  font-family: 'Open Sans', Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  border: 0 !important;
  border-radius: 25px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  transition: background-color .15s ease !important;
}
html body #content .product-block .button-group button.addtocart:hover { background: var(--tm-green-dark) !important; }
html body #content .product-block .button-group button.addtocart::before {
  content: "\f07a";
  font-family: FontAwesome;
  font-weight: normal;
  margin-right: 8px;
}
/* Mobiilis ka nähtav (teema peitis nupud telefonis) */
@media (max-width: 767px) {
  html body #content .product-block .product-block-inner .button-group,
  html body #content .product-items .product-block-inner .button-group,
  html body #content .box-product#featured-grid .product-block-inner .button-group { display: flex !important; }
  html body #content .product-block .button-group button.addtocart {
    width: 100% !important; height: 34px !important; line-height: 34px !important;
    flex: 1 1 auto !important; font-size: 13px !important;
  }
  html body #content .product-block .button-group button.addtocart::before { margin-right: 6px; }
}

/* ---------- 14. USALDUSRIBA (HTML on header.twig-is) ---------- */
.tm-trust { margin: 0 auto 24px; }
.tm-trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: 16px;
  box-shadow: var(--tm-shadow);
}
.tm-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  color: var(--tm-text) !important;
  text-decoration: none !important;
}
.tm-trust-item + .tm-trust-item { border-left: 1px solid #eef0f3; }
a.tm-trust-item:hover .tm-trust-title { color: var(--tm-green-dark) !important; }
.tm-trust-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef7e6;
  color: var(--tm-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tm-trust-icon .fa { font-size: 20px !important; }
.tm-trust-title {
  display: block;
  font-family: 'Archivo Narrow', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--tm-navy);
  line-height: 1.2;
}
.tm-trust-sub { display: block; font-size: 13px; color: #6b7280; line-height: 1.35; margin-top: 2px; }
html body header + .tm-trust { margin-top: 0; }
@media (max-width: 991px) {
  .tm-trust-inner { grid-template-columns: repeat(2, 1fr); }
  .tm-trust-item:nth-child(3) { border-left: 0; }
  .tm-trust-item:nth-child(n+3) { border-top: 1px solid #eef0f3; }
}
@media (max-width: 480px) {
  .tm-trust-item { padding: 12px; gap: 10px; }
  .tm-trust-icon { flex-basis: 36px; width: 36px; height: 36px; }
  .tm-trust-icon .fa { font-size: 16px !important; }
  .tm-trust-title { font-size: 14px; }
  .tm-trust-sub { font-size: 12px; }
}

/* ---------- 15. JALUS: üks lingirida + sotsiaalmeedia + copyright ----------
   "Lisad" tulp peidetud, "Informatsioon" tulbast sai keskel üks rida.
   Alumise riba topeltlingid peidetud, alles jääb "Tehnikamarket © aasta".
   -------------------------------------------------------------------------- */
html body #footer {
  padding: 28px 0 20px !important;
  margin: 0 !important;
  min-height: 0 !important;
  background: #fff !important;
  border-top: 1px solid var(--tm-border) !important;
}
html body #footer > .container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 0 15px !important;
}
html body #footer .column.first,
html body #footer .column.third { display: none !important; }        /* tühi tulp + "Lisad" */
html body #footer .column,
html body #footer .col-sm-3.column.second,
html body #footer .col-sm-3.column.forth {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  text-align: center !important;
}
html body #footer .column h5 { display: none !important; }
html body #footer .column ul {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
html body #footer .column.second ul { gap: 6px 24px !important; }
html body #footer .column li { line-height: 1.6 !important; padding: 0 !important; margin: 0 !important; display: flex; align-items: center; }
html body #footer .column li a::before { content: none !important; }
html body #footer .column li a { font-size: 14px !important; color: #555b66 !important; padding: 0 !important; }
html body #footer .column li a:hover { color: var(--tm-green-dark) !important; }

/* Sotsiaalmeedia: ümarad nupud ikoonidega */
html body #footer .column.forth ul { gap: 10px !important; }
html body #footer .column.forth li a {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 6px 14px !important;
  border: 1px solid var(--tm-border);
  border-radius: 25px;
  font-size: 13px !important;
}
html body #footer .column.forth li a:hover { border-color: var(--tm-green); }
html body #footer .column.forth li a[href*="facebook"]::before {
  content: "\f09a" !important; font-family: FontAwesome; color: #1877f2; font-size: 14px; padding: 0 !important;
}
html body #footer .column.forth li a[href*="toiduturg"]::before {
  content: "\f08e" !important; font-family: FontAwesome; color: var(--tm-green); font-size: 13px; padding: 0 !important;
}

/* Alumine riba: ainult copyright, valge taust üle kogu laiuse */
html body .copyright-container.container {
  background: #fff !important;
  box-shadow: 0 0 0 100vmax #fff !important;
  clip-path: inset(0 -100vmax) !important;
  padding: 14px 15px 22px !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
  border-top: 1px solid #eef0f3 !important;
  text-align: center !important;
}
html body .copyright-container .footer-container { float: none !important; width: 100% !important; }
html body #bottomfooter { float: none !important; text-align: center !important; margin: 0 !important; }
html body #bottomfooter > ul > li:not(.powered-inline) { display: none !important; }
html body #bottomfooter > ul > li.powered-inline {
  display: inline !important;
  background: none !important;
  padding: 0 !important;
  font-size: 12px !important;
  color: var(--tm-muted) !important;
}
/* Mobiilis teema peitis jaluse lingid – näitame rea alati */
@media (max-width: 979px) {
  html body #footer .column ul { display: flex !important; }
}

/* ---------- 16. TOOTELEHT ---------- */
/* Kogu toote ala üheks valgeks kastiks */
html body #content.productpage > .row {
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: 16px;
  box-shadow: var(--tm-shadow);
  margin: 0 !important;
  padding: 24px 9px !important;
}
html body #content.productpage > .breadcrumb {
  border: 0 !important; padding: 0 !important; margin: 0 0 12px !important; background: none !important; font-size: 13px;
}
html body #content.productpage > .breadcrumb a { color: var(--tm-muted) !important; }

/* Tootenimi: tavalised tähed (mitte SUURTÄHED), tumesinine */
html body .productpage .product-title {
  font-family: 'Archivo Narrow', Arial, sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  color: var(--tm-navy) !important;
  line-height: 1.25 !important;
  margin: 0 0 14px !important;
}
html body #content.productpage ul.list-unstyled { border-top: 0 !important; padding: 0 !important; margin: 0 0 12px !important; }
html body #content.productpage ul.list-unstyled li { padding: 2px 0 !important; color: var(--tm-text) !important; }
html body #content.productpage ul.list-unstyled li span.desc { color: var(--tm-muted) !important; margin-right: 4px; }
html body #content.productpage ul.list-unstyled li a { color: var(--tm-green-dark) !important; }
html body #content.productpage ul.list-unstyled.price h2 {
  font-family: 'Archivo Narrow', Arial, sans-serif !important; font-size: 32px !important; font-weight: 700 !important; color: var(--tm-navy) !important;
}

/* Ostukorvi ala */
html body #product .form-group.cart {
  background: #f6f7f9 !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  margin: 8px 0 12px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
html body #product .form-group.cart label { margin: 0 !important; }
html body #product #input-quantity { width: 56px !important; height: 40px !important; text-align: center; }
html body #product #button-cart {
  height: 40px !important; padding: 0 26px !important; font-size: 15px !important; font-weight: 600 !important;
  text-transform: none !important; border-radius: 25px !important; background: var(--tm-green) !important;
}
html body #product #button-cart:hover { background: var(--tm-green-dark) !important; }
html body #product #button-cart::before { content: "\f07a"; font-family: FontAwesome; margin-right: 8px; font-weight: normal; }
html body #product .form-group.cart > span { display: none !important; }      /* "-või-" */
html body #product .form-group.cart .btn-group { flex-basis: 100%; display: flex !important; gap: 18px; padding: 0 !important; margin: 0 !important; clear: none !important; }
html body #product .form-group.cart .btn-group .btn { font-size: 13px !important; color: #6b7280 !important; }
html body #product .form-group.cart .btn-group .wishlist::before { content: "\f08a"; font-family: FontAwesome; margin-right: 6px; }
html body #product .form-group.cart .btn-group .compare::before { content: "\f0ec"; font-family: FontAwesome; margin-right: 6px; }
html body #product hr { display: none; }

/* Kirjeldus / Tehnilised andmed / Arvustused: sama stiil mis avalehel */
html body #tabs_info { padding-top: 32px !important; }
html body #tab-description::before,
html body #tab-specification::before,
html body #tab-review::before {
  font-family: 'Archivo Narrow', Arial, sans-serif !important;
  font-size: 22px !important;
  color: var(--tm-navy) !important;
  text-transform: uppercase;
  border-bottom: 0 !important;
  padding-bottom: 12px !important;
  margin-bottom: 16px !important;
  background: linear-gradient(var(--tm-green), var(--tm-green)) left bottom / 40px 3px no-repeat;
}
html body #tabs_info .tab-content { padding: 0 !important; }
html body #tabs_info .tab-content > .tab-pane { margin-bottom: 32px !important; }

/* Tehniliste andmete tabel */
html body #tab-specification table {
  border: 1px solid var(--tm-border) !important; border-radius: 12px; border-collapse: separate !important; border-spacing: 0; overflow: hidden;
}
html body #tab-specification table td { border: 0 !important; border-bottom: 1px solid #eef0f3 !important; padding: 9px 14px !important; }
html body #tab-specification table tr:last-child td { border-bottom: 0 !important; }
html body #tab-specification table thead td { background: #f6f7f9 !important; font-weight: 700; color: var(--tm-navy); }
html body #tab-specification table tbody td:first-child { color: #6b7280; width: 40%; }

/* ---------- 17. KLEEPUV PÄIS (arvutis) ---------- */
@media (min-width: 992px) {
  html body header { position: sticky !important; top: 0; z-index: 900; transition: box-shadow .2s ease; }
  html body.tm-stuck header { box-shadow: 0 4px 16px rgba(16,24,40,.08); }
  html body header .header.container,
  html body header #logo,
  html body header #logo img,
  html body header .header-search,
  html body header #cart { transition: all .2s ease; }
  html body.tm-stuck header .header.container { height: 72px !important; }
  html body.tm-stuck header #logo { margin-top: 8px !important; }
  html body.tm-stuck header #logo img { height: 56px !important; }
  html body.tm-stuck header .header-search { top: 18px !important; }
  html body.tm-stuck header #cart { margin-top: 14px !important; }
  html body.tm-stuck header .content_headercms_top { margin-top: 16px !important; }
}

/* ---------- 18. SOODUSMÄRK "-X%" (JS header.twig-is) ---------- */
html body #content .sale { display: none !important; }       /* teema vana "Sale" pilt */
html body #content .product-block .image,
html body #content .product-thumb .image { position: relative; }
.tm-sale-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--tm-sale);
  color: #fff;
  font-family: 'Archivo Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 25px;
  pointer-events: none;
}

/* ---------- 19. OSTUKORVI RIPPMENÜÜ JA TEATED ---------- */
html body #cart .dropdown-menu {
  border: 1px solid var(--tm-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 28px rgba(16,24,40,.14) !important;
  padding: 14px !important;
  margin-top: 10px !important;
  overflow: hidden;
}
html body #cart .dropdown-menu .img-thumbnail { border-radius: 8px !important; border-color: var(--tm-border) !important; }
html body #cart .dropdown-menu table.table-striped { border-bottom: 1px solid #eef0f3 !important; }
html body #cart .text-right { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
html body #cart .text-right .addtocart,
html body #cart .text-right .checkout {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 9px 18px !important;
  border-radius: 25px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  line-height: 1.2 !important;
  transition: background-color .15s ease !important;
}
html body #cart .text-right .addtocart {                 /* "Vaata ostukorvi" – teisene */
  background: #fff !important;
  color: var(--tm-green-dark) !important;
  border: 1px solid var(--tm-green) !important;
}
html body #cart .text-right .addtocart:hover { background: #eef7e6 !important; color: var(--tm-green-dark) !important; }
html body #cart .text-right .checkout {                  /* "Kassasse" – põhinupp */
  background: var(--tm-green) !important;
  color: #fff !important;
  border: 1px solid var(--tm-green) !important;
}
html body #cart .text-right .checkout:hover { background: var(--tm-green-dark) !important; border-color: var(--tm-green-dark) !important; }
html body #cart .text-right .addtocart strong,
html body #cart .text-right .checkout strong { font-weight: 600 !important; }
html body #cart .text-right .checkout::before { content: "\f07a"; font-family: FontAwesome; margin-right: 8px; font-weight: normal; }

/* "Lisatud ostukorvi" teade */
html body .alert { border-radius: 12px !important; }

/* ---------- 20. OSTUKORVI LEHT (#checkout-cart) ---------- */
#checkout-cart #content > .breadcrumb {
  border: 0 !important; padding: 0 !important; margin: 0 0 12px !important; background: none !important; font-size: 13px;
}
#checkout-cart #content > h1.page-title {
  font-family: 'Archivo Narrow', Arial, sans-serif !important; font-size: 26px !important; font-weight: 700 !important;
  color: var(--tm-navy) !important; text-transform: none !important; margin: 0 0 16px !important;
}

/* Kaart 1: tooted */
#checkout-cart #content > form {
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: 16px;
  box-shadow: var(--tm-shadow);
  padding: 8px 20px;
  margin-bottom: 24px;
}
#checkout-cart .table-responsive { border: 0 !important; margin: 0 !important; }
#checkout-cart table.shopping-cart { border: 0 !important; margin: 0 !important; }
#checkout-cart table.shopping-cart td {
  border: 0 !important; border-bottom: 1px solid #eef0f3 !important; vertical-align: middle !important;
  padding: 14px 10px !important; background: none !important;
}
#checkout-cart table.shopping-cart tbody tr:last-child td { border-bottom: 0 !important; }
#checkout-cart table.shopping-cart thead td {
  font-size: 12px !important; font-weight: 600 !important; color: var(--tm-muted) !important; text-transform: uppercase;
  letter-spacing: .03em; padding-top: 10px !important; padding-bottom: 10px !important; white-space: nowrap;
}
#checkout-cart table.shopping-cart .img-thumbnail { border: 1px solid var(--tm-border) !important; border-radius: 10px !important; padding: 4px !important; width: 72px; }
#checkout-cart table.shopping-cart tbody td:nth-child(2) a { color: var(--tm-text) !important; font-weight: 600; }
#checkout-cart table.shopping-cart tbody td:nth-child(3) { color: var(--tm-muted); }
#checkout-cart table.shopping-cart tbody td:nth-child(5),
#checkout-cart table.shopping-cart tbody td:nth-child(6) {
  font-family: 'Archivo Narrow', Arial, sans-serif; font-size: 17px; font-weight: 700; color: var(--tm-navy); white-space: nowrap;
}
/* Kogus + uuenda/eemalda ümarate ikoonnuppudena */
#checkout-cart table.shopping-cart .input-group { display: flex !important; align-items: center; gap: 6px; max-width: 170px; }
#checkout-cart table.shopping-cart .input-group .form-control {
  width: 56px !important; height: 36px; text-align: center; flex: 0 0 56px; float: none !important; margin: 0 !important;
}
#checkout-cart table.shopping-cart .input-group-btn { display: flex !important; gap: 6px; width: auto !important; float: none !important; margin: 0 !important; }
#checkout-cart table.shopping-cart .input-group-btn .btn {
  width: 36px; height: 36px; padding: 0 !important; margin: 0 !important; border-radius: 50% !important; border: 0 !important;
  display: inline-flex; align-items: center; justify-content: center; background: #f1f3f6 !important; color: #555b66 !important;
}
#checkout-cart table.shopping-cart .input-group-btn .btn-primary:hover { background: #eef7e6 !important; color: var(--tm-green-dark) !important; }
#checkout-cart table.shopping-cart .input-group-btn .btn-danger:hover { background: #fdecea !important; color: var(--tm-sale) !important; }

/* Kaart 2: sooduskood / tarnehind / kinkekaart */
#checkout-cart #content > h2 {
  font-family: 'Archivo Narrow', Arial, sans-serif !important; font-size: 20px !important; font-weight: 700 !important;
  color: var(--tm-navy) !important; text-transform: none !important; text-align: left !important; margin: 0 0 6px !important;
}
#checkout-cart #content > h2::after { content: none !important; display: none !important; }
#checkout-cart #content > p { color: #6b7280; margin: 0 0 12px !important; }
#checkout-cart #accordion { margin-bottom: 24px !important; }
#checkout-cart #accordion .panel {
  border: 1px solid var(--tm-border) !important; border-radius: 12px !important; box-shadow: none !important; overflow: hidden; margin: 0 0 8px !important;
}
#checkout-cart #accordion .panel-heading { background: #fff !important; border: 0 !important; padding: 0 !important; }
#checkout-cart #accordion .panel-heading:hover { background: #f8f9fb !important; }
#checkout-cart #accordion .panel-title { padding: 12px 16px !important; font-size: 14px !important; font-weight: 600 !important; }
#checkout-cart #accordion .panel-title > a { color: var(--tm-text) !important; }
#checkout-cart #content > br { display: none; }

/* Kaart 3: kokkuvõte + nupud paremal ühe kastina */
#checkout-cart #content > .row { margin: 0 !important; }
#checkout-cart #content > .row > div {
  width: 380px !important; max-width: 100%; float: right !important; margin: 0 !important; padding: 16px 20px !important;
  background: #fff; border: 1px solid var(--tm-border); border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: var(--tm-shadow);
}
#checkout-cart #content > .row table { border: 0 !important; margin: 0 !important; }
#checkout-cart #content > .row table td { border: 0 !important; padding: 6px 0 !important; background: none !important; font-size: 14px; color: #555b66; }
#checkout-cart #content > .row table td:first-child { text-align: left !important; padding-right: 16px !important; }
#checkout-cart #content > .row table td:last-child { text-align: right !important; white-space: nowrap; color: var(--tm-text); }
#checkout-cart #content > .row table td strong { font-weight: 400; }
#checkout-cart #content > .row table tr:last-child td {
  border-top: 1px solid var(--tm-border) !important; padding-top: 12px !important;
  font-family: 'Archivo Narrow', Arial, sans-serif; font-size: 20px !important; font-weight: 700; color: var(--tm-navy) !important;
}
#checkout-cart #content > .row table tr:last-child td strong { font-weight: 700; }
#checkout-cart #content > .buttons {
  clear: both; width: 380px; max-width: 100%; margin: 0 0 0 auto !important; padding: 4px 20px 20px !important;
  background: #fff; border: 1px solid var(--tm-border); border-top: 0; border-radius: 0 0 16px 16px; box-shadow: var(--tm-shadow);
  display: flex !important; flex-direction: column-reverse; gap: 10px; align-items: stretch;
}
#checkout-cart #content > .buttons > div { float: none !important; width: 100%; text-align: center; }
#checkout-cart #content > .buttons .btn-primary {
  display: block !important; width: 100% !important; height: 46px; line-height: 46px !important; padding: 0 !important;
  font-size: 16px !important; font-weight: 700 !important; text-transform: none !important; border-radius: 25px !important;
}
#checkout-cart #content > .buttons .btn-primary::after { content: "\f054"; font-family: FontAwesome; font-size: 12px; margin-left: 10px; font-weight: normal; }
#checkout-cart #content > .buttons .btn-default {
  background: none !important; color: #6b7280 !important; border: 0 !important; box-shadow: none !important;
  text-transform: none !important; font-size: 14px !important; padding: 4px !important;
}
#checkout-cart #content > .buttons .btn-default::before { content: "\f053"; font-family: FontAwesome; font-size: 11px; margin-right: 8px; }
#checkout-cart #content > .buttons .btn-default:hover { color: var(--tm-green-dark) !important; }
@media (max-width: 767px) {
  #checkout-cart #content > form { padding: 4px 10px; }
  #checkout-cart #content > .row > div,
  #checkout-cart #content > .buttons { width: 100% !important; }
}

/* ---------- 21. Mobiil ---------- */
@media (max-width: 767px) {
  :root { --tm-gap: 16px; }
  html body #content .box.featured,
  html body #content .box.latest,
  html body #content .box.bestseller,
  html body #content .box.special,
  html body #content .hometab { padding: 14px !important; }
  html body #content .box .box-heading,
  html body #content .box h3,
  html body .box-heading { font-size: 18px !important; }
}
