.shop {
    --green-950: #06130e;
    --green-800: #10281c;
    --gold: #c9a962;
    --gold-deep: #a8883e;
    --cream: #f3ead6;
    --ivory: #faf7f0;
    --paper: #f6f2ea;
    --ink: #1a1814;
    --muted: #6d675c;
    --line: rgba(201, 169, 98, 0.35);
    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --display: "Cinzel", "Cormorant Garamond", serif;
    --sans: "Outfit", "Helvetica Neue", sans-serif;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    line-height: 1.6;
}

.shop *,
.shop *::before,
.shop *::after { box-sizing: border-box; }

.shop a { color: inherit; }

.shop-header {
    background: var(--green-950);
    color: var(--cream);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}
.shop-header .nav-link {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(243, 234, 214, 0.78);
}
.shop-header .nav-link.is-active,
.shop-header .nav-link:hover,
.shop-header .nav-link:focus { color: var(--gold); }
.shop-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: var(--display);
    letter-spacing: 0.16em;
    font-size: 0.86rem;
}
.shop-mark {
    width: 42px;
    height: 42px;
    background: var(--gold);
    -webkit-mask: url("../img/APRMM-Logo-Black.png") center / contain no-repeat;
    mask: url("../img/APRMM-Logo-Black.png") center / contain no-repeat;
}
.shop-nav { display: flex; align-items: center; gap: 1.4rem; }
.account-link {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
}
.account-link svg { display: block; }
.account-card { max-width: 28rem; }
.shop-nav a {
    text-decoration: none;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(243, 234, 214, 0.78);
}
.shop-nav a.is-active,
.shop-nav a:hover { color: var(--gold); }
.shop-nav span {
    display: inline-grid;
    place-items: center;
    min-width: 1.3rem;
    margin-left: 0.3rem;
    padding: 0.05rem 0.35rem;
    border-radius: 99px;
    background: var(--gold);
    color: var(--green-950);
    letter-spacing: 0;
}

.shop-main {
    padding: 2.2rem 0 4rem;
}
.shop .btn-primary,
.shop a.btn-primary { color: var(--cream); }
.shop .list-group-item {
    background: transparent;
    color: var(--ink);
}
.shop .list-group-item.active {
    background: transparent;
    color: var(--ink);
}
.shop .list-group-item.active .cat-thumb { box-shadow: 0 0 0 2px var(--gold); }
.shop-filters .filter-link {
    border-left: 2px solid transparent;
}
.shop-filters .filter-link.active {
    color: var(--ink);
    border-left-color: var(--gold);
    padding-left: 0.7rem;
}
.cat-thumb {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    flex: 0 0 36px;
    object-fit: cover;
    display: block;
    background:
        radial-gradient(circle at 50% 45%, rgba(201, 169, 98, 0.55), transparent 55%),
        var(--green-800);
}
.shop-kicker {
    margin: 0 0 0.3rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--gold-deep);
}
.shop-intro h1,
.product-detail h1 {
    margin: 0 0 0.6rem;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 0.95;
}
.shop-intro p { color: var(--muted); max-width: 46ch; }

