/* ============================================================
     基本レイアウト
============================================================ */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fffdf7;
    font-family: 'Noto Sans JP', sans-serif;
}

main {
    flex: 1 0 auto;
    padding: 20px 0;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ============================================================
     ヘッダー
============================================================ */
header {
    background-color: #fdd835;
    padding: 15px 0 20px;
    text-align: center;
}
.header-catchcopy {
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
}
.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.header-title img {
    max-height: 50px;
    width: auto;
}
.header-title span {
    font-size: 32px;
    font-weight: bold;
    color: #e91e63;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.header-actions form {
    margin: 0;
}

.header-icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fffef7;
    color: #37474f;
    box-shadow: 0 2px 6px rgba(38, 50, 56, 0.16);
    cursor: pointer;
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e91e63;
    color: #fff;
    border: 2px solid #fdd835;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 18px;
    text-align: center;
    transition: transform 0.18s ease, background 0.18s ease;
}

.cart-count-badge.is-updated {
    transform: scale(1.22);
    background: #2e7d32;
}

.header-icon-button:hover,
.header-icon-button:focus {
    background: #263238;
    color: #fff;
}

.header-icon-button-danger {
    background: #c62828;
    color: #fff;
}

.header-icon-button-danger:hover,
.header-icon-button-danger:focus {
    background: #b71c1c;
    color: #fff;
}

.header-icon-button .material-icons {
    font-size: 25px;
    line-height: 1;
}

.header-login-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #2e7d32;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(38, 50, 56, 0.18);
}

.header-login-button:hover,
.header-login-button:focus {
    background: #1b5e20;
    color: #fff;
}

.header-login-button .material-icons {
    font-size: 22px;
}

.header-login-button span {
    line-height: 1;
}

.member-entry-button {
    background-color: #e91e63;
    white-space: nowrap;
}

.member-entry-button:hover,
.member-entry-button:focus {
    background-color: #c2185b;
}

.member-profile-form {
    color: #263238;
}

.member-profile-page h4 {
    color: #263238;
    font-weight: 800;
}

.member-profile-form .input-field > label,
.member-profile-form .input-field > label.active {
    color: #37474f !important;
    font-weight: 700;
}

.member-profile-form input[type="text"],
.member-profile-form input[type="email"] {
    color: #212121 !important;
    border-bottom-color: #607d8b !important;
    font-weight: 700;
    opacity: 1;
    -webkit-text-fill-color: #212121;
}

.member-profile-form input[type="text"]:focus,
.member-profile-form input[type="email"]:focus {
    border-bottom-color: #e91e63 !important;
    box-shadow: 0 1px 0 0 #e91e63 !important;
}

.member-profile-form input[readonly] {
    color: #212121 !important;
    -webkit-text-fill-color: #212121;
}

.member-profile-form .btn-flat {
    color: #1565c0;
    font-weight: 700;
}

.member-withdraw-page {
    color: #263238;
}

.member-withdraw-page h4 {
    color: #263238;
    font-weight: 800;
}

.member-withdraw-page p {
    color: #37474f;
    font-weight: 600;
}

.member-withdraw-page .btn-flat {
    color: #1565c0;
    font-weight: 700;
}

/* ============================================================
     商品カード
============================================================ */
.product-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 18px;
    color: #17252b;
}

.product-page-heading h4 {
    margin: 0;
    color: #17252b;
    font-weight: 900;
}

.product-page-heading p {
    margin: 0;
    color: #455a64;
    font-weight: 700;
}

.product-card-link {
    display: block;
    height: 100%;
    color: inherit;
}

.product-card-link:hover,
.product-card-link:focus {
    color: inherit;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    border: 1px solid #e5eaee;
    background: #fff;
    box-shadow: 0 2px 10px rgba(38, 50, 56, 0.12);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-2px);
    border-color: #fbc02d;
    box-shadow: 0 8px 22px rgba(38, 50, 56, 0.16);
}

.product-card .media-box {
    position: relative;
    background: #f7f9fa;
    aspect-ratio: 4 / 3; /* PC：4:3、スマホ：1:1 */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    .product-card .media-box {
        aspect-ratio: 1 / 1;
    }
}

.product-card .media-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card .media-box .noimage-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #bbb;
}
.product-card .media-box .noimage-wrap .material-icons {
    font-size: 56px;
}

.product-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px 14px;
    flex-grow: 1;
    background-color: #fff;
    color: #17252b;
}

.product-card .title-clamp {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    margin: 0;
    color: #17252b;
}

.product-card .price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #17252b;
    flex-wrap: wrap;
}
.product-card .price-row .material-icons {
    font-size: 20px;
}
.product-card .price {
    font-size: 1.22rem;
    font-weight: 900;
    color: #c62828;
}

.price-label,
.tax-label {
    color: #607d8b;
    font-size: 0.78rem;
    font-weight: 800;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #eef2f4;
    color: #607d8b;
    font-size: 0.82rem;
    font-weight: 800;
}

.product-card-footer .material-icons {
    color: #f9a825;
    font-size: 18px;
}

.product-grid .col {
    margin-bottom: 16px;
}

/* ============================================================
     商品ポップオーバー（統一デザイン + アニメーション）
============================================================ */
.product-popover {
    padding: 0;
    border-radius: 8px;
    border: 1px solid #dfe6ea;
    width: 420px;
    max-width: 90vw;
    background: #fff;
    color: #212121;
    box-shadow: 0 18px 44px rgba(23, 37, 43, 0.24);

    /* 中央固定表示 */
    inset: 50% auto auto 50% !important;
    transform: translate(-50%, -50%) scale(0.98);
    opacity: 0;

    /* 開閉アニメーション */
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        display allow-discrete;
}

