/* Al Haramain store and memberships. Shared with the public and account layouts. */
.commerce-body {
    background: #fff;
}

.commerce-navigation {
    border-bottom: 1px solid #e8e0e3;
    background: #faf7f8;
}

.commerce-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    overflow-x: auto;
    padding-block: 10px;
    scrollbar-width: thin;
}

.commerce-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    color: #62545d;
    font-size: 13px;
    font-weight: 700;
}

.commerce-nav a[aria-current="page"] {
    border-bottom-color: #b58b44;
    color: #691d2b;
}

.commerce-hero {
    padding-block: 62px 74px;
    background: linear-gradient(135deg, #fbf8f4, #f7f2f4 70%, #fff);
    border-bottom: 1px solid #efe6e8;
}

.commerce-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    gap: 65px;
    align-items: center;
}

.commerce-hero-copy,
.commerce-hero-image,
.commerce-detail-copy,
.commerce-cart-copy {
    min-width: 0;
}

.commerce-hero h1,
.commerce-membership-hero h1 {
    color: #42131d;
    font-size: clamp(33px, 4vw, 53px);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.commerce-hero h1 > span,
.commerce-membership-hero h1 > span {
    display: block;
    color: #691d2b;
}

.commerce-hero-copy > p {
    max-width: 42ch;
    margin-top: 23px;
    font-size: 16px;
    line-height: 2;
    color: #626773;
}

.commerce-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 29px;
}

.commerce-hero-image {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e5d8d6;
    border-radius: 24px 24px 76px 24px;
    background: #e9e0d7;
    box-shadow: 0 20px 48px #42131d0d;
}

.commerce-hero-image > img {
    display: block;
    width: 100%;
    height: 410px;
    object-fit: cover;
}

.commerce-hero-image figcaption {
    position: absolute;
    inset-inline: 25px;
    bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 20px;
    border: 1px solid #fff;
    border-radius: 12px;
    background: #fffffff5;
    color: #42131d;
    font-size: 13px;
}

.commerce-hero-image figcaption strong {
    font-size: 16px;
}

.commerce-section {
    padding-block: 65px 80px;
}

.commerce-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
}

.commerce-section-heading h1,
.commerce-section-heading h2 {
    font-size: clamp(28px, 3vw, 39px);
    color: #42131d;
    line-height: 1.6;
}

.commerce-section-heading p {
    margin-top: 12px;
    color: #626773;
    font-size: 14px;
    line-height: 1.9;
}

.commerce-section-heading > .text-link {
    flex: 0 0 auto;
}

.commerce-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.commerce-categories a {
    display: inline-flex;
    align-items: center;
    min-height: 43px;
    padding: 8px 18px;
    border: 1px solid #e4dadd;
    border-radius: 30px;
    font-size: 13px;
    color: #62545d;
    background: #fff;
}

.commerce-categories a[aria-current="page"] {
    color: #fff;
    background: #691d2b;
    border-color: #691d2b;
}

.commerce-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.commerce-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e7dde0;
    border-radius: 19px;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.commerce-product-card:hover {
    border-color: #c8a574;
    box-shadow: 0 12px 35px #42131d0b;
}

.commerce-product-photo {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f1eae3;
}

.commerce-product-photo img {
    width: 100%;
    height: 235px;
    object-fit: cover;
    transition: transform .4s;
}

.commerce-product-card:hover .commerce-product-photo img {
    transform: scale(1.035);
}

.commerce-stock-badge {
    position: absolute;
    inset-inline-start: 15px;
    top: 15px;
    padding: 5px 10px;
    border-radius: 7px;
    color: #62545d;
    background: #fffffff5;
    font-size: 12px;
}

.commerce-product-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.commerce-eyebrow {
    display: block;
    color: #8c672e;
    font-size: 12px;
    line-height: 1.8;
    font-weight: 600;
}

.commerce-product-copy h2 {
    margin: 8px 0 10px;
    color: #42131d;
    font-size: 21px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.commerce-product-copy > p {
    flex: 1;
    margin-bottom: 21px;
    font-size: 14px;
    line-height: 1.9;
    color: #626773;
    overflow-wrap: anywhere;
}

.commerce-product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 18px;
    margin-top: auto;
    border-top: 1px solid #eee5e9;
}