.shop-messages { margin: 1rem auto 0; }
.shop-message { margin: 0; padding: 0.8rem 1rem; background: #e8f0dc; }
.shop-message-error { background: #f3dcdc; }

.catalog-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 2.2rem;
    align-items: start;
}
.shop-filters section + section { margin-top: 1.6rem; }
.shop-filters h2 {
    margin: 0 0 0.7rem;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
.shop-filters ul { list-style: none; margin: 0; padding: 0; }
.shop-filters a.filter-link {
    display: block;
    text-decoration: none;
    padding: 0.4rem 0 0.4rem 0.7rem;
    border-left: 2px solid transparent;
    color: var(--muted);
}
.shop-filters a.filter-link.is-active,
.shop-filters a.filter-link:hover {
    color: var(--ink);
    border-left-color: var(--gold);
}
.shop-filters a.filter-cat {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.35rem 0;
    text-decoration: none;
    color: var(--ink);
}
.shop-filters a.filter-cat:hover .filter-name,
.shop-filters a.filter-cat.is-active .filter-name { color: var(--gold-deep); }
.shop-filters a.filter-cat.is-active .filter-thumb { box-shadow: 0 0 0 2px var(--gold); }
.filter-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 36px;
    background: var(--green-950);
}
.filter-thumb img,
.filter-thumb span {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.filter-thumb span {
    background:
        radial-gradient(circle at 50% 45%, rgba(201, 169, 98, 0.55), transparent 55%),
        var(--green-800);
}
.filter-name { line-height: 1.25; }
.price-slider {
    position: relative;
    height: 28px;
}
.price-rail,
.price-track {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 13px;
    height: 2px;
    pointer-events: none;
}
.price-rail { background: rgba(26, 24, 20, 0.16); }
.price-slider input[type="range"] {
    position: absolute;
    left: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}
.price-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
}
.price-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
}
.price-readout {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}
.product-card,
.order-summary,
.shop-form {
    background: #fff;
    border: 1px solid rgba(26, 24, 20, 0.06);
}
.product-card { padding: 0 0 1.1rem; }
.product-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--green-950);
    overflow: hidden;
}
.discount-badge,
.new-badge {
    position: absolute;
    top: 0.75rem;
    z-index: 1;
    padding: 0.25rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.discount-badge {
    left: 0.75rem;
    background: var(--gold);
    color: var(--green-950);
}
.new-badge {
    right: 0.75rem;
    background: var(--cream);
    color: var(--green-950);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 45%, rgba(201, 169, 98, 0.45), transparent 42%),
        var(--green-950);
}
.product-card .product-cat,
.product-card h2,
.product-card .product-price { padding: 0; }
.product-cat {
    margin: 0 0 0.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--gold-deep);
}
.product-card h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.55rem;
}
.product-card h2 a { text-decoration: none; }
.product-price {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    align-items: baseline;
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
}
.price-old {
    color: var(--muted);
    text-decoration: line-through;
}
.price-now { font-weight: 500; }
.card-buy {
    width: calc(100% - 2rem);
    margin: 0.85rem 1rem 0;
}
.card-buy:disabled {
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(26, 24, 20, 0.16);
    cursor: default;
}

.product-detail { align-items: start; }
.product-media.large { aspect-ratio: 1; }
.product-copy { color: #4a453c; }
.stock { color: var(--muted); }
.stock.out { color: #8a3030; }
.buy-row { display: flex; gap: 0.7rem; align-items: center; }
.qty, .buy-row input { width: 5rem; }

.shop-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    background: var(--green-950);
    color: var(--cream);
    font: inherit;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    padding: 0.85rem 1.15rem;
}
.shop a.shop-button,
.shop-button { color: var(--cream); }
.shop a.shop-button:hover,
.shop-button:hover { background: var(--green-800); color: var(--cream); }
.shop a.shop-button.quiet,
.shop-button.quiet {
    background: transparent;
    color: var(--ink);
    border: 1px solid rgba(26, 24, 20, 0.2);
}

.shop-input,
.shop-field input,
.shop-field textarea,
.buy-row input,
.cart-list input {
    border: 1px solid rgba(26, 24, 20, 0.16);
    background: var(--ivory);
    color: var(--ink);
    font: inherit;
    padding: 0.7rem 0.75rem;
}
.shop-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.9rem;
}
.shop-field span,
.sr-only {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.shop-field em,
.form-error { color: #8a3030; font-style: normal; }
.shop-form { padding: 1.3rem; }

.cart-list { list-style: none; margin: 0; padding: 0; background: #fff; }
.cart-list li {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
}
.cart-list a { text-decoration: none; font-family: var(--serif); font-size: 1.35rem; }
.cart-list span { display: block; color: var(--muted); font-family: var(--sans); font-size: 0.85rem; }
.text-remove {
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
}
.cart-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0 0;
}
.cart-foot div { display: flex; gap: 0.6rem; }

.checkout-grid { align-items: start; }
.order-summary { padding: 1.2rem 1.3rem; }
.order-summary h2 {
    margin: 0 0 0.8rem;
    font-family: var(--serif);
    font-weight: 500;
}
.order-summary ul { list-style: none; margin: 0; padding: 0; }
.order-summary li,
.cart-foot p,
.order-summary > p {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.45rem 0;
}
.shop-empty a,
.product-cat a { color: var(--gold-deep); }

@media (max-width: 800px) {
    .catalog-layout,
    .product-grid { grid-template-columns: 1fr; }
    .cart-list li { grid-template-columns: 1fr 1fr; }
    .cart-foot { flex-direction: column; align-items: flex-start; }
}