.product-popover:popover-open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 開始アニメーション */
@starting-style {
    .product-popover:popover-open {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.98);
    }
}

.popover-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border-bottom: 1px solid #eef2f4;
    padding: 14px 16px;
}

.product-popover .popover-heading h5 {
    color: #17252b;
    margin: 0;
    font-weight: 900;
    font-size: 1.12rem;
    line-height: 1.35;
}

.popover-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #eef2f4;
    color: #263238;
    cursor: pointer;
    flex: 0 0 auto;
}

.popover-close-button:hover,
.popover-close-button:focus {
    background: #263238;
    color: #fff;
}

/* === 画像部分 === */
.product-popover .popover-img-box {
    width: 100%;
    height: 240px;
    background: #f7f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-popover .popover-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* === 本文・情報 === */
.product-popover .popover-content {
    padding: 16px 18px;
    max-height: 260px;
    overflow: auto;
}

.popover-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    color: #17252b;
}

.popover-price-box span,
.popover-price-box small {
    color: #607d8b;
    font-weight: 800;
}

.popover-price-box strong {
    color: #c62828;
    font-size: 1.55rem;
    font-weight: 900;
}
.product-popover .meta {
    margin: 10px 0 0;
    border-top: 1px dashed #e0e0e0;
    padding-top: 10px;
    font-size: 0.95rem;
}
.product-popover .meta dl {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 6px 10px;
    margin: 0;
}
.product-popover .meta dt {
    color: #455a64;
    font-weight: 800;
}
.product-popover .meta dd {
    margin: 0;
    color: #17252b;
    font-weight: 800;
}

/* 在庫0を赤表示 */
.product-popover .meta dd.out-of-stock {
    color: #e53935;
    font-weight: 700;
}

/* === フッター === */
.product-popover .popover-footer {
    padding: 12px 16px;
    text-align: right;
    border-top: 1px solid #eef2f4;
    background: #fbfcfd;
}

.cart-add-inline {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    width: 100%;
}

.cart-qty-field {
    width: auto;
    margin: 0;
}

.quantity-stepper {
    display: inline-grid;
    grid-template-columns: 36px 64px 36px;
    align-items: center;
    border: 1px solid #b0bec5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.quantity-stepper input[type="number"] {
    width: 64px;
    height: 38px;
    margin: 0;
    border: 0 !important;
    box-shadow: none !important;
    text-align: center;
    color: #17252b;
    font-weight: 900;
    opacity: 1;
    -webkit-text-fill-color: #17252b;
}

.quantity-stepper input[type="number"]::-webkit-inner-spin-button,
.quantity-stepper input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

.quantity-step-button {
    width: 36px;
    height: 38px;
    border: 0;
    background: #eef2f4;
    color: #17252b;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

.quantity-step-button:hover,
.quantity-step-button:focus {
    background: #fdd835;
}

.quantity-step-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.member-shop-page {
    color: #17252b;
}

.member-shop-page h4 {
    color: #17252b;
    font-weight: 800;
}

.member-shop-page,
.member-shop-page p,
.member-shop-page span,
.member-shop-page strong,
.member-shop-page input,
.member-shop-page textarea,
.member-shop-page label {
    color: #17252b;
}

.member-shop-page .card-panel {
    background: #fff;
    color: #17252b;
    border: 1px solid #e0e6ea;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(38, 50, 56, 0.14);
    font-weight: 700;
}

.cart-list,
.order-items {
    display: grid;
    gap: 10px;
}

.cart-row,
.order-item-row,
.order-history-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 150px 110px 82px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #eceff1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(38, 50, 56, 0.08);
}

.order-item-row {
    grid-template-columns: minmax(0, 1fr) 110px 70px 110px;
}

.order-history-row {
    grid-template-columns: minmax(0, 1fr) 170px 110px 120px;
    color: #263238;
}

.order-history-row:hover,
.order-history-row:focus {
    background: #fff8e1;
    color: #263238;
}

.cart-name {
    font-weight: 800;
}

.cart-meta {
    color: #455a64;
    font-size: 0.9rem;
    font-weight: 700;
}

.cart-price,
.cart-subtotal {
    font-weight: 800;
    text-align: right;
}

.cart-quantity-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    position: relative;
}

.cart-quantity-form.is-updating::after {
    content: "保存中";
    position: absolute;
    left: 150px;
    white-space: nowrap;
    color: #455a64;
    font-size: 0.82rem;
    font-weight: 700;
}

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin: 18px 0;
    padding: 16px;
    border-top: 2px solid #263238;
    color: #263238;
}

.cart-summary strong {
    font-size: 1.5rem;
}

.member-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.member-actions-top {
    justify-content: flex-start;
    margin-top: -4px;
}

.member-shop-page .btn-flat {
    color: #1565c0;
    font-weight: 800;
}

.member-shop-page .btn {
    font-weight: 800;
}

.member-actions form {
    margin: 0;
}

.order-detail-list {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 8px;
    overflow: hidden;
}

.order-detail-list dt,
.order-detail-list dd {
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid #eceff1;
}

.order-detail-list dt {
    color: #263238;
    background: #fafafa;
    font-weight: 800;
}

.order-detail-list dd {
    color: #212121;
    font-weight: 600;
}

@media (max-width: 700px) {
    .cart-row,
    .order-item-row,
    .order-history-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cart-price,
    .cart-subtotal {
        text-align: left;
    }

    .order-detail-list {
        grid-template-columns: 1fr;
    }
}