.commerce-money {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: inherit;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.6;
    white-space: nowrap;
    unicode-bidi: isolate;
}

.commerce-money > span {
    font-family: inherit;
    font-size: max(12px, .75em);
    font-weight: 400;
}

.commerce-product-bottom > .commerce-money {
    color: #691d2b;
    font-size: 21px;
}

.commerce-round-link {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid #e2d3d8;
    border-radius: 50%;
    color: #691d2b;
    background: #fbf7f8;
}

.commerce-round-link .icon {
    width: 19px;
    height: 19px;
}

.commerce-membership-prompt,
.commerce-home-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 70px;
    padding: 35px 40px;
    border: 1px solid #e5d8da;
    border-radius: 18px;
    background: #faf6f7;
}

.commerce-membership-prompt h2 {
    color: #42131d;
    font-size: 29px;
    line-height: 1.7;
}

.commerce-membership-prompt p,
.commerce-home-cta p {
    color: #626773;
    font-size: 14px;
    line-height: 1.9;
    margin-top: 11px;
}

.commerce-membership-prompt > .btn,
.commerce-home-cta > .btn {
    flex: 0 0 auto;
}

.commerce-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 35px;
    color: #626773;
    font-size: 13px;
}

.commerce-breadcrumb a {
    color: #691d2b;
}

.commerce-product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 65px;
    align-items: start;
}

.commerce-detail-image {
    border: 1px solid #e5dbdd;
    border-radius: 21px;
    overflow: hidden;
    background: #f4ede6;
}

.commerce-detail-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.commerce-detail-copy h1 {
    color: #42131d;
    font-size: clamp(29px, 3.4vw, 43px);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.commerce-detail-lead {
    color: #626773;
    font-size: 16px;
    line-height: 2;
    margin-top: 18px;
    overflow-wrap: anywhere;
}

.commerce-detail-price {
    margin: 23px 0;
    color: #691d2b;
    font-size: 32px;
}

.commerce-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 22px;
    color: #626773;
    font-size: 12px;
}

.commerce-detail-meta b {
    font-family: Arial, sans-serif;
    font-weight: 400;
}

.commerce-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #e6dce0;
    border-radius: 8px;
    background: #f7f1f3;
    color: #691d2b;
    font-size: 12px;
    line-height: 1.7;
}

.commerce-status-positive {
    background: #eef5ef;
    border-color: #d2e5d8;
    color: #286044;
}

.commerce-add-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 15px;
    padding-block: 28px 20px;
}

.commerce-add-form label {
    display: block;
    color: #62545d;
    font-size: 13px;
    font-weight: 600;
}

.commerce-add-form input[type="number"],
.commerce-quantity-form input[type="number"] {
    display: block;
    width: 90px;
    min-height: 49px;
    border: 1px solid #d9cdd2;
    border-radius: 9px;
    padding: 10px;
    margin-top: 8px;
    color: #282b36;
    background: #fff;
    font-size: 16px;
    text-align: center;
}

.commerce-add-form > .btn {
    min-width: 190px;
}

.commerce-product-description {
    border-top: 1px solid #e8dfe3;
    margin-top: 29px;
    padding-top: 27px;
}

.commerce-product-description h2 {
    color: #42131d;
    font-size: 22px;
}

.commerce-product-description p {
    margin-top: 18px;
    color: #626773;
    font-size: 15px;
    line-height: 2;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* Plan cards use only the server-validated theme variables. Accent is decorative. */
.commerce-membership-hero {
    padding: 75px 0 66px;
    background: radial-gradient(ellipse at 85% 100%, #e7d8bd85, transparent 55%), #faf6f3;
    border-bottom: 1px solid #eaddd9;
    text-align: center;
}

.commerce-membership-hero p {
    max-width: 650px;
    margin: 20px auto;
    color: #626773;
    font-size: 16px;
    line-height: 1.9;
}

.commerce-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 28px;
    align-items: stretch;
}

.commerce-plan-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e3d7dc;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 35px #42131d07;
}

