/**
 * Shopify Dawn–inspired UI layer for Stedrino Commerce
 */

:root {
  --st-bg: #f8fafc;
  --st-surface: #ffffff;
  --st-text: #1a2d42;
  --st-muted: #5a6d82;
  --st-border: #e2e8f0;
  --st-container: 1200px;
  --st-header: 64px;
  --st-radius: 14px;
  --st-radius-sm: 10px;
  --st-radius-pill: 999px;
  --st-shadow: 0 4px 20px rgba(13, 57, 115, 0.06);
  --st-font-ltr: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --st-btn-bg: var(--st-navy);
  --st-btn-hover: #0a2d5c;
}

body {
  background: var(--st-bg);
  color: var(--st-text);
  letter-spacing: 0.01em;
}

body.stedrino-ltr h1, body.stedrino-ltr h2, body.stedrino-ltr h3,
body.stedrino-ltr .stedrino-section__title {
  letter-spacing: -0.02em;
}

a { color: var(--st-text); text-decoration-thickness: 0.1rem; text-underline-offset: 0.2rem; }
a:hover { color: var(--st-pink); }

.stedrino-announcement,
.stedrino-topbar {
  background: var(--st-navy);
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.65rem 1rem;
  letter-spacing: 0.04em;
}
.stedrino-announcement p,
.stedrino-topbar p { margin: 0; }

.stedrino-header--shopify {
  background: var(--st-surface);
  border-block-end: 0.1rem solid var(--st-border);
  box-shadow: none;
  transition: box-shadow 0.2s ease;
}
.stedrino-header--shopify.is-scrolled {
  box-shadow: 0 0.1rem 0 rgba(18, 18, 18, 0.06);
}
.stedrino-header__shell { position: relative; }
.stedrino-header__row--top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--st-header);
  gap: 1rem;
}
.stedrino-header__row--primary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--st-header);
  gap: 0.75rem 1rem;
}
.stedrino-header__row--nav {
  display: flex;
  justify-content: center;
  padding-block: 0.35rem 0.75rem;
  border-block-start: 1px solid var(--st-border);
}
.stedrino-header__start { display: flex; align-items: center; gap: 0.25rem; justify-self: start; }
.stedrino-header__brand {
  text-align: center;
  flex-shrink: 0;
  justify-self: center;
  grid-column: 2;
}
.stedrino-header__row--primary .stedrino-header__start { grid-column: 1; }
.stedrino-header__row--primary .stedrino-header__actions { grid-column: 3; }
.stedrino-header__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-self: center;
}
.stedrino-header__brand .custom-logo { max-height: 44px; width: auto; display: block; margin-inline: auto; }
.stedrino-header__title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--st-text);
}
.stedrino-header__actions { justify-self: end; gap: 0.1rem; }
.stedrino-header__search-mobile { display: none; }
.stedrino-header__nav-row {
  display: flex;
  justify-content: center;
  padding: 0;
  position: relative;
  z-index: 5;
}
.stedrino-menu--shopify { gap: 1.75rem; justify-content: center; flex-wrap: wrap; }
.stedrino-menu--shopify a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-text);
  padding: 0.25rem 0;
  text-decoration: none;
}
.stedrino-menu--shopify a:hover { color: var(--st-pink); text-decoration: underline; }

/* Desktop dropdown sub-menus */
.stedrino-menu--shopify > li { position: relative; }
.stedrino-menu--shopify > .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.stedrino-menu--shopify > .menu-item-has-children > a::after {
  content: '';
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-inline: 4px solid transparent;
  border-block-start: 5px solid currentColor;
  opacity: 0.55;
}
.stedrino-menu--shopify .sub-menu {
  position: absolute;
  inset-block-start: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: max-content;
  min-width: 12rem;
  max-width: min(20rem, 90vw);
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--st-surface);
  border: 0.1rem solid var(--st-border);
  border-radius: var(--st-radius-sm);
  box-shadow: 0 0.8rem 2rem rgba(13, 57, 115, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 220;
  text-align: start;
}
.stedrino-menu--shopify > .menu-item-has-children::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  height: 0.65rem;
}
.stedrino-menu--shopify li:hover > .sub-menu,
.stedrino-menu--shopify li:focus-within > .sub-menu,
.stedrino-menu--shopify li.is-submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.stedrino-menu--shopify .sub-menu li {
  position: relative;
}
.stedrino-menu--shopify .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--st-navy);
}
.stedrino-menu--shopify .sub-menu a:hover {
  background: #f5f8fc;
  color: var(--st-pink);
  text-decoration: none;
}
/* Nested flyout (2nd+ level) */
.stedrino-menu--shopify .sub-menu .sub-menu {
  inset-block-start: -0.25rem;
  top: -0.25rem;
  left: auto;
  right: auto;
  inset-inline-start: calc(100% - 0.35rem);
  transform: none;
  min-width: 11rem;
  padding: 0.45rem 0;
}
.stedrino-menu--shopify .sub-menu .menu-item-has-children::before {
  content: '';
  position: absolute;
  inset-block: -0.25rem 0;
  inset-inline-start: 100%;
  width: 0.75rem;
}
[dir="rtl"] .stedrino-menu--shopify .sub-menu .sub-menu {
  inset-inline-start: auto;
  inset-inline-end: calc(100% - 0.35rem);
}
[dir="rtl"] .stedrino-menu--shopify .sub-menu .menu-item-has-children::before {
  inset-inline-start: auto;
  inset-inline-end: 100%;
}
.stedrino-menu--shopify .sub-menu .menu-item-has-children > a::after {
  content: '';
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-block: 4px solid transparent;
  border-inline-start: 5px solid currentColor;
  border-inline-end: none;
  opacity: 0.45;
}
[dir="rtl"] .stedrino-menu--shopify .sub-menu .menu-item-has-children > a::after {
  border-inline-start: none;
  border-inline-end: 5px solid currentColor;
}

