/* GM Shop Frontend — Website storefront */

:root {
    --gm: #2C4A3A;
    --gm-light: #3A5F4D;
    --gold: #B8883A;
    --gold-hover: #D4A94E;
    --cream: #FAF8F3;
    --cream-2: #F5F1EA;
    --text: #1C1A16;
    --text-muted: #8A847A;
    --border: #EAE4D8;
    --bg-card: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(28,26,22,0.03), 0 8px 24px -16px rgba(28,26,22,0.22);
    --shadow-lift: 0 14px 34px -16px rgba(28,26,22,0.30);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --serif: 'EB Garamond', Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', sans-serif;
}

.gm-shop-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 80px;
    font-family: var(--sans);
    color: var(--text);
    min-height: 70vh;
    -webkit-font-smoothing: antialiased;
}
.gm-shop-wrapper * { box-sizing: border-box; }
.gm-ico { display: inline-block; vertical-align: -0.18em; flex: none; }

/* ── Header ── */
.gm-hd {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.86);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    margin: 0 -20px 0;
}
.gm-hd-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 62px; display: flex; align-items: center; justify-content: space-between; }
.gm-hd-logo { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--gm); text-decoration: none; letter-spacing: 0.2px; cursor: pointer; }
.gm-hd-cart {
    position: relative; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--border); background: #fff; color: var(--gm);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.gm-hd-cart:hover { border-color: var(--gm); transform: translateY(-1px); }
.gm-hd-cart.active { background: var(--gm); color: #fff; border-color: var(--gm); }
.gm-hd-cart .badge {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
    border-radius: 10px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700;
    line-height: 20px; text-align: center; padding: 0 5px; border: 2px solid #fff;
}

.gm-stage { padding-top: 28px; }

/* ── Test bar ── */
.gm-testbar {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #FEF6E4; color: #8A6A1F; border: 1px solid #F0E0BC;
    border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 500;
    margin: 16px 0 -4px;
}
.gm-testbar b { font-weight: 700; letter-spacing: 0.5px; }

/* ── Loading ── */
.gm-shop-loading { text-align: center; padding: 90px 20px; color: var(--text-muted); }
.gm-shop-spinner { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--gm); border-radius: 50%; animation: gs-spin 0.8s linear infinite; margin: 0 auto 14px; }
@keyframes gs-spin { to { transform: rotate(360deg); } }

/* ── Shop hero ── */
.gm-shop-hero { text-align: center; margin-bottom: 40px; }
.gm-shop-hero h1 { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--gm); margin: 0; }
.gm-shop-hero h1::after { content: ''; display: block; width: 46px; height: 2px; background: var(--gold); margin: 14px auto 0; border-radius: 2px; }
.gm-shop-hero p { color: var(--text-muted); font-size: 16px; margin: 14px 0 0; }