.commerce-plan-art {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
    min-height: 248px;
    padding: 25px;
    color: var(--card-ink, #fff);
    background: var(--card-color, #691d2b);
    overflow: hidden;
}

.commerce-plan-art::before,
.commerce-plan-art::after {
    position: absolute;
    z-index: -1;
    content: "";
    inset-inline-end: -95px;
    bottom: -185px;
    width: 340px;
    height: 340px;
    border: 1px solid var(--card-accent, #d6b785);
    border-radius: 50%;
    opacity: .35;
    pointer-events: none;
}

.commerce-plan-art::after {
    width: 270px;
    height: 270px;
    inset-inline-end: -60px;
    bottom: -150px;
}

.commerce-plan-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 600;
}

.commerce-plan-brand img {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid #fff;
    background: #fff;
}

.commerce-plan-kicker {
    font-size: 12px;
    line-height: 1.8;
}

.commerce-plan-art h2 {
    margin-top: 6px;
    color: inherit;
    font-size: 28px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.commerce-plan-art-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    line-height: 1.7;
}

.commerce-plan-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 27px;
}

.commerce-plan-content h3 {
    margin: 0 0 15px;
    color: #42131d;
    font-size: 21px;
    line-height: 1.7;
}

.commerce-plan-description {
    color: #626773;
    font-size: 14px;
    line-height: 1.95;
    white-space: pre-line;
    overflow-wrap: anywhere;
    margin-bottom: 19px;
}

.commerce-plan-discount {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #e8d9bf;
    border-radius: 9px;
    color: #6b4d23;
    background: #fcf7ed;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}

.commerce-benefits {
    display: grid;
    gap: 13px;
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
}

.commerce-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #62545d;
    font-size: 14px;
    line-height: 1.8;
}

.commerce-benefits .icon {
    width: 19px;
    height: 19px;
    margin-top: 3px;
    color: #8c672e;
}

.commerce-plan-purchase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid #e9e0e3;
}

.commerce-plan-purchase .commerce-money {
    color: #691d2b;
    font-size: 23px;
}

.commerce-plan-purchase small {
    display: block;
    color: #626773;
    font-size: 12px;
    margin-top: 3px;
}

.commerce-plan-purchase form {
    margin: 0;
}

.commerce-plan-purchase .btn {
    font-size: 13px;
    padding-inline: 18px;
}

.commerce-payment-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 29px;
    padding: 20px 23px;
    border: 1px solid #e8dfe2;
    border-radius: 12px;
    background: #faf8f9;
}

.commerce-payment-note > .icon {
    flex: 0 0 auto;
    color: #8c672e;
    margin-top: 2px;
}

.commerce-payment-note p {
    color: #626773;
    font-size: 13px;
    line-height: 1.9;
}

/* Cart and payment review. All changes remain ordinary server-submitted forms. */
.commerce-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr);
    gap: 30px;
    align-items: start;
}

.commerce-checkout-layout > * {
    min-width: 0;
}

.commerce-cart-items {
    border-top: 1px solid #e7dde1;
}

.commerce-cart-item {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: 23px;
    align-items: start;
    padding-block: 27px;
    border-bottom: 1px solid #e7dde1;
}

.commerce-cart-image,
.commerce-cart-membership {
    width: 90px;
    height: 100px;
    border-radius: 13px;
    object-fit: cover;
    border: 1px solid #e5d9dd;
    background: #f4ebee;
}

.commerce-cart-membership {
    display: grid;
    place-items: center;
    color: #691d2b;
}

.commerce-cart-membership .icon {
    width: 34px;
    height: 34px;
}

.commerce-cart-copy h2 {
    color: #42131d;
    font-size: 20px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    margin: 5px 0 8px;
}

.commerce-unit-price,
.commerce-muted {
    color: #626773;
    font-size: 13px;
    line-height: 1.8;
}

.commerce-unit-price > .commerce-money {
    font-weight: 400;
}

.commerce-cart-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 17px;
}

.commerce-cart-controls form {
    margin: 0;
}

.commerce-quantity-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.commerce-quantity-form label {
    font-size: 12px;
    color: #626773;
}

.commerce-quantity-form input[type="number"] {
    width: 65px;
    min-height: 40px;
    margin: 0;
    padding: 5px;
}

.commerce-text-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 5px 0;
    color: #691d2b;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.commerce-remove {
    color: #74616d;
}

.commerce-cart-line-price {
    color: #691d2b;
    font-size: 17px;
    padding-top: 26px;
}

