:root {
  --primary: #0c5ad7;
  --primary-dark: #0a45a9;
  --primary-soft: #ebf3ff;
  --accent: #1bbf8f;
  --text: #172033;
  --muted: #5d6b82;
  --line: #e8edf5;
  --bg: #f5f8ff;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(12, 90, 215, 0.1);
  --shadow-soft: 0 8px 20px rgba(15, 34, 62, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f8fbff;
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-space {
  padding: 70px 0;
}

#ofertas,
#mais-vendidos {
  scroll-margin-top: 140px;
}

.muted-bg {
  background: linear-gradient(180deg, rgba(12, 90, 215, 0.02), rgba(12, 90, 215, 0.06));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 40, 82, 0.06);
  box-shadow: 0 6px 18px rgba(17, 47, 92, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  overflow: visible;
}

.brand-logo {
  display: block;
  width: min(75px, 11vw);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
  filter: none;
}

.brand-mark {
  display: none;
}

.brand-text {
  display: none;
}

.search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f2f7ff;
  border: 1px solid rgba(12, 90, 215, 0.08);
  border-radius: 16px;
  min-height: 52px;
  padding: 0 16px;
}

.search-box svg {
  width: 20px;
  height: 20px;
  fill: var(--muted);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.98rem;
  color: var(--text);
  outline: none;
}

.search-box input::placeholder {
  color: rgba(23, 32, 51, 0.52);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  display: grid;
  gap: 4px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  background: var(--white);
  border: 1px solid rgba(12, 90, 215, 0.12);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.search-suggestions::-webkit-scrollbar {
  width: 8px;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: rgba(12, 90, 215, 0.28);
  border-radius: 999px;
}

.search-suggestions {
  scrollbar-color: rgba(12, 90, 215, 0.28) transparent;
  scrollbar-width: thin;
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestion {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 12px;
}

.search-suggestion__media {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-suggestion__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
  background: var(--primary-soft);
  outline: none;
}

.search-suggestion span {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.search-suggestion strong {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion small {
  color: var(--muted);
  font-size: 0.76rem;
}

.search-suggestion em {
  flex-shrink: 0;
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
}

.search-suggestion--empty {
  justify-content: center;
  color: var(--muted);
  cursor: default;
}

.product-detail-dialog {
  width: min(620px, calc(100% - 28px));
  max-width: 620px;
  max-height: min(88vh, 680px);
  padding: 22px;
  border: 1px solid rgba(12, 90, 215, 0.12);
  border-radius: 24px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 34, 62, 0.28);
}

.product-detail-dialog::backdrop {
  background: rgba(13, 25, 47, 0.56);
  backdrop-filter: blur(4px);
}

.product-detail-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.product-detail-dialog__header .eyebrow {
  margin: 0;
}

.product-detail-dialog__close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: #f2f6fc;
  font-size: 1.6rem;
  line-height: 1;
}

.product-detail-dialog__close:hover,
.product-detail-dialog__close:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
}

.product-detail-dialog__content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 24px;
}

.product-detail-dialog__image {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #f4f8ff, #f1faf6);
}

