/* Self-hosted Poppins (was loaded from fonts.googleapis.com/fonts.gstatic.com on
   every page, which sends the visitor's IP to Google before any cookie-consent
   choice is made — see politica-cookies.html). Two subsets per weight, same as
   Google's own split: "latin" for the base Latin set, "latin-ext" for the extra
   accented characters Romanian needs (ă, â, î, ș, ț) — the browser picks whichever
   file covers the character it's about to render. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/poppins-latin-ext-300-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/poppins-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/poppins-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/poppins-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/poppins-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/poppins-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/poppins-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --purple: #7a1fa2;
  --purple-dark: #4a0869;
  --purple-light: #f5ecff;
  --gray-900: #111;
  --gray-700: #444;
  --gray-200: #e6e6e6;
  --accent: #ff6b6b;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Light, consistent motion for page changes and popups. */
body {
  opacity: 0;
  transition: opacity 0.18s ease;
}

body.page-ready {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition-duration: 0.01ms;
  }
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.page-loader.is-visible {
  pointer-events: auto;
}

.page-loader__bg {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.page-loader.is-visible .page-loader__bg {
  opacity: 1;
  transition: opacity 0.15s ease;
}

.page-loader__logo {
  position: relative;
  z-index: 1;
  width: min(160px, 40vw);
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: none;
}

.page-loader.is-visible .page-loader__logo {
  opacity: 1;
  transition: opacity 0.15s ease;
  animation: page-loader-pulse 1.1s ease-in-out infinite;
}

.page-loader:not(.is-visible) .page-loader__logo {
  transition: opacity 0.35s ease 0.15s;
  animation: none;
}

@keyframes page-loader-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__logo {
    animation: none;
  }
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 20px);
  z-index: 5000;
  background: var(--purple-dark);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(90vw, 420px);
  text-align: center;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-toast[data-tone="warning"] {
  background: var(--accent);
}

.site-alert {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.site-alert.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-alert__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 30, 0.75);
}

.site-alert__inner {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  max-width: min(90vw, 420px);
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.site-alert__message {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-900);
}

.site-alert__ok {
  min-width: 140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--gray-900);
  font-size: 16px;
  background: #fff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.top-bar {
  background: var(--purple-dark);
  color: #fff;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
}

.top-bar__info span + span {
  margin-left: 1.25rem;
}

.top-bar__links a + a {
  margin-left: 1rem;
  opacity: 0.8;
}

.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav .container {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  max-width: 210px;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.search {
  position: relative;
  width: 100%;
}

.search input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0.55rem 2.8rem 0.55rem 1rem;
  font-size: 0.95rem;
  background: var(--purple-light);
  color: #000;
}

.search input::placeholder {
  color: rgba(0, 0, 0, 0.55);
}

.search button {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #000;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search button svg {
  display: block;
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-tools {
  position: relative;
}

.admin-tools__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-tools__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 20px 45px rgba(12, 2, 18, 0.2);
  z-index: 150;
  transition: max-height 0.25s ease;
}

.admin-tools.is-open .admin-tools__menu {
  max-height: 360px;
  overflow-y: auto;
}

.admin-tools__menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--gray-900);
  font-size: 0.9rem;
}

.admin-tools__menu a:hover {
  background: var(--purple-light);
  color: var(--purple);
}

.cart-button {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
  padding: 0.05rem 0.35rem;
}

.favorites-button {
  position: relative;
}

.solid,
.ghost {
  border-radius: 999px;
  border: 1px solid var(--purple);
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.solid {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
}

.category-bar {
  background: var(--purple-dark);
}

.category-bar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.65rem 0;
}

.category-bar__dropdown {
  position: relative;
}

.category-bar__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.3rem 0;
}

.category-bar__menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  min-width: 240px;
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 20px 45px rgba(12, 2, 18, 0.25);
  z-index: 150;
  transition: max-height 0.25s ease;
}

.category-bar__dropdown.is-open .category-bar__menu {
  max-height: 480px;
  overflow-y: auto;
}

.category-bar__menu-item {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--gray-900);
  font-size: 0.9rem;
}

.category-bar__menu-item:hover {
  background: var(--purple-light);
  color: var(--purple);
}

.category-bar__link {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.9;
}

.category-bar__link:hover {
  opacity: 1;
  text-decoration: underline;
}

.ghost {
  background: transparent;
  color: var(--purple);
}

.hero {
  background: linear-gradient(135deg, #2d0b3c, #6e2f8c);
  color: #fff;
  padding: 3rem 0 2rem;
}

.hero__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.hero__content--slim {
  flex-wrap: wrap;
}

.hero__text {
  max-width: 460px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.5rem 0;
}

.badge {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  opacity: 0.8;
}

.hero__card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 1.25rem;
  backdrop-filter: blur(6px);
}

.hero__slider {
  position: relative;
  width: min(520px, 95vw);
  height: 330px;
  cursor: pointer;
  margin: 0 auto;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 1rem;
  height: 100%;
  transition: transform 0.6s ease;
}

.slider-card {
  position: relative;
  flex: 0 0 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.slider-link {
  display: block;
  width: 100%;
  height: 100%;
}

.slider-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.slider-card:hover img,
.slider-card:focus-visible img {
  transform: scale(1.04);
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 11, 60, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider-card:hover .slider-overlay,
.slider-card:focus-visible .slider-overlay {
  opacity: 1;
}

.shop-hero {
  background: var(--purple-light);
  padding: 3rem 0;
}

.shop-hero .container {
  max-width: 900px;
}

.shop {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.shop-filters {
  position: relative;
}

.filters__inner {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.filters__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.filters__head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.filters__toggle {
  display: none;
}

.filters__body-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filters__search span {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.filters__search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  padding: 0.55rem 1rem;
  background: var(--purple-light);
}

.filter-group h3 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.filter-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
}

.shop-results__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.shop-results__head h2 {
  margin: 0.4rem 0 0;
}

.shop-results__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shop-results #shop-count {
  font-weight: 600;
  color: var(--gray-700);
}

#shop-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

#shop-products > .product-card,
#shop-products > article.product-card {
  height: 100%;
}

#shop-products .product-card .product-card__image {
  height: 190px;
}