.commerce-summary {
    position: sticky;
    top: 165px;
    padding: 27px;
    border: 1px solid #e4d5db;
    border-radius: 17px;
    background: #faf7f8;
}

.commerce-summary h2 {
    color: #42131d;
    font-size: 25px;
    margin-bottom: 20px;
}

.commerce-summary > .section-label {
    margin-bottom: 11px;
}

.commerce-totals {
    display: grid;
    gap: 15px;
    margin: 0 0 25px;
}

.commerce-totals > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.commerce-totals dt {
    color: #62545d;
    font-size: 13px;
    line-height: 1.8;
}

.commerce-totals dd {
    margin: 0;
    color: #42131d;
    font-size: 14px;
}

.commerce-totals .commerce-total {
    border-top: 1px solid #e1d4da;
    padding-top: 18px;
}

.commerce-total dt,
.commerce-total dd,
.commerce-delivery-total dd {
    color: #42131d;
    font-size: 16px;
    font-weight: 700;
}

.commerce-saving dd {
    color: #286044;
}

.commerce-summary-note {
    margin-top: 18px;
    color: #626773;
    font-size: 12px;
    line-height: 1.9;
}

.commerce-full-width {
    width: 100%;
}

.commerce-summary > .text-link {
    margin-top: 20px;
}

.commerce-checkout-card h2 {
    color: #42131d;
}

.commerce-fulfillment,
.commerce-payment-information,
.commerce-checkout-terms {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #e7dde1;
}

.commerce-fulfillment h3,
.commerce-payment-information h3,
.commerce-checkout-terms h3 {
    font-size: 18px;
    color: #42131d;
    margin-bottom: 16px;
}

.commerce-fulfillment p,
.commerce-payment-information p,
.commerce-checkout-terms p {
    color: #626773;
    font-size: 14px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.commerce-checkout-terms p {
    white-space: pre-line;
}

.commerce-review-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.commerce-review-items > li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-block: 18px;
    border-bottom: 1px solid #e9e1e5;
}

.commerce-review-items > li:last-child {
    border-bottom: 0;
}

.commerce-review-items > li > div {
    min-width: 0;
}

.commerce-review-items strong {
    display: block;
    color: #42131d;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.commerce-review-items div > span {
    display: block;
    color: #626773;
    font-size: 12px;
    line-height: 1.8;
    margin-top: 6px;
}

.commerce-review-items > li > .commerce-money {
    color: #691d2b;
    font-size: 16px;
    flex: 0 0 auto;
}

.commerce-alert {
    margin-block: 25px;
    padding: 17px 22px;
    border: 1px solid #d0e2d6;
    border-radius: 12px;
    color: #286044;
    background: #f0f6f1;
    font-size: 14px;
    line-height: 1.9;
}

.commerce-alert p {
    color: inherit;
    margin-top: 7px;
}

.commerce-alert-error {
    border-color: #eacbd2;
    color: #8e3044;
    background: #fff3f5;
}

.commerce-alert ul {
    padding-inline-start: 22px;
    margin: 8px 0 0;
}

.commerce-empty {
    padding: 45px 25px;
    border: 1px solid #e6dbe0;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.commerce-empty-mark {
    display: grid;
    place-items: center;
    width: 57px;
    height: 57px;
    margin: 0 auto 20px;
    border: 1px solid #e8dce0;
    border-radius: 17px;
    color: #8c672e;
    background: #faf5ec;
}

.commerce-empty h2 {
    color: #42131d;
    font-size: 24px;
    line-height: 1.7;
}

.commerce-empty p {
    color: #626773;
    font-size: 14px;
    margin-top: 13px;
    line-height: 1.9;
}

.commerce-empty .btn {
    margin-top: 25px;
}

/* Orders and paid memberships. */
.commerce-account-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 23px;
    margin-bottom: 28px;
}

.commerce-order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.commerce-order-card > div {
    min-width: 0;
}

.commerce-order-card h2 {
    color: #42131d;
    font-size: 24px;
    margin: 8px 0 12px;
}

.commerce-order-reference {
    display: block;
    color: #626773;
    font: 12px/1.8 Consolas, monospace;
    overflow-wrap: anywhere;
    margin-top: 12px;
}

.commerce-order-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 17px;
}

.commerce-order-card-total {
    display: grid;
    gap: 18px;
    justify-items: end;
    flex: 0 0 auto;
}