/* === アニメーション抑制対応 === */
@media (prefers-reduced-motion: reduce) {
    .product-popover {
        transition: none;
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* ============================================================
     背景ぼかし（Popover開時のみ）
============================================================ */
.popover-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 998;
}

.product-popover:popover-open + .popover-backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
     フッター
============================================================ */
footer.page-footer {
    background-color: #fbc02d;
    margin-top: 0 !important;
}

/* ============================================================
     Customer UX refresh
============================================================ */
body {
    color: #17252b;
    background: #fffaf0;
}

header {
    position: sticky;
    top: 0;
    z-index: 800;
    padding: 10px 0 12px;
    box-shadow: 0 2px 12px rgba(23, 37, 43, 0.12);
}

main.container {
    width: min(1180px, 94%);
}

.header-title span {
    letter-spacing: 0;
}

.header-actions {
    align-items: center;
}

.header-login-button {
    border-radius: 8px;
    min-height: 48px;
    padding: 0 20px;
}

.product-page-heading {
    align-items: center;
    padding: 6px 0 2px;
}

.product-page-heading h4,
.member-shop-page h4,
.member-profile-page h4,
.member-withdraw-page h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 2rem;
    line-height: 1.2;
}

.product-grid.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.product-grid.row .col {
    padding-left: 8px;
    padding-right: 8px;
}

.product-card {
    border-radius: 10px;
}

.product-card .media-box {
    min-height: 148px;
}

.product-card .title-clamp {
    min-height: 2.8em;
}

.product-popover {
    overflow: hidden;
}

.product-popover .popover-footer .btn,
.member-entry-button {
    border-radius: 8px;
    background: #2e7d32;
}

.product-popover .popover-footer .btn:hover,
.product-popover .popover-footer .btn:focus,
.member-entry-button:hover,
.member-entry-button:focus {
    background: #1b5e20;
}

.quantity-stepper {
    grid-template-columns: 44px 66px 44px;
    min-height: 44px;
}

.quantity-stepper input[type="number"] {
    height: 44px;
    font-size: 1.05rem;
}

.quantity-step-button {
    width: 44px;
    height: 44px;
    font-size: 1.45rem;
}

.cart-row,
.order-item-row,
.order-history-row,
.order-detail-list,
.member-profile-form,
.member-withdraw-page {
    border-radius: 10px;
}

.cart-row {
    grid-template-columns: minmax(0, 1fr) 96px 166px 110px 70px;
}

.cart-subtotal,
.cart-price {
    font-size: 1.08rem;
}

.cart-quantity-form.is-updating::after {
    content: "保存中";
    left: 178px;
}

.cart-summary {
    position: sticky;
    bottom: 0;
    z-index: 50;
    background: #fffaf0;
}

.member-profile-page,
.member-withdraw-page,
.member-shop-page {
    max-width: 960px;
    margin: 0 auto;
}

.member-profile-form,
.member-withdraw-page {
    background: #fff;
    border: 1px solid #e6ecef;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.1);
    padding: 18px;
}

.member-profile-form .input-field input,
.member-profile-form .input-field textarea {
    font-size: 1rem;
}

.member-actions .btn,
.member-actions .btn-flat,
.member-profile-form .btn,
.member-profile-form .btn-flat,
.member-withdraw-page .btn,
.member-withdraw-page .btn-flat {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 18px;
}

.member-bottom-nav {
    display: none;
}

.member-bottom-nav b {
    position: absolute;
    top: 3px;
    right: 16%;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e91e63;
    color: #fff;
    font-size: 0.7rem;
    line-height: 18px;
}

@media (max-width: 900px) {
    main.container {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-catchcopy {
        display: none;
    }

    .header-title img {
        max-height: 38px;
    }

    .header-title span {
        font-size: 1.45rem;
    }

    .header-actions {
        justify-content: center;
        margin-top: 8px;
    }

    .header-actions .header-icon-button:not(.header-icon-button-danger) {
        display: none;
    }

    .header-login-button {
        width: min(92vw, 360px);
        justify-content: center;
    }

    .product-page-heading h4,
    .member-shop-page h4,
    .member-profile-page h4,
    .member-withdraw-page h4 {
        font-size: 1.55rem;
        margin: 10px 0 14px;
    }

    .product-grid.row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .product-grid.row .col {
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 10px;
    }

    .product-card .media-box {
        min-height: 128px;
    }

    .product-card .card-content {
        padding: 10px;
        gap: 8px;
    }

    .product-card .title-clamp {
        font-size: 0.95rem;
    }

    .product-card .price {
        font-size: 1.08rem;
    }

    .product-card-footer {
        display: none;
    }

    .product-popover {
        width: 100vw;
        max-width: 100vw;
        max-height: 92vh;
        inset: auto auto 0 0 !important;
        transform: translateY(10px);
        border-radius: 14px 14px 0 0;
    }

    .product-popover:popover-open {
        transform: translateY(0);
    }

    .product-popover .popover-img-box {
        height: 36vh;
        min-height: 220px;
    }

    .cart-add-inline {
        justify-content: space-between;
    }

    .cart-add-inline .btn {
        flex: 1;
        min-height: 46px;
    }

    .cart-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "main delete"
            "price subtotal"
            "qty qty";
        gap: 10px;
        padding: 14px;
    }

    .cart-row-main {
        grid-area: main;
    }

    .cart-row > .cart-price {
        grid-area: price;
        text-align: left;
    }

    .cart-row > .cart-quantity-form {
        grid-area: qty;
        justify-content: space-between;
    }

    .cart-row > .cart-subtotal {
        grid-area: subtotal;
    }

    .cart-row > form:last-child {
        grid-area: delete;
    }

    .cart-quantity-form .quantity-stepper {
        width: 100%;
        grid-template-columns: 48px 1fr 48px;
    }

    .cart-quantity-form.is-updating::after {
        left: auto;
        right: 0;
        top: -22px;
    }

    .cart-summary {
        bottom: 62px;
        margin-bottom: 8px;
        justify-content: space-between;
        border: 1px solid #e6ecef;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(23, 37, 43, 0.12);
    }

    .member-actions {
        justify-content: stretch;
        margin-bottom: 76px;
    }

    .member-actions .btn,
    .member-actions .btn-flat,
    .member-actions form {
        width: 100%;
    }

    .member-actions form .btn,
    .member-actions form .btn-flat {
        width: 100%;
    }

    .member-profile-page,
    .member-withdraw-page,
    .member-shop-page {
        max-width: none;
    }

    .member-profile-form,
    .member-withdraw-page {
        padding: 14px;
    }

    .order-history-row,
    .order-item-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    footer.page-footer {
        padding-bottom: 72px;
    }

    .member-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        height: 64px;
        background: #fff;
        border-top: 1px solid #e6ecef;
        box-shadow: 0 -3px 14px rgba(23, 37, 43, 0.12);
    }

    .member-bottom-nav a {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #455a64;
        font-size: 0.72rem;
        font-weight: 800;
    }

    .member-bottom-nav a.active {
        color: #c62828;
    }

    .member-bottom-nav .material-icons {
        font-size: 24px;
    }
}

