.admin-auth-loading { min-height: 60svh; display: grid; place-items: center; color: var(--stone); font-size: 13px; }
.admin-auth-loading[hidden] { display: none; }
.admin-login-page { min-height: 100svh; display: grid; place-items: center; background: var(--ivory); }
.admin-login-wrap { width: min(100% - 40px, 440px); margin: auto; padding: 48px 0 36px; }
.admin-login-brand { display: block; width: fit-content; margin: 0 auto 30px; font-size: 15px; font-weight: 600; letter-spacing: .18em; }
.admin-login-panel { padding: 38px; border: 1px solid var(--border); background: #fff; }
.admin-login-panel .eyebrow { margin-bottom: 12px; }
.admin-login-panel h1 { margin-bottom: 10px; font-size: 48px; font-weight: 500; line-height: 1.05; }
.admin-login-description { margin-bottom: 28px; color: var(--stone); font-size: 13px; }
.admin-login-field { display: grid; gap: 8px; margin-bottom: 18px; }
.admin-login-field label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.admin-login-field input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--border); background: var(--ivory); font: inherit; font-size: 16px; }
.admin-login-error { margin: 0 0 16px; color: #a12d2d; font-size: 13px; }
.admin-login-back { display: block; width: fit-content; margin: 22px auto 0; color: var(--stone); font-size: 12px; }

@media (max-width: 900px) {
  .header-inner { padding: 0 22px; }
  .header-nav-left { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .logo { grid-column: 2; font-size: 14px; }
  .header-nav-right { gap: 14px; }
  .menu-toggle { display: flex; align-items: center; }
  .menu-toggle span { display: block; width: 20px; height: 1px; background: currentColor; position: relative; }
  .menu-toggle span::before,
  .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 20px; height: 1px; background: currentColor; }
  .menu-toggle span::before { top: -6px; }
  .menu-toggle span::after { top: 6px; }
  .pdp-info { position: static; }

  
}

@media (max-width: 768px) {
  .wrap { padding-right: 20px; padding-left: 20px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero { min-height: 100vh; min-height: 100dvh; padding: 92px 16px 56px; }
  .hero-content { padding: 0 12px; }
  .hero-content h1 { margin-bottom: 20px; }
  .hero-bottom-controls { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); gap: 10px; }  /* clears the floating Help button */
  .hero-bottom-controls .btn-solid { padding: 14px 22px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .product-media { margin-bottom: 12px; }
  .product-name { overflow-wrap: anywhere; }
  .category-section { padding-top: 60px; padding-bottom: 60px; }
  .section-head { margin-bottom: 34px; }
  .section-head p { font-size: 20px; }
  .statement { padding-top: 92px; padding-bottom: 92px; }
  .statement h2 { font-size: clamp(36px, 10vw, 56px); }
  .editorial { height: 72svh; min-height: 420px; }
  .editorial-content { padding: 42px 24px; }
  .insta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .newsletter { padding: 76px 0; }
  .newsletter .wrap > p { max-width: 520px; margin-right: auto; margin-left: auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  .site-footer { padding-top: 56px; }
  .collection-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; margin-bottom: 26px; }
  .collection-title { grid-column: 1 / -1; width: 100%; }
  .filters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 10px; overflow: visible; }
  .filter-control select, .filter-control input { width: 100%; min-width: 0; }
  .sort-control { grid-column: 1 / -1; justify-self: end; }
  .pdp-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px 0 64px; }
  .pdp-gallery-main { max-height: 76svh; }
  .pdp-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pdp-info { min-width: 0; }
  .pdp-add-row { position: static; }
  .about-hero { padding-top: calc(var(--header-h) + 34px); }
  .help-page { padding-top: calc(var(--header-h) + 30px); padding-bottom: 64px; }
  .help-page-header { margin-bottom: 28px; }
  .help-page-header h1 { font-size: 40px; }
  .help-index { justify-content: flex-start; gap: 12px 18px; }
  .help-section { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 28px 0; }
  .help-section h2 { font-size: 28px; }
  .help-section p { font-size: 13px; }
  .about-photo { margin-top: 34px; }
  .philosophy { padding-top: 82px; padding-bottom: 82px; }
  .values { grid-template-columns: 1fr; gap: 34px; padding-bottom: 80px; }
  .about-editorial-grid { flex-direction: column; gap: 14px; }
  .about-editorial-grid .ph-img { width: 100%; }
  .newsletter-form { width: min(100%, 480px); }
  .floating-help-btn { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .help-modal-overlay { padding: 14px; }
  .help-modal-content { max-height: calc(100svh - 28px); overflow-y: auto; padding: 22px; }
  .search-wrapper.active .search-input-container { width: min(260px, calc(100vw - 36px)); }
  .search-results-dropdown { width: min(300px, calc(100vw - 28px)); }
  .checkout-page { padding-top: calc(var(--header-h) + 28px); padding-bottom: 64px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .order-summary { padding: 18px; }
  .pay-options { gap: 10px; }
  .pay-option { min-height: 48px; }
  .admin-wrap { width: 100%; margin: 26px auto; padding: 0 16px; }
  .admin-header { align-items: flex-start; gap: 16px; flex-wrap: wrap; }
  .admin-header h1 { font-size: 34px; }
  .admin-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
  .tab-btn { flex: 0 0 auto; padding: 12px 14px; font-size: 13px; }
  .form-card { padding: 18px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-group.full { grid-column: auto; }
  .discount-target-options { grid-template-columns: minmax(0, 1fr); }
  .size-stock-row { flex-wrap: wrap; }
  .size-stock-row input { min-width: 0; }
  .admin-wrap table { display: block; width: 100%; max-width: 100%; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .admin-wrap th, .admin-wrap td { padding: 10px; }
  .modal-content { width: min(100%, 600px); max-height: calc(100svh - 28px); overflow-y: auto; padding: 20px; }
  .admin-login-wrap { width: min(100% - 32px, 460px); padding: 36px 0 28px; }
  .admin-login-panel { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .coming-soon-page { padding: 20px; }
  .coming-soon-page .container { width: 100%; max-width: 440px; }
  .coming-soon-page h1 { font-size: clamp(28px, 8vw, 38px); line-height: 1.12; letter-spacing: .04em; }
  .coming-soon-page p { font-size: 16px; line-height: 1.6; }
  .header-inner { padding: 0 14px; }
  .header-nav-right { gap: 10px; font-size: 10px; }
  .logo { font-size: 12px; letter-spacing: .16em; }
  .bag-btn { gap: 4px; font-size: 10px; }
  .product-grid { gap: 24px 10px; }
  .product-price { gap: 5px; font-size: 12px; }
  .discount-percent { font-size: 9px; }
  .hero-center-wrapper { width: 100%; }
  .hero-bottom-controls .btn-solid { font-size: 11px; }
  .cart-drawer { width: 100vw; }
  .cart-head, .cart-items, .cart-foot { padding-right: 20px; padding-left: 20px; }
  .cart-item { gap: 10px; }
  .cart-item img { width: 64px; height: 82px; }
  .size-options { flex-wrap: wrap; }
  .pdp-price { font-size: 17px; }
  .pdp-field-label { gap: 10px; }
  .footer-grid { gap: 26px 16px; }
  .footer-logo { font-size: 13px; }
  .newsletter-form { align-items: stretch; }
  .newsletter-form button { padding-left: 12px; }
  .discount-promo { padding-right: 14px; padding-left: 14px; }
  .admin-header-actions { width: 100%; justify-content: space-between; }
  .admin-header-actions .btn-outline { padding: 12px 16px; }
  .admin-wrap h2 { font-size: 20px; }
  .admin-wrap .form-card { padding: 16px; }
  .admin-wrap table { font-size: 12px; }
  .admin-wrap .btn-action { min-height: 40px; }
  .modal-content { width: calc(100vw - 20px); padding: 18px 14px; }
  .order-summary-row { gap: 12px; }
  .order-summary-row > :last-child { text-align: right; }
  .pay-option { align-items: flex-start; padding: 14px 12px; }
  .admin-login-brand { font-size: 13px; }
  .admin-login-panel h1 { font-size: 40px; }
  .help-page-header h1 { font-size: 36px; }
  .help-section { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .help-section > .eyebrow { font-size: 9px; }

  /* Add inside @media (max-width: 480px) */
.email-notice {
  width: 100%;
  padding: 14px 16px;
  font-size: 12px;
  margin-bottom: 28px;
}
}

@media (max-width: 360px) {
  .header-inner { padding: 0 10px; }
  .header-nav-right { gap: 8px; }
  .logo { font-size: 11px; letter-spacing: .12em; }
  .product-grid { gap: 20px 8px; }
  .product-price { font-size: 11px; }
  .admin-wrap { padding: 0 10px; }
  .admin-tabs { gap: 4px; }
  .tab-btn { padding: 10px; font-size: 12px; }
}

/* ============================================================
   HERO LAYOUT
   - All devices : circle + text centered, button below the circle
   - Phone in landscape only : circle on the LEFT, button on the RIGHT
   The header is fixed (it overlays the hero), so the circle is centered in the
   free area BETWEEN the header and the button, with a gap above and below.
   ============================================================ */
.hero { --hero-reserve: 204px; }               /* space kept at the bottom for button + arrow */

.hero-center-wrapper,
.hero-content {
  padding-top: var(--header-h);                /* keep clear of the navbar */
  padding-bottom: var(--hero-reserve);         /* keep clear of the button */
}
.hero-center-wrapper { transform: none; }

.glowing-circle {
  --circle: clamp(100px, calc(100svh - (var(--header-h) * 2) - var(--hero-reserve) - 72px), 300px);
}

@media (max-width: 768px) {
  .hero { --hero-reserve: 196px; }
}

@media (max-width: 480px) {
  .glowing-circle { --circle: clamp(100px, calc(100svh - (var(--header-h) * 2) - var(--hero-reserve) - 72px), 220px); }
}

/* shorter windows: tighter button area so the circle keeps as much room as possible */
@media (max-height: 700px) {
  .hero { --hero-reserve: 190px; }
  .hero-bottom-controls { bottom: 64px; gap: 12px; }
}
@media (max-width: 768px) and (max-height: 700px) {
  .hero { --hero-reserve: 190px; }
}

@media (max-height: 520px) {
  .hero { --hero-reserve: 100px; }
  .hero-bottom-controls { bottom: 20px; }
  .slide-down-arrow { display: none; }
}

/* ---- PHONE in landscape only: circle left, button right ---- */
@media (orientation: landscape) and (max-height: 600px) and (hover: none) and (pointer: coarse) {
  .hero { --hero-reserve: 0px; }
  .slide { justify-content: flex-start; }
  .slide .hero-center-wrapper,
  .slide .hero-content { width: 50%; }
  .glowing-circle {
    --circle: clamp(100px, min(calc(100svh - (var(--header-h) * 2) - 48px), 40vw), 300px);
  }
  .hero-bottom-controls {
    top: var(--header-h); bottom: 0; left: 50%; right: 0;
    justify-content: center;
    gap: 14px;
  }
  .slide-down-arrow { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
