@layer components {
  .store-page {
    max-width: 82.5rem;
    margin: auto;
    padding: 3.75rem 5% 5.625rem;
    min-height: 55vh;
    background: #fff;
  }
  .store-page h1 {
    text-align: center;
    color: var(--lux-gold-ink);
    font-size: clamp(1.75rem, 1.15rem + 1.8vw, 2.8125rem);
    margin-bottom: 2.8125rem;
  }
  .store-page h2 {
    font-size: clamp(1.4375rem, 1.1rem + 1vw, 2.125rem);
  }
  .store-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    margin: 0 0 2.5rem;
  }
  .store-tools button {
    border: 1px solid #9d8251;
    background: transparent;
    padding: 0.625rem 1rem;
    min-block-size: 2.75rem;
    font-size: 0.8125rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  .store-tools button:hover {
    background: #e6d1a4;
    border-color: #85611f;
  }
  .store-tools button.active,
  .store-tools button[aria-pressed="true"] {
    background: var(--gold);
    border-color: var(--lux-gold-ink);
    color: #211c16;
  }
  .store-subtools {
    margin-top: -1.375rem;
  }
  .store-subtools[hidden] {
    display: none;
  }
  .store-subtools button {
    font-size: 0.75rem;
    padding: 0.5rem 0.875rem;
    border-color: #bfa97a;
  }
  .store-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
  }
  .store-card a {
    display: block;
    overflow: hidden;
  }
  .store-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #fff;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .store-card a:hover img,
  .store-card a:focus-visible img {
    transform: scale(1.025);
  }
  .store-card h2 {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0.75rem 0 0.3125rem;
    transition: color 0.2s ease;
  }
  .store-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--lux-gold-ink);
    transition: color 0.2s ease;
  }
  .store-card a:hover h2 {
    color: var(--lux-gold-ink);
  }

  /* Cart */
  .store-cart {
    max-width: 62.5rem;
    margin: auto;
  }
  .cart-line {
    display: grid;
    grid-template-columns: 5.625rem 1fr 6.25rem auto;
    gap: 1.25rem;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 1.125rem 0;
    transition: background-color 0.2s ease;
  }
  .cart-line:hover {
    background: #f8f2e9;
  }
  .cart-line img {
    width: 5.625rem;
    aspect-ratio: 1;
    object-fit: contain;
    background: #fff;
  }
  .cart-line h2 {
    font-size: 1rem;
    margin: 0 0 0.375rem;
  }
  .cart-line input {
    width: 4.5rem;
    min-block-size: 2.75rem;
    padding: 0.5rem;
    border: 1px solid #7e705e;
    background: #fffdf9;
    font-size: max(1rem, 1em);
  }
  .remove-item {
    border: 1px solid #a99c87;
    background: transparent;
    padding: 0.5rem 0.875rem;
    min-block-size: 2.75rem;
    font-size: 0.875rem;
  }
  .cart-total {
    text-align: right;
    margin: 1.875rem 0;
  }
  .cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  /* Forms & Checkout */
  .store-checkout {
    max-width: 62.5rem;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.125rem;
  }
  .store-checkout form,
  .store-form {
    display: grid;
    gap: 1.125rem;
  }
  .form-field {
    display: grid;
    gap: 0.375rem;
  }
  .form-field label {
    font-size: 0.9375rem;
  }
  .form-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .store-page :is(input:not([type="checkbox"]), textarea, select) {
    width: 100%;
    min-block-size: 2.875rem;
    padding: 0.75rem;
    border: 1px solid #7e705e;
    background: #fffdf9;
    border-radius: 0;
    font-size: max(1rem, 1em);
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }
  .store-page textarea {
    field-sizing: content;
    min-block-size: 4lh;
    max-block-size: 14lh;
  }
  .store-page :is(input:not([type="checkbox"]), textarea, select):focus {
    border-color: var(--lux-gold-ink);
    background: #fff;
  }
  .store-page :is(input:not([type="checkbox"]), select, textarea):is(:user-invalid, .user-invalid-fallback) {
    border-color: #a43d31;
    background-color: #fdf3f1;
  }
  .store-page input[type="checkbox"]:is(:user-invalid, .user-invalid-fallback) {
    outline: 2px solid #a43d31;
    outline-offset: 2px;
  }
  .consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
  }
  .consent-label input[type="checkbox"] {
    width: auto;
    min-inline-size: 1.125rem;
    min-block-size: 1.125rem;
    margin-top: 0.2rem;
    accent-color: var(--lux-gold-ink);
  }
  .consent-label a {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .show-password {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-self: start;
    font-size: 0.875rem;
    color: var(--ink);
    cursor: pointer;
    min-block-size: 2.25rem;
  }
  .show-password input {
    width: auto;
    accent-color: var(--lux-gold-ink);
  }
  .account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .store-form button:disabled {
    opacity: 0.6;
    cursor: wait;
  }
  .store-summary {
    background: var(--paper);
    padding: 1.5625rem;
  }
  .store-summary ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
  }
  .store-summary li {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--line);
  }
  .payment-fieldset {
    border: 1px solid #d9cdbb;
    padding: 1rem 1.125rem;
    margin: 0;
    display: grid;
    gap: 0.625rem;
    background: #fffdf9;
  }
  .payment-fieldset legend {
    padding: 0 0.375rem;
    font-size: 0.9375rem;
    color: var(--ink);
  }
  .payment-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-block-size: 2.75rem;
    font-size: 0.9375rem;
  }
  .payment-option input[type="radio"] {
    width: auto;
    min-inline-size: 1.125rem;
    min-block-size: 1.125rem;
    margin: 0;
    accent-color: var(--lux-gold-ink);
  }
  .payment-option label {
    cursor: pointer;
    flex: 1;
    padding: 0.375rem 0;
  }
  .bank-transfer-box {
    background: var(--paper);
    border-left: 3px solid var(--lux-gold-ink);
    padding: 1rem 1.25rem;
    margin: 1.25rem auto;
    max-width: 34rem;
    text-align: left;
    line-height: 1.75;
  }
  .policy-article h2 {
    font-size: 1.25rem;
    color: #2b241c;
    margin: 2rem 0 0.625rem;
  }
  .policy-article ul {
    padding-inline-start: 1.25rem;
    line-height: 1.8;
    margin: 0.5rem 0 1rem;
  }
  .policy-article li {
    margin-bottom: 0.375rem;
  }
  .footer-legal {
    max-width: 82.5rem;
    margin: 0 auto;
    padding: 1.125rem 6% 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8125rem;
    color: rgba(238, 226, 210, 0.78);
    line-height: 1.7;
  }
  .footer-legal:empty {
    display: none;
  }
  .footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin: 0.875rem 0;
    font-size: 0.8125rem;
  }
  .footer-social[hidden] {
    display: none;
  }
  .footer-social a {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* Story, FAQ, Policy, Contact, Professional, Tour */
  .store-story {
    max-width: 51.25rem;
    margin: auto;
  }
  .store-story p {
    line-height: 1.8;
  }
  .faq-accordion details {
    padding: 1.125rem 0;
    border-bottom: 1px solid var(--line);
  }
  .faq-accordion summary {
    cursor: pointer;
    font-family: var(--display);
    font-size: 1.125rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  .faq-accordion summary::-webkit-details-marker {
    display: none;
  }
  .faq-accordion summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--lux-gold-ink);
  }
  .faq-accordion details[open] > summary::after {
    content: '−';
  }
  .faq-accordion details p {
    margin: 0.875rem 0 0;
  }
  .store-empty {
    text-align: center;
    padding: 3.4375rem 0;
  }
  .store-small {
    font-size: 0.875rem;
  }
  .store-warning {
    background: var(--paper);
    border-left: 3px solid var(--lux-gold-ink);
    padding: 0.9375rem 1.125rem;
    margin-bottom: 1.5625rem;
  }
  .contact-lead {
    max-width: 43.75rem;
    margin: 0 auto 2.8125rem;
    text-align: center;
  }
  .professional-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.875rem;
    margin: 2.8125rem 0;
  }
  .professional-details article {
    border-top: 1px solid var(--line);
    padding-top: 1.5625rem;
  }
  .professional-details img,
  .professional-details .cacao-mass-visual {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--paper);
    margin-bottom: 1.25rem;
  }
  .professional-details h2 {
    font-size: 1.625rem;
  }
  .professional-details p {
    line-height: 1.8;
  }
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 8%;
    align-items: start;
  }
  .contact-layout h2 {
    font-size: 1.625rem;
    line-height: 1.4;
  }
  .contact-layout a:not(.button) {
    color: var(--lux-gold-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .contact-layout p {
    line-height: 1.9;
  }
  .contact-layout address {
    font-style: normal;
    margin: 1.5625rem 0;
  }
  .contact-layout address strong {
    display: block;
  }
  .gift-selection {
    margin: 4rem 0;
  }
  .gift-selection > h2,
  .product-suggestions > h2 {
    text-align: center;
    font-size: 1.75rem;
  }
  .product-suggestions {
    margin-top: 4.375rem;
    padding-top: 3.125rem;
    border-top: 1px solid var(--line);
    content-visibility: auto;
    contain-intrinsic-block-size: auto 24rem;
  }

  /* Tour: coming soon */
  .coming-soon {
    position: relative;
    min-height: 72vh;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    background: var(--lux-black);
    color: var(--lux-text);
  }
  .coming-soon > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
  }
  .coming-soon > div {
    position: relative;
    max-width: 42.5rem;
    padding: 5.625rem 1.5rem;
  }
  .coming-soon .eyebrow {
    color: var(--lux-gold);
    letter-spacing: 0.2em;
  }
  .coming-soon h1 {
    font-size: clamp(2.5rem, 1.5rem + 3.5vw, 5.75rem);
    color: #fff;
    margin: 0.875rem 0 1.125rem;
    font-weight: 400;
    letter-spacing: 0.02em;
  }
  .coming-soon p {
    color: var(--lux-text);
    line-height: 1.8;
  }
  .coming-soon-actions {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.875rem;
  }
  .coming-soon .button-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
  }

  /* Story checkerboard */
  .story-checker {
    display: block;
  }
  .story-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: clamp(31.25rem, 44vw, 41.25rem);
  }
  .story-row.is-reverse .story-row-copy {
    order: 2;
  }
  .story-row-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.5rem, 7vw, 6.875rem);
  }
  .story-row-copy .eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: var(--lux-muted-dark);
    margin: 0 0 0.875rem;
    text-transform: uppercase;
  }
  .story-row-copy :is(h1, h2) {
    text-align: left;
    font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
    line-height: 1.28;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lux-gold-ink);
    margin: 0 0 1.375rem;
    font-weight: 400;
  }
  .story-row-copy p {
    line-height: 1.85;
    max-width: 33.75rem;
    margin: 0 0 1.125rem;
    color: #4f483f;
  }
  .story-row-copy .button {
    align-self: flex-start;
    margin-top: 0.625rem;
  }
  .story-row-image {
    position: relative;
    overflow: hidden;
    background: var(--lux-dark);
  }
  .story-row-image img,
  .story-row-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .story-row-image img {
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .story-row:hover .story-row-image img {
    transform: scale(1.03);
  }
  .video-toggle {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    background: rgba(20, 19, 17, 0.78);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 0.5rem 0.875rem;
    min-block-size: 2.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .tone-cream {
    background: var(--lux-cream);
  }
  .tone-blush {
    background: var(--lux-blush);
  }
  .tone-dark {
    background: var(--lux-dark);
    color: var(--lux-text);
  }
  .tone-dark .eyebrow {
    color: #eee2d2;
  }
  .tone-dark :is(h1, h2) {
    color: var(--lux-gold);
  }
  .tone-dark p {
    color: var(--lux-text);
  }

  /* Product detail (Amedei layout) */
  .product-page {
    max-width: 85rem;
  }
  .pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lux-muted-dark);
    margin: 0 0 1.875rem;
  }
  .pd-breadcrumb a {
    color: inherit;
    text-decoration: none;
  }
  .pd-breadcrumb a:hover {
    color: var(--lux-gold-ink);
  }
  .pd-breadcrumb [aria-current] {
    color: #2b241c;
  }
  .pd-main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(1.875rem, 6vw, 5.625rem);
    align-items: start;
  }
  .pd-gallery {
    display: grid;
    grid-template-columns: 5.25rem 1fr;
    gap: 1rem;
    position: sticky;
    top: 1.875rem;
  }
  .pd-gallery:not(:has(.pd-thumbs)) {
    grid-template-columns: 1fr;
  }
  .pd-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .pd-thumbs button {
    padding: 0;
    border: 1px solid #eee6d8;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
  }
  .pd-thumbs button[aria-pressed="true"],
  .pd-thumbs button:hover {
    border-color: var(--lux-gold-ink);
  }
  .pd-thumbs img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
  }
  .pd-stage {
    background: #fff;
  }
  .pd-stage img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
  }
  .pd-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lux-gold-ink);
    margin: 0 0 0.75rem;
  }
  .product-page .pd-info h1 {
    text-align: left;
    font-size: clamp(1.75rem, 1.25rem + 1.3vw, 2.625rem);
    margin: 0 0 0.875rem;
    color: #2b241c;
    font-weight: 400;
  }
  .pd-price {
    font-size: 1.25rem;
    margin: 0 0 1.875rem;
  }
  .pd-section-heading {
    border-bottom: 1px solid #d9cdbb;
    padding: 0 0 0.75rem;
    margin: 0;
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    color: #2b241c;
  }
  .pd-description {
    padding: 1.375rem 0 0.5rem;
    line-height: 1.85;
  }
  .pd-buy {
    display: flex;
    gap: 0.875rem;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 1.375rem 0 0.625rem;
  }
  .pd-buy .button {
    margin: 0;
    flex: 1;
    min-width: 12.5rem;
    text-align: center;
  }
  .pd-qty {
    display: flex;
    border: 1px solid #8a734a;
  }
  .pd-qty button {
    background: none;
    border: 0;
    width: 2.75rem;
    font-size: 1.125rem;
    margin: 0;
  }
  .pd-qty input {
    width: 3.25rem;
    text-align: center;
    border: 0;
    background: transparent;
    -moz-appearance: textfield;
    padding: 0.5rem 0.25rem;
  }
  .pd-qty input::-webkit-inner-spin-button {
    display: none;
  }
  .pd-help {
    margin-top: 2.125rem;
    padding: 1.5rem;
    background: var(--lux-cream);
    border-left: 2px solid var(--lux-gold);
  }
  .pd-help h2 {
    font-size: 1.0625rem;
    margin: 0 0 0.5rem;
  }
  .pd-help p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
  }
  .pd-help a {
    color: var(--lux-gold-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .pd-package {
    margin: 5rem 0 0;
    text-align: center;
  }
  .pd-package h2 {
    letter-spacing: 0.14em;
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
    margin-bottom: 2.125rem;
  }
  .pd-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.375rem, 1fr));
    gap: 1.75rem 1.25rem;
  }
  .pd-package-grid a {
    display: grid;
    gap: 0.375rem;
    text-decoration: none;
    color: inherit;
  }
  .pd-package-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #fff;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .pd-package-grid a:hover img {
    transform: translateY(-4px);
  }
  .pd-package-grid strong {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.4;
  }
  .pd-package-grid small {
    color: var(--lux-muted-dark);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .pd-details {
    margin: 4.375rem 0 0;
    border-top: 0;
    border-bottom: 0;
  }
  .pd-details summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    font-size: 0.875rem;
    letter-spacing: 0.16em;
  }
  .pd-details summary::-webkit-details-marker {
    display: none;
  }
  .pd-details summary::after {
    content: '+';
    font-size: 1.375rem;
    color: var(--lux-gold-ink);
  }
  .pd-details[open] summary::after {
    content: '−';
  }
  .pd-details dl {
    margin: 0 0 1.625rem;
    display: grid;
  }
  .pd-details dl > div {
    display: grid;
    grid-template-columns: 13.75rem 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(199, 189, 178, 0.4);
  }
  .pd-details dt {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lux-muted-dark);
  }
  .pd-details dd {
    margin: 0;
    line-height: 1.7;
  }

  @media (max-width: 900px) {
    .contact-layout {
      gap: 5%;
    }
    .professional-details {
      gap: 1.25rem;
    }
  }
  @media (max-width: 860px) {
    .story-row {
      grid-template-columns: 1fr;
      min-height: 0;
    }
    .story-row.is-reverse .story-row-copy {
      order: 0;
    }
    .story-row-image {
      aspect-ratio: 4 / 3;
      order: -1;
    }
    .story-row-copy {
      padding: 2.75rem 1.375rem 3.5rem;
    }
    .pd-main {
      grid-template-columns: 1fr;
    }
    .pd-gallery {
      position: static;
      grid-template-columns: 1fr;
    }
    .pd-thumbs {
      flex-direction: row;
      order: 2;
      flex-wrap: wrap;
    }
    .pd-thumbs button {
      width: 4.375rem;
    }
    .pd-details dl > div {
      grid-template-columns: 1fr;
      gap: 0.25rem;
    }
    .pd-package-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 760px) {
    .store-page {
      padding: 2.5rem 1.25rem 4rem;
    }
    .store-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1.5625rem 0.875rem;
    }
    .store-checkout,
    .contact-layout,
    .professional-details,
    .form-two-columns {
      grid-template-columns: 1fr;
      gap: 1.75rem;
    }
    .cart-line {
      grid-template-columns: 4rem 1fr 4.375rem;
      gap: 0.75rem;
    }
    .cart-line img {
      width: 4rem;
    }
    .cart-line .remove-item {
      grid-column: 2 / 4;
      justify-self: start;
    }
    .cart-line input {
      width: 3.75rem;
    }
    .store-page h1 {
      margin-bottom: 1.75rem;
    }
    .store-summary {
      padding: 1.125rem;
    }
    .product-suggestions {
      margin-top: 2.8125rem;
      padding-top: 2.1875rem;
    }
  }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    .store-page {
      animation: store-page-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    @keyframes store-page-in {
      from {
        opacity: 0.75;
        transform: translateY(0.5rem);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .store-card img,
    .store-card h2,
    .store-card p,
    .store-tools button,
    .store-page :is(input, textarea, select),
    .story-row-image img,
    .pd-package-grid img {
      transition: none;
    }
  }
}
