/* Stella Staff — desktop Townhouse-inspired directory, 2026-11-14.
   Authentic STELLA wordmark, original links/socials/form and black footer.
   Desktop only: no change to Monogram House mobile/tablet. */
@media (min-width: 1024px) {
  .stella-store .store-footer {
    --stella-th-x: clamp(23px, 3.1vw, 62px);
    background: #0b0b0c;
    border-color: #29292b;
    padding: 0 !important;
  }
  .stella-store .store-footer .footer-layout {
    display: grid !important;
    grid-template-columns: minmax(148px, 1.15fr) minmax(112px, .72fr)
      minmax(110px, .7fr) minmax(158px, 1.04fr) minmax(224px, 1.4fr);
    grid-template-rows: minmax(247px, auto) auto;
    gap: 0 clamp(12px, 1.85vw, 44px);
    align-items: start;
    isolation: isolate;
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 0 !important;
    padding: clamp(34px, 3.6vw, 55px) var(--stella-th-x) 0 !important;
    margin: 0;
  }
  .stella-store .store-footer .footer-layout::before {
    display: none !important;
    content: none !important;
  }
  /* Let the real footer's existing children participate in the five-column grid. */
  .stella-store .store-footer .footer-layout > .footer-main {
    display: contents !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .stella-store .store-footer .footer-main > .footer-wordmark {
    grid-column: 1;
    grid-row: 1;
    position: relative !important;
    z-index: 1;
    left: auto !important;
    top: auto !important;
    display: block;
    overflow: visible !important;
    width: min(100%, 292px) !important;
    height: auto !important;
    min-width: 0;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0;
    border: 0;
    aspect-ratio: auto !important;
    transform: none !important;
    color: #f7f7f5;
    text-decoration: none;
  }
  .stella-store .store-footer .footer-main > .footer-wordmark > img {
    position: static !important;
    inset: auto !important;
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }
  .stella-store .store-footer .footer-main > .footer-wordmark::after {
    content: "Consigli, novità e ispirazioni dal mondo Stella.";
    display: block;
    margin-top: clamp(15px, 2vw, 26px);
    color: #c6c2c1;
    font-size: clamp(10px, .91vw, 13px);
    line-height: 1.55;
    font-weight: 400;
    font-style: italic;
    white-space: normal;
    text-decoration: none;
  }
  .stella-store .store-footer .footer-main > .footer-menu {
    grid-row: 1;
    min-width: 0;
    padding: 0 !important;
    margin: 0;
    align-self: start;
  }
  .stella-store .store-footer .footer-main > .footer-menu:nth-child(2) {
    grid-column: 2;
  }
  .stella-store .store-footer .footer-main > .footer-menu:nth-child(3) {
    grid-column: 3;
  }
  .stella-store .store-footer .footer-main > .staff-footer-listino-menu {
    grid-column: 4;
  }
  .stella-store .store-footer .footer-main h2 {
    color: #f6f3f0;
    font-family: inherit;
    font-size: clamp(11px, .9vw, 13px);
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: .135em;
    margin: 0 0 19px;
    text-transform: uppercase;
  }
  .stella-store .store-footer .footer-main .footer-menu > a {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    margin: 0 0 14px;
    color: #e0dddd;
    font-size: clamp(11px, .96vw, 14px);
    font-weight: 450;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: normal;
    text-decoration: none;
  }
  .stella-store .store-footer .footer-main .footer-menu > a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  /* Newsletter is the final directory column rather than a separate row. */
  .stella-store .store-footer .footer-layout > .stay-in-touch {
    display: block;
    position: static;
    grid-column: 5;
    grid-row: 1;
    align-self: start;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent;
  }
  .stella-store .store-footer .stay-in-touch-inner {
    position: static;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .stella-store .store-footer .stay-in-touch-copy .eyebrow,
  .stella-store .store-footer .stay-in-touch-copy > p:last-child {
    display: none;
  }
  .stella-store .store-footer .stay-in-touch-copy h2 {
    color: #f6f3f0;
    font-family: inherit;
    font-size: 0;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    white-space: normal;
    margin: 0 0 23px;
  }
  .stella-store .store-footer .stay-in-touch-copy h2::after {
    content: "JOIN THE LIST";
    display: inline-block;
    font-size: clamp(11px, .9vw, 13px);
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: .135em;
    white-space: nowrap;
  }
  .stella-store .store-footer .stay-in-touch-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 45px;
    grid-template-rows: repeat(3, minmax(45px, auto));
    column-gap: 10px;
    row-gap: clamp(8px, 1.2vw, 13px);
    width: 100%;
    min-width: 0;
    align-items: end;
    margin: 0;
    padding: 0;
  }
  .stella-store .store-footer .stay-in-touch-form label {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    padding: 0;
  }
  .stella-store .store-footer .stay-in-touch-form label:nth-child(1) {
    grid-row: 1;
  }
  .stella-store .store-footer .stay-in-touch-form label:nth-child(2) {
    grid-row: 2;
  }
  .stella-store .store-footer .stay-in-touch-form label:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }
  .stella-store .store-footer .stay-in-touch-form input {
    display: block;
    width: 100%;
    min-height: 46px;
    height: 46px;
    margin: 0;
    padding: 12px 4px 9px;
    border: 0;
    border-bottom: 1px solid #777275;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-size: clamp(12px, .95vw, 14px);
    line-height: 1.2;
    outline-offset: 3px;
  }
  .stella-store .store-footer .stay-in-touch-form input:focus {
    border-bottom-color: #fff;
    box-shadow: 0 1px #fff;
    outline: 0;
  }
  .stella-store .store-footer .stay-in-touch-form input::placeholder {
    color: #aaa6a6;
    opacity: 1;
  }
  .stella-store .store-footer .stay-in-touch-form > button {
    grid-column: 2;
    grid-row: 3;
    display: grid;
    place-items: center;
    width: 45px !important;
    min-width: 45px;
    height: 45px;
    min-height: 45px;
    padding: 0 !important;
    margin: 0;
    border-radius: 4px;
    background: #f7f0ea;
    color: #181719;
    font-size: 0 !important;
    line-height: 0 !important;
    white-space: nowrap;
    cursor: pointer;
  }
  .stella-store .store-footer .stay-in-touch-form > button > svg {
    display: block !important;
    width: 20px;
    height: 20px;
    stroke-width: 1.65;
  }
  .stella-store .store-footer .stay-in-touch-form > button:hover {
    background: #e3dad1;
  }
  .stella-store .store-footer .stay-in-touch-form > button:focus-visible,
  .stella-store .store-footer .social-links a:focus-visible,
  .stella-store .store-footer .footer-wordmark:focus-visible {
    outline: 2px solid #faf8f4;
    outline-offset: 3px;
  }
  /* The four existing social links stay in the brand column. */
  .stella-store .store-footer .stay-social {
    position: absolute;
    z-index: 2;
    left: var(--stella-th-x);
    right: auto;
    top: clamp(174px, 15.4vw, 236px);
    bottom: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: auto;
    min-width: 0;
    padding: 0 !important;
    margin: 0;
    border: 0;
    background: transparent;
    transform: none;
  }
  .stella-store .store-footer .stay-social > span {
    display: none;
  }
  .stella-store .store-footer .stay-social .social-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
  }
  .stella-store .store-footer .stay-social .social-links > a {
    width: 37px;
    height: 37px;
    min-width: 37px;
    border: 1px solid #706d70;
    border-radius: 50%;
    display: grid;
    place-items: center;
  }
  .stella-store .store-footer .stay-social .social-links svg {
    width: 18px;
    height: 18px;
  }
  /* One fine full-width legal divider, with original legal links intact. */
  .stella-store .store-footer .footer-layout > .footer-bottom {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 9px clamp(10px, 1.25vw, 18px);
    order: initial;
    padding: 19px 0 22px;
    margin: 0;
    border-top: 1px solid #525052;
    color: #bbb7b7;
    background: transparent;
    font-size: clamp(10px, .8vw, 12px);
    line-height: 1.5;
  }
  .stella-store .store-footer .footer-bottom > span:nth-child(2) {
    margin-right: auto;
  }
  .stella-store .store-footer .footer-bottom > span:last-child {
    width: auto;
    margin-left: auto;
  }
  .stella-store .store-footer .footer-bottom a,
  .stella-store .store-footer .footer-bottom button {
    color: #d0cccc;
  }
}
@media (min-width: 1024px) and (max-width: 1240px) {
  .stella-store .store-footer .footer-layout {
    grid-template-columns: minmax(145px, 1.05fr) minmax(112px, .75fr)
      minmax(110px, .7fr) minmax(160px, 1fr) minmax(213px, 1.33fr);
    column-gap: 13px;
    grid-template-rows: minmax(235px, auto) auto;
    padding-top: 30px !important;
  }
  .stella-store .store-footer .stay-social {
    top: 176px;
  }
  .stella-store .store-footer .footer-main .footer-menu > a {
    font-size: 11px;
  }
  .stella-store .store-footer .footer-bottom {
    font-size: 10px;
  }
}