/* ============================================================
     Product catalog polish
============================================================ */
:root {
    --ec-bg: #f6f7f9;
    --ec-surface: #ffffff;
    --ec-line: #e3e8ed;
    --ec-text: #14242b;
    --ec-muted: #667985;
    --ec-accent: #e53935;
    --ec-brand: #ffd83d;
    --ec-green: #228b45;
}

body {
    background: var(--ec-bg);
}

header {
    background: var(--ec-surface);
    border-bottom: 1px solid var(--ec-line);
}

.header-title span {
    color: var(--ec-text);
}

.product-page-heading {
    margin: 18px 0 16px;
}

.product-page-heading h4 {
    color: var(--ec-text);
    font-size: 1.55rem;
    letter-spacing: 0;
}

.product-grid.row {
    align-items: stretch;
    row-gap: 16px;
}

.product-grid.row .col {
    display: flex;
    margin-bottom: 0;
}

.product-card-link {
    display: flex;
    width: 100%;
}

.product-card {
    width: 100%;
    height: 318px;
    border: 1px solid var(--ec-line);
    border-radius: 8px;
    background: var(--ec-surface);
    box-shadow: 0 1px 2px rgba(20, 36, 43, 0.04), 0 8px 22px rgba(20, 36, 43, 0.06);
    transform: translateZ(0);
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-3px);
    border-color: #d3dbe2;
    box-shadow: 0 4px 12px rgba(20, 36, 43, 0.08), 0 18px 34px rgba(20, 36, 43, 0.1);
}

.product-card .media-box {
    height: 176px;
    min-height: 176px;
    aspect-ratio: auto;
    background: linear-gradient(180deg, #fbfcfd 0%, #f0f3f5 100%);
    border-bottom: 1px solid #edf1f4;
}

.product-card .media-box img {
    padding: 12px;
}

.product-card .media-box .noimage-wrap {
    color: #b5c0c7;
}

.product-card .card-content {
    height: 142px;
    padding: 12px;
    gap: 8px;
}

.product-card .title-clamp {
    height: 42px;
    min-height: 42px;
    color: var(--ec-text);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
}

.product-card .price-row {
    min-height: 30px;
    margin-top: 0;
    gap: 6px;
}

.price-label {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fff4cf;
    color: #715400;
    font-size: 0.72rem;
}

.product-card .price {
    color: var(--ec-accent);
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1;
}

.tax-label {
    color: var(--ec-muted);
    font-size: 0.72rem;
}

.product-card-footer {
    height: 28px;
    margin-top: auto;
    padding-top: 7px;
    color: var(--ec-muted);
    font-size: 0.76rem;
}

.product-card-footer span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-popover {
    border-radius: 8px;
    border: 1px solid var(--ec-line);
    box-shadow: 0 24px 64px rgba(20, 36, 43, 0.28);
}

.popover-heading {
    background: var(--ec-surface);
}

.product-popover .popover-heading h5 {
    color: var(--ec-text);
}

.popover-price-box strong {
    color: var(--ec-accent);
}

.product-popover .popover-footer .btn,
.member-entry-button,
.header-login-button {
    background: var(--ec-green);
    box-shadow: 0 8px 18px rgba(34, 139, 69, 0.22);
}

.product-popover .popover-footer .btn:hover,
.product-popover .popover-footer .btn:focus,
.member-entry-button:hover,
.member-entry-button:focus,
.header-login-button:hover,
.header-login-button:focus {
    background: #176a33;
}

.quantity-stepper {
    border-color: #cfd8df;
    border-radius: 8px;
}

.quantity-step-button {
    background: #f1f4f6;
}

.quantity-step-button:hover,
.quantity-step-button:focus {
    background: var(--ec-brand);
}

@media (max-width: 900px) {
    header {
        background: var(--ec-surface);
    }

    .product-page-heading {
        margin: 14px 0 12px;
    }

    .product-page-heading h4 {
        font-size: 1.28rem;
    }

    .product-grid.row {
        row-gap: 10px;
    }

    .product-card {
        height: 270px;
    }

    .product-card .media-box {
        height: 138px;
        min-height: 138px;
    }

    .product-card .media-box img {
        padding: 8px;
    }

    .product-card .card-content {
        height: 132px;
        padding: 10px;
    }

    .product-card .title-clamp {
        height: 40px;
        min-height: 40px;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .product-card .price-row {
        min-height: 28px;
    }

    .product-card .price {
        font-size: 1.08rem;
    }

    .price-label,
    .tax-label {
        font-size: 0.68rem;
    }

    .product-card-footer {
        display: flex;
        height: 24px;
        font-size: 0.68rem;
    }
}

@media (max-width: 380px) {
    .product-card {
        height: 252px;
    }

    .product-card .media-box {
        height: 122px;
        min-height: 122px;
    }

    .product-card .card-content {
        height: 130px;
        padding: 9px;
    }

    .product-card-footer {
        display: none;
    }
}

/* ============================================================
     Catalog search/filter
============================================================ */
.catalog-filter {
    margin: -8px 0 28px;
    padding: 14px;
    border: 1px solid #dfe7ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(19, 35, 43, 0.06);
}

.catalog-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #dbe4ea;
    border-radius: 12px;
    background: #f8fafb;
}

.catalog-filter-basic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto 112px auto;
    gap: 10px;
    align-items: center;
}