#shop-products.list-view {
  grid-template-columns: 1fr;
}

#shop-products.list-view .product-card {
  flex-direction: row;
  align-items: stretch;
  height: auto;
  clip-path: none;
  border-radius: 0.75rem;
}

#shop-products.list-view .product-card .product-card__image {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  padding: 0.4rem;
}

#shop-products.list-view .product-card__body {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  height: auto;
  padding: 1rem 1.5rem 3.5rem;
  gap: 0.3rem 1.5rem;
}

#shop-products.list-view .product-card__body .tags {
  flex: 0 0 100%;
  order: 1;
  margin: 0;
}

#shop-products.list-view .product-card__body h3 {
  flex: 1 1 220px;
  order: 2;
  margin: 0;
  font-size: 1.05rem;
}

#shop-products.list-view .product-card__description {
  flex: 2 1 280px;
  order: 3;
  -webkit-line-clamp: 2;
  margin: 0;
}


/* Rating, price and the action button move together as one anchored cluster in the
   bottom-right corner, instead of flowing individually — that's what kept landing the
   button under the title or leaving the price stranded away from it when text wrapped. */
#shop-products.list-view .product-card__footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: absolute;
  right: 1.5rem;
  bottom: 1rem;
}

#shop-products.list-view .product-card__footer .price {
  margin: 0;
  white-space: nowrap;
}

#shop-products.list-view .product-card__footer .solid {
  width: auto;
  align-self: center;
  margin: 0;
  flex: 0 0 auto;
}

@media (max-width: 1024px) {
  .shop {
    grid-template-columns: 1fr;
  }

  .filters__inner {
    position: static;
    max-height: none;
  }

  .filters__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
  }

  .filters__toggle-icon {
    display: inline-block;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.25s ease;
  }

  .filters__inner.is-open .filters__toggle-icon {
    transform: rotate(180deg);
  }

  .filters__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
  }

  .filters__body-inner {
    min-height: 0;
    overflow: hidden;
  }

  .filters__inner.is-open .filters__body {
    grid-template-rows: 1fr;
  }
}

@media (max-width: 768px) {
  #shop-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #shop-products.list-view .product-card {
    flex-direction: row;
  }

  #shop-products.list-view .product-card .product-card__image {
    width: 100px;
    height: 100px;
  }

  #shop-products.list-view .product-card__body {
    padding: 0.75rem 1rem 3.25rem;
  }

  #shop-products.list-view .product-card__footer {
    right: 1rem;
    bottom: 0.75rem;
  }
}

.account-hero {
  background: linear-gradient(135deg, #2d0b3c, #6e2f8c);
  color: #fff;
  padding: 3rem 0;
}

.account-form {
  padding: 3rem 0;
}

.account-form__card {
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.account-form__card h2 {
  margin-top: 0;
}

.account-form__card label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.account-form__card input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  padding: 0.55rem 1rem;
  margin-top: 0.4rem;
  background: var(--purple-light);
  font-family: inherit;
}

.account-form__note {
  text-align: center;
}

.account-dashboard {
  padding: 3rem 0;
}

.account-dashboard__card {
  /* Wide enough for the three account-info-card boxes (min 260px each, see
     .account-info-grid below) to actually reach 3-per-row on a wide screen — the
     auto-fit grid was already adaptive, this max-width was just capping it at 2
     regardless of how much room the viewport had. */
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
  border-radius: 1.5rem;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.2);
}

.account-dashboard__empty {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-dashboard__details dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.account-dashboard__details dt {
  font-weight: 600;
  color: var(--gray-700);
}

.account-dashboard__details dd {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}

.account-dashboard__actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.account-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.account-info-card {
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 1.25rem;
}

.account-info-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.account-info-card__head h3 {
  margin: 0;
  font-size: 1rem;
}

.account-info-card dl {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.account-password-mask {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--gray-700);
}

.account-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.account-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.account-edit-form input {
  border-radius: 0.6rem;
  border: 1px solid var(--gray-200);
  padding: 0.5rem 0.7rem;
  font-family: inherit;
  font-weight: 400;
}

.account-edit-form__actions {
  display: flex;
  gap: 0.75rem;
}

.account-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.account-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-200);
  background: var(--gray-100, #f3f4f6);
}

.account-avatar__actions {
  display: flex;
  gap: 0.5rem;
}

.account-avatar__upload {
  cursor: pointer;
}

.account-avatar__feedback {
  font-size: 0.85rem;
  color: var(--gray-700);
  min-height: 1.1em;
  margin: 0;
}

.orders {
  padding: 3rem 0;
}

