/*
Theme Name: hiirematid.ee
Theme URI: https://hiirematid.ee
Author: Sander Treumuth
Author URI: https://hiirematid.ee
Description: Empty starter theme for hiirematid.ee. Hiirematid.ee eksklusiivne teema.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hiirematid-ee
Tags: custom
*/

:root {
  --header-bg: #060711;
  --page-bg: #00021a;
  --text-light: #f6f7ff;
  --text-muted: #b6bdd8;
  --accent: #9fb3ff;
  --card-bg: #edf1f6;
  --card-shadow: rgba(8, 12, 40, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-light);
  font-family: "Poppins", "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-container {
  width: 85%;
  margin: 0 auto;
}

.screen-reader-text {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.site-header {
  background: var(--header-bg);
  font-size: 16px;
}

.header-top {
  padding: 6px 0;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-message-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: none;
  transition: opacity 0.45s ease;
}

.header-message-text.is-fading {
  opacity: 0;
}

.header-social {
  display: flex;
  gap: 4px;
  align-items: center;
}

.social-link {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-6px) scale(0.8);
  animation: socialPopIn 0.5s ease forwards;
}

.social-link:nth-child(1) {
  animation-delay: 0.1s;
}

.social-link:nth-child(2) {
  animation-delay: 0.2s;
}

.social-link:nth-child(3) {
  animation-delay: 0.3s;
}

.social-link:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes socialPopIn {
  0% {
    opacity: 0;
    transform: translateX(-8px) scale(0.8);
  }
  70% {
    opacity: 1;
    transform: translateX(0) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.social-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.header-main {
  padding: 10px 0;
}

.header-main-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 12px;
}

.header-main-inner > * {
  min-width: 0;
}

.site-logo img {
  display: block;
  width: 90%;
  height: auto;
  max-width: 280px;
}

.site-logo-text {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
}

.header-search {
  width: 100%;
  display: flex;
  justify-content: center;
}

.header-search-input {
  width: 100%;
  max-width: 700px;
  height: 40px;
  border-radius: 8px;
  border: none;
  padding: 0 18px 0 44px;
  font-size: 16px;
  font-weight: 600;
  background: #ffffff;
  color: #060711;
  box-shadow: 0 8px 18px rgba(8, 10, 30, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23060711' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 19px 19px;
}

.header-search-input::placeholder {
  color: #060711;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: flex-end;
  width: 100%;
  justify-self: end;
  flex-wrap: nowrap;
  margin-left: auto;
  min-width: 0;
}

.header-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.header-icon {
  cursor: pointer;
}

.header-icon:focus-visible,
.header-lang-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.header-icon img,
.header-icon svg,
.header-lang img,
.header-lang svg {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 0;
}

.header-icon svg {
  fill: currentColor;
  stroke: none;
}

.header-lang {
  position: relative;
  flex: 0 0 auto;
  color: #ffffff;
}

.header-lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.header-lang-toggle::-webkit-details-marker {
  display: none;
}

.header-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  min-width: 168px;
  padding: 6px;
  border: 1px solid rgba(159, 179, 255, .2);
  border-radius: 10px;
  background: #0b0e26;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.header-lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: 500 13px/1.3 "Poppins", sans-serif;
  opacity: 1;
  cursor: pointer;
  text-decoration: none;
}

.header-lang-option:hover,
.header-lang-option:focus-visible {
  background: rgba(159, 179, 255, .16);
  border-radius: 6px;
}

.mobile-language-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
}

