/* ================================================
   Serenium Italia — Vitrine HTML estática
   Replicação visual fiel do tema Tinker Shopify
   ================================================ */

:root {
  --color-bg: #ffffff;
  --color-foreground: #000000;
  --color-foreground-rgb: 0, 0, 0;
  --color-primary: #303d66;
  --color-primary-dark: #25315c;
  --color-press-bar: #303c63;
  --color-border: #e6e6e6;
  --color-muted: #f4f4f6;
  --color-stock-yellow: #f6b544;
  --color-bundle-selected-bg: #eef4ff;
  --color-bundle-border: #303d66;

  --font-body: 'Instrument Sans', Arial, Helvetica, sans-serif;
  --font-heading: Arial, Helvetica, sans-serif;
  --font-accent: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --header-height: 64px;
  --container-max: 1280px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-foreground);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }

/* ===== ANNOUNCEMENT BAR (Notti d'Oro) ===== */
.os_gold_timer_bar {
  width: 100%;
  background: #303D66;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  padding: 8px 12px;
}

.os_gold_timer_inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  color: #ffffff;
  line-height: 1;
}

.os_gold_timer_text { text-align: left; color: #ffffff; }

.os_gold_timer_title {
  font-size: 18px;
  font-weight: 700;
  line-height: 18px;
  color: #ffffff;
  white-space: nowrap;
}

.os_gold_timer_subtitle {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 13px;
  color: #ffffff;
  white-space: nowrap;
}

.os_gold_timer_countdown {
  text-align: center;
  color: #ffffff;
  min-width: 104px;
}

.os_gold_timer_numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 18px;
  color: #ffffff;
  letter-spacing: 1.2px;
}

.os_gold_timer_labels {
  margin-top: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  font-size: 9px;
  font-weight: 700;
  line-height: 9px;
  color: #ffffff;
}

@media screen and (max-width: 480px) {
  .os_gold_timer_bar { min-height: 54px; padding: 7px 8px; }
  .os_gold_timer_inner { gap: 24px; }
  .os_gold_timer_title { font-size: 16px; line-height: 16px; }
  .os_gold_timer_subtitle { font-size: 10px; line-height: 11px; margin-top: 4px; }
  .os_gold_timer_countdown { min-width: 92px; }
  .os_gold_timer_numbers { font-size: 16px; line-height: 16px; gap: 3px; }
  .os_gold_timer_labels { font-size: 8px; line-height: 8px; gap: 8px; margin-top: 4px; }
}

/* ===== HEADER ===== */
.serenium-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
}

.serenium-header__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.serenium-header__col {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Layout: [burger?] [logo] [nav-center] [actions] */
.serenium-header__col--left { flex-shrink: 0; gap: 12px; order: 1; }
.serenium-header__col--center { flex: 1; justify-content: center; order: 3; }
.serenium-header__col--right { flex-shrink: 0; gap: 6px; order: 4; justify-content: flex-end; }

.serenium-header__logo { flex-shrink: 0; order: 2; }

/* No col--left, ESCONDE a nav (vai aparecer no center via JS reorg) */
.serenium-header__col--left .serenium-header__nav { display: none; }

.serenium-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.serenium-header__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.serenium-header__nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}

.serenium-header__nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #000;
  white-space: nowrap;
  letter-spacing: 0.1px;
  transition: opacity 0.18s ease;
}

.serenium-header__nav a:hover { opacity: 0.65; }

/* Action buttons (search + cart) */
.serenium-header__action {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  color: #000;
  cursor: pointer;
  transition: background 0.18s ease;
}

.serenium-header__action:hover {
  background: #f4f4f6;
}

.serenium-header__action svg {
  width: 22px;
  height: 22px;
  display: block;
}

.serenium-header__cart-bubble {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #303d66;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 999px;
  pointer-events: none;
}

/* Mobile burger */
.serenium-header__burger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.serenium-header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #000;
  border-radius: 2px;
}

