/* =====================================================
   tryon.kz — eTryon public theme (landing + shop)
   Requires body.theme-etryon + etryon-tokens.css
   ===================================================== */

body.theme-etryon {
  background: var(--et-bg) !important;
  color: var(--et-text) !important;
}

body.theme-etryon .bg-glow {
  display: none !important;
}

/* ----- Logo ----- */
body.theme-etryon .logo-mark {
  background: linear-gradient(180deg, #f8d030 0%, var(--et-accent) 55%, var(--et-accent-hover) 100%);
  box-shadow: 0 6px 18px -8px rgba(245, 197, 24, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
body.theme-etryon .logo-mark::after {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* ----- Buttons ----- */
body.theme-etryon .btn-primary {
  color: var(--et-accent-text);
  background: linear-gradient(180deg, #f8d030 0%, var(--et-accent) 55%, var(--et-accent-hover) 100%);
  box-shadow: 0 10px 28px -12px rgba(245, 197, 24, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
body.theme-etryon .btn-primary:hover {
  box-shadow: 0 14px 32px -10px rgba(245, 197, 24, 0.75);
  transform: translateY(-1px);
}

body.theme-etryon .btn-secondary {
  color: var(--et-text);
  background: var(--et-surface);
  border: 1px solid var(--et-border);
}
body.theme-etryon .btn-secondary:hover {
  background: var(--et-accent-soft);
  border-color: var(--et-accent);
}

body.theme-etryon .btn-ghost {
  color: var(--et-muted);
}
body.theme-etryon .btn-ghost:hover {
  color: var(--et-text);
  background: rgba(0, 0, 0, 0.04);
}

/* ----- Cards ----- */
body.theme-etryon .card-soft,
body.theme-etryon .card-etryon {
  border-radius: var(--et-radius);
  border: 1px solid var(--et-border);
  background: var(--et-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--et-shadow-sm);
}

body.theme-etryon .card-glow {
  border-radius: var(--et-radius);
  border: 1px solid var(--et-border);
  background: var(--et-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--et-shadow);
}

/* ----- Badges / filter pills ----- */
body.theme-etryon .badge {
  background: var(--et-surface);
  border: 1px solid var(--et-border);
  color: var(--et-muted);
}
body.theme-etryon .badge:hover {
  border-color: #d1d5db;
  color: var(--et-text);
}
body.theme-etryon .badge-brand,
body.theme-etryon .badge.is-active {
  background: var(--et-accent-soft);
  border-color: var(--et-accent);
  color: var(--et-text);
}

body.theme-etryon .et-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--et-border);
  background: var(--et-surface);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--et-muted);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
body.theme-etryon .et-filter-pill:hover {
  border-color: #d1d5db;
  color: var(--et-text);
}
body.theme-etryon .et-filter-pill.is-active,
body.theme-etryon a.et-filter-pill.badge-brand {
  background: var(--et-accent-soft);
  border-color: var(--et-accent);
  color: var(--et-text);
}

/* ----- Forms ----- */
body.theme-etryon .input,
body.theme-etryon .textarea,
body.theme-etryon .select {
  background: var(--et-surface);
  border: 1px solid var(--et-border);
  color: var(--et-text);
}
body.theme-etryon .input::placeholder,
body.theme-etryon .textarea::placeholder {
  color: #9ca3af;
}
body.theme-etryon .input:focus,
body.theme-etryon .textarea:focus,
body.theme-etryon .select:focus {
  border-color: var(--et-accent);
  background: var(--et-surface);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.22);
}
body.theme-etryon .select option,
body.theme-etryon select option {
  background-color: #fff;
  color: var(--et-text);
}
body.theme-etryon .label {
  color: var(--et-text);
}
body.theme-etryon .help {
  color: var(--et-muted);
}

/* ----- Hero ----- */
body.theme-etryon .hero-text-gradient {
  background: linear-gradient(110deg, var(--et-text) 0%, #374151 40%, var(--et-accent-hover) 70%, var(--et-text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.theme-etryon .compare {
  background: #f0f1f4;
  border: 1px solid var(--et-border);
}
body.theme-etryon .compare-pill {
  background: rgba(255, 255, 255, 0.92);
  color: var(--et-text);
  border: 1px solid var(--et-border);
}
body.theme-etryon .compare-pill--accent-left,
body.theme-etryon .compare-pill--accent-right {
  border-color: var(--et-accent);
}

/* ----- Toasts on public pages ----- */
body.theme-etryon .toast {
  background: var(--et-surface);
  border: 1px solid var(--et-border);
  color: var(--et-text);
  box-shadow: var(--et-shadow-sm);
}

/* ----- Public nav ----- */
.et-nav {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.et-nav.is-scrolled {
  border-bottom-color: var(--et-border);
  box-shadow: 0 4px 20px -16px rgba(17, 24, 39, 0.15);
}
.et-nav__link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  color: var(--et-muted);
  transition: color 0.15s, background 0.15s;
}
.et-nav__link:hover {
  color: var(--et-text);
  background: rgba(0, 0, 0, 0.04);
}
.et-nav__brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.02em;
}
.et-nav__drawer {
  border-top: 1px solid var(--et-border);
  background: var(--et-surface);
}
.et-nav__menu-btn {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 0.85rem;
  border: 1px solid var(--et-border);
  background: var(--et-surface);
  color: var(--et-text);
}

/* ----- Public footer ----- */
.et-footer {
  margin-top: 8rem;
  border-top: 1px solid var(--et-border);
  background: var(--et-surface);
}
.et-footer a {
  color: var(--et-muted);
  transition: color 0.15s;
}
.et-footer a:hover {
  color: var(--et-text);
}
.et-footer__muted {
  color: var(--et-muted);
  font-size: 0.875rem;
}
.et-footer__bottom {
  border-top: 1px solid var(--et-border);
  color: #9ca3af;
  font-size: 0.75rem;
}

/* ----- Landing sections ----- */
body.theme-etryon .section-muted-band {
  background: linear-gradient(180deg, transparent, rgba(245, 197, 24, 0.06), transparent);
}

body.theme-etryon code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  background: #f0f1f4;
  border: 1px solid var(--et-border);
  font-size: 0.85em;
}

/* ----- Shop layout ----- */
.shop-header {
  height: 4rem;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--et-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.shop-header__sub {
  font-size: 11px;
  color: var(--et-muted);
  line-height: 1.2;
}
.shop-header__logo-fallback {
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--et-accent-text);
  background: linear-gradient(180deg, #f8d030 0%, var(--et-accent) 100%);
}

.shop-hero__cover {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}
.shop-hero__cover--tall { height: 14rem; }
@media (min-width: 640px) { .shop-hero__cover--tall { height: 18rem; } }
@media (min-width: 1024px) { .shop-hero__cover--tall { height: 20rem; } }
.shop-hero__cover--short { height: 11rem; }
@media (min-width: 640px) { .shop-hero__cover--short { height: 14rem; } }
.shop-hero__cover-fallback {
  height: 11rem;
  background: linear-gradient(135deg, #fef9c3 0%, var(--et-bg) 50%, #fde68a 100%);
}
@media (min-width: 640px) { .shop-hero__cover-fallback { height: 14rem; } }
.shop-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(243, 244, 246, 0.95), rgba(243, 244, 246, 0.25), transparent);
}
.shop-hero__card-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
  margin-top: -4rem;
}
@media (min-width: 640px) { .shop-hero__card-wrap { margin-top: -5rem; padding: 0 1.5rem; } }

.shop-product-card {
  border-radius: var(--et-radius-sm);
  border: 1px solid var(--et-border);
  background: var(--et-surface);
  overflow: hidden;
  box-shadow: var(--et-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.shop-product-card:hover {
  border-color: #d1d5db;
  box-shadow: var(--et-shadow);
}
.shop-product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f0f1f4;
  overflow: hidden;
  display: block;
}
.shop-product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.shop-product-card__body {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.shop-product-card__title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--et-text);
  text-decoration: none;
}
.shop-product-card__title:hover {
  color: #374151;
}
.shop-product-card__meta {
  font-size: 11px;
  color: var(--et-muted);
  margin-top: 0.25rem;
}
.shop-product-card__price {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--et-text);
}
.shop-product-card__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
}

