:root {
  --primary: #0f766e;
  --primary-dark: #0a5c56;
  --accent: #14b8a6;
  --background: #f8fafc;
  --surface: #ffffff;
  --ink: #102a2a;
  --muted: #64748b;
  --line: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--background);
  font-family: "Manrope", Arial, sans-serif;
}

body.shop-drawer-open {
  overflow: hidden;
}

button,
select,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.container {
  width: calc(100% - 28px);
  max-width: 1280px;
  margin-inline: auto;
}

.shop-pending .dashboard-shell {
  visibility: hidden;
}

.shop-main {
  min-height: 70vh;
}

.shop-main .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  margin: -1px;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.shop-shell {
  padding-bottom: 62px;
}

.shop-breadcrumb {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.shop-breadcrumb svg {
  width: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shop-breadcrumb a:hover {
  color: var(--primary);
}

.shop-breadcrumb span {
  color: #334155;
}

.shop-heading {
  margin: 8px 0 22px;
}

.shop-heading__eyebrow {
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-heading h1 {
  margin: 5px 0 5px;
  font-size: clamp(30px, 6vw, 40px);
  letter-spacing: -0.045em;
}

.shop-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.shop-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.06);
}

.shop-toolbar__count {
  margin: 0;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.shop-toolbar__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.shop-sort {
  position: relative;
}

.shop-sort select {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 12px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.view-toggle {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 10px;
}

.view-toggle button,
.mobile-filter-button {
  min-width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.view-toggle button.is-active {
  color: #fff;
  background: var(--primary);
}

.view-toggle svg,
.mobile-filter-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mobile-filter-button {
  width: 100%;
  height: 42px;
  grid-column: 1 / -1;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 8px;
  color: var(--primary);
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  font-size: 10px;
  font-weight: 800;
}

.shop-layout {
  display: grid;
  gap: 16px;
}

.shop-filter {
  position: fixed;
  z-index: 1002;
  inset: 0 auto 0 0;
  width: min(86vw, 330px);
  overflow-y: auto;
  padding: 20px 18px 28px;
  background: #fff;
  box-shadow: 16px 0 44px rgba(15, 23, 42, 0.18);
  transform: translateX(-105%);
  transition: transform 220ms ease;
}

.shop-filter.is-open {
  transform: translateX(0);
}

.filter-backdrop {
  position: fixed;
  z-index: 1001;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(15, 23, 42, 0.48);
  border: 0;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.filter-backdrop.is-open {
  visibility: visible;
  opacity: 1;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.filter-heading h2 {
  margin: 0;
  font-size: 18px;
}

.filter-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.filter-close svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.filter-group {
  padding: 18px 0;
  border-bottom: 1px solid #edf2f7;
}

.filter-group h3 {
  margin: 0 0 12px;
  font-size: 13px;
}

.filter-options {
  display: grid;
  gap: 10px;
}

.filter-option {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #475569;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.filter-option input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  accent-color: var(--primary);
}

.filter-option span {
  min-width: 0;
}

.filter-rating {
  color: #f59e0b;
  letter-spacing: -0.05em;
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 18px;
}

.filter-actions button,
.empty-state button {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.apply-filters,
.empty-state button {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
}

.clear-filters {
  color: var(--primary);
  background: #fff;
  border: 1px solid #99f6e4;
}

.shop-products {
  min-width: 0;
}

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

.featured-product {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 9px 28px rgba(15, 118, 110, 0.07);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.featured-product:hover {
  border-color: #99f6e4;
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.11);
  transform: translateY(-3px);
}

.featured-product__image {
  position: relative;
  height: 145px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background:
    radial-gradient(circle at 77% 18%, rgba(20, 184, 166, 0.13), transparent 27%),
    linear-gradient(145deg, #f8fffd, #ecfdf9);
  border-bottom: 1px solid #edf7f5;
}

.featured-product__image > svg {
  width: 72%;
  height: 72%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 220ms ease;
}

.featured-product:hover .featured-product__image > svg {
  transform: scale(1.05);
}

.featured-product__discount {
  position: absolute;
  z-index: 2;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  padding: 4px 6px;
  color: #fff;
  background: #dc2626;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 800;
}

.featured-product__wishlist {
  position: absolute;
  z-index: 2;
  inset-block-start: 7px;
  inset-inline-end: 7px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #475569;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.featured-product__wishlist:hover,
.featured-product__wishlist.is-active {
  color: #dc2626;
  border-color: #fecaca;
  transform: scale(1.06);
}

.featured-product__wishlist.is-active svg {
  fill: currentColor;
}

.featured-product__wishlist svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.featured-product__body {
  padding: 11px;
}

.featured-product h3 {
  min-height: 42px;
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.featured-product__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 7px;
}

.featured-product__rating span {
  color: #f59e0b;
  font-size: 11px;
  letter-spacing: -0.08em;
}

.featured-product__rating small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.featured-product__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.featured-product__price strong {
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
}

.featured-product__price strong small {
  font-size: 7px;
}

.featured-product__price del {
  color: #94a3b8;
  font-size: 8px;
  font-weight: 600;
}

.featured-product__badges {
  min-height: 43px;
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 9px;
}

.featured-product__badges span {
  padding: 4px 5px;
  color: var(--primary-dark);
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 800;
  white-space: nowrap;
}

.featured-product__cart {
  width: 100%;
  min-height: 39px;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 9px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease;
}

.featured-product__cart:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.product-grid.is-list {
  grid-template-columns: 1fr;
}

.product-grid.is-list .featured-product {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
}

.product-grid.is-list .featured-product__image {
  height: 100%;
  min-height: 190px;
  border: 0;
  border-inline-end: 1px solid #edf7f5;
}

.product-grid.is-list .featured-product h3 {
  min-height: 0;
}

.skeleton-card {
  min-height: 365px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.skeleton {
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.2s infinite linear;
}

.skeleton-card__image {
  height: 145px;
}

.skeleton-card__body {
  display: grid;
  gap: 11px;
  padding: 13px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
}

.skeleton-line--short {
  width: 62%;
}

@keyframes skeleton-loading {
  to {
    background-position: -200% 0;
  }
}

.empty-state {
  display: none;
  justify-items: center;
  padding: 60px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.empty-state.is-visible {
  display: grid;
}

.empty-state__icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #f0fdfa;
  border-radius: 20px;
}

.empty-state__icon svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.empty-state h2 {
  margin: 16px 0 6px;
  font-size: 20px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 11px;
  color: #475569;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.pagination button.is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.shop-toast {
  position: fixed;
  z-index: 1100;
  inset: auto 14px 18px;
  max-width: 360px;
  margin-inline: auto;
  padding: 12px 16px;
  color: #fff;
  background: #0f172a;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
}

.shop-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-shop-bar {
  position: fixed;
  z-index: 990;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  transition: opacity 180ms ease, transform 180ms ease;
}

.mobile-shop-bar.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

.mobile-shop-bar button {
  min-height: 42px;
  color: var(--primary);
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
}

.site-footer {
  padding-top: 8px;
  color: #475569;
  background: linear-gradient(to bottom, transparent, #eefbf8);
}

.site-footer__panel {
  overflow: hidden;
  background: #f0fdfa;
  border: 1px solid rgba(20, 184, 166, 0.16);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 34px rgba(15, 118, 110, 0.07);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding: 36px 24px 30px;
}

.footer-logo {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-logo__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--primary));
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.18);
}

.footer-logo__mark svg,
.site-footer__socials svg,
.site-footer__contact svg,
.site-footer__trust svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer-logo__mark svg {
  width: 29px;
}

.footer-logo__name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.footer-logo__name span {
  color: var(--primary);
}

.site-footer__brand > p {
  max-width: 330px;
  margin: 18px 0 21px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.85;
}

.site-footer__socials {
  display: flex;
  gap: 9px;
}

.site-footer__socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #fff;
  border: 1px solid #ccfbf1;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(15, 118, 110, 0.07);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-footer__socials a:hover {
  color: #fff;
  background: var(--primary);
  transform: translateY(-2px);
}

.site-footer__socials svg {
  width: 17px;
}

.site-footer__column h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.site-footer__column ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__column li,
.site-footer__column a {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.site-footer__column a:hover {
  color: var(--primary);
}

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.site-footer__contact svg {
  width: 17px;
  flex: 0 0 17px;
  color: var(--primary);
}

.site-footer__payments {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid rgba(15, 118, 110, 0.12);
}

.site-footer__payments > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-logo {
  width: 82px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.payment-logo:hover {
  border-color: #99f6e4;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.11);
  transform: translateY(-2px);
}

.payment-logo img {
  display: block;
  width: auto;
  max-width: 66px;
  height: 24px;
  object-fit: contain;
}

.site-footer__bottom {
  display: grid;
  gap: 16px;
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(15, 118, 110, 0.12);
}

.site-footer__bottom p {
  margin: 0;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}

.site-footer__legal,
.site-footer__trust {
  display: flex;
  flex-wrap: wrap;
}

.site-footer__legal {
  gap: 7px 15px;
}

.site-footer__legal a {
  position: relative;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.site-footer__legal a:hover {
  color: var(--primary);
}

.site-footer__legal a:not(:last-child)::after {
  position: absolute;
  inset-inline-end: -8px;
  color: #cbd5e1;
  content: "|";
}

.site-footer__trust {
  gap: 9px 14px;
}

.site-footer__trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 800;
}

.site-footer__trust svg {
  width: 15px;
}

@media (min-width: 600px) {
  .container {
    width: calc(100% - 40px);
  }

  .shop-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .shop-toolbar__controls {
    grid-template-columns: 210px auto auto;
  }

  .mobile-filter-button {
    width: auto;
    grid-column: auto;
    padding-inline: 16px;
  }

  .product-grid {
    gap: 14px;
  }

  .featured-product__image {
    height: 175px;
  }

  .featured-product__body {
    padding: 14px;
  }

  .featured-product h3 {
    font-size: 14px;
  }

  .featured-product__rating span {
    font-size: 13px;
  }

  .featured-product__rating small {
    font-size: 11px;
  }

  .featured-product__price strong {
    font-size: 18px;
  }

  .featured-product__badges {
    min-height: 27px;
  }

  .featured-product__badges span {
    font-size: 8px;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 46px;
    padding: 42px 36px 34px;
  }

  .site-footer__payments {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-inline: 36px;
  }

  .site-footer__bottom {
    padding-inline: 36px;
  }
}

@media (min-width: 900px) {
  .shop-layout {
    grid-template-columns: 235px minmax(0, 1fr);
    align-items: start;
  }

  .shop-filter {
    position: sticky;
    z-index: auto;
    inset: 16px auto auto;
    width: auto;
    max-height: calc(100vh - 32px);
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 9px 28px rgba(15, 118, 110, 0.07);
    transform: none;
  }

  .filter-close,
  .filter-backdrop,
  .mobile-filter-button,
  .mobile-shop-bar {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-shell {
    padding-bottom: 70px;
  }

  .site-footer__bottom {
    padding-bottom: 24px;
  }
}

@media (min-width: 1180px) {
  .shop-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .featured-product__image {
    height: 190px;
  }

  .featured-product h3 {
    font-size: 16px;
  }

  .featured-product__rating small {
    font-size: 13px;
  }

  .site-footer__grid {
    grid-template-columns: 1.55fr 0.76fr 0.95fr 1.1fr;
    gap: 44px;
    padding: 50px 46px 42px;
  }

  .site-footer__payments {
    padding: 18px 46px;
  }

  .site-footer__bottom {
    grid-template-columns: minmax(220px, 1fr) auto minmax(280px, 1fr);
    align-items: center;
    gap: 28px;
    padding: 22px 46px 26px;
  }

  .site-footer__legal {
    justify-content: center;
  }

  .site-footer__trust {
    justify-content: flex-end;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 20px);
  }

  .product-grid {
    gap: 7px;
  }

  .featured-product {
    border-radius: 12px;
  }

  .featured-product__image {
    height: 125px;
  }

  .featured-product__body {
    padding: 8px;
  }

  .featured-product h3 {
    min-height: 38px;
    font-size: 10px;
  }

  .featured-product__rating span {
    font-size: 9px;
  }

  .featured-product__rating small {
    font-size: 8px;
  }

  .featured-product__price strong {
    font-size: 14px;
  }

  .featured-product__badges span {
    padding-inline: 3px;
    font-size: 6px;
  }

  .pagination button {
    min-width: 36px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