.catalog-search .material-icons {
    color: #6a7d88;
}

.catalog-search input[type="search"] {
    width: 100%;
    height: 46px;
    margin: 0;
    border: 0 !important;
    box-shadow: none !important;
    color: #13232b;
    font-weight: 800;
}

.catalog-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
    align-items: end;
    display: none;
}

.catalog-filter-grid.is-open {
    display: grid;
}

.catalog-filter label {
    display: grid;
    gap: 6px;
    color: #536874;
    font-size: 0.74rem;
    font-weight: 900;
}

.catalog-per-page {
    min-width: 112px;
}

.catalog-per-page span {
    font-size: 0.68rem;
    line-height: 1;
}

.catalog-filter select,
.catalog-filter input[type="number"] {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    background: #fff;
    color: #13232b;
    font-weight: 800;
}

.catalog-filter select {
    appearance: auto;
}

.catalog-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
}

.catalog-submit-button,
.catalog-detail-toggle {
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: #13232b;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.catalog-detail-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #13232b;
    border: 1px solid #dbe4ea;
}

.catalog-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    background: #f1f4f6;
    color: #536874;
    font-weight: 900;
    white-space: nowrap;
}

.range-field-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    background: #fff;
}

.range-field-wrap input[type="range"] {
    width: 100%;
    margin: 0;
    accent-color: #13232b;
}

.range-field-wrap b {
    color: #13232b;
    font-size: 0.82rem;
    font-weight: 900;
    text-align: right;
}

.catalog-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 180px;
    margin-bottom: 24px;
    border: 1px dashed #cfd9e0;
    border-radius: 14px;
    background: #fff;
    color: #536874;
    font-weight: 900;
}

.catalog-empty .material-icons {
    font-size: 42px;
}

@media (max-width: 900px) {
    .catalog-filter {
        margin: -2px 0 18px;
        padding: 12px;
        border-radius: 12px;
    }

    .catalog-filter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .catalog-filter-basic {
        grid-template-columns: 1fr auto;
    }

    .catalog-per-page {
        grid-column: 1 / 2;
    }

    .catalog-submit-button,
    .catalog-reset-button,
    .catalog-detail-toggle {
        min-height: 42px;
    }

    .catalog-reset-button {
        grid-column: 1 / 2;
        justify-self: stretch;
    }

    .catalog-detail-toggle {
        grid-column: 2 / 3;
        justify-content: center;
    }

    .catalog-filter-grid label {
        grid-column: 1 / -1;
    }
}

/* Strong mobile popover override */
@media (max-width: 900px) {
    .product-popover,
    .product-popover:popover-open {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        width: 100dvw !important;
        max-width: 100dvw !important;
        height: auto !important;
        max-height: 88dvh !important;
        margin: 0 !important;
        border-radius: 18px 18px 0 0 !important;
        overflow-y: auto !important;
        transform: translate3d(0, 0, 0) !important;
        z-index: 1000 !important;
    }

    .product-popover::backdrop {
        background: rgba(19, 35, 43, 0.5);
        backdrop-filter: blur(2px);
    }

    .product-popover .popover-heading {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
    }

    .product-popover .popover-footer {
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: #fff;
        box-shadow: 0 -10px 24px rgba(19, 35, 43, 0.1);
    }
}

/* ============================================================
     Bespoke catalog redesign
============================================================ */
.catalog-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 8px 0 28px;
}

.catalog-eyebrow {
    margin: 0 0 6px;
    color: #7a8790;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalog-hero h1 {
    margin: 0;
    color: #13232b;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.15;
}

.catalog-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dde5eb;
    border-radius: 999px;
    background: #fff;
    color: #536874;
    font-size: 0.78rem;
    font-weight: 900;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.product-grid .product-card {
    width: 100%;
    height: 386px;
    margin: 0;
    border: 1px solid #dfe7ed;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(19, 35, 43, 0.04), 0 16px 38px rgba(19, 35, 43, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-grid .product-card:hover,
.product-grid .product-card:focus-within {
    transform: translateY(-5px);
    border-color: #cbd6dd;
    box-shadow: 0 8px 20px rgba(19, 35, 43, 0.1), 0 28px 54px rgba(19, 35, 43, 0.14);
}

.product-card-button {
    display: grid;
    grid-template-rows: 224px 162px;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.product-card-button .media-box {
    width: 100%;
    height: 224px;
    min-height: 224px;
    background:
        radial-gradient(circle at 50% 42%, #ffffff 0%, #ffffff 34%, #f6f8fa 72%, #eef3f6 100%);
    border-bottom: 1px solid #edf2f5;
}

.product-card-button .media-box img {
    padding: 18px;
}

.product-card-button .noimage-wrap {
    color: #b6c1c8;
}

.product-card-button .noimage-wrap .material-icons {
    font-size: 70px;
}

.product-card-body {
    position: relative;
    display: grid;
    grid-template-rows: 48px 42px 34px;
    gap: 12px;
    padding: 16px 16px 14px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
}

.stock-badge.is-out {
    background: #fde2e2;
    color: #b42318;
}

.product-card-body > .stock-badge {
    position: absolute;
    right: 14px;
    bottom: 50px;
}

.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #13232b;
    font-size: 1.04rem;
    font-weight: 900;
    line-height: 1.38;
    word-break: break-word;
}

.product-card-body .price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
}

.product-card-body .price-label {
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fff0b8;
    color: #6d5100;
    font-size: 0.72rem;
    font-weight: 900;
}

.product-card-body .price {
    color: #e53935;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
}

.product-card-body .tax-label {
    color: #657985;
    font-size: 0.76rem;
    font-weight: 900;
}

.product-card-body .product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    min-height: 34px;
    padding: 10px 0 0;
    border-top: 1px solid #edf2f5;
    color: #647985;
    font-size: 0.78rem;
    font-weight: 900;
}