/* ── Product grid ── */
.gm-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.gm-product-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; cursor: pointer;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.gm-product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #ddd3c0; }
.gm-product-card .image { position: relative; width: 100%; aspect-ratio: 4/5; background: var(--cream); overflow: hidden; }
.gm-product-card .image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.gm-product-card:hover .image img { transform: scale(1.045); }
.gm-product-card .info { padding: 16px 18px 20px; }
.gm-product-card .name { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--gm); margin: 0 0 6px; line-height: 1.2; }
.gm-product-card .desc { font-size: 13.5px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gm-product-card .price-row { display: flex; align-items: baseline; gap: 8px; }
.gm-product-card .price { font-size: 19px; font-weight: 700; color: var(--gold); }
.compare { text-decoration: line-through; color: var(--text-muted); font-size: 14px; font-weight: 400; }

/* ── Badges ── */
.gm-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 600; margin-top: 10px; }
.gm-badge.sign { background: #F3EFE2; color: #8A6A1F; }
.gm-badge.sold { position: absolute; top: 10px; left: 10px; margin: 0; background: rgba(28,26,22,0.78); color: #fff; backdrop-filter: blur(4px); }
.gm-badge.save { position: absolute; top: 10px; right: 10px; margin: 0; background: var(--gm); color: #fff; }
.gm-card-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #2E7D52; margin-top: 9px; }
.gm-card-stock .dot { width: 7px; height: 7px; border-radius: 50%; background: #34C759; flex: none; }

/* ── Back button ── */
.gm-back {
    display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted);
    background: none; border: none; font-family: var(--sans); font-size: 14px; padding: 0;
    margin-bottom: 22px; cursor: pointer; transition: color 0.2s; font-weight: 500;
}
.gm-back:hover { color: var(--gm); }

/* ── Product detail ── */
.gm-product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.gm-product-detail .gallery img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.gm-product-detail .gallery-empty { width: 100%; aspect-ratio: 4/5; background: var(--cream); border-radius: var(--radius); }
.gm-product-detail .meta h1 { font-family: var(--serif); font-size: 38px; font-weight: 600; color: var(--gm); margin: 0 0 12px; line-height: 1.12; }
.gm-product-detail .meta .price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.gm-product-detail .meta .price { font-size: 28px; font-weight: 700; color: var(--gold); }
.gm-product-detail .meta .description { font-size: 15px; line-height: 1.7; color: #4A463E; margin-bottom: 24px; }
.gm-stock-out { color: #C2410C; font-weight: 600; margin-bottom: 16px; }
.gm-save { display: inline-flex; align-items: center; background: #EAF2EC; color: var(--gm); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.gm-stock-in { display: inline-flex; align-items: center; gap: 7px; color: #2E7D52; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.gm-stock-in .dot { width: 8px; height: 8px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 3px rgba(52,199,89,0.18); flex: none; }
.gm-usp { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.gm-usp li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: #4A463E; }
.gm-usp li .gm-ico { color: var(--gm); flex: none; }
.gm-usp li b { color: var(--text); font-weight: 700; }
.gm-login-hint { text-align: center; margin-top: 14px; font-size: 14px; color: var(--text-muted); }
.gm-login-hint a { color: var(--gm); font-weight: 600; }

/* ── Sign option ── */
.gm-sign-option { padding: 16px 18px; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 22px; }
.gm-sign-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--gm); }
.gm-sign-toggle span { display: inline-flex; align-items: center; gap: 7px; }
.gm-sign-toggle input { width: 18px; height: 18px; accent-color: var(--gm); cursor: pointer; }
.gm-sign-fields { margin-top: 14px; display: none; }
.gm-sign-fields.active { display: block; animation: gm-fade 0.25s var(--ease); }
@keyframes gm-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.gm-sign-fields input, .gm-sign-fields textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--sans); margin-bottom: 8px; transition: border-color 0.2s, box-shadow 0.2s;
}
.gm-sign-fields input:focus, .gm-sign-fields textarea:focus { outline: none; border-color: var(--gm); box-shadow: 0 0 0 3px rgba(44,74,58,0.1); }

/* ── Variant selector ── */
.gm-variant-group { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.gm-variant-btn { padding: 10px 18px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; font-size: 14px; font-family: var(--sans); cursor: pointer; transition: all 0.15s; }
.gm-variant-btn:hover { border-color: var(--gm); }
.gm-variant-btn.selected { border-color: var(--gm); background: var(--gm); color: #fff; }

/* ── Buy row (quantity + add) ── */
.gm-buy-row { display: flex; gap: 12px; align-items: stretch; }
.gm-quantity { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; flex: none; }
.gm-quantity button { width: 46px; height: 52px; border: none; background: var(--cream); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.gm-quantity button:hover { background: var(--cream-2); }
.gm-quantity input { width: 44px; height: 52px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 16px; font-weight: 600; font-family: var(--sans); background: #fff; }
.gm-quantity.sm button { width: 32px; height: 32px; }
.gm-quantity.sm input { width: 34px; height: 32px; font-size: 14px; }

/* ── Buttons ── */
.gm-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    padding: 15px 20px; border: none; border-radius: var(--radius-sm); background: var(--gm); color: #fff;
    font-size: 16px; font-weight: 600; font-family: var(--sans); cursor: pointer;
    transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.gm-btn-primary:hover { background: var(--gm-light); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.gm-btn-primary:active { transform: translateY(0); }
.gm-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.gm-add-to-cart { flex: 1; }

/* ── Cart ── */
.gm-page-title { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--gm); margin: 0 0 18px; }
.gm-cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.gm-cart-items { display: flex; flex-direction: column; }
.gm-cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: center; }
.gm-cart-item:first-child { padding-top: 0; }
.gm-cart-item .thumb { width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); }
.gm-cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gm-cart-item .name { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--gm); }
.gm-cart-item .variant { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.gm-cart-item .signed { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--gold); margin: 4px 0 8px; }
.gm-cart-item .gm-quantity { margin-top: 8px; }
.gm-cart-item .side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.gm-cart-item .price { font-size: 16px; font-weight: 700; color: var(--text); }
.gm-cart-item .remove { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 6px; transition: color 0.2s, background 0.2s; }
.gm-cart-item .remove:hover { color: #C2410C; background: #FBEAE2; }

/* ── Summary panel ── */
.gm-summary { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.gm-summary.sticky { position: sticky; top: 86px; }
.gm-summary h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); margin: 0 0 14px; }
.gm-summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; color: #5A554C; }
.gm-summary .row.line { font-size: 13.5px; color: var(--text); }
.gm-summary .divider { height: 1px; background: var(--border); margin: 10px 0; }
.gm-summary .row.total { font-size: 19px; font-weight: 700; color: var(--text); border-top: 1.5px solid var(--text); padding-top: 12px; margin-top: 8px; }
.gm-summary .gm-btn-primary { margin-top: 16px; }
.gm-trust { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); margin-top: 12px; }

/* ── Empty state ── */
.gm-empty { text-align: center; padding: 70px 20px; }
.gm-empty-ico { color: var(--border); margin-bottom: 8px; }
.gm-empty h2 { font-family: var(--serif); font-size: 26px; color: var(--gm); margin: 0 0 6px; }
.gm-empty p { color: var(--text-muted); margin: 0 0 18px; }

/* ── Checkout ── */
.gm-checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.gm-checkout-form h3 { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--gm); margin: 28px 0 14px; }
.gm-checkout-form h3:first-child { margin-top: 0; }
.gm-checkout-form .field { margin-bottom: 12px; }
.gm-checkout-form .field label { display: block; font-size: 13px; font-weight: 600; color: #5A554C; margin-bottom: 5px; }
.gm-checkout-form .field input {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 15px; font-family: var(--sans); transition: border-color 0.2s, box-shadow 0.2s;
}
.gm-checkout-form .field input:focus { outline: none; border-color: var(--gm); box-shadow: 0 0 0 3px rgba(44,74,58,0.1); }
.gm-checkout-form .field input[readonly] { background: var(--cream-2); color: var(--text-muted); }
.gm-checkout-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gm-muted { color: var(--text-muted); font-size: 14px; padding: 8px 0; }

/* ── Shipping methods ── */
.gm-shipping-methods { display: flex; flex-direction: column; gap: 8px; }
.gm-shipping-method { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s; }
.gm-shipping-method:hover { border-color: var(--gm); }
.gm-shipping-method.selected { border-color: var(--gm); background: rgba(44,74,58,0.04); }
.gm-shipping-method .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); flex: none; position: relative; transition: border-color 0.15s; }
.gm-shipping-method.selected .radio { border-color: var(--gm); }
.gm-shipping-method.selected .radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--gm); }
.gm-shipping-method .info { flex: 1; display: flex; flex-direction: column; }
.gm-shipping-method .label { font-weight: 600; font-size: 14.5px; }
.gm-shipping-method .desc { font-size: 12.5px; color: var(--text-muted); }
.gm-shipping-method .price { font-weight: 700; color: var(--gm); }

