/* Align the opening phrase with A; keep Modern Elegance's original banner inset. */
.hero-heading {
  position: absolute;
  top: 22px;
  left: 5%;
  width: 90%;
}
.hero-heading .hero-outline {
  position: static;
  width: max-content;
}
.hero-heading .hero-tagline {
  top: 204px;
  left: 0;
  right: calc(3.888889% + 36px);
  width: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 44px;
  z-index: 1;
}
@media (max-width: 1400px) {
  .hero-heading {
    top: 1.7vw;
  }
  .hero-heading .hero-tagline {
    top: 14vw;
    font-size: 3.06vw;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .hero-heading {
    top: 18px;
  }
  .hero-heading .hero-tagline {
    top: 132px;
    right: calc(0.555556% + 18px);
    font-size: 28px;
  }
}
@media (max-width: 900px) {
  .admin-header-inner {
    flex-wrap: wrap;
  }
  .admin-actions {
    flex-wrap: wrap;
    gap: 12px;
  }
  .admin-shell {
    padding: 24px 16px;
  }
  .admin-top {
    flex-wrap: wrap;
  }
  .admin-filters {
    flex-wrap: wrap;
  }
  .admin-filters input {
    flex-basis: 100%;
    min-width: 0;
  }
  .admin-filters select {
    flex: 1;
    min-width: 0;
  }
  .admin-table-wrap {
    max-width: 100%;
    overscroll-behavior-x: contain;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 80px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
    min-width: 0;
  }
  button,
  .story-button,
  .shop-now,
  .table-action {
    min-height: 44px;
  }
  .brand-header {
    height: 96px;
    padding: 16px 22px;
    justify-content: center;
  }
  .brand-header .brand-logo {
    width: 190px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 20px 24px 0;
  }
  .hero-outline {
    position: relative;
    inset: auto;
    width: 100%;
    font-size: clamp(48px, 15.8vw, 100px);
    letter-spacing: -1px;
    text-align: center;
  }
  .hero-heading {
    position: relative;
    inset: auto;
    width: max-content;
    max-width: 100%;
  }
  .hero-heading .hero-outline {
    width: auto;
  }
  .hero-heading .hero-tagline {
    position: static;
    inset: auto;
    width: 100%;
    gap: 0.3em;
    margin-top: 10px;
    font-size: clamp(14px, 4.65vw, 29px);
    line-height: 1.15;
    text-align: center;
  }
  .hero-copy {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 320px;
    margin: 24px auto 0;
    text-align: center;
  }
  .hero-copy h2 {
    font-size: 24px;
    line-height: 1.35;
  }
  .hero-copy p {
    margin: 12px auto 0;
    font-size: 14px;
    line-height: 1.6;
  }
  .hero .hero-visual {
    position: relative;
    inset: auto;
    flex-shrink: 0;
    width: 100%;
    height: 320px;
    margin-top: 24px;
  }
  .hero-model {
    height: 320px;
    left: 0;
    right: 0;
    bottom: 0;
    margin-inline: auto;
  }
  .shop-now {
    left: 50%;
    right: auto;
    bottom: 24px;
    transform: translateX(-50%);
    font-size: 19px;
    padding: 9px 22px;
  }
  .collection-banner-single {
    padding: 30px 20px;
  }
  .collection-banner-single-text h2 {
    font-size: clamp(32px, 8vw, 44px);
  }
  .collection-banner-single-text p {
    font-size: 13px;
  }
  /* One swipeable row keeps the sticky filters from covering the phone screen. */
  .collection-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scroll-padding-inline: 14px;
  }
  .filter-button {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 44px;
    padding: 9px 18px;
    white-space: nowrap;
  }
  .catalogue-inner {
    padding: 22px 16px 40px;
  }
  .products-grid {
    padding: 0;
    gap: 28px 14px;
  }
  .product-topline {
    flex-wrap: wrap;
    gap: 3px 8px;
  }
  .product-topline strong {
    white-space: nowrap;
  }
  .product-topline > span {
    font-size: 10px;
  }
  .product h3 {
    font-size: 15px;
    overflow-wrap: anywhere;
  }
  .product .buy-button {
    min-height: 44px;
  }
  .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .product {
    display: flex;
    flex-direction: column;
  }
  .product .buy-button {
    margin-top: auto;
  }
  .product-info > p:last-of-type {
    margin-bottom: 12px;
  }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-bottom {
    flex-wrap: wrap;
  }
  .purchase-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 24px);
    padding: 48px 12px 16px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .purchase-layout {
    gap: 14px;
    min-width: 0;
  }
  .purchase-summary,
  .purchase-details {
    min-width: 0;
  }
  .purchase-summary > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .purchase-details {
    padding: 14px;
  }
  .purchase-details h2 {
    font-size: 21px;
  }
  .dialog-close {
    width: 44px;
    height: 44px;
    top: 2px;
  }
  body:has(dialog[open]),
  body:has(.modal-overlay:not([hidden])) {
    overflow: hidden;
  }
  .admin-header-inner .brand-logo {
    width: 150px;
  }
  .admin-actions {
    width: 100%;
    justify-content: space-between;
  }
  .admin-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .admin-top h1 {
    font-size: 25px;
  }
  .admin-panel {
    padding: 18px 14px;
  }
  .admin-panel .wa-setting label {
    min-width: 0;
    flex-basis: 100%;
  }
  .admin-panel .wa-setting button {
    width: 100%;
  }
  .modal-overlay {
    padding: 10px;
  }
  .modal-overlay .modal-box {
    width: 100%;
    padding: 48px 16px 20px;
    max-height: calc(100dvh - 20px);
    overscroll-behavior-y: contain;
  }
  .modal-box .form-row > label {
    min-width: 0;
    flex-basis: 100%;
  }
  .modal-close {
    min-width: 44px;
    min-height: 44px;
  }
  .auth-body {
    min-height: 100dvh;
    padding: 20px 14px;
  }
  .auth-card {
    min-width: 0;
    padding: 24px 20px;
  }
}

@media (max-width: 359px) {
  .hero {
    padding-inline: 20px;
  }
  .hero-heading .hero-tagline {
    font-size: 4.65vw;
  }
  .hero-copy h2 {
    font-size: 22px;
  }
  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-strip > div {
    gap: 6px;
    padding: 12px 6px;
  }
  .service-strip img {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
  }
  .service-strip span {
    font-size: 9px;
  }
  .purchase-summary {
    align-items: flex-start;
  }
  .purchase-summary img {
    width: 60px;
  }
  .purchase-summary h3 {
    font-size: 15px;
  }
  .purchase-dialog .form-row > label {
    min-width: 0;
    flex-basis: 100%;
  }
}

@media (hover: none) and (pointer: coarse) {
  .product:hover,
  .story-button:hover,
  .filter-button:hover,
  .buy-button:hover,
  .service-strip > div:hover {
    transform: none;
    box-shadow: none;
  }
  .product-image:hover img {
    transform: none;
  }
}
