/* Certo Market mobile look & feel.
   Tokens measured from the live PDP via DevTools protocol (390x844 @3x, 2026-09-15).
   Class names mirror certomarket.com markup. Certo's font "Liebling" is commercial -> Nunito lookalike. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../assets/fonts/nunito-latin-wght.woff2) format("woff2");
}

:root {
  --certo-navy: #203438;
  --certo-orange: #f69d20;
  --certo-price: #d53827;
  --certo-ink: #020202;
  --certo-text: #333;
  --certo-icon: #c9d1d3;
  --certo-font: "Nunito", Lato, "Helvetica Neue", Arial, Helvetica, sans-serif;
  --certo-elevation-2: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
}

.certo-theme {
  font-family: var(--certo-font);
  color: var(--certo-ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* :where() keeps these resets at element specificity so component classes always win */
:where(.certo-theme) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.certo-theme) svg { display: block; }

/* Header */
.store-main-page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 10px;
  background: var(--certo-navy);
  color: var(--certo-icon);
}
.store-main-page-header .header-group { display: flex; align-items: center; gap: 4px; }
.store-main-page-header .icon-btn { display: grid; place-items: center; width: 40px; height: 40px; }
.store-main-page-header .logo { width: 104px; height: auto; margin-left: 2px; }

/* Breadcrumb title + close */
.mcg-breadcrumbs {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 52px;
}
.mcg-breadcrumbs-items-title {
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 500;
  color: rgba(0, 0, 0, .87);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mcg-breadcrumbs-close-btn { position: absolute; right: 22px; top: 15px; }
.mcg-breadcrumbs-close-btn svg { width: 20px; height: 20px; padding: 2px; border-radius: 50%; color: #fff; background: var(--certo-orange); }

/* PREV / NEXT */
.product-navigation { display: flex; justify-content: space-between; padding: 2px 20px 0; }
.product-button {
  padding: 5px 15px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #151515;
}

/* PDP */
.product-details { padding-bottom: 28px; text-align: center; }
.product-details-image-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 18px auto 0;
}
.image-magnify-img { display: block; width: 100%; height: 100%; object-fit: contain; }

.product-details-description { padding: 22px 20px 0; }
.product-details-title { margin: 0 0 14px; font-size: 30px; font-weight: 400; line-height: 1.17; color: var(--certo-ink); }
.product-details-location-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  color: var(--certo-text);
}
.product-details-location-name svg { width: 20px; height: 20px; color: var(--certo-orange); }
.product-details-price { margin: 0 0 16px; font-size: 40px; font-weight: 400; color: var(--certo-price); }
.product-details-subTitle { margin: 0 0 15px; font-size: 18px; font-weight: 600; color: var(--certo-text); }

.add-to-cart-btn,
.productNote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  text-transform: capitalize;
}
.certo-theme .add-to-cart-btn { min-width: 180px; color: var(--certo-navy); background: var(--certo-orange); box-shadow: var(--certo-elevation-2); }
.add-to-cart-btn svg { width: 22px; height: 22px; }
.certo-theme .productNote-button { margin-top: 16px; padding: 5px 15px; color: rgba(0, 0, 0, .87); border: 1px solid rgba(0, 0, 0, .23); }
.productNote-button svg { width: 20px; height: 20px; }

/* Featured Products */
.product-list-content-carousel { padding: 8px 0 26px; }
.subheader {
  margin: 0;
  padding: 0 12px 8px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: var(--certo-orange);
}
.featured-strip {
  display: flex;
  gap: 12px;
  padding: 6px 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.featured-strip::-webkit-scrollbar { display: none; }
.product-item { flex: none; width: 164px; text-align: left; }
.product-item-image { display: grid; place-items: center; height: 150px; }
.product-item-image img { width: 140px; height: 140px; object-fit: contain; }
.product-item-title {
  display: -webkit-box;
  height: 46px;
  margin: 12px 0 6px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.45;
  color: var(--certo-navy);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-item-price-wrapper { display: flex; align-items: baseline; gap: 8px; min-height: 30px; }
.product-item-price { margin: 0; padding-top: 4px; font-size: 18px; font-weight: 600; color: var(--certo-price); }
.product-item-old-price { margin: 0; font-size: 14px; color: #888; text-decoration: line-through; }
.product-item .add-to-cart-btn { width: 100%; min-width: 0; margin-top: 6px; }

/* Footer */
.footer-container { padding: 40px 20px 60px; background: var(--certo-navy); color: rgba(255, 255, 255, .78); }
.footer-column + .footer-column { margin-top: 30px; }
.footer-column-title { margin: 0 0 12px; font-size: 24px; font-weight: 700; letter-spacing: .12px; color: var(--certo-orange); }
.footer-column ul { margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 2; }

@media (max-width: 500px) {
  .store-main-page-header { padding-top: env(safe-area-inset-top, 0px); height: calc(60px + env(safe-area-inset-top, 0px)); }
  .footer-container { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
}