/* ── Pickup points ── */
.gm-pickup-list { margin-top: 12px; max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.gm-pickup-item { padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s; }
.gm-pickup-item:hover { border-color: var(--gm); background: var(--cream); }
.gm-pickup-item.selected { border-color: var(--gm); background: rgba(44,74,58,0.06); }
.gm-pickup-item .name { font-weight: 600; font-size: 14px; }
.gm-pickup-item .address { color: var(--text-muted); font-size: 12.5px; }
.gm-pickup-chosen { margin-top: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; }

/* ── Pay button ── */
.gm-pay-btn { padding: 17px 20px; font-size: 17px; }

/* ── Order confirmation ── */
.gm-order-success { text-align: center; padding: 70px 20px; max-width: 460px; margin: 0 auto; }
.gm-order-success .icon { color: var(--gm); margin-bottom: 18px; }
.gm-order-success h2 { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--gm); margin: 0 0 10px; }
.gm-order-success p { color: #5A554C; font-size: 15px; line-height: 1.6; margin: 0; }
.gm-order-success .order-number { display: inline-block; margin-top: 18px; padding: 8px 18px; background: var(--cream); border: 1px solid var(--border); border-radius: 999px; font-size: 16px; color: var(--gold); font-weight: 700; }

/* ── Withdrawal (EU fortrydelsesret) ── */
.gm-wd-wrap { max-width: 480px; margin: 0 auto; padding: 36px 20px 60px; }
.gm-wd-head { text-align: center; margin-bottom: 24px; }
.gm-wd-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cream); border: 1px solid var(--border); color: var(--gm); margin-bottom: 14px; }
.gm-wd-head h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--gm); margin: 0 0 8px; }
.gm-wd-head p { color: #5A554C; font-size: 14.5px; line-height: 1.6; margin: 0; }
.gm-wd-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.gm-wd-fields .field { margin-bottom: 14px; }
.gm-wd-fields .field label { display: block; font-size: 13px; font-weight: 600; color: #5A554C; margin-bottom: 5px; }
.gm-wd-fields .field input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; background: #fff; color: var(--text); box-sizing: border-box; }
.gm-wd-fields .field input:focus { outline: none; border-color: var(--gm); box-shadow: 0 0 0 3px rgba(44,74,58,0.1); }
.gm-wd-card .gm-btn-primary { margin-top: 6px; }
.gm-wd-review { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 16px; margin-bottom: 14px; }
.gm-wd-review .row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14px; color: #5A554C; }
.gm-wd-review .row + .row { border-top: 1px solid var(--border); }
.gm-wd-review .row strong { color: var(--text); font-weight: 700; }
.gm-wd-note { display: flex; gap: 8px; align-items: flex-start; background: #FBF5E6; border: 1px solid #E8D9B0; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 12.5px; line-height: 1.5; color: #5A4A1F; margin-bottom: 16px; }
.gm-wd-note .gm-ico { flex-shrink: 0; color: var(--gold); margin-top: 1px; }
.gm-btn-text { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; padding: 10px; background: none; border: none; color: var(--text-muted); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.gm-btn-text:hover { color: var(--gm); }
.gm-wd-terms { text-align: center; font-size: 12.5px; color: var(--text-muted); line-height: 1.6; margin: 16px auto 0; max-width: 400px; }
.gm-wd-terms a { color: var(--gold); }

/* Slim shop footer with withdrawal link */
.gm-shop-foot { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 40px; padding: 22px 20px 32px; border-top: 1px solid var(--border); font-size: 13px; }
.gm-shop-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.gm-shop-foot a:hover { color: var(--gm); }
.gm-shop-foot .sep { color: var(--border); }

/* ── Responsive ── */
@media (max-width: 880px) {
    .gm-cart-layout, .gm-checkout-layout { grid-template-columns: 1fr; gap: 24px; }
    .gm-summary.sticky { position: static; }
}
@media (max-width: 768px) {
    .gm-product-detail { grid-template-columns: 1fr; gap: 22px; }
    .gm-shop-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .gm-shop-hero h1 { font-size: 34px; }
    .gm-product-card .name { font-size: 17px; }
    .gm-product-card .price { font-size: 17px; }
    .gm-product-detail .meta h1 { font-size: 30px; }
}
@media (max-width: 480px) {
    .gm-shop-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .gm-product-card .info { padding: 12px 13px 15px; }
    .gm-product-card .name { font-size: 15px; }
    .gm-product-card .desc { display: none; }
    .gm-hd-logo { font-size: 19px; }
    /* Sticky pay bar feel on mobile checkout */
    .gm-summary.sticky { position: sticky; bottom: 0; top: auto; box-shadow: 0 -8px 24px -16px rgba(0,0,0,0.3); }
}

/* ═══════════════════════════════════════════════════════════
   "Wow" layer — animations, toasts, confetti, skeletons
   ═══════════════════════════════════════════════════════════ */

/* Stage fade/slide between screens */
.gm-stage { animation: gm-stage-in 0.45s var(--ease) both; }
@keyframes gm-stage-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Hero upgrade */
.gm-shop-hero { position: relative; padding: 18px 0 10px; }
.gm-hero-eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.gm-shop-hero h1 { font-size: 52px; letter-spacing: -0.5px; }
.gm-shop-hero p { max-width: 540px; margin: 16px auto 0; font-size: 17px; line-height: 1.55; }
.gm-hero-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 22px; }
.gm-hero-strip span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--gm); }
.gm-hero-strip .gm-ico { color: var(--gold); }

/* Product card entrance + quick-view */
.gm-product-card { animation: gm-card-in 0.5s var(--ease) both; }
@keyframes gm-card-in { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }
.gm-quickview {
    position: absolute; left: 12px; right: 12px; bottom: 12px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 14px; border-radius: 10px; background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px); color: var(--gm); font-size: 13.5px; font-weight: 600;
    box-shadow: var(--shadow); opacity: 0; transform: translateY(10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gm-product-card:hover .gm-quickview { opacity: 1; transform: none; }
@media (hover: none) { .gm-quickview { display: none; } }

/* Cart badge bump */
.gm-hd-cart .badge.bump { animation: gm-badge-bump 0.5s var(--ease); }
@keyframes gm-badge-bump { 0% { transform: scale(1); } 35% { transform: scale(1.5); } 70% { transform: scale(0.9); } 100% { transform: scale(1); } }

/* Buttons get a subtle sheen on hover */
.gm-btn-primary { position: relative; overflow: hidden; }
.gm-btn-primary::after {
    content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-18deg); transition: left 0.6s var(--ease);
}
.gm-btn-primary:hover::after { left: 130%; }

/* Toasts */
.gm-toast-host { position: fixed; left: 0; right: 0; bottom: 24px; z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; padding: 0 16px; }
.gm-toast {
    display: flex; align-items: center; gap: 10px; max-width: 420px;
    padding: 13px 18px; border-radius: 14px; background: #1C1A16; color: #fff;
    font-size: 14.5px; font-weight: 500; box-shadow: 0 12px 34px -10px rgba(0,0,0,0.5);
    opacity: 0; transform: translateY(16px) scale(0.96); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gm-toast.show { opacity: 1; transform: none; }
.gm-toast .ti { display: inline-flex; flex: none; }
.gm-toast.success { background: #234A37; }
.gm-toast.success .ti { color: #7BE0A6; }
.gm-toast.error { background: #5A2320; }
.gm-toast.error .ti { color: #FFB1A8; }
.gm-toast.info .ti { color: var(--gold); }

/* Skeletons */
.gm-skel-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; padding: 0 0 18px; }
.gm-skel { position: relative; overflow: hidden; background: #EFEAE0; border-radius: 8px; }
.gm-skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); animation: gm-shimmer 1.3s infinite; }
@keyframes gm-shimmer { 100% { transform: translateX(100%); } }
.gm-skel.img { width: 100%; aspect-ratio: 4/5; border-radius: 0; margin-bottom: 16px; }
.gm-skel.line { height: 13px; margin: 9px 18px 0; }
.gm-skel.line.w70 { width: 70%; height: 18px; }
.gm-skel.line.w40 { width: 40%; }
.gm-skel.line.w30 { width: 30%; }

/* Confetti */
.gm-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9998; overflow: hidden; }
.gm-confetti i { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; opacity: 0.95; animation: gm-fall linear forwards; }
@keyframes gm-fall { 0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; } 100% { transform: translateY(108vh) rotate(540deg); opacity: 0.9; } }

/* Confirmation icon pop */
.gm-order-success .icon { animation: gm-pop 0.6s var(--ease) both; }
@keyframes gm-pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

@media (max-width: 768px) {
    .gm-shop-hero h1 { font-size: 38px; }
    .gm-hero-strip { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .gm-stage, .gm-product-card, .gm-order-success .icon { animation: none !important; }
    .gm-confetti { display: none; }
}

/* ── Sticky checkout bar (fast path to buy) ── */
.gm-shop-wrapper.has-cta { padding-bottom: 110px; }
.gm-checkout-bar {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
    width: min(680px, calc(100% - 28px)); z-index: 60;
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    box-shadow: 0 16px 40px -14px rgba(28,26,22,0.38);
    padding: 10px 12px 10px 18px;
    animation: gm-bar-in 0.42s var(--ease) both;
}
@keyframes gm-bar-in { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
.gm-cb-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 13px; background: none; border: none; padding: 6px 0; cursor: pointer; font-family: var(--sans); color: var(--text); text-align: left; }
.gm-cb-cart { position: relative; display: inline-flex; color: var(--gm); flex: none; }
.gm-cb-cart .badge { position: absolute; top: -7px; right: -8px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--gold); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; padding: 0 4px; border: 2px solid #fff; }
.gm-cb-text { font-size: 14px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-cb-text b { color: var(--text); font-weight: 700; }
.gm-cb-btn {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    padding: 14px 22px; border: none; border-radius: 12px; background: var(--gm); color: #fff;
    font-size: 15px; font-weight: 700; font-family: var(--sans); cursor: pointer; white-space: nowrap;
    transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.gm-cb-btn:hover { background: var(--gm-light); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.gm-cb-btn:active { transform: translateY(0); }
@media (max-width: 480px) {
    .gm-checkout-bar { bottom: 12px; padding: 9px 10px 9px 14px; gap: 8px; }
    .gm-cb-text { font-size: 13px; }
    .gm-cb-btn { padding: 13px 16px; font-size: 14px; }
    .gm-shop-wrapper.has-cta { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) { .gm-checkout-bar { animation: none; } }

/* ── Terms acceptance (checkout) ── */
.gm-terms { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 4px; font-size: 13.5px; line-height: 1.4; color: #5A554C; cursor: pointer; }
.gm-terms input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--gm); flex: none; cursor: pointer; }
.gm-terms a { color: var(--gm); font-weight: 600; text-decoration: underline; }
.gm-terms a:hover { color: var(--gm-light); }

/* ═══ Cart-in-header pill + action row (replaces bottom bar) ═══ */
.gm-hd-inner { gap: 12px; }
.gm-hd-cartpill {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px;
    border: none; border-radius: 14px; background: var(--gm); color: #fff;
    font-family: var(--sans); font-size: 14px; font-weight: 700; cursor: pointer;
    box-shadow: 0 6px 18px -8px rgba(44,74,58,0.6);
    transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.gm-hd-cartpill:hover { background: var(--gm-light); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.gm-hd-cartpill .ct {
    display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
    padding: 0 5px; border-radius: 10px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 800;
}
.gm-hd-cartpill .tt { font-variant-numeric: tabular-nums; }
.gm-hd-cartpill.bump { animation: gm-badge-bump 0.5s var(--ease); }

/* Action row: back link + fast checkout */
.gm-actionrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.gm-actionrow .gm-back { margin-bottom: 0; }
.gm-row-cta {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    padding: 11px 18px; border: none; border-radius: 12px; background: var(--gm); color: #fff;
    font-family: var(--sans); font-size: 14.5px; font-weight: 700; cursor: pointer;
    box-shadow: 0 8px 20px -10px rgba(44,74,58,0.55);
    transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.gm-row-cta:hover { background: var(--gm-light); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.gm-row-cta .amt { font-variant-numeric: tabular-nums; opacity: 0.92; }

/* Mobile — the most important surface */
@media (max-width: 600px) {
    .gm-hd-inner { height: 58px; }
    .gm-hd-logo { font-size: 18px; }
    .gm-hd-cartpill { height: 42px; padding: 0 13px 0 11px; font-size: 13.5px; gap: 6px; }
    .gm-actionrow { gap: 10px; }
    /* Fast checkout button spans full width under the back link on small screens */
    .gm-row-cta { width: 100%; justify-content: center; order: 3; padding: 14px 18px; font-size: 15px; }
    .gm-actionrow .gm-back { order: 1; }
}