.product-card-body .product-card-footer span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-body .product-card-footer .material-icons {
    color: #f9a825;
    font-size: 19px;
}

.product-popover {
    width: min(560px, 92vw);
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(19, 35, 43, 0.32);
}

.popover-heading {
    padding: 18px 22px;
    border-bottom: 1px solid #eef3f6;
}

.product-popover .popover-heading h5 {
    color: #13232b;
    font-size: 1.25rem;
    font-weight: 900;
}

.popover-close-button {
    background: #f1f5f7;
}

.product-popover .popover-img-box {
    height: 320px;
    background: radial-gradient(circle at 50% 44%, #fff 0%, #fff 34%, #f6f8fa 74%, #eef3f6 100%);
}

.product-popover .popover-img-box img {
    padding: 18px;
}

.popover-price-box {
    margin-bottom: 14px;
}

.popover-price-box strong {
    color: #e53935;
    font-size: 1.8rem;
}

.popover-price-box .stock-badge {
    margin-left: 10px;
    vertical-align: middle;
}

.product-popover .meta {
    border-top: 1px solid #edf2f5;
}

.product-popover .popover-footer {
    padding: 18px 22px;
    background: #fafbfc;
}

.cart-add-inline .btn,
.member-entry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #13232b !important;
    color: #fff !important;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(19, 35, 43, 0.22);
}

.cart-add-inline .btn:hover,
.cart-add-inline .btn:focus,
.member-entry-button:hover,
.member-entry-button:focus {
    background: #263942 !important;
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .catalog-hero {
        margin: 4px 0 16px;
    }

    .catalog-count {
        display: none;
    }

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

    .product-grid .product-card {
        height: 292px;
        border-radius: 10px;
    }

    .product-card-button {
        grid-template-rows: 146px 146px;
    }

    .product-card-button .media-box {
        height: 146px;
        min-height: 146px;
    }

    .product-card-button .media-box img {
        padding: 10px;
    }

    .product-card-button .noimage-wrap .material-icons {
        font-size: 52px;
    }

    .product-card-body {
        grid-template-rows: 40px 36px 28px;
        gap: 9px;
        padding: 11px;
    }

    .product-title {
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .product-card-body .price-row {
        min-height: 36px;
        gap: 5px;
    }

    .product-card-body .price-label {
        height: 21px;
        padding: 0 7px;
        font-size: 0.66rem;
    }

    .product-card-body .price {
        font-size: 1.08rem;
    }

    .product-card-body .tax-label {
        font-size: 0.66rem;
    }

    .product-card-body .product-card-footer {
        height: 28px;
        min-height: 28px;
        padding-top: 7px;
        font-size: 0.64rem;
    }

    .product-popover {
        position: fixed;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100vw;
        max-width: 100vw;
        max-height: 88dvh;
        margin: 0;
        border-radius: 18px 18px 0 0;
        overflow: auto;
        z-index: 1000;
        transform: translateY(100%);
    }

    .product-popover:popover-open {
        transform: translateY(0);
    }

    .product-popover::backdrop {
        background: rgba(19, 35, 43, 0.42);
        backdrop-filter: blur(3px);
    }

    .product-popover .popover-heading {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
    }

    .product-popover .popover-img-box {
        height: 34dvh;
        min-height: 210px;
        max-height: 280px;
    }

    .product-popover .popover-content {
        max-height: none;
        overflow: visible;
    }

    .product-popover .popover-footer {
        position: sticky;
        bottom: 0;
        background: #fff;
        box-shadow: 0 -8px 18px rgba(19, 35, 43, 0.08);
    }

    .product-popover .cart-add-inline {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 12px;
    }

    .product-popover .cart-add-inline .btn,
    .product-popover .member-entry-button {
        width: 100%;
        min-width: 0;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .product-grid .product-card {
        height: 274px;
    }

    .product-card-button {
        grid-template-rows: 136px 138px;
    }

    .product-card-button .media-box {
        height: 136px;
        min-height: 136px;
    }

    .product-card-body {
        grid-template-rows: 40px 34px 0;
    }

    .product-card-body .product-card-footer {
        display: none;
    }
}

/* ============================================================
     Yellow brand header
============================================================ */
header.site-header {
    background: #fbc02d;
    border-bottom: 1px solid rgba(20, 36, 43, 0.14);
    padding: 10px 0;
    text-align: left;
    box-shadow: 0 2px 10px rgba(20, 36, 43, 0.12);
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, 94%);
}

.header-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    color: #14242b;
}

.header-brand:hover,
.header-brand:focus {
    color: #14242b;
}

.header-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 4px 12px rgba(20, 36, 43, 0.1);
    flex: 0 0 auto;
}

.header-logo-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.header-brand-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.header-title-text {
    color: #14242b;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
}