/* Mobile drawer */
.serenium-header__drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: #ffffff;
  z-index: 200;
  padding: 70px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.serenium-header__drawer.is-open { transform: translateX(0); }

.serenium-header__drawer ul { display: flex; flex-direction: column; gap: 6px; }

.serenium-header__drawer a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  border-bottom: 1px solid #f0f0f0;
}

.serenium-header__drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.serenium-header__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.serenium-header__overlay.is-open { opacity: 1; pointer-events: auto; }

@media screen and (max-width: 900px) {
  .serenium-header__container { padding: 12px 16px; gap: 8px; }
  .serenium-header__nav { display: none; }
  .serenium-header__col--center { display: none; }
  .serenium-header__burger { display: flex; }
  /* Logo centralizada — flex:1 pra ocupar espaço entre burger e ações, justify-content pra centralizar a img */
  .serenium-header__logo { flex: 1; display: flex; justify-content: center; align-items: center; }
  .serenium-header__logo img { height: 32px; }
  .serenium-header__action { width: 36px; height: 36px; }
}

/* ===== SEARCH MODAL ===== */
.serenium-search-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
}

.serenium-search-modal[hidden] { display: none; }

.serenium-search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

.serenium-search-modal__panel {
  position: relative;
  width: 90%;
  max-width: 560px;
  background: #fff;
  border-radius: 14px;
  padding: 40px 32px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.serenium-search-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  font-size: 22px;
  border-radius: 50%;
  background: #f4f4f6;
}

.serenium-search-modal__form {
  display: flex;
  gap: 8px;
}

.serenium-search-modal__form input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.serenium-search-modal__form input:focus { border-color: #303d66; }

.serenium-search-modal__form button {
  height: 48px;
  padding: 0 22px;
  background: #303d66;
  color: #fff;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

/* ===== FEATURED PRODUCT ===== */
.featured-product {
  width: 100%;
  background: #ffffff;
  padding: 40px 20px;
}

.featured-product__container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ===== GALLERY CAROUSEL ===== */
.featured-product__media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f4f4f6;
  border-radius: 20px;
  overflow: hidden;
}

.gallery__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  z-index: 5;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.gallery__arrow:hover {
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.gallery__arrow:active { transform: translateY(-50%) scale(0.95); }

.gallery__arrow svg { width: 22px; height: 22px; }

.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }

.gallery__dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: none;
  justify-content: center;
  gap: 6px;
  z-index: 4;
}

.gallery__dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.22s ease;
}

.gallery__dots button.is-active {
  width: 22px;
  border-radius: 12px;
  background: #fff;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.gallery__thumbs button {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.18s ease;
  background: #f4f4f6;
}

.gallery__thumbs button.is-active {
  border-color: #303d66;
}

.gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Featured product details */
.featured-product__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
  position: sticky;
  top: 84px;
}

.featured-product__title {
  margin: 4px 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 400;
  color: #000;
}

.featured-product__title strong { font-weight: 700; }

.featured-product__buy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 16px 24px;
  background: #303d66;
  color: #ffffff;
  border-radius: 5px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  margin-top: 6px;
}