.orders__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-card {
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.order-card__meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.order-card__meta span {
  display: flex;
  flex-direction: column;
  font-weight: 600;
}

.order-card__meta small {
  font-weight: 400;
  color: var(--gray-700);
}

.order-card__actions {
  display: flex;
  justify-content: flex-end;
}

.order-card__actions button {
  margin-top: 0.25rem;
}

.order-status {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.order-status--processing {
  background: #fff7da;
  color: #8f6400;
}

.order-status--shipped {
  background: #e6f4ff;
  color: #0058a8;
}

.order-status--delivered {
  background: #e4f7eb;
  color: #0f7a36;
}

.order-status--cancelled {
  background: #ffe6e6;
  color: #8f1f1f;
}

.order-status--pending {
  background: #f0ecff;
  color: #4a0869;
}

.order-status--accepted {
  background: #e4f7eb;
  color: #0f7a36;
}

.order-status--denied {
  background: #ffe6e6;
  color: #8f1f1f;
}

.order-card__review-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.order-accept-btn,
.order-deny-btn {
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.order-accept-btn {
  background: #0f7a36;
  color: #fff;
}

.order-accept-btn:hover {
  filter: brightness(1.08);
}

.order-deny-btn {
  background: #e63946;
  color: #fff;
}

.order-deny-btn:hover {
  filter: brightness(1.08);
}

.order-empty {
  text-align: center;
  border: 2px dashed var(--gray-200);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.preorder-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 200;
  transition: opacity 0.2s ease;
}

.preorder-modal[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.preorder-modal__inner {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(0) scale(1);
  transition: transform 0.22s ease;
}

.preorder-modal[aria-hidden="true"] .preorder-modal__inner {
  transform: translateY(10px) scale(0.96);
}

.preorder-modal__inner .close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.preview-gallery {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.preview-gallery img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.preview-gallery__more {
  align-self: center;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.preview-extra {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.preview-extra__details {
  background: var(--purple-light);
  border-radius: 1rem;
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.image-upload-group .image-upload-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.image-upload-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.image-upload-field span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}

.manage-products {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.manage-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.manage-form-card,
.manage-list-card {
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
}

.manage-form-card label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.manage-form-card input,
.manage-form-card textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  padding: 0.55rem 1rem;
  margin-top: 0.4rem;
  font-family: inherit;
  background: var(--purple-light);
  color: #000;
}

.manage-form-card input[type="file"] {
  border-radius: 0.75rem;
  padding: 0.5rem;
  background: #fff;
}

.manage-form-card textarea {
  border-radius: 1rem;
  resize: vertical;
  min-height: 90px;
}

.admin-hero {
  padding: 3rem 0;
  background: radial-gradient(circle at top right, rgba(98, 0, 175, 0.25), transparent), #140423;
  color: #fff;
}

.admin-hero .badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.builder-shell {
  padding: 3rem 0 4rem;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 992px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }
}

.builder-panel,
.preview-panel {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

.builder-panel__head,
.preview-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.builder-panel__head .eyebrow,
.preview-panel__head .eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-600);
  margin-bottom: 0.3rem;
}

.builder-alert {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: #fff7e6;
  border: 1px solid #ffd699;
  margin-bottom: 1.5rem;
}

.builder-section {
  border: 1px solid var(--gray-100);
  border-radius: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: #faf9ff;
}

.builder-section h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.field-grid.three-columns {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.builder-section label {
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.builder-section input,
.builder-section select,
.builder-section textarea {
  border-radius: 0.9rem;
  border: 1px solid var(--gray-200);
  padding: 0.6rem 0.9rem;
  font-family: inherit;
  background: #fff;
}

.builder-section textarea {
  resize: vertical;
}

.builder-intro {
  margin-bottom: 1.5rem;
  color: var(--gray-700);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-row button {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #fff;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

.chip-row button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-board {
  border: 1px solid var(--gray-100);
  border-radius: 1.25rem;
  padding: 1rem;
  background: #fff;
}

.category-board__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.category-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--purple-light);
  font-weight: 600;
}

.category-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--primary);
}

.category-chip-list[data-empty="true"]::before {
  content: "Nu există valori definite momentan.";
  color: var(--gray-600);
  font-style: italic;
}

.category-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.upload-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  border: 1px dashed var(--gray-300);
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
}

.upload-label small {
  font-weight: 400;
  color: var(--gray-600);
}

.helper-text {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.builder-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.preview-panel .preview-card {
  margin-bottom: 1.5rem;
}

.preview-card {
  border: 1px solid var(--gray-100);
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: #fcfbff;
}

.preview-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 1rem;
  margin-bottom: 1rem;
  background: #e9e5f7;
  padding: 0.5rem;
}

.preview-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.preview-card__tags .tag {
  background: #eee9ff;
  color: #3a1f66;
}

.preview-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.preview-price strong {
  font-size: 1.4rem;
}

.preview-price span {
  text-decoration: line-through;
  color: var(--gray-600);
}

.preview-tips {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--gray-700);
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.category-summary-card {
  border: 1px solid var(--gray-100);
  border-radius: 1rem;
  padding: 0.9rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 180px;
}

.category-summary-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.category-summary-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--gray-700);
  font-size: 0.9rem;
  flex: 1;
  overflow-y: auto;
}

.category-summary-card ul li {
  margin-bottom: 0.2rem;
}

.manage-form__actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.manage-list-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-card {
  min-height: 200px;
}

.preview-card p {
  margin: 0;
  color: var(--gray-700);
}

.category-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.category-list li {
  border: 1px solid var(--gray-200);
  border-radius: 0.8rem;
  padding: 0.6rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  margin-bottom: 0.5rem;
}

.category-list button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.category-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.category-form input,
.category-form select {
  border-radius: 0.85rem;
  border: 1px solid var(--gray-200);
  padding: 0.65rem 1rem;
  background: var(--purple-light);
}

.category-form button {
  align-self: flex-start;
}

.category-card__hint {
  color: var(--gray-700);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.hero__card ul {
  padding-left: 1.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

section {
  padding: 3rem 0;
}

.section-head h2 {
  margin-bottom: 0.4rem;
}

.categories {
  padding-bottom: 1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
  align-items: stretch;
}

.category-card {
  background: #fff;
  border: 1px solid transparent;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  clip-path: var(--shape-card);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(122, 31, 162, 0.3);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.category-card h3 {
  margin: 0;
  font-size: 1rem;
}

.category-slider {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}

.category-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: opacity 0.35s ease;
}

.category-slider img.fade-out {
  opacity: 0;
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

.featured {
  background: var(--purple-light);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.contact-card > div {
  flex: 1 1 220px;
}

.contact-card h3 {
  margin-bottom: 0.35rem;
}

.product-card {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 35px rgba(122, 31, 162, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 40px rgba(122, 31, 162, 0.35);
}

.product-card__image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
  padding: 0.75rem;
  transition: opacity 0.35s ease;
}

.product-card__image.is-fading {
  opacity: 0;
}

.product-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.product-detail__media {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-detail__media img {
  width: 100%;
  border-radius: 1rem;
  background: #fff;
  object-fit: contain;
  max-height: 420px;
  cursor: zoom-in;
}

.product-detail__thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-detail__thumbs button {
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 0.25rem;
  background: #fff;
  cursor: pointer;
}

.product-detail__thumbs img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  font-weight: 600;
}

.product-rating[data-tone="muted"] {
  color: #7d7d7d;
  font-weight: 500;
}

.product-rating[data-tone="accent"] .rating-value {
  color: #f4b400;
  font-size: 1.2rem;
}

.reviews-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reviews-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.reviews-card__body {
  display: grid;
  gap: 1.5rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-item {
  background: rgba(122, 31, 162, 0.06);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.review-item header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.review-item header > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.review-item__rating {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.review-item__rating span {
  color: #f4b400;
  font-weight: 600;
}

.review-item__rating small {
  margin-top: 0.15rem;
  color: #6c6c6c;
}

.review-item small {
  color: #6c6c6c;
}

.review-item__delete {
  border: none;
  background: transparent;
  color: #d33;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0.15rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.review-item__delete svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.review-item__delete:hover {
  background: rgba(211, 51, 51, 0.08);
  color: #a31414;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.review-form textarea {
  resize: vertical;
}

.product-card__rating {
  color: #f4b400;
  font-weight: 600;
  margin-top: 0.25rem;
}

.product-detail__thumbs button.active {
  border-color: var(--purple);
}

.product-detail__info {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.product-detail__info .price {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.stock-info {
  font-weight: 600;
  color: var(--gray-700);
}

.stock-info.stock-info--low {
  color: var(--accent);
}

.stock-info.stock-info--sold {
  display: inline-block;
  background: #e63946;
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-weight: 700;
}

.product-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.product-variant {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.product-variant:has(input:checked) {
  border-color: #7a1fa2;
  background: #f5ecff;
}

.product-variant--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.stock-info-preview {
  font-size: 0.85rem;
  margin: 0;
  color: var(--gray-700);
}

.product-detail__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
}

.product-detail__meta span {
  font-size: 0.85rem;
  color: var(--gray-700);
}

.product-detail__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-extra {
  margin-top: 0.1rem;
  padding: 2rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.product-extra__media iframe,
.product-extra__media video {
  width: 100%;
  min-height: 280px;
  border-radius: 1rem;
  border: none;
  background: #000;
}

.product-extra__content {
  font-size: 0.95rem;
  line-height: 1.6;
}

.product-extra__content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.product-extra__content table,
.product-extra__content th,
.product-extra__content td {
  border: 1px solid var(--gray-200);
  padding: 0.5rem;
}

#product-extra {
  margin-bottom: 1.5rem;
}

#product-reviews-section {
  margin-top: 0;
}

.cart {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 1.5rem;
  padding: 3rem 0;
}

@media (max-width: 900px) {
  .cart {
    grid-template-columns: 1fr;
  }

  .cart__summary {
    order: -1;
  }
}

.cart__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart__items-head {
  display: flex;
  justify-content: flex-end;
}

.cart__items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.cart-item__media {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.cart-item__media img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 1rem;
  padding: 0.75rem;
}

.cart-item--unavailable .cart-item__media img {
  filter: grayscale(1);
  opacity: 0.55;
}

.cart-item--unavailable {
  opacity: 0.85;
}

.cart-item__ribbon {
  position: absolute;
  top: 14px;
  left: -34px;
  width: 140px;
  transform: rotate(-45deg);
  background: #e63946;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0.25rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.recently-viewed {
  padding-top: 1rem;
}

.recently-viewed h2 {
  margin-bottom: 1rem;
}

.recently-viewed__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.recently-viewed__card {
  flex: 0 0 auto;
  width: 180px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.recently-viewed__card .cart-item__media {
  margin-bottom: 0.5rem;
}

.recently-viewed__card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #fff;
  border-radius: 0.75rem;
}

.recently-viewed__card h4 {
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recently-viewed__card p {
  margin: 0;
  font-weight: 600;
  color: var(--accent, #7a1fa2);
}

.cart-item__unavailable-note {
  color: #e63946;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.2rem 0 0;
}

.cart-item__ribbon--preorder {
  background: var(--purple);
}

.cart-item__preorder-note {
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.2rem 0 0;
}

.cart-item__body {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

/* Titles of different lengths used to change how tall each row's content was, which
   shifted the image/actions to a different vertical center on every card. Clamping
   the title keeps every row the same height (dominated by the fixed image size), so
   quantity input and remove button land in the same spot on every item. */
.cart-item h4 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3em;
  min-height: 2.6em;
  margin: 0 0 0.3rem;
}

.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item__actions input {
  width: 70px;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 0.35rem 0.5rem;
}

.cart-item__actions label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.cart__summary {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart__summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cart__summary li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.cart__summary-total {
  font-size: 1.1rem;
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

@media (max-width: 900px) {
  .checkout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    order: -1;
  }
}

.checkout-form {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.checkout-form__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.guest-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--gray-700);
}

body[data-authenticated="true"] .guest-info {
  display: none !important;
}

.guest-info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.guest-info__cta {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.checkout-grid label,
.checkout-form > label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  border: 1px solid var(--gray-200);
  border-radius: 0.85rem;
  padding: 0.6rem 0.9rem;
  font-family: inherit;
  background: #fff;
}

.saved-address-picker {
  grid-column: 1 / -1;
}

.shipping-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.shipping-grid {
  background: #f8f4ff;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 1rem;
}

.shipping-grid[hidden] {
  display: none !important;
}

.checkout-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.checkout-summary {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
}

.payment {
  padding: 3rem 0;
}

.payment__options {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .payment__options {
    grid-template-columns: 1fr;
  }

  .payment-summary {
    order: -1;
  }
}

.payment-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.payment-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  align-items: center;
}

.payment-option input {
  width: 1.2rem;
  height: 1.2rem;
}

.payment-option strong {
  display: block;
  font-size: 1rem;
}

.payment-option p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.payment-option.is-selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(122, 31, 162, 0.15);
}

.payment-summary__item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--gray-200);
}

.payment-summary__address {
  background: var(--purple-light);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.payment-summary__address h4 {
  margin: 0 0 0.35rem;
}

.payment-summary__total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
}

.payment-summary__total strong {
  color: var(--purple-dark);
}

.preorder-status {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.preorder-status li + li {
  margin-top: 0.35rem;
}

.thank-you {
  padding: 4rem 0;
  display: flex;
  justify-content: center;
}

.thank-you__card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 35px rgba(122, 31, 162, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.thank-you__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.favorites {
  padding: 3rem 0;
}

.favorites__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.favorite-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 20px 35px rgba(122, 31, 162, 0.25);
}

.favorite-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.favorite-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fff;
  border-radius: 1rem;
}

.favorite-card--unavailable img {
  filter: grayscale(1);
  opacity: 0.55;
}

.favorite-card--unavailable {
  opacity: 0.85;
}

/* Titles of different lengths used to push the price/note/action row to a different
   spot on every card. Clamping the title to a fixed height and pinning the actions
   row to the bottom keeps every card's elements lined up the same way regardless of
   how long the product name or note is. */
.favorite-card h4 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3em;
  min-height: 2.6em;
  margin: 0 0 0.3rem;
}

.favorite-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

.checkout-summary__item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-200);
  padding: 0.35rem 0;
}

.product-card__body {
  padding: 1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1 1 auto;
  gap: 0.6rem;
}

/* The rating/price/action button now live together in one .product-card__footer
   wrapper (grouped so list view can anchor them as a single cluster — see below),
   but the grid/card view still needs them to visually land where they always did:
   rating right under the tags, price and the button at the very end of the column.
   `display: contents` unwraps the footer so its children rejoin this flex column as
   if they were direct children again, and these `order` values reproduce the
   original top-to-bottom sequence despite the new markup order. */
.product-card__body .tags {
  order: 1;
}

.product-card__body .product-card__rating {
  order: 2;
}

.product-card__body h3 {
  order: 3;
}

/* Consistent alignment across every card in a row: titles are clamped to the same
   two lines (with a real ellipsis) and always reserve that same height, whether the
   name is short or long, so the price/button footer lands at the same spot on every
   card instead of shifting up or down. */
.product-card h3,
.category-card h3 {
  position: relative;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3em;
  min-height: 2.6em;
}

/* Truncated title/description text on a shop card gets its full content shown in a
   small tooltip near the cursor after a 2s hover (see initTruncatedTextTooltip in
   shop.js) instead of expanding in place — that avoided fighting with the grid's
   equal-height rows and the card's own hover-lift effect. */
.product-card__info {
  display: contents;
}

.truncated-text-tooltip {
  position: fixed;
  z-index: 2000;
  max-width: 280px;
  background: #fff;
  color: var(--gray-900);
  border-radius: 0.6rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.truncated-text-tooltip.is-visible {
  opacity: 1;
}

.category-card h3::after,
.category-card__description::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95) 65%);
  pointer-events: none;
}

/* Each fade band is exactly one line tall, matching that element's own line-height,
   so it sits directly over the last (possibly truncated) line — not in the reserved
   blank space below it when min-height makes the box taller than the actual text. */
.category-card h3::after {
  height: 1.3em;
}

.category-card__description::after {
  height: 1.4em;
}

.category-card__description {
  position: relative;
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.75rem;
  margin: 0;
}

.product-card__body .product-card__description {
  order: 4;
}

.product-card__body .stock-badge {
  order: 5;
}

.product-card__footer {
  display: contents;
}

.product-card__body .price {
  order: 6;
}

.product-card__footer .solid {
  order: 7;
}

.product-card__description {
  position: relative;
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.75rem;
}

.product-card__body .price {
  margin-top: auto;
  font-size: 1.15rem;
}

.price--has-discount {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price__current {
  font-weight: 700;
}

.price__old {
  font-size: 0.9rem;
  color: var(--gray-600);
  text-decoration: line-through;
}

.product-detail__info .price .price__old {
  font-size: 1.1rem;
}

.product-card__body .solid {
  margin-top: 0.5rem;
  width: 100%;
  align-self: stretch;
}

.product-card__favorite {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-700);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.product-card__favorite svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.product-card__favorite:hover,
.product-card__favorite.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

.product-card__edit {
  position: absolute;
  top: 0.7rem;
  left: 4rem;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(122, 31, 162, 0.12);
  color: var(--purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.product-card__edit:hover {
  background: var(--purple);
  color: #fff;
  transform: scale(1.05);
}

.product-card__edit svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.product-card__delete {
  position: absolute;
  top: 0.7rem;
  left: 1.5rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  color: var(--purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.product-card__delete:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

.product-card__delete svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.edit-notice {
  background: var(--purple-light);
  border: 1px solid var(--purple);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.edit-notice p {
  margin: 0;
  font-weight: 500;
}

.tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.tag {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--purple-light);
  color: var(--purple-dark);
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
}

.stock-badge {
  display: inline-block;
  margin: 0.25rem 0;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.stock-badge--limited {
  background: rgba(255, 107, 107, 0.15);
  color: var(--accent);
}

.stock-badge--preorder {
  background: var(--purple-light);
  color: var(--purple);
}

.stock-badge--sold {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #e63946;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
}

.product-card--sold {
  position: relative;
  filter: grayscale(0.4);
  opacity: 0.85;
}

.product-card__flags {
  position: absolute;
  top: 0.8rem;
  left: 1.5rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-card__flag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  color: #fff;
}

.product-card__flag--deal {
  background: var(--accent);
}

.product-card__flag--refurb {
  background: var(--purple);
}

.product-card__sold-tag {
  position: absolute;
  top: 0.8rem;
  right: 4rem;
  background: #e63946;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.brands {
  text-align: center;
}

.brand-tormix-slot {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.brand-tormix-slot .brand-card {
  width: calc((100% - 2 * 0.2rem) / 3);
}

#brand-cta-slot .brand-card {
  width: 100%;
}

.brand-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.2rem;
  margin-top: 1.5rem;
}

.brand-card {
  display: flex;
  justify-content: center;
}

.brand-card__inner {
  width: 100%;
  height: 160px;
  padding: 1.5rem 1rem;
  border: 2px solid transparent;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: none;
}

.brand-card__inner img {
  width: 75%;
  max-height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-card__inner--text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-900);
}

.brand-card__inner--swap .brand-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
  width: 90%;
}

.brand-card__inner--swap .brand-logo--hover {
  opacity: 0;
}

.brand-card.brand-milwaukee:hover .brand-logo--default {
  opacity: 0;
}

.brand-card.brand-milwaukee:hover .brand-logo--hover {
  opacity: 1;
}

.brand-card.brand-tormix:hover .brand-logo--default,
.brand-card.brand-festool:hover .brand-logo--default,
.brand-card.brand-ridgid:hover .brand-logo--default,
.brand-card.brand-hilti:hover .brand-logo--default,
.brand-card.brand-blackdecker:hover .brand-logo--default,
.brand-card.brand-einhell:hover .brand-logo--default {
  opacity: 0;
}

.brand-card.brand-tormix:hover .brand-logo--hover,
.brand-card.brand-festool:hover .brand-logo--hover,
.brand-card.brand-ridgid:hover .brand-logo--hover,
.brand-card.brand-hilti:hover .brand-logo--hover,
.brand-card.brand-blackdecker:hover .brand-logo--hover,
.brand-card.brand-einhell:hover .brand-logo--hover {
  opacity: 1;
}

.brand-card:hover .brand-card__inner {
  transform: translateY(-4px) scale(1.02);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.3);
}

.brand-card.brand-parkside:hover .brand-card__inner {
  background: #006633;
}

.brand-card.brand-tormix:hover .brand-card__inner {
  background: var(--purple);
}

.brand-card.brand-makita:hover .brand-card__inner {
  background: #0a9d53;
}

.brand-card.brand-dewalt:hover .brand-card__inner {
  background: #f7b500;
}

.brand-card.brand-bosch:hover .brand-card__inner {
  background: #1f6ab4;
}

.brand-card.brand-hilti:hover .brand-card__inner {
  background: #c41230;
}

.brand-card.brand-hilti .brand-logo {
  width: 200%;
  max-height: 130%;
}

.brand-card.brand-milwaukee:hover .brand-card__inner {
  background: #c8102e;
}

.brand-card.brand-festool:hover .brand-card__inner {
  background: #3faa35;
}

.brand-card.brand-festool .brand-card__inner img {
  width: 65%;
}

.brand-card.brand-ridgid:hover .brand-card__inner {
  background: #f05a28;
}

.brand-card.brand-einhell:hover .brand-card__inner {
  background: #c40016;
}

.brand-card.brand-ridgid .brand-card__inner img {
  width: 65%;
}

.brand-card.brand-einhell .brand-card__inner img {
  width: 60%;
  max-height: 60%;
}

.brand-card.brand-metabo:hover .brand-card__inner {
  background: #1c5442;
}

.brand-card__inner--cta {
  background: #fff;
  color: var(--gray-900);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: none;
  font-size: 2rem;
}

.brand-card--cta:hover .brand-card__inner--cta {
  background: var(--purple);
  color: #fff;
}

.image-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.image-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-modal__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.image-modal__content {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  max-width: 98vw;
  max-height: 94vh;
  width: 90vw;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transform: translateY(0) scale(1);
  transition: transform 0.22s ease;
}

.image-modal:not(.is-open) .image-modal__content {
  transform: translateY(10px) scale(0.96);
}

.image-modal__content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.75rem;
}

.image-modal__close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.8rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal__close:hover {
  background: rgba(0, 0, 0, 0.75);
}

.invoice-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.invoice-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.invoice-modal__overlay {
  position: absolute;
  inset: 0;
}

.invoice-modal__content {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  width: min(95vw, 960px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(0) scale(1);
  transition: transform 0.22s ease;
}

.invoice-modal:not(.is-open) .invoice-modal__content {
  transform: translateY(10px) scale(0.96);
}

.invoice-modal__body {
  min-height: 200px;
}

.invoice-modal__close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.invoice-modal__close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.invoice-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--gray-900);
  font-size: 0.9rem;
}

.invoice-shell {
  max-width: 920px;
  margin: 0 auto;
}

.invoice-view__header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0.75rem;
}

.invoice-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.invoice-brand img {
  width: 110px;
  height: auto;
  object-fit: contain;
}

.invoice-barcode {
  margin-top: 0.35rem;
}

.invoice-view__meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.invoice-print {
  border: 1px solid var(--purple);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.invoice-print:hover {
  filter: brightness(1.05);
}

.invoice-view__parties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1rem;
}

.invoice-view__table table {
  width: 100%;
  border-collapse: collapse;
}

.invoice-view__table th,
.invoice-view__table td {
  border: 1px solid var(--gray-200);
  padding: 0.4rem 0.5rem;
  text-align: left;
}

.invoice-view__table th {
  background: var(--gray-50);
  font-weight: 600;
}

.invoice-view__totals {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}

.invoice-view__totals div {
  display: flex;
  gap: 1rem;
  font-weight: 600;
}

.invoice-view__notes {
  font-style: italic;
  color: var(--gray-600);
}

@media (min-width: 0px) {
  .brand-card.brand-metabo .brand-card__inner img,
  .brand-card.brand-hikoki .brand-card__inner img {
    width: 440%;
    max-height: 160%;
  }
}

.brand-card.brand-blackdecker:hover .brand-card__inner {
  background: #ef5a28;
}

.brand-card.brand-hikoki:hover .brand-card__inner {
  background: #006d5b;
  color: #fff;
}

@media (max-width: 960px) {
  .brand-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-tormix-slot .brand-card {
    width: calc((100% - 1 * 0.2rem) / 2);
  }
}

@media (max-width: 640px) {
  .brand-row {
    grid-template-columns: 1fr;
  }

  .brand-tormix-slot .brand-card {
    width: 100%;
  }
}

.clients {
  background: #fff;
}

.clients .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.clients__list {
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: #fff;
}

.clients__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clients__list li {
  border-bottom: 1px solid var(--gray-200);
  padding: 0.8rem 0;
}

.clients__list li:last-child {
  border-bottom: none;
}

.clients__list small {
  display: block;
  color: var(--gray-700);
}

.cta {
  background: var(--purple-dark);
  color: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

footer {
  background: #0c0212;
  color: #eee;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
}

.footer-links a {
  color: #d7c7ff;
  font-size: 0.85rem;
  text-decoration: underline;
}

.footer-identity {
  font-size: 0.8rem;
  opacity: 0.8;
}

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem;
  box-shadow: 0 20px 50px rgba(12, 2, 18, 0.25);
  padding: 1.25rem;
  max-width: 640px;
  width: calc(100% - 2rem);
  margin: 0 auto;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.cookie-banner__content p {
  margin: 0;
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__preferences {
  border-top: 1px solid var(--gray-200);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cookie-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.cookie-toggle strong {
  display: block;
  font-size: 0.95rem;
}

.switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.switch input {
  width: 2.5rem;
  height: 1.25rem;
}

.legal-page {
  padding: 2.5rem 0;
}

.legal-page .legal-head {
  margin-bottom: 2rem;
}

.legal-card {
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background: #fff;
}

.legal-card h3 {
  margin-top: 0;
}

@media (max-width: 640px) {
  .cookie-banner {
    inset: auto 0 0 0;
    border-radius: 1rem 1rem 0 0;
    max-width: none;
    width: 100%;
  }

  .cookie-toggle {
    flex-direction: column;
    align-items: flex-start;
  }
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 10, 30, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.login-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.login-modal__inner {
  width: min(420px, 90vw);
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  transform: translateY(0) scale(1);
  transition: transform 0.22s ease;
}

.login-modal:not(.open) .login-modal__inner {
  transform: translateY(10px) scale(0.96);
}

.login-modal label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.login-modal input,
.login-modal select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  padding: 0.55rem 1rem;
  margin-top: 0.4rem;
  font-family: inherit;
  background: var(--purple-light);
  color: #000;
}

.login-modal input::placeholder {
  color: rgba(0, 0, 0, 0.55);
}

.login-modal__submit-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.login-modal__forgot-toggle {
  font-size: 0.8rem;
  padding: 0.55rem 0.9rem;
}

.login-modal .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--gray-700);
}

.login-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.manage-hero {
  background: linear-gradient(135deg, #2d0b3c, #6e2f8c);
  color: #fff;
  padding: 3rem 0;
  text-align: left;
}

.manage-products {
  padding: 3rem 0 4rem;
}

.manage-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.manage-card {
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem;
  padding: 1.8rem;
  background: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.analytics-table {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: auto;
}

.analytics-table__inner {
  min-width: 640px;
}

.analytics-table__inner thead th {
  position: sticky;
  top: 0;
  background: #fff;
}

.manage-card--preview {
  position: sticky;
  top: 110px;
  align-self: start;
}

.manage-variants {
  margin: 1.25rem 0;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
}

.manage-variants__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.manage-variants__hint {
  font-size: 0.85rem;
  color: var(--gray-700);
  margin: 0.5rem 0 1rem;
}

.manage-variant-row {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1.8fr auto;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .manage-variant-row {
    grid-template-columns: 1fr;
  }
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.analytics-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.analytics-stat {
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.analytics-stat__label {
  font-size: 0.85rem;
  color: var(--gray-700);
}

.analytics-stat__value {
  font-size: 1.6rem;
}

.analytics-stat--danger {
  color: #c0392b;
}

.analytics-chart {
  width: 100%;
}

.analytics-chart__svg {
  width: 100%;
  height: auto;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.analytics-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.analytics-status-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(80px, 2fr) auto;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.analytics-status-row__bar {
  height: 8px;
  background: var(--gray-100, #f3f4f6);
  border-radius: 999px;
  overflow: hidden;
}

.analytics-status-row__bar div {
  height: 100%;
  background: #7a1fa2;
  border-radius: 999px;
}

.analytics-table__inner {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.analytics-table__inner th,
.analytics-table__inner td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.manage-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.manage-card__head h2,
.manage-card__head h3 {
  margin: 0;
}

.manage-card__head p {
  margin: 0.3rem 0 0;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.manage-card__head--orders {
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.orders-admin-list {
  max-height: 600px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 0.25rem;
}

.order-card__customer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.order-card--admin .order-card__customer span {
  border: 1px solid var(--gray-200);
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
  background: #f8f6ff;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.order-card--admin .order-card__customer small {
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: 0.01em;
}

.order-card--admin .order-card__customer strong {
  font-size: 1rem;
  color: var(--gray-900);
}

.manage-card__tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.table-search-input {
  min-width: 220px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.table-search-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(122, 31, 162, 0.1);
}

.manage-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.manage-form input,
.manage-form textarea,
.manage-form select {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid var(--gray-200);
  padding: 0.55rem 0.9rem;
  margin-top: 0.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.manage-form textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.manage-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row;
  align-self: end;
}

.manage-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
}

.manage-upload {
  margin-bottom: 1.25rem;
}

.manage-upload__button {
  display: inline-flex;
  cursor: pointer;
}

.manage-upload__hint {
  font-size: 0.8rem;
  color: var(--gray-700);
  margin: 0.5rem 0 0;
}

.manage-upload__hint code {
  background: var(--purple-light);
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
}

.manage-upload__status {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.4rem 0 0;
}

.manage-upload__status[data-tone="error"] {
  color: #c0392b;
}

.manage-upload__status[data-tone="success"] {
  color: #1e824c;
}

.form-feedback {
  min-height: 1.5rem;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-feedback[data-tone="success"] {
  color: #2f9e44;
}

.form-feedback[data-tone="warning"],
.form-feedback[data-tone="danger"] {
  color: var(--accent);
}

.cui-lookup-status {
  display: block;
  min-height: 1.2rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-700);
}

.cui-lookup-status[data-tone="success"] {
  color: #2f9e44;
}

.cui-lookup-status[data-tone="warning"] {
  color: var(--accent);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.form-actions .solid {
  flex-shrink: 0;
}

.ghost--danger {
  border-color: #d7263d;
  color: #d7263d;
}

.ghost--danger:hover,
.ghost--danger:focus-visible {
  background: rgba(215, 38, 61, 0.08);
}

.badge--warning {
  background: rgba(255, 170, 0, 0.2);
  color: #b15c00;
}

.badge--success {
  background: rgba(46, 204, 113, 0.15);
  color: #0f8b3d;
}

.tag--accent {
  background: rgba(255, 107, 107, 0.15);
  color: var(--accent);
}

.preview-card {
  border: 1px dashed var(--gray-200);
  border-radius: 1rem;
  padding: 1rem;
  min-height: 260px;
  background: var(--purple-light);
}

.preview-product-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.preview-product-card__media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.preview-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-product-card__status {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.preview-product-card__body {
  padding: 1.2rem;
}

.preview-product-card__body h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.preview-product-card__body p {
  margin: 0.5rem 0 0.75rem;
}

.preview-product-card__body small {
  color: var(--gray-700);
  font-weight: 500;
}

.product-table-wrapper {
  overflow: auto;
  max-height: 480px;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 0.5rem;
  background: #fff;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
}

.product-table th,
.product-table td {
  text-align: left;
  padding: 0.75rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-200);
}

.product-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

.table-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-product img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
}

.table-product strong {
  display: block;
}

.table-product small {
  color: var(--gray-700);
}

.table-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.empty {
  color: var(--gray-700);
  font-style: italic;
  margin: 1rem 0 0;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.filter-panel {
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-panel header h3 {
  margin: 0;
  font-size: 1rem;
}

.filter-panel header small {
  color: var(--gray-700);
}

.filter-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 40px;
}

.chip {
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--purple-light);
  color: var(--gray-900);
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.chip span {
  font-size: 1rem;
  line-height: 1;
}

.filter-panel form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}

.filter-panel form input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 0.85rem;
  padding: 0.5rem 0.9rem;
  margin-top: 0.35rem;
  font-family: inherit;
}

.filter-panel .form-actions {
  justify-content: flex-end;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  .top-bar__info,
  .top-bar__links {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.15rem;
  }

  .main-nav .container {
    grid-template-columns: 1fr;
  }

  .logo {
    max-width: 160px;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 0.5rem;
  }

  .nav-actions .solid,
  .nav-actions .ghost {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .category-bar__inner {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .manage-grid {
    grid-template-columns: 1fr;
  }

  .manage-card--preview {
    position: static;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .table-product {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .top-bar__info {
    flex-direction: column;
    row-gap: 0.1rem;
  }

  .top-bar__info span + span {
    margin-left: 0;
  }

  .top-bar__links a + a {
    margin-left: 0.75rem;
  }

  .nav-actions .solid,
  .nav-actions .ghost {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
  }
}

/* Angled shape system — replaces the pill buttons / heavily rounded cards with the
   slanted-corner look already used by the homepage category cards, applied site-wide
   to primary buttons and the main content cards. Deliberately left untouched: form
   inputs, avatars, small tags/badges/status pills and modals, which stay rounded for
   readability. */
:root {
  /* Fixed pixel notches (not percentages) so the cut stays the same small size no
     matter how wide the card is — a percentage cut got large enough on wide cards
     (reviews, checkout, admin panels) to slice into text sitting near the corner. */
  --shape-card: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  --shape-button: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.solid,
.ghost {
  border-radius: 0;
  clip-path: var(--shape-button);
}

.product-card,
.order-card,
.hero__card,
.reviews-card,
.review-item,
.checkout-form,
.checkout-summary,
.cart__summary,
.payment-card,
.product-detail__info,
.product-detail__media,
.manage-form-card,
.manage-list-card,
.manage-card,
.builder-panel,
.preview-panel,
.preview-card,
.category-board,
.category-summary-card,
.contact-card,
.account-form__card,
.filters__inner {
  border-radius: 0;
  clip-path: var(--shape-card);
}

/* Admin panels (manage-*.html — identified by the .manage-hero header every one of
   them has) keep plain rectangles: the angled cut was slicing through table rows,
   form fields and action buttons in dense admin UI, which doesn't happen on the
   customer-facing pages the angled look was designed for. */
main:has(.manage-hero) .solid,
main:has(.manage-hero) .ghost {
  clip-path: none;
  border-radius: 999px;
}

main:has(.manage-hero) .order-card,
main:has(.manage-hero) .manage-form-card,
main:has(.manage-hero) .manage-list-card,
main:has(.manage-hero) .manage-card,
main:has(.manage-hero) .builder-panel,
main:has(.manage-hero) .preview-panel,
main:has(.manage-hero) .preview-card,
main:has(.manage-hero) .category-board,
main:has(.manage-hero) .category-summary-card {
  clip-path: none;
  border-radius: 1.25rem;
}


/* Admin accounts management modal (manage-accounts.html) */
.login-modal .form-error {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.field-hint {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: #7d7d7d;
  margin-top: 0.25rem;
}

.analytics-table__inner td.analytics-cell--profit-positive {
  color: #15803d;
  font-weight: 600;
}

.analytics-table__inner td.analytics-cell--profit-negative {
  color: #b91c1c;
  font-weight: 600;
}

.manage-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.manage-hero__row > button {
  flex-shrink: 0;
}

.analytics-period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.analytics-period-tabs button {
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-700, #374151);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.analytics-period-tabs button:hover {
  border-color: var(--purple);
}

.analytics-period-tabs button.is-active {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-color: transparent;
  color: #fff;
}

.order-card__flag--unverified {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #fef6e4;
  border: 1px solid #f5d48a;
  color: #7a5b00;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.order-card__unverified-warning {
  width: 100%;
  margin: 0 0 0.6rem;
  padding: 0.5rem 0.75rem;
  background: #fef6e4;
  border: 1px solid #f5d48a;
  border-radius: 10px;
  color: #7a5b00;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-tools__menu a[hidden] {
  display: none;
}

.price__discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6em;
  height: 1.6em;
  padding: 0 0.5em;
  margin-left: 0.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.payment-option--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.payment-option--disabled strong,
.payment-option--disabled p {
  cursor: not-allowed;
}

.richtext-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.4rem 0 0.5rem;
}

.richtext-toolbar button {
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: 8px;
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--gray-900);
}

.richtext-toolbar button:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.richtext-editor {
  min-height: 110px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  background: #fff;
  color: var(--gray-900);
}

.richtext-editor:focus {
  outline: none;
  border-color: var(--purple);
}

.richtext-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--gray-500, #9ca3af);
}

.richtext-editor ul,
.richtext-editor ol {
  padding-left: 1.4rem;
}

.richtext-field {
  font-weight: 600;
}



.account-hint {
  font-size: 0.85rem;
  color: var(--gray-600, #6b7280);
  margin: -0.25rem 0 0.75rem;
}

.account-address-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.account-address-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
}

.account-address-list__item p {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--gray-600, #6b7280);
}
