/* Shop page extras. Uses the colours and fonts from /styles.css */
.shop-main { padding: 48px 0 80px; }
.shop-toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 28px 0 32px; }
.shop-toolbar input[type="search"] { flex: 1 1 280px; max-width: 420px; padding: 14px 16px; font: inherit; font-size: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.shop-toolbar input[type="search"]:focus { outline: 2px solid var(--ring); outline-offset: 1px; }
.shop-perks { color: var(--muted); font-size: 16px; margin: 0; }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.shop-card { display: flex; flex-direction: column; }
.shop-card .product-content { flex: 1; }
.shop-card .add-btn { margin-top: 16px; width: 100%; justify-content: center; }
.shop-card .add-btn[disabled] { background: #c9cfd0; border-color: #c9cfd0; cursor: not-allowed; box-shadow: none; }
.sold-out { background: #f0e1e6; color: var(--pink-deep); }
.product-variant.low { color: var(--pink-deep); font-weight: 600; }
.shop-notice { background: var(--sage); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 24px; font-size: 16px; color: var(--ink); }
.shop-notice.warn { background: #fdecef; }
.shop-status { font-size: 18px; color: var(--muted); padding: 32px 0; }

.cart-button { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: var(--radius); padding: 10px 14px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.cart-button:hover { border-color: var(--green); color: var(--green); }
.cart-count { background: var(--pink); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; line-height: 22px; text-align: center; font-size: 13px; padding: 0 6px; }
.cart-count[hidden] { display: none; }

#cart-backdrop { position: fixed; inset: 0; background: rgba(20, 40, 44, .45); z-index: 90; }
#cart-backdrop[hidden] { display: none; }
#cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: #fff; z-index: 100; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .25s ease; box-shadow: -8px 0 30px rgba(0,0,0,.15); visibility: hidden; }
#cart-drawer.open { transform: none; visibility: visible; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 24px; }
.cart-head button { background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 10px; }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
#cart-empty { font-size: 18px; color: var(--muted); padding: 32px 0; }
#cart-items { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line img { width: 64px; height: 64px; object-fit: contain; background: #f6f6f2; border-radius: 6px; }
.cart-line-info { display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.cart-line-price { color: var(--muted); font-size: 15px; }
.qty { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty button:hover { border-color: var(--green); }
.qty .remove { width: auto; height: auto; border: 0; border-radius: 0; font-size: 15px; text-decoration: underline; color: var(--muted); margin-left: 6px; }
.cart-line-total { font-size: 17px; }
.cart-foot { border-top: 1px solid var(--line); padding: 18px 24px 24px; background: var(--cream); }
.cart-foot[hidden] { display: none; }
.fulfil { display: grid; gap: 10px; margin-bottom: 16px; }
.fulfil label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 12px 14px; cursor: pointer; font-size: 16px; }
.fulfil label:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.fulfil small { display: block; color: var(--muted); font-size: 14px; }
.sum-row { display: flex; justify-content: space-between; font-size: 17px; margin: 6px 0; }
.sum-row.total { font-size: 21px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
#ship-hint { color: var(--green); font-size: 15px; margin: 4px 0 0; min-height: 1em; }
#checkout-btn { width: 100%; justify-content: center; margin-top: 14px; font-size: 18px; padding: 16px; }
#checkout-msg { color: var(--pink-deep); font-size: 15px; margin: 10px 0 0; }
.gst-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; text-align: center; }

.thanks-card { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 0 80px; }
.thanks-card h1 { margin-bottom: 12px; }
.thanks-card p { font-size: 19px; }

@media (max-width: 1100px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 420px) { .shop-grid { grid-template-columns: 1fr; } .shop-card .product-image { height: 280px; } }
@media (max-width: 560px) { .cart-label { display: none; } .cart-button { padding: 9px 11px; } }