.shop-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 640px) {
  .shop-sheet-overlay {
    align-items: center;
    padding: 1rem;
  }
}
.shop-sheet {
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--et-radius) var(--et-radius) 0 0;
  border: 1px solid var(--et-border);
  background: var(--et-surface);
  box-shadow: var(--et-shadow);
}
@media (min-width: 640px) {
  .shop-sheet {
    border-radius: var(--et-radius);
  }
}
.shop-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--et-border);
}
.shop-sheet__close {
  height: 2rem;
  width: 2rem;
  border-radius: 0.65rem;
  border: 1px solid var(--et-border);
  background: var(--et-surface);
  color: var(--et-text);
  cursor: pointer;
}
.shop-sheet__body {
  overflow-y: auto;
  padding: 1rem;
}
.shop-sheet__foot {
  padding: 1rem;
  border-top: 1px solid var(--et-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .shop-sheet__foot {
    flex-direction: row;
  }
}

.shop-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.85rem;
  border: 1px solid var(--et-border);
  background: var(--et-surface);
  color: var(--et-text);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.shop-contact-pill:hover {
  background: var(--et-accent-soft);
  border-color: var(--et-accent);
}
.shop-contact-pill--sm {
  padding: 0.35rem 0.65rem;
  font-size: 11px;
  border-radius: 999px;
}
.shop-contact-pill--md {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.shop-footer {
  border-top: 1px solid var(--et-border);
  margin-top: 3rem;
  background: var(--et-surface);
}
.shop-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--et-muted);
}
.shop-footer a {
  color: var(--et-muted);
  text-decoration: none;
}
.shop-footer a:hover {
  color: var(--et-text);
}

.shop-empty {
  padding: 3rem;
  text-align: center;
  color: var(--et-muted);
  border-radius: var(--et-radius);
  border: 1px solid var(--et-border);
  background: var(--et-surface);
}

.shop-page .text-et-link {
  color: #a16207;
  text-decoration: underline;
}
.shop-page .text-et-link:hover {
  color: #854d0e;
}