.product-detail-dialog__photo {
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.product-detail-dialog__info {
  min-width: 0;
}

.product-detail-dialog__category {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-detail-dialog__info h2 {
  margin: 8px 0 14px;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.product-detail-dialog__badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #168563;
  background: #eaf8f3;
  font-size: 0.76rem;
  font-weight: 700;
}

.product-detail-dialog__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}

.product-detail-dialog__price strong {
  color: var(--primary-dark);
  font-size: 1.7rem;
}

.product-detail-dialog__price del {
  color: var(--muted);
  font-size: 0.88rem;
}

.product-detail-dialog__note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.product-detail-dialog__info .product-warning {
  margin: 0 0 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  border: 1px solid rgba(12, 90, 215, 0.08);
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
}

.icon-button svg,
.icon-button img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.whatsapp-button,
.instagram-button {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.social-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 14px;
  display: block;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(12, 90, 215, 0.3);
}

.category-bar {
  background: rgba(12, 90, 215, 0.02);
  border-top: 1px solid rgba(13, 40, 82, 0.04);
}

.category-list {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 0 14px;
  scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.category-list a {
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  transition: all 0.2s ease;
}

.category-list a:hover,
.category-list a:focus-visible {
  background: var(--primary-soft);
  color: var(--primary);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(27, 191, 143, 0.12), transparent 30%),
    linear-gradient(120deg, #f3f7ff 0%, #fbfdff 52%, #eefaf6 100%);
  padding: 46px 0 42px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -190px;
  right: -90px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(12, 90, 215, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(12, 90, 215, 0.025), 0 0 0 90px rgba(27, 191, 143, 0.025);
  content: "";
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 38px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #e9f2ff;
  color: var(--primary);
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.pill::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(27, 191, 143, 0.13);
  content: "";
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.65rem);
  line-height: 0.98;
  margin: 22px 0 16px;
  letter-spacing: -0.065em;
  color: var(--text);
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-copy p {
  max-width: 500px;
  margin: 0;
  font-size: clamp(1.02rem, 1.55vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
  padding: 0 24px;
  min-height: 52px;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 16px 26px rgba(12, 90, 215, 0.2);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid rgba(12, 90, 215, 0.14);
}

.btn-block {
  width: 100%;
}

.hero-highlights {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 11px 20px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-highlights li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  margin-right: 7px;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(12, 90, 215, 0.055), rgba(27, 191, 143, 0.09));
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-visual::before {
  top: 52px;
  left: 64px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(1px);
}

.hero-visual::after {
  right: 28px;
  bottom: 28px;
  width: 90px;
  height: 90px;
  background: rgba(27, 191, 143, 0.16);
  filter: blur(1px);
}

.hero-product {
  position: absolute;
  display: grid;
  justify-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 55px rgba(25, 56, 94, 0.13);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.hero-product img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-product--main {
  z-index: 1;
  inset: 34px 84px 72px 46px;
  grid-template-rows: 1fr auto;
  padding: 24px;
  border-radius: 32px;
}

.hero-product--main img {
  width: min(70%, 225px);
  min-height: 0;
  padding: 8px 0 0;
  transform: scale(1.25);
}

.hero-product__eyebrow {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf8f3;
  color: #168563;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-product__caption {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4px;
  text-align: center;
}

.hero-product__caption span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.hero-product__caption strong {
  color: var(--text);
  font-size: 0.95rem;
}

.hero-product--micellar,
.hero-product--vitamins {
  z-index: 2;
  width: 146px;
  height: 170px;
  padding: 10px;
  border-radius: 24px;
}

.hero-product--micellar {
  top: 0;
  right: 8px;
}

.hero-product--vitamins {
  right: 0;
  bottom: 12px;
  height: 158px;
}

.hero-product--micellar img,
.hero-product--vitamins img {
  min-height: 0;
  padding: 2px 8px;
}

.hero-product--micellar img {
  transform: scale(1.12);
}

.hero-product--vitamins img {
  transform: scale(1.18);
}

.hero-product--micellar .hero-product__caption span,
.hero-product--vitamins .hero-product__caption span {
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.left-align {
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.6rem);
  letter-spacing: -0.04em;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.see-more {
  color: var(--primary);
  font-weight: 700;
}

.carousel-section-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 155px;
  padding: 24px 18px;
  background: white;
  border: 1px solid rgba(12, 90, 215, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(12, 90, 215, 0.08);
}

.category-card span:last-child {
  font-weight: 700;
  color: var(--text);
}

.icon-wrap {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--primary-soft);
  font-size: 1.7rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(12, 90, 215, 0.05);
}

.icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-carousel {
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 66px) / 4);
  grid-template-columns: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 18px;
}

.product-carousel::-webkit-scrollbar {
  display: none;
}

.product-carousel .product-card {
  scroll-snap-align: start;
}

.offers-carousel {
  grid-auto-columns: calc((100% - 22px) / 2);
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--primary);
  transition: background 0.2s ease, color 0.2s ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: var(--primary);
  color: white;
}

.carousel-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.product-card {
  background: white;
  border: 1px solid rgba(12, 90, 215, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  height: 200px;
  min-height: 200px;
  display: block;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: 120px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
}

.product-card__content {
  padding: 16px 16px 18px;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.product-card__category {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.prescription-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 196, 0, 0.12);
  color: #ad6a00;
  font-size: 0.67rem;
  font-weight: 700;
}

.product-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  min-height: 56px;
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 16px;
}

.product-price {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text);
}

.product-old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.85rem;
}

.product-warning {
  margin: 0 0 14px;
  color: #8a5c00;
  font-size: 0.74rem;
  line-height: 1.4;
  background: rgba(255, 196, 0, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card__footer .btn {
  flex: 1;
  min-height: 46px;
  font-size: 0.9rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 6px 8px;
}

.qty-controls button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: white;
  color: var(--primary);
  font-weight: 800;
}

.qty-controls span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: white;
  padding: 22px 18px;
  border-radius: 22px;
  border: 1px solid rgba(12, 90, 215, 0.08);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  background: #0f1630;
  color: rgba(255, 255, 255, 0.85);
  padding-top: 58px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 38px;
}