.mobile-language-options a {
  padding: 8px 12px;
  border: 1px solid rgba(159, 179, 255, .25);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.mobile-language-options a[aria-current],
.mobile-language-options a:hover,
.mobile-language-options a:focus-visible {
  background: rgba(159, 179, 255, .2);
}

.header-menu {
  padding: 8px 0 12px;
}

.header-menu-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.header-menu li:first-child a {
  padding-left: 0;
}

.header-menu a {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.header-menu a:hover {
  color: #a2b1ff;
  background: transparent;
}

.menu-caret {
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.menu-caret svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mega Menu */
.has-mega-menu {
  position: static; /* Position static so child mega-menu can be absolute to 100vw */
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, var(--header-bg) 60%, #000428 100%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Softer top border */
  padding: 12px 0; /* extra padding for fade */
}

.has-mega-menu:hover .mega-menu {
  visibility: visible;
  opacity: 1;
}

.mega-menu::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 30px;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 25% 25% 50%;
  gap: 0;
}

.mega-col h4.mega-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px 0;
  text-transform: none;
  color: var(--text-light);
  letter-spacing: normal;
  position: relative;
  left: -7px;
  width: fit-content;
  padding: 1px 7px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(135, 207, 255, 0.2) 0%, rgba(135, 207, 255, 0.08) 46%, rgba(135, 207, 255, 0) 100%);
  text-shadow: 0 0 10px rgba(135, 207, 255, 0.42);
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.has-mega-menu:hover .mega-col h4.mega-title {
  opacity: 1;
  transform: translateX(0);
}

.mega-col h4.mega-title-mt {
  margin-top: 22px;
}

.mega-col ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-menu .mega-col ul li {
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Stagger animations for li elements slightly if desired, or all at once */
.has-mega-menu:hover .mega-col ul li {
  opacity: 1;
  transform: translateX(0);
}

/* Add a very tiny delay so links slide in just after title */
.has-mega-menu:hover .mega-col ul li {
  transition-delay: 0.05s;
}

.header-menu .mega-col ul li:first-child a {
  padding-left: 0;
}

.header-menu .mega-col a {
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  padding: 2px 10px 2px 0;
  letter-spacing: 0;
  line-height: 1.25;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.header-menu .mega-col a:hover {
  background: transparent;
  color: #a2b1ff;
  transform: translateX(4px);
}

.mega-col-wide {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mega-popular-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 85%;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.mega-popular-header h4.mega-title {
  margin: 0;
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.has-mega-menu:hover .mega-popular-header h4.mega-title {
  opacity: 1;
  transform: translateX(0);
}

.header-menu a.mega-view-all {
  position: static;
  z-index: 3;
  color: #8fd6ff;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  box-shadow: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease, background 0.2s ease;
  transition-delay: 0.1s;
}

.has-mega-menu:hover a.mega-view-all {
  opacity: 1;
  transform: translateY(0);
}

.header-menu a.mega-view-all:hover {
  color: #c9efff;
  background: rgba(9, 31, 57, 0.72);
  transform: translateY(0);
}

.mega-popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 85%;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 0.1s;
}

.has-mega-menu:hover .mega-popular-grid {
  opacity: 1;
  transform: translateY(0);
}

.header-menu a.mega-cat-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  line-height: 0;
  transform-origin: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-menu a.mega-cat-card:hover {
  background: transparent;
  transform: scale(1.01);
}

.mega-cat-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.discover-products-col {
  position: relative;
}

.discover-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.discover-products-header .mega-title {
  margin: 0;
}

.header-menu .discover-view-all {
  color: #8fd6ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  background: transparent;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
  transition-delay: 0.1s;
}

.has-mega-menu:hover .discover-view-all {
  opacity: 1;
  transform: translateY(0);
}

.header-menu .discover-view-all:hover {
  color: #c9efff;
  background: transparent;
  transform: translateY(0);
}

.discover-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 0.1s;
}

.has-mega-menu:hover .discover-products-grid {
  opacity: 1;
  transform: translateY(0);
}

.discover-product-card {
  color: var(--text-light);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.discover-product-card:hover {
  transform: scale(1.01);
}

.header-menu .mega-col .discover-product-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  text-align: center;
  text-transform: none;
  color: inherit;
  line-height: 1.2;
}

.header-menu .mega-col .discover-product-link:hover {
  color: inherit;
  background: transparent;
  transform: none;
}

.discover-product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #e7ecf5;
}

.discover-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discover-product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #000428;
  color: #ffffff;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.discover-product-title {
  display: block;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.discover-product-price {
  display: block;
  color: #9fb3ff;
  font-size: 14px;
  font-weight: 700;
}

.discover-product-price del {
  color: #8c93b5;
  font-weight: 600;
  margin-right: 6px;
}

.discover-product-price ins {
  color: #9fb3ff;
  text-decoration: none;
  font-weight: 800;
}

/* The announcement scrolls away while the original header remains in the page flow. */
.site-header {
  background: var(--header-bg);
  font-size: 16px;
  position: sticky;
  top: calc(var(--header-admin-offset, 0px) - var(--header-announcement-height, 0px));
  z-index: 10000;
}

.site-header.is-sticky {
  background: rgba(6, 7, 17, .85);
}

.site-header.is-sticky .header-main {
  background: transparent;
}

body.admin-bar {
  --header-admin-offset: 32px;
}

@media (max-width: 782px) {
  body.admin-bar { --header-admin-offset: 46px; }
}

@media (max-width: 600px) {
  body.admin-bar { --header-admin-offset: 0px; }
}

.mobile-header-actions,
.mobile-search-panel,
.mobile-menu {
  display: none;
}

@media (max-width: 1100px) {
  :root {
    --mobile-header-height: 72px;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .site-header {
    min-height: var(--mobile-header-height);
  }

  .site-header .header-top,
  .site-header .header-search,
  .site-header .header-actions,
  .site-header .header-menu {
    display: none;
  }

  .site-header .header-main {
    position: relative;
    z-index: 2;
    padding: 0;
    background: var(--header-bg);
  }

  .site-header .header-main-inner {
    width: 100%;
    min-height: var(--mobile-header-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .site-header .site-logo {
    display: block;
    flex: 0 1 194px;
    min-width: 0;
  }

  .site-header .site-logo img {
    width: 100%;
    max-width: 194px;
    height: auto;
  }

  .site-header .site-logo-text {
    display: block;
    font-size: clamp(19px, 6vw, 27px);
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
  }

  .mobile-header-button {
    width: 32px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-header-button:focus-visible,
  .mobile-menu-link:focus-visible,
  .mobile-submenu a:focus-visible {
    outline: 2px solid #9fb3ff;
    outline-offset: 4px;
  }

  .mobile-search-icon {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-account-image,
  .mobile-account-icon {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .mobile-account-icon-head,
  .mobile-account-icon-body {
    fill: #ffffff;
  }

  .mobile-menu-icon {
    width: 34px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-menu-line {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.22s ease, opacity 0.18s ease;
  }

  .mobile-menu-is-open .mobile-menu-line--top {
    transform: translateY(11px) rotate(45deg);
  }

  .mobile-menu-is-open .mobile-menu-line--middle {
    opacity: 0;
  }

  .mobile-menu-is-open .mobile-menu-line--bottom {
    transform: translateY(-11px) rotate(-45deg);
  }

  .mobile-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 3;
    width: 100%;
    padding: 12px 20px 16px;
    background: var(--header-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .mobile-search-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-search-form {
    width: 100%;
  }

  .mobile-search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 44px;
    border: 0;
    border-radius: 8px;
    outline: 0;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23060711' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 19px 19px;
    color: #060711;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
  }

  .mobile-search-input:focus {
    box-shadow: 0 0 0 3px rgba(159, 179, 255, 0.55);
  }

  .mobile-search-input::placeholder {
    color: #060711;
    opacity: 1;
  }

  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
    width: 100%;
    height: calc(100vh - var(--mobile-header-height));
    height: calc(100dvh - var(--mobile-header-height));
    padding: 24px 24px 48px;
    background: rgba(0, 2, 26, 0.95);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-menu-list,
  .mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-menu-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .mobile-menu-item {
    width: 100%;
  }

  .mobile-menu-link {
    width: fit-content;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f8f8ff;
    font-family: inherit;
    font-size: clamp(20px, 5.4vw, 24px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .mobile-menu-link:hover,
  .mobile-menu-accordion.is-open > .mobile-menu-link {
    color: #8ea2ff;
  }

  .mobile-submenu {
    display: flex;
    max-height: 0;
    margin-top: 0;
    flex-direction: column;
    gap: 13px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.22s ease;
  }

  .mobile-menu-accordion.is-open > .mobile-submenu {
    max-height: 430px;
    margin-top: 17px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-submenu a {
    display: block;
    width: fit-content;
    color: #f8f8ff;
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: color 0.2s ease;
  }

  .mobile-submenu a:hover {
    color: #8ea2ff;
  }
}

@media (max-width: 380px) {
  .site-header .header-main-inner {
    padding-right: 18px;
    padding-left: 18px;
    gap: 12px;
  }

  .site-header .site-logo {
    flex-basis: 165px;
  }

  .mobile-header-actions {
    gap: 9px;
  }

  .mobile-menu {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1100px) {
  .mobile-menu-line,
  .mobile-search-panel,
  .mobile-menu,
  .mobile-submenu {
    transition: none;
  }
}

.site-content {
  padding: 24px 0 80px;
}

.hero-slider {
  position: relative;
}

/* Show the first slide while Owl loads, using the same dimensions as the initialized carousel. */
.hero-slider .hero-slider-carousel:not(.owl-loaded) {
  display: block;
}

.hero-slider-carousel:not(.owl-loaded) > .hero-slide:not(:first-child) {
  display: none;
}

.hero-slider-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  border-radius: 18px;
  user-select: none;
  touch-action: pan-y;
}

.hero-slider-viewport::-webkit-scrollbar {
  display: none;
}

.hero-slider-viewport.is-dragging {
  cursor: grabbing;
}

.hero-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
}

.hero-slide {
  width: 100%;
  height: 410px;
  border-radius: 18px;
  scroll-snap-align: center;
  background: linear-gradient(135deg, #0b0f2b 0%, #141b46 50%, #0a0d25 100%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.hero-slide-picture,
.hero-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  z-index: 0;
}


.hero-slide-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-slider .owl-item.active .hero-slide-content {
  animation: heroSlideFadeUp .75s ease .1s both;
}

.hero-slider .owl-item.active .hero-slide-image {
  animation: heroSlideImageReveal 1.2s ease-out both;
}

@keyframes heroSlideImageReveal {
  from { transform: scale(1.035); }
  to { transform: scale(1); }
}

@keyframes heroSlideFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slide-content h1,
.hero-slide-content h2 {
  font-size: 46px;
  font-weight: 600;
  margin: 0 0 2px;
  white-space: nowrap;
  text-shadow: 0 6px 18px rgba(6, 7, 17, 0.45);
}

.hero-slide-content p {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #e6ebff;
  text-shadow: 0 6px 18px rgba(6, 7, 17, 0.45);
}

.hero-slide-content h2 {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.2;
  white-space: normal;
  margin-bottom: 8px;
}

.hero-slide--stitching .hero-slide-content {
  width: 55%;
  max-width: 800px;
  margin-right: 0;
  padding: 0 clamp(24px, 3vw, 50px);
  align-items: flex-end;
  text-align: right;
}

.hero-slide--stitching .hero-slide-content p {
  max-width: 500px;
}

.hero-slide--support .hero-slide-content {
  max-width: 1100px;
}

.hero-slide--support .hero-slide-content h2,
.hero-slide--support .hero-slide-content p {
  text-shadow: 0 2px 5px rgba(0, 0, 0, .55), 0 6px 18px rgba(0, 0, 0, .25);
}

.hero-slide--stitching .hero-slide-content p,
.hero-slide--support .hero-slide-content p {
  color: #ffffff;
}

.hero-slide--stitching .hero-slide-button,
.hero-slide--support .hero-slide-button {
  background: #060711;
}

.hero-slide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 13px;
  text-shadow: 0 6px 18px rgba(6, 7, 17, 0.45);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-slide-button:hover,
.hero-slide-button:focus-visible {
  background: #6d7cff;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(90, 107, 255, 0.28);
  transform: translateY(-1px);
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  flex: 0 0 auto;
  background: rgba(168, 190, 255, 0.5);
  cursor: pointer;
}
.hero-dot.is-active {
  background: #bcd0ff;
}

.hero-slider .owl-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-slider .owl-dot {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.hero-slider .owl-dot span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(168, 190, 255, 0.5);
}

.hero-slider .owl-dot.active span {
  background: #bcd0ff;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider .owl-item.active .hero-slide-content,
  .hero-slider .owl-item.active .hero-slide-image {
    animation: none;
  }

  .hero-slider .owl-stage,
  .hero-slider .hero-slide-button {
    transition: none !important;
  }
}

.home-section {
  margin-top: 0;
}

.section-title {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 42px 0 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.home-offers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 48px 0 18px;
}

.home-offers-header .section-title {
  margin: 0;
}

.home-offers-link {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 4px;
}

.home-offers-link:hover,
.home-offers-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.home-offers .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.home-offers .product-badge {
  left: 12px;
  right: auto;
  top: 12px;
}

.home-offers .product-button {
  align-self: center;
}

.home-offers .product-image-wrapper:hover .product-image--primary:only-of-type {
  opacity: 1;
}

.product-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: var(--text-light);
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #e7ecf5;
  display: block;
  overflow: hidden;
}

.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
  border-radius: 4px;
  z-index: 1;
}

.product-image--secondary {
  opacity: 0;
}

.product-image-wrapper:hover .product-image--secondary {
  opacity: 1;
}

.product-image-wrapper:hover .product-image--primary {
  opacity: 0;
}

.product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #0b1233;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(6, 8, 26, 0.25);
  z-index: 2;
  pointer-events: none;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  align-items: center;
}

.product-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 20px;
}

.product-price {
  font-size: 14px;
  color: #ffffff;
  font-weight: 700;
}

.product-price del {
  color: #8c93b5;
  font-weight: 600;
  margin-right: 6px;
}

.product-price ins {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #5a6bff;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  height: auto;
  align-self: center;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-button:hover,
.product-button:focus-visible,
.home-sections .product-card-link:focus-visible .product-button {
  background: #6d7cff;
  box-shadow: 0 5px 14px rgba(90, 107, 255, 0.28);
  transform: translateY(-1px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: #11162f;
  box-shadow: 0 16px 30px rgba(5, 8, 30, 0.3);
  transition: transform 0.3s ease;
  animation: categoryFadeIn 0.6s ease both;
}

.category-link {
  display: block;
  width: 100%;
  height: 100%;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.translated-category-label {
  position: absolute;
  inset: auto 0 0;
  display: block;
  padding: 16px 10px;
  background: #11162f;
  color: #fff;
  font-size: clamp(12px, 1.2vw, 18px);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

.category-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 36px rgba(5, 8, 30, 0.35);
}

.category-grid .category-card:nth-child(1) {
  animation-delay: 0.1s;
}

.category-grid .category-card:nth-child(2) {
  animation-delay: 0.2s;
}

.category-grid .category-card:nth-child(3) {
  animation-delay: 0.3s;
}

.category-grid .category-card:nth-child(4) {
  animation-delay: 0.4s;
}

.category-grid .category-card:nth-child(5) {
  animation-delay: 0.8s;
}

.category-grid .category-card:nth-child(6) {
  animation-delay: 0.7s;
}

.category-grid .category-card:nth-child(7) {
  animation-delay: 0.6s;
}

.category-grid .category-card:nth-child(8) {
  animation-delay: 0.5s;
}

@keyframes categoryFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reviews-section .section-title {
  text-align: center;
}

.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.reviews-average {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

.reviews-average-stars .star-rating {
  margin: 0;
}

.reviews-count {
  color: #9ea6c5;
  font-size: 13px;
  font-weight: 600;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  background: #0c1128;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 36px rgba(3, 6, 22, 0.45);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0f2f7;
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.08);
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-author-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 14px;
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7f8bd6;
  font-size: 12px;
  font-weight: 600;
}

.review-verified-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5a6bff;
  position: relative;
}

.review-verified-icon::before {
  content: "V";
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-stars .star-rating {
  margin: 0;
}

.review-text {
  font-size: 14px;
  line-height: 1.5;
  color: #f1f3ff;
  margin: 0;
}

.review-photo {
  border-radius: 12px;
  overflow: hidden;
  background: #101735;
}

.review-photo-image {
  width: 100%;
  height: auto;
  display: block;
}

.review-photo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #141b3a 0%, #10162f 100%);
}

.review-product {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-product-thumb {
  width: 56px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f4fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-product-placeholder {
  width: 70%;
  height: 70%;
  background: linear-gradient(135deg, #cfd6ea 0%, #e7ecf7 100%);
  border-radius: 6px;
}

.review-product-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.reviews-load-more {
  display: none;
}

@media (max-width: 768px) {
  .home-offers-header {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 36px;
    gap: 10px;
  }

  .home-sections .home-offers-header .section-title {
    width: 100%;
    margin: 0;
  }

  .home-offers-link {
    font-size: 13px;
  }

  .home-sections .hero-slide--stitching .hero-slide-content {
    width: 100%;
    padding: 0 24px;
    align-items: center;
    text-align: center;
  }

  .home-sections .hero-slide-content h1,
  .home-sections .hero-slide-content h2 {
    max-width: 100%;
    font-size: 27px;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }

  .home-sections .hero-slide-content p {
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
  }

  .home-sections .section-title {
    margin: 36px 0 16px;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0.35px;
    text-align: center;
  }

  .home-sections .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .home-sections .product-card-link {
    gap: 9px;
  }

  .home-sections .product-title {
    font-size: 18px;
  }

  .home-sections .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-sections .category-card {
    border-radius: 6px;
    box-shadow: 0 10px 22px rgba(5, 8, 30, 0.28);
  }

  .home-sections .reviews-summary {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 18px;
    text-align: center;
  }

  .home-sections .reviews-average {
    font-size: 24px;
  }

  .home-sections .reviews-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .home-sections .review-card {
    width: 100%;
  }

  .home-sections .review-card.is-mobile-hidden {
    display: none;
  }

  .home-sections .reviews-load-more {
    min-width: 180px;
    min-height: 44px;
    margin: 24px auto 0;
    padding: 10px 24px;
    border: 1px solid rgba(159, 179, 255, 0.8);
    border-radius: 999px;
    background: rgba(17, 22, 47, 0.82);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(3, 6, 22, 0.3);
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .home-sections .reviews-load-more:not([hidden]) {
    display: flex;
  }

  .home-sections .reviews-load-more:hover,
  .home-sections .reviews-load-more:focus-visible {
    border-color: #9fb3ff;
    background: #6d7cff;
    box-shadow: 0 5px 14px rgba(90, 107, 255, 0.28);
    transform: translateY(-1px);
  }

  .home-sections .reviews-load-more:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
  }
}

/* Hõljuvad kiirnupud */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.floating-action {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--page-bg);
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.floating-action img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.floating-action:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.floating-action:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.floating-action--scroll {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.floating-action--scroll.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.floating-action--cart {
  display: none;
}

.floating-action-cart-fallback {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: #5a6bff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .floating-action {
    transition: none;
  }
}

@media (max-width: 768px) {
  .floating-action--messenger,
  .floating-action--scroll {
    display: none;
  }

  .floating-action--cart {
    display: flex;
  }
}

.site-footer {
  background: var(--header-bg);
  padding: 36px 0 28px;
  color: var(--text-light);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 18px 48px;
  align-items: start;
}

.footer-about {
  max-width: 520px;
}

.footer-heading {
  font-size: 16px;
  font-weight: 800;
  color: #a2b1ff;
  text-transform: none;
  margin: 0 0 10px;
}

.footer-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  font-weight: 500;
}

.footer-text strong {
  font-weight: 700;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  column-gap: 96px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #a2b1ff;
}

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.footer-payment {
  width: 58px;
  height: 28px;
  border-radius: 8px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
  transform-origin: center;
}

.footer-payment img {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
  transform: none !important;
}

.footer-payment:hover {
  transform: scale(1.01);
}

.footer-payment:hover img {
  transform: none !important;
}


.footer-bottom {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
  font-weight: 400;
  text-align: center;
}

.footer-brand-link {
  color: inherit;
  transition: color 0.2s ease;
}

.footer-brand-link:hover {
  color: #a2b1ff;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 32px 0 24px;
  }

  .site-footer .footer-inner {
    width: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-footer .footer-about {
    display: none;
  }

  .site-footer .footer-links-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .site-footer .footer-column {
    width: 100%;
    text-align: center;
  }

  .site-footer .footer-heading {
    margin: 0 0 10px;
    color: #879dff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .site-footer .footer-links {
    justify-items: center;
    gap: 8px;
  }

  .site-footer .footer-links a {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
  }

  .site-footer .footer-bottom {
    width: 100%;
    margin-top: 42px;
    color: rgba(246, 247, 255, 0.78);
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
  }

  .site-footer .footer-bottom span {
    display: block;
  }
}