.stedrino-header__actions { display: flex; align-items: center; }
.stedrino-icon-btn {
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: var(--st-navy);
  border: none;
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease;
}
.stedrino-icon-btn:hover {
  background: rgba(13, 57, 115, 0.06);
  color: var(--st-pink);
  opacity: 1;
}
.stedrino-icon-btn svg { stroke-width: 1.75; }
.stedrino-header__cart-count {
  inset-block-start: 4px;
  inset-inline-end: 2px;
  background: var(--st-pink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
}
.stedrino-lang-switcher--flags .stedrino-lang-switcher__item a {
  border: none !important;
  padding: 0.2rem;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: transparent;
  font-size: 0;
  line-height: 0;
}
.stedrino-lang-switcher--flags .stedrino-lang-switcher__item a:hover {
  background: rgba(13, 57, 115, 0.08);
}
.stedrino-lang-switcher--flags img {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.stedrino-hero-shopify__cover {
  position: relative;
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.stedrino-hero-shopify__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,57,115,0.35) 0%, rgba(13,57,115,0.55) 100%);
}
.stedrino-hero-shopify__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: 4rem;
  color: #fff;
}
.stedrino-hero-shopify__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  margin: 0 0 1rem;
}
.stedrino-hero-shopify__subtitle {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.stedrino-btn, .button, .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button {
  border-radius: var(--st-radius-pill) !important;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  min-height: 47px;
  box-shadow: 0 2px 8px rgba(13, 57, 115, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.stedrino-btn:hover, .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13, 57, 115, 0.12);
}
.stedrino-btn, .button.alt, .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--st-btn-bg) !important;
  color: #fff !important;
}
.stedrino-btn:hover, .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--st-btn-hover) !important;
}
.stedrino-btn--outline {
  background: transparent !important;
  color: var(--st-text) !important;
  border: 0.1rem solid var(--st-text) !important;
}

.site-main--front { padding-block: 0; }
.stedrino-section { padding-block: 4rem; }
.stedrino-section__title,
.entry-title, .stedrino-page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--st-text);
  margin-block-end: 2rem;
}
.stedrino-hero-shopify .wp-block-cover__inner-container { max-width: 720px; margin-inline: auto; }

.stedrino-category-grid { padding: 4rem 0; background: var(--st-bg); }
.stedrino-category-grid__items { gap: 1rem; }
.stedrino-collection-card,
.stedrino-category-card {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: block;
  overflow: hidden;
}
.stedrino-collection-card__media,
.stedrino-category-card__image {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
}
.stedrino-collection-card__media img,
.stedrino-category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.stedrino-collection-card:hover img,
.stedrino-category-card:hover img { transform: scale(1.03); }
.stedrino-collection-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 55%);
  pointer-events: none;
}
.stedrino-category-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--st-navy) 0%, var(--st-sky) 55%, var(--st-pink) 100%);
}
.stedrino-category-card__placeholder--img {
  background-size: cover;
  background-position: center;
  font-size: 0;
}

.stedrino-collection-card__title,
.stedrino-category-card__title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  text-align: center;
}

.stedrino-age-filter {
  padding: 2rem 0;
  background: var(--st-bg);
  border-block: 0.1rem solid var(--st-border);
}
.stedrino-age-filter__title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--st-muted);
  font-weight: 500;
}
.stedrino-age-filter__pill {
  border-radius: var(--st-radius-pill);
  border: 2px solid var(--st-border);
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  color: var(--st-navy);
  background: var(--st-surface);
  padding: 0.5rem 1.1rem;
  min-height: 44px;
}
.stedrino-age-filter__pill.is-active,
.stedrino-age-filter__pill:hover {
  background: var(--st-pink);
  border-color: var(--st-pink);
  color: #fff;
}