.footer-brand .brand-logo {
  width: min(110px, 28vw);
}

.footer-grid h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: white;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-socials .icon-button {
  width: 42px;
  height: 42px;
}

.footer-socials .icon-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.footer-grid p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 30px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 24;
  background: linear-gradient(135deg, #26d366, #18b55c);
  color: white;
  font-weight: 800;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 18px 30px rgba(25, 166, 93, 0.32);
}

.mobile-nav {
  display: none;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(420px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: white;
  box-shadow: -18px 0 40px rgba(17, 28, 52, 0.16);
  padding: 20px 18px 20px;
  transform: translateX(120%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cart-drawer__header h3 {
  margin: 0;
}

.close-cart {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: #f2f7ff;
  color: var(--primary);
  font-size: 1.5rem;
}

.cart-items {
  flex: 1;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: #f9fbff;
  border: 1px solid rgba(12, 90, 215, 0.06);
}

.cart-item__image {
  height: 68px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.cart-item > div {
  min-width: 0;
}

.remove-cart-item {
  width: 30px;
  height: 30px;
  align-self: start;
  border: 0;
  border-radius: 8px;
  background: #f2f7ff;
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1;
}

.cart-item h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-item__price {
  color: var(--primary);
  font-weight: 700;
}

.item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.item-controls .qty-controls {
  padding: 4px 6px;
}

.item-controls .remove-item {
  background: transparent;
  border: none;
  color: #be2339;
  font-weight: 700;
  font-size: 0.8rem;
}

.cart-summary {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.96rem;
  color: var(--muted);
}

.summary-row.total {
  font-size: 1.12rem;
  color: var(--text);
  margin-top: 8px;
}

.cart-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.catalog-page {
  min-height: 100vh;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog-sidebar {
  display: grid;
  gap: 20px;
}

.filters-panel {
  background: white;
  border-radius: 22px;
  border: 1px solid rgba(12, 90, 215, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 20px 18px;
}

.filters-panel h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid rgba(12, 90, 215, 0.12);
  background: #f6f9ff;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: transparent;
}

.sort-select-wrap {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.sort-select-wrap select {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(12, 90, 215, 0.12);
  background: #f9fbff;
  padding: 0 12px;
}

.catalog-content {
  min-width: 0;
}

.results-label {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 26px;
  align-items: start;
}

.checkout-form-panel,
.summary-card {
  background: white;
  border: 1px solid rgba(12, 90, 215, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.checkout-form-panel {
  padding: 28px 22px;
}

.checkout-form {
  display: grid;
  gap: 22px;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.input-grid--wide {
  grid-template-columns: 1.2fr 0.6fr 1fr;
}

label {
  display: grid;
  gap: 9px;
  color: var(--text);
  font-weight: 600;
}

label span {
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(12, 90, 215, 0.12);
  background: #f8fbff;
  padding: 0 14px;
  color: var(--text);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 110px;
  padding-top: 12px;
}

.full-width {
  grid-column: 1 / -1;
}

.delivery-fields,
.payment-box {
  border: 1px solid rgba(12, 90, 215, 0.08);
  border-radius: 18px;
  background: rgba(12, 90, 215, 0.015);
  padding: 18px;
}

.delivery-fields legend {
  padding: 0 8px;
  font-weight: 700;
  color: var(--text);
}

.payment-box h3 {
  margin: 0 0 16px;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: white;
  border: 1px solid rgba(12, 90, 215, 0.08);
  border-radius: 12px;
  min-height: 52px;
}

.payment-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

.delivery-option {
  display: flex;
  justify-content: flex-start;
}

.delivery-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(27, 191, 143, 0.08);
  color: #0d7d57;
}

.delivery-toggle input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.summary-card {
  padding: 24px 18px;
  position: sticky;
  top: 95px;
}

.summary-card h3 {
  margin: 0 0 18px;
}

.checkout-cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.checkout-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-cart-item__image {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.checkout-cart-item__text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.checkout-cart-item__text strong {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.checkout-cart-item__text span {
  color: var(--muted);
  font-size: 0.8rem;
}

.summary-breakdown {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.summary-card .btn {
  margin-top: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 94px;
  transform: translateX(-50%) translateY(18px);
  background: #0a8b5f;
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(10, 139, 95, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.empty-state {
  padding: 26px 18px;
  background: #f7faff;
  border-radius: 16px;
  border: 1px dashed rgba(12, 90, 215, 0.18);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1080px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-carousel {
    grid-auto-columns: calc((100% - 44px) / 3);
    grid-template-columns: none;
  }

  .offers-carousel {
    grid-auto-columns: calc((100% - 22px) / 2);
  }

  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    gap: 10px;
    min-height: 72px;
  }

  .brand {
    min-width: 0;
    flex-shrink: 0;
  }

  .brand-logo {
    width: min(60px, 18vw);
  }

  .search-box {
    min-height: 46px;
    padding-inline: 12px;
    min-width: 0;
  }

  .search-box input {
    font-size: 0.82rem;
  }

  .header-actions {
    gap: 8px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .category-grid,
  .product-grid,
  .features-grid,
  .input-grid,
  .input-grid--wide,
  .payment-options,
  .footer-grid,
  .catalog-shell {
    grid-template-columns: 1fr;
  }

  .product-detail-dialog {
    padding: 18px;
  }

  .product-detail-dialog__content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-detail-dialog__image {
    min-height: 190px;
    max-height: 240px;
  }

  .product-detail-dialog__photo {
    height: 190px;
  }

  .product-carousel {
    grid-auto-columns: calc((100% - 14px) / 2);
    grid-template-columns: none;
    gap: 14px;
  }

  .offers-carousel {
    grid-auto-columns: 100%;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-visual {
    min-height: 350px;
  }

  .hero-product--main {
    inset: 26px 76px 58px 16px;
    padding: 20px 14px;
  }

  .hero-product--main img {
    width: 66%;
  }

  .hero-product--micellar,
  .hero-product--vitamins {
    width: 126px;
    height: 148px;
  }

  .hero-product--micellar {
    right: 8px;
  }

  .hero-product--vitamins {
    right: 4px;
    bottom: 6px;
    height: 140px;
  }

  .hero-highlights {
    gap: 10px 14px;
  }

  .product-card h3 {
    min-height: initial;
  }

  .catalog-shell {
    display: block;
  }

  .catalog-sidebar {
    margin-bottom: 22px;
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    bottom: 86px;
    right: 16px;
    font-size: 0.82rem;
    padding: 12px 16px;
  }

  .carousel-section-actions {
    align-self: stretch;
    justify-content: space-between;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 26;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(13, 40, 82, 0.06);
    padding: 8px 0 10px;
    box-shadow: 0 -6px 18px rgba(17, 47, 92, 0.06);
  }

  .mobile-nav a,
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 0;
  }

  .mobile-nav a.active,
  .mobile-nav button.active {
    color: var(--primary);
  }

  .mobile-cart-trigger {
    position: relative;
  }

  .mobile-cart-trigger .cart-badge {
    top: -4px;
    right: 18px;
  }

  body {
    padding-bottom: 88px;
  }

  .site-footer {
    padding-top: 34px;
  }
}

@media (max-width: 500px) {
  .container {
    width: min(1180px, calc(100% - 18px));
  }

  .cart-drawer {
    width: 100%;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  }

  .cart-item {
    grid-template-columns: 56px minmax(0, 1fr) 28px;
    gap: 8px;
    padding: 10px;
  }

  .cart-item__image {
    height: 56px;
  }

  .remove-cart-item {
    width: 28px;
    height: 28px;
  }

  .brand-text strong {
    font-size: 1.1rem;
  }

  .brand-text span {
    font-size: 1.15rem;
  }

  .header-inner {
    gap: 8px;
  }

  .brand-logo {
    width: min(55px, 15vw);
  }

  .search-box {
    flex: 1;
    padding-inline: 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-visual {
    min-height: 310px;
  }

  .hero-product--main {
    inset: 24px 68px 52px 10px;
    padding: 18px 10px;
  }

  .hero-product--micellar,
  .hero-product--vitamins {
    width: 108px;
    height: 128px;
    padding: 8px;
  }

  .hero-product--micellar {
    right: 4px;
  }

  .hero-product--vitamins {
    right: 0;
    bottom: 4px;
    height: 122px;
  }

  .hero-product__eyebrow {
    top: 12px;
    left: 12px;
    padding: 7px 9px;
    font-size: 0.64rem;
  }

  .hero-product__caption strong {
    font-size: 0.84rem;
  }

  .section-space {
    padding: 56px 0;
  }
}
.install-app-button[hidden] {
  display: none;
}

.install-app-button:not([hidden]) {
  display: grid;
  color: var(--primary);
}