.commerce-order-card-total > .commerce-money {
    color: #691d2b;
    font-size: 25px;
}

.commerce-contact-details,
.commerce-subscription-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
}

.commerce-contact-details dt,
.commerce-subscription-dates dt {
    font-size: 12px;
    color: #626773;
}

.commerce-contact-details dd,
.commerce-subscription-dates dd {
    color: #42131d;
    font-size: 14px;
    line-height: 1.9;
    overflow-wrap: anywhere;
    margin: 6px 0 0;
}

.commerce-contact-address {
    grid-column: 1 / -1;
}

.commerce-timeline {
    display: grid;
    list-style: none;
    padding: 0;
    margin: 0;
}

.commerce-timeline li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 14px 0;
}

.commerce-timeline li > span {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: 9px;
    border-radius: 50%;
    background: #b58b44;
    box-shadow: 0 0 0 5px #f5ebda;
}

.commerce-timeline strong {
    color: #42131d;
    font-size: 14px;
}

.commerce-timeline time {
    display: block;
    color: #626773;
    font: 12px/1.8 Arial, sans-serif;
    margin-top: 5px;
}

.commerce-subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.commerce-subscription-dates {
    padding-bottom: 22px;
    margin-bottom: 23px;
    border-bottom: 1px solid #e7dce1;
}

.commerce-membership-reference {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e7dce1;
}

.commerce-membership-reference > span {
    display: block;
    color: #626773;
    font-size: 12px;
    margin-bottom: 6px;
}

.commerce-membership-reference code {
    color: #42131d;
    font: 12px/1.8 Consolas, monospace;
    overflow-wrap: anywhere;
}

.commerce-table-thumb {
    width: 66px;
    height: 66px;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid #e5d9dd;
}

.commerce-home-products {
    background: #fff;
    border-top: 1px solid #eee5e8;
}