header.site-header .header-logo-mark {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

header.site-header .header-logo-mark img {
    width: 46px;
    height: 46px;
}

header.site-header .header-title-text {
    color: #e91e63;
}

.header-catchcopy {
    margin: 0;
    color: rgba(20, 36, 43, 0.78);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.header-actions {
    justify-content: flex-end;
    align-items: center;
    margin-top: 0;
    gap: 8px;
    flex: 0 0 auto;
}

.header-icon-button {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.78);
    color: #14242b;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(20, 36, 43, 0.12);
}

.header-icon-button:hover,
.header-icon-button:focus {
    background: #14242b;
    color: #fff;
}

.header-icon-button-danger {
    background: #14242b;
    color: #fff;
}

.header-icon-button-danger:hover,
.header-icon-button-danger:focus {
    background: #c62828;
}

.cart-count-badge {
    top: -7px;
    right: -7px;
    background: #c62828;
    border-color: #fbc02d;
}

.header-login-button {
    min-height: 44px;
    border-radius: 12px;
    background: #14242b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(20, 36, 43, 0.18);
}

.header-login-button:hover,
.header-login-button:focus {
    background: #263238;
    color: #fff;
}

footer.page-footer {
    background-color: #fbc02d;
}

footer.page-footer .container {
    color: #13232b !important;
}

footer.page-footer .footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin: 0 0 10px;
    background: transparent;
    box-shadow: none;
    height: auto;
    min-height: 0;
    line-height: 1.5;
}