.featured-product__buy-button:hover { background: #25315c; }
.featured-product__buy-button:active { transform: scale(0.99); }
.featured-product__buy-button[disabled] { opacity: 0.7; cursor: not-allowed; }

.featured-product__buy-note {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

@media screen and (max-width: 900px) {
  .featured-product { padding: 18px 12px; }
  .featured-product__container { grid-template-columns: 1fr; gap: 18px; }
  .featured-product__details { position: static; padding: 6px 0 0; }
  .featured-product__title { font-size: 16px; }
  .gallery__main { border-radius: 14px; }
  .gallery__arrow { display: none; }
  .gallery__dots { display: flex; }
  .gallery__thumbs { display: none; }
}

/* ===== KACHING BUNDLE ===== */
.kb-bundle {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 8px 0 6px;
}

.kb-bundle__deal {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.kb-bundle__deal:hover { border-color: #b8c2d8; }

.kb-bundle__deal.is-selected {
  background: #eef4ff;
  border-color: #303d66;
  border-width: 2px;
  padding: 15.5px 17.5px;
}

.kb-bundle__deal--featured {
  margin-top: 12px;
}

.kb-bundle__radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c4c4c4;
  background: #fff;
  transition: border-color 0.18s ease;
  position: relative;
}

.kb-bundle__deal.is-selected .kb-bundle__radio {
  border-color: #303d66;
}

.kb-bundle__deal.is-selected .kb-bundle__radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #303d66;
}

.kb-bundle__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kb-bundle__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.kb-bundle__title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.kb-bundle__subtitle {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #5f6b85;
}

.kb-bundle__price {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #303d66;
  white-space: nowrap;
}

.kb-bundle__price small {
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
}

.kb-bundle__price-old {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #6b8072;
  text-decoration: line-through;
  white-space: nowrap;
}

.kb-bundle__badge {
  position: absolute;
  top: -10px;
  left: 14px;
  background: #303d66;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1;
}

/* Variantes (dropdowns Nero/Bianco/Grigio) — só aparecem no deal SELECIONADO */
.kb-bundle__variants {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.kb-bundle__deal:not(.is-selected) .kb-bundle__variants {
  display: none;
}

.kb-bundle__variant-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: 0.1px;
}

.kb-bundle__selects {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kb-bundle__select-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kb-bundle__select-num {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  min-width: 22px;
}

.kb-bundle__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 6px 28px 6px 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  cursor: pointer;
  min-width: 110px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'><path d='M2 4l3 3 3-3' stroke='%231a1a1a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  outline: none;
  transition: border-color 0.15s ease;
}

.kb-bundle__select:hover { border-color: #9ca3af; }
.kb-bundle__select:focus { border-color: #303d66; }

@media screen and (max-width: 480px) {
  .kb-bundle__title { font-size: 18px; }
  .kb-bundle__subtitle { font-size: 12px; }
  .kb-bundle__price { font-size: 16px; }
  .kb-bundle__select { min-width: 100px; font-size: 12.5px; }
}

/* ===== FOOTER ===== */
.serenium-footer {
  background: #303c63;
  color: #ffffff;
  padding: 44px 24px 24px;
  width: 100%;
}

.serenium-footer__container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.serenium-footer__logo {
  max-width: 200px;
}

.serenium-footer__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.serenium-footer__menu h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #ffffff;
}

.serenium-footer__menu li {
  margin-bottom: 9px;
}

.serenium-footer__menu a {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s ease;
}

.serenium-footer__menu a:hover { color: #ffffff; }

.serenium-footer__support {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.serenium-footer__support h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #ffffff;
}

.serenium-footer__support p {
  margin: 0 0 8px;
}

.serenium-footer__support strong {
  font-weight: 700;
  color: #ffffff;
}

.serenium-footer__copyright {
  max-width: var(--container-max);
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  letter-spacing: 0.2px;
}

@media screen and (max-width: 900px) {
  .serenium-footer { padding: 32px 18px 18px; }
  .serenium-footer__container { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .serenium-footer__logo { max-width: 160px; }
}

/* ===== PAGINA INSTITUCIONAL GENERICA ===== */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  font-family: var(--font-body);
}

.page-content h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 24px;
  color: #000;
  letter-spacing: -0.5px;
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 14px;
  color: #000;
}

.page-content h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: #000;
}

.page-content p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.page-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: disc;
}

.page-content ul li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.page-content a {
  color: #303d66;
  text-decoration: underline;
}

.page-content a:hover { color: #25315c; }

.page-content strong { font-weight: 700; }

@media screen and (max-width: 680px) {
  .page-content { padding: 32px 18px 48px; }
  .page-content h1 { font-size: 28px; }
  .page-content h2 { font-size: 19px; }
}

/* ===== UTILITARIO ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.serenium-analytics-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: -9999px;
}