.stedrino-product-card {
  background: transparent;
  border: none;
  border-radius: 0;
}
.stedrino-product-card:hover { box-shadow: none; }
.stedrino-product-card__image {
  aspect-ratio: 4 / 5;
  background: #f3f3f3;
}
.stedrino-product-card__image img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.stedrino-product-card:hover .stedrino-product-card__image img { transform: scale(1.02); }
.stedrino-product-card__body { padding: 0.5rem 0 0; }
.stedrino-product-card__title {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--st-text);
}
.stedrino-product-card__price {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--st-text);
}
.stedrino-product-card__image-wrap { position: relative; overflow: hidden; }
.stedrino-product-card__actions {
  padding: 0;
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.stedrino-product-card:hover .stedrino-product-card__actions { opacity: 1; transform: translateY(0); }
.stedrino-product-card__actions .button {
  width: 100%;
  border-radius: 0 !important;
  min-height: 44px;
  background: var(--st-surface) !important;
  color: var(--st-text) !important;
  border-block-start: 0.1rem solid var(--st-border) !important;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stedrino-product-card__actions .button:hover {
  background: var(--st-text) !important;
  color: #fff !important;
}
.stedrino-quick-view-btn { display: none; }
.stedrino-badge {
  border-radius: 0;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--st-text);
}

.stedrino-drawer--cart .stedrino-drawer__panel--end { width: min(92vw, 420px); }
.stedrino-drawer__title {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-text);
}

.stedrino-footer {
  background: var(--st-navy);
  color: rgba(255, 255, 255, 0.9);
  border-block-start: none;
  margin-block-start: 4rem;
}
.stedrino-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0 2.5rem;
  align-items: start;
}
.stedrino-footer__brand p,
.stedrino-footer__tagline {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 28rem;
}
.stedrino-footer__heading {
  color: #fff;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  margin: 0 0 0.85rem;
}
.stedrino-footer__contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.stedrino-footer__contact a,
.stedrino-footer__brand a,
.stedrino-menu--footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.stedrino-footer__contact a:hover,
.stedrino-footer__brand a:hover,
.stedrino-menu--footer a:hover {
  color: #fff;
}
.stedrino-footer__bottom {
  border-block-start: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  padding: 1rem 0;
}
.stedrino-footer .custom-logo,
.stedrino-footer__logo-img {
  filter: brightness(0) invert(1);
}
.stedrino-menu--footer { display: grid; gap: 0.65rem; list-style: none; margin: 0; padding: 0; }
.stedrino-menu--footer a { color: rgba(255, 255, 255, 0.85) !important; font-size: 0.9rem; text-decoration: none; }
.stedrino-menu--footer a:hover { color: #fff !important; }

.stedrino-single-product__summary .product_title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.stedrino-shop .price,
.stedrino-single-product__summary .price {
  color: var(--st-text);
  font-weight: 400;
}
.stedrino-shop .single_add_to_cart_button,
.stedrino-shop .checkout-button,
.stedrino-shop #place_order {
  background: var(--st-btn-bg) !important;
  border-radius: var(--st-radius-pill) !important;
  width: 100%;
}

.stedrino-swatch {
  border-radius: var(--st-radius-sm);
  border: 2px solid var(--st-border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.stedrino-swatch.is-selected,
.stedrino-swatch:hover:not(.is-unavailable):not(:disabled) {
  border-color: var(--st-pink);
  box-shadow: 0 0 0 3px rgba(217, 35, 135, 0.15);
  transform: scale(1.04);
}
.stedrino-swatch.is-pulse {
  animation: stedrino-swatch-pulse 0.45s ease;
}
.stedrino-swatch.is-unavailable {
  display: none !important;
}
.stedrino-swatch--color { border-radius: 50%; }

@keyframes stedrino-swatch-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1.04); }
}

.stedrino-modal__dialog,
.stedrino-modal__close { border-radius: 0; }

.is-style-stedrino-card {
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-sm);
  background: var(--st-surface);
  box-shadow: var(--st-shadow);
}

@media (max-width: 768px) {
  .stedrino-header__row--nav { display: none; }
  .stedrino-header__search-mobile { display: inline-flex; }
  .stedrino-header__search-desktop { display: none; }
  .stedrino-header__lang--desktop { display: none; }
  .stedrino-header__row--primary { grid-template-columns: auto 1fr auto; }
  .stedrino-header__row--primary .stedrino-header__start { grid-column: auto; }
  .stedrino-header__row--primary .stedrino-header__brand { grid-column: auto; }
  .stedrino-header__row--primary .stedrino-header__actions { grid-column: auto; }
  .stedrino-product-card__actions { opacity: 1; transform: none; position: static; }
  .stedrino-footer__grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .stedrino-footer__brand p,
  .stedrino-footer__tagline { margin-inline: auto; }
  .stedrino-footer__social { justify-content: center; }
  .stedrino-footer__logo,
  .stedrino-footer .custom-logo-link { margin-inline: auto; }
}

@media (min-width: 769px) {
  .stedrino-header__toggle { display: none; }
}