footer.page-footer .footer-policy-links a {
    color: #13232b !important;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

main.container .policy-page {
    max-width: 880px;
    margin: 34px auto 56px;
    color: #17252b;
    font-size: 1rem;
    line-height: 1.8;
}

main.container .policy-page h1 {
    margin: 0 0 24px;
    font-size: 1.75rem !important;
    font-weight: 700;
    line-height: 1.35;
}

main.container .policy-page h2 {
    margin: 28px 0 10px;
    font-size: 1.18rem !important;
    font-weight: 700;
    line-height: 1.45;
}

main.container .policy-page p,
main.container .policy-page li,
main.container .policy-definition-list dt,
main.container .policy-definition-list dd {
    font-size: 1rem;
    line-height: 1.8;
}

main.container .policy-page p {
    margin: 0 0 12px;
}

main.container .policy-page ul,
main.container .policy-page ol {
    margin: 0 0 16px 1.4rem;
    padding: 0;
}

main.container .policy-page a {
    color: #00695c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

main.container .policy-definition-list {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-top: 1px solid rgba(23, 37, 43, 0.18);
}

main.container .policy-definition-list dt,
main.container .policy-definition-list dd {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(23, 37, 43, 0.18);
}

main.container .policy-definition-list dt {
    font-weight: 700;
}

.policy-alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #ef9a9a;
    border-radius: 8px;
    background: #ffebee;
    color: #8a1c1c;
    font-weight: 700;
    line-height: 1.7;
}

.order-policy-notice {
    margin: 18px 0 8px;
    padding: 16px 18px;
    border-radius: 8px;
    background: #fff8e1;
    border: 1px solid #fbc02d;
}

.order-policy-notice p {
    margin: 0 0 8px;
    line-height: 1.7;
}

.order-policy-notice p:last-child {
    margin-bottom: 0;
}

.order-confirmation-terms {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 8px 14px;
    margin: 14px 0;
}

.order-confirmation-terms dt,
.order-confirmation-terms dd {
    margin: 0;
    line-height: 1.65;
}

.order-confirmation-terms dt {
    color: #263238;
    font-weight: 700;
}

.order-policy-notice a {
    color: #00695c;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-notice[hidden] {
    display: none !important;
}

.cookie-notice {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 1200;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-notice-body {
    width: min(760px, 100%);
    padding: 16px 18px;
    border: 1px solid rgba(19, 35, 43, 0.18);
    border-radius: 8px;
    background: #ffffff;
    color: #13232b;
    box-shadow: 0 12px 36px rgba(19, 35, 43, 0.18);
    pointer-events: auto;
}

.cookie-notice-body p {
    margin: 0 0 12px;
    line-height: 1.7;
}

.cookie-notice-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.cookie-notice-actions a {
    color: #00695c;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    main.container .policy-page {
        margin: 24px auto 44px;
    }

    main.container .policy-page h1 {
        font-size: 1.45rem !important;
    }

    main.container .policy-page h2 {
        font-size: 1.08rem !important;
    }

    main.container .policy-definition-list {
        display: block;
    }

    main.container .policy-definition-list dt {
        padding-bottom: 4px;
        border-bottom: 0;
    }

    main.container .policy-definition-list dd {
        padding-top: 0;
    }

    .order-confirmation-terms {
        display: block;
    }

    .order-confirmation-terms dt {
        margin-top: 10px;
    }

    .order-confirmation-terms dt:first-child {
        margin-top: 0;
    }

    .cookie-notice {
        right: 10px;
        bottom: 82px;
        left: 10px;
    }

    .cookie-notice-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    header.site-header {
        background: #fbc02d;
        padding: 8px 0;
    }

    .header-shell {
        width: 94%;
        gap: 10px;
    }

    .header-logo-mark {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .header-logo-mark img {
        width: 29px;
        height: 29px;
    }

    header.site-header .header-logo-mark {
        width: auto;
        height: auto;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    header.site-header .header-logo-mark img {
        width: 38px;
        height: 38px;
    }

    .header-title-text {
        font-size: 1.14rem;
    }

    .header-catchcopy {
        display: block;
        max-width: 44vw;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.68rem;
    }

    .header-actions {
        margin-top: 0;
        justify-content: flex-end;
    }

    .header-actions .header-icon-button:not(.header-icon-button-danger) {
        display: none;
    }

    .header-icon-button {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .header-login-button {
        width: auto;
        min-height: 40px;
        padding: 0 12px;
        border-radius: 10px;
        white-space: nowrap;
    }

    .header-login-button span {
        font-size: 0.88rem;
    }
}

@media (max-width: 430px) {
    .header-catchcopy {
        display: none;
    }

    .header-title-text {
        font-size: 1.05rem;
    }
}

/* ============================================================
     Refined store design pass
============================================================ */
:root {
    --store-yellow: #fbc02d;
    --store-ink: #13232b;
    --store-muted: #667884;
    --store-bg: #f4f6f8;
    --store-card: #ffffff;
    --store-border: #e1e7ec;
    --store-red: #e53935;
}

body {
    background: var(--store-bg);
    color: var(--store-ink);
}

header.site-header,
footer.page-footer {
    background: var(--store-yellow);
}

main.container {
    width: min(1120px, 92%);
    padding-top: 36px;
}

.product-page-heading {
    margin: 0 0 24px;
}

.product-page-heading h4 {
    color: var(--store-ink);
    font-size: 1.55rem;
    font-weight: 900;
}

.product-grid.row {
    row-gap: 28px;
    margin-left: -18px;
    margin-right: -18px;
}

.product-grid.row .col {
    padding-left: 18px;
    padding-right: 18px;
}

.product-card-link {
    text-decoration: none;
}

.product-card {
    height: 366px;
    border-radius: 8px;
    border: 1px solid var(--store-border);
    background: var(--store-card);
    box-shadow: 0 1px 2px rgba(19, 35, 43, 0.04), 0 14px 34px rgba(19, 35, 43, 0.07);
    overflow: hidden;
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-4px);
    border-color: #cfd8df;
    box-shadow: 0 8px 18px rgba(19, 35, 43, 0.08), 0 24px 44px rgba(19, 35, 43, 0.12);
}

.product-card .media-box {
    height: 210px;
    min-height: 210px;
    background: #f8fafb;
    border-bottom: 1px solid #edf1f4;
}

.product-card .media-box img {
    padding: 18px;
}

.product-card .media-box .noimage-wrap {
    color: #b8c3ca;
}

.product-card .media-box .noimage-wrap .material-icons {
    font-size: 66px;
}

.product-card .card-content {
    height: 156px;
    padding: 16px 16px 14px;
    gap: 10px;
}

.product-card .title-clamp {
    height: 44px;
    min-height: 44px;
    color: var(--store-ink);
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.36;
}

.product-card .price-row {
    min-height: 34px;
    gap: 8px;
}

.price-label {
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff1bd;
    color: #6f5300;
    font-size: 0.72rem;
    font-weight: 900;
}

.product-card .price {
    color: var(--store-red);
    font-size: 1.34rem;
    font-weight: 900;
}

.tax-label {
    color: var(--store-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.product-card-footer {
    height: 30px;
    padding-top: 9px;
    border-top: 1px solid #edf1f4;
    color: var(--store-muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.product-card-footer .material-icons {
    color: #f9a825;
}

.product-popover {
    width: min(520px, 92vw);
    border-radius: 10px;
}

.popover-heading {
    padding: 18px 20px;
}

.product-popover .popover-heading h5 {
    font-size: 1.22rem;
}

.product-popover .popover-img-box {
    height: 300px;
    background: #f8fafb;
}

.product-popover .popover-img-box img {
    padding: 16px;
}

.popover-price-box strong {
    color: var(--store-red);
}

.product-popover .popover-footer {
    padding: 16px 20px;
}

.product-popover .popover-footer .btn,
.member-entry-button,
.header-login-button {
    background: var(--store-ink);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(19, 35, 43, 0.22);
}

.product-popover .popover-footer .btn:hover,
.product-popover .popover-footer .btn:focus,
.member-entry-button:hover,
.member-entry-button:focus,
.header-login-button:hover,
.header-login-button:focus {
    background: #263942;
}

.quantity-stepper {
    border-color: #ccd6dd;
    border-radius: 8px;
}

.quantity-step-button {
    background: #f1f4f6;
    color: var(--store-ink);
}

.quantity-step-button:hover,
.quantity-step-button:focus {
    background: var(--store-yellow);
}

.member-bottom-nav a.active {
    color: var(--store-red);
}

@media (max-width: 900px) {
    main.container {
        width: 100%;
        padding-top: 18px;
    }

    .product-page-heading {
        margin: 0 0 14px;
    }

    .product-grid.row {
        row-gap: 12px;
        margin-left: -6px;
        margin-right: -6px;
    }

    .product-grid.row .col {
        padding-left: 6px;
        padding-right: 6px;
    }

    .product-card {
        height: 286px;
        border-radius: 8px;
    }

    .product-card .media-box {
        height: 148px;
        min-height: 148px;
    }

    .product-card .media-box img {
        padding: 10px;
    }

    .product-card .card-content {
        height: 138px;
        padding: 11px;
        gap: 8px;
    }

    .product-card .title-clamp {
        height: 40px;
        min-height: 40px;
        font-size: 0.9rem;
    }

    .product-card .price-row {
        min-height: 30px;
    }

    .product-card .price {
        font-size: 1.12rem;
    }

    .price-label {
        height: 21px;
        padding: 0 7px;
        font-size: 0.66rem;
    }

    .tax-label {
        font-size: 0.68rem;
    }

    .product-card-footer {
        height: 24px;
        padding-top: 6px;
        font-size: 0.66rem;
    }

    .product-popover .popover-img-box {
        height: 36vh;
        min-height: 220px;
    }
}

@media (max-width: 380px) {
    .product-card {
        height: 268px;
    }

    .product-card .media-box {
        height: 138px;
        min-height: 138px;
    }

    .product-card .card-content {
        height: 130px;
    }

    .product-card-footer {
        display: none;
    }
}