.commerce-home-memberships {
    background: linear-gradient(180deg, #fbf8f3, #f7f1f4);
    border-block: 1px solid #e9dfe1;
}

.commerce-home-cta {
    margin-bottom: 0;
    background: #fff;
}

.commerce-home-cta h3 {
    color: #42131d;
    font-size: 24px;
    line-height: 1.7;
}

/* The paid wallet keeps text contrast when an administrator changes plan colors. */
.membership-card[class*="plan-theme-"] {
    color: var(--card-ink, #fff);
    background: var(--card-color, #691d2b);
    border-color: var(--card-accent, #d6b785);
}

.membership-card[class*="plan-theme-"] .membership-brand small,
.membership-card[class*="plan-theme-"] .membership-emblem,
.membership-card[class*="plan-theme-"] .membership-balance > span,
.membership-card[class*="plan-theme-"] .membership-balance > div > span,
.membership-card[class*="plan-theme-"] .membership-card-bottom > div > span,
.membership-card[class*="plan-theme-"] .membership-code code,
.membership-card[class*="plan-theme-"] .membership-card-foot {
    color: inherit;
}

.membership-card[class*="plan-theme-"]::before,
.membership-card[class*="plan-theme-"]::after {
    border-color: var(--card-accent, #d6b785);
    opacity: .35;
}

html[lang="en"] .commerce-hero h1,
html[lang="en"] .commerce-membership-hero h1 {
    line-height: 1.2;
    letter-spacing: -.035em;
}

@media (min-width: 1201px) {
    html[lang] .site-header .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand actions" "navigation navigation";
        gap: 10px 25px;
        height: auto;
        padding-block: 15px 8px;
    }

    html[lang] .site-header .brand {
        grid-area: brand;
        justify-self: start;
    }

    html[lang] .site-header .header-actions {
        grid-area: actions;
    }

    html[lang] .site-header nav {
        grid-area: navigation;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 4px 20px;
        padding: 0;
    }
}

@media (max-width: 1050px) {
    .commerce-hero-grid,
    .commerce-product-detail {
        gap: 35px;
    }

    .commerce-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .commerce-hero-image > img {
        height: 350px;
    }

    .commerce-checkout-layout {
        gap: 22px;
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .commerce-cart-item {
        grid-template-columns: 65px minmax(0, 1fr);
        gap: 18px;
    }

    .commerce-cart-image,
    .commerce-cart-membership {
        width: 65px;
        height: 80px;
    }

    .commerce-cart-line-price {
        grid-column: 2;
        padding: 0;
    }
}

@media (max-width: 760px) {
    .commerce-hero-grid,
    .commerce-product-detail,
    .commerce-checkout-layout,
    .commerce-subscriptions-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .commerce-hero {
        padding-block: 40px 45px;
    }

    .commerce-hero-copy > p {
        max-width: none;
    }

    .commerce-hero-image {
        border-radius: 18px 18px 55px 18px;
    }

    .commerce-hero-image > img {
        height: 330px;
    }

    .commerce-summary {
        position: static;
    }

    .commerce-section {
        padding-block: 45px 55px;
    }

    .commerce-membership-hero {
        padding-block: 45px;
    }

    .commerce-membership-prompt,
    .commerce-home-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 27px;
        gap: 23px;
    }

    .commerce-membership-prompt {
        margin-bottom: 48px;
    }

    .commerce-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .commerce-detail-image {
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    .commerce-nav {
        gap: 23px;
    }

    .commerce-product-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .commerce-hero h1,
    .commerce-membership-hero h1 {
        font-size: 32px;
    }

    .commerce-hero-copy > p,
    .commerce-membership-hero p {
        font-size: 14px;
    }

    .commerce-hero-image > img {
        height: 280px;
    }

    .commerce-hero-image figcaption {
        inset-inline: 15px;
        bottom: 16px;
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 4px 12px;
        font-size: 12px;
    }

    .commerce-hero-image figcaption strong {
        font-size: 14px;
    }

    .commerce-product-photo img {
        height: 235px;
    }

    .commerce-categories {
        gap: 8px;
    }

    .commerce-categories a {
        padding-inline: 13px;
        font-size: 12px;
    }

    .commerce-product-copy,
    .commerce-plan-content {
        padding: 22px;
    }

    .commerce-plan-art {
        padding: 22px;
        min-height: 240px;
    }

    .commerce-plan-art h2 {
        font-size: 25px;
    }

    .commerce-plan-purchase {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .commerce-plan-purchase form,
    .commerce-plan-purchase .btn {
        width: 100%;
    }

    .commerce-order-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .commerce-order-card-total {
        justify-items: start;
        gap: 16px;
    }

    .commerce-summary {
        padding: 23px;
    }

    .commerce-cart-item {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 15px;
        padding-block: 23px;
    }

    .commerce-cart-image,
    .commerce-cart-membership {
        width: 58px;
        height: 73px;
    }

    .commerce-cart-copy h2 {
        font-size: 18px;
    }

    .commerce-cart-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .commerce-quantity-form {
        gap: 8px;
    }

    .commerce-quantity-form label {
        flex-basis: 100%;
    }

    .commerce-review-items > li {
        gap: 15px;
        flex-wrap: wrap;
    }

    .commerce-contact-details,
    .commerce-subscription-dates {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .commerce-total dt,
    .commerce-total dd {
        font-size: 15px;
    }

    .commerce-add-form > .btn {
        min-width: 0;
        flex: 1 1 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .commerce-product-photo img,
    .commerce-product-card {
        transition: none;
    }
}

.commerce-cart-item-unavailable {
    border-bottom-color: #eacbd2;
}

.commerce-unavailable-note {
    color: #8e3044;
    font-size: 13px;
    line-height: 1.9;
}

.commerce-plan-art::before {
    top: -105px;
    bottom: auto;
    inset-inline-end: -105px;
    width: 160px;
    height: 160px;
}

.commerce-plan-art::after {
    display: none;
}

.commerce-plan-brand {
    max-width: calc(100% - 30px);
}

.membership-card[class*="plan-theme-"] :is(p, span, small, strong, b, code, h2, h3),
.membership-card[class*="plan-theme-"] .membership-plan-details {
    color: inherit;
}

.membership-card[class*="plan-theme-"]::before {
    top: -105px;
    bottom: auto;
    inset-inline-start: auto;
    inset-inline-end: -105px;
    width: 160px;
    height: 160px;
}

.membership-card[class*="plan-theme-"]::after {
    display: none;
}

.commerce-membership-reference > .text-link {
    display: inline-flex;
    margin-top: 15px;
}
