/* Store page. Inherits every token from style.css; this file only adds what the shop needs. */

.shop-page { padding-top: 74px; }   /* the nav is fixed and always solid on this page */

.menu .current { color: var(--green) !important; }

/* ---------- header ---------- */
.shop-head { padding: clamp(50px, 7vw, 80px) 0 clamp(34px, 5vw, 52px); border-bottom: 1px solid var(--line); }
.shop-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.shop-head .lead { max-width: 62ch; }
.shop-head-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
@media (max-width: 460px) { .shop-head-cta .btn { width: 100%; } }

/* ---------- filter bar ---------- */
/* ---------- featured banner on the store landing ---------- */
.feature {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem;
    padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 3rem;
    background: linear-gradient(120deg, rgba(61, 255, 110, .1), rgba(61, 255, 110, .02) 55%, transparent);
    border: 1px solid var(--line-strong); border-radius: var(--r);
}
.feature-tag {
    display: inline-block; margin-bottom: .7rem; padding: .2em .65em; border-radius: 999px;
    background: rgba(61, 255, 110, .14); border: 1px solid var(--line-strong); color: var(--green);
    font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.feature h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .3em; }
.feature p { margin: 0; max-width: 52ch; color: var(--muted); font-size: .96rem; }
.feature-buy { display: flex; align-items: center; gap: 1.1rem; flex: none; }
.feature-buy .price b { font-size: 1.6rem; }

/* ---------- row heading with a link out ---------- */
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.row-head h2 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.row-more { display: inline-flex; align-items: center; gap: .4em; text-decoration: none; font-size: .9rem; font-weight: 700; color: var(--green); }
.row-more .ico { width: 1.05em; height: 1.05em; transition: transform var(--t); }
.row-more:hover .ico { transform: translateX(4px); }

/* ---------- directory ---------- */
.dir { padding: clamp(40px, 6vw, 62px) 0 clamp(60px, 8vw, 90px); }
.crumbs { display: flex; gap: .5rem; font-size: .84rem; color: var(--faint); margin-bottom: .9rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.dir-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .25em; }
.dir-sub { margin: 0 0 2.6rem; color: var(--faint); font-size: .95rem; }
.dir-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(1.6rem, 3vw, 2.6rem); align-items: start; }

.search { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.8rem; padding: .62rem .85rem;
    background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.search svg { width: 17px; height: 17px; flex: none; color: var(--faint); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fg);
    font-family: var(--body); font-size: .93rem; }
.search input::placeholder { color: var(--faint); }

.side-title { margin: 0 0 .8rem; font-size: .76rem; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: var(--faint); font-family: var(--body); }
.side-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.side-cat {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    padding: .52rem .7rem; border: 0; border-radius: 8px; cursor: pointer; background: none;
    font-family: var(--body); font-size: .92rem; font-weight: 600; color: var(--muted); text-align: left;
    transition: background var(--t), color var(--t);
}
.side-cat:hover { background: rgba(255, 255, 255, .05); color: var(--fg); }
.side-cat[aria-current="true"] { background: rgba(61, 255, 110, .1); color: var(--green); }
.side-cat em { font-style: normal; font-size: .78rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.side-cat[aria-current="true"] em { color: var(--green); }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 1.1rem; }

.product {
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    overflow: hidden;
    transition: border-color var(--t), transform var(--t), background var(--t);
}
.product:hover { border-color: var(--line-strong); background: var(--card-hover); transform: translateY(-4px); }

/* No product photography yet, so the thumb is a generated mark rather than a grey box. */
.product-thumb {
    position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
    background:
        radial-gradient(70% 90% at 50% 15%, rgba(61, 255, 110, .16), transparent 70%),
        linear-gradient(160deg, #0d1410, #080b09);
    border-bottom: 1px solid var(--line);
}
.product-thumb svg { width: 46px; height: 46px; fill: none; stroke: var(--green); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.product-tag {
    position: absolute; top: .7rem; left: .7rem;
    padding: .22em .6em; border-radius: 999px;
    background: var(--green); color: #05140a;
    font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.product-tag.alt { background: var(--amber); }

.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.25rem 1.3rem; }
.product h3 { font-size: 1.04rem; margin-bottom: .45rem; }
.product-blurb { flex: 1; margin: 0 0 1.1rem; font-size: .91rem; color: var(--muted); }

.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.chip { padding: .22em .6em; border-radius: 6px; background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line); font-size: .74rem; font-weight: 600; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: .3rem; }
.price b { font-family: var(--display); font-weight: 400; font-size: 1.32rem; color: var(--green); }
.price span { font-size: .78rem; color: var(--faint); }

.add {
    width: 100%; padding: .62em 1.05em; border-radius: 9px; cursor: pointer;
    background: rgba(61, 255, 110, .1); border: 1px solid var(--line-strong); color: var(--green);
    font-family: var(--body); font-size: .87rem; font-weight: 700;
    transition: background var(--t), color var(--t);
}
.add:hover { background: var(--green); color: #05140a; }
.add.added { background: var(--green); color: #05140a; }

.empty-note { margin-top: 2rem; color: var(--faint); }

/* ---------- cart ---------- */
.cart-veil {
    position: fixed; inset: 0; z-index: 140;
    background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity var(--t);
}
.cart-veil.show { opacity: 1; }
.cart-veil[hidden] { display: none; }

.login-btn { max-width: 14rem; }
.login-btn #login-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-btn.signed-in { border-color: var(--line-strong); color: var(--green); }

.cart-btn { position: relative; }
.cart-count {
    display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .3em;
    margin-left: .1em; border-radius: 999px;
    background: #05140a; color: var(--green); font-size: .74rem; font-weight: 700;
}
.cart-count[hidden] { display: none; }

.cart {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
    width: min(420px, 100%);
    display: flex; flex-direction: column;
    background: var(--bg-alt); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform var(--t);
}
.cart.open { transform: translateX(0); }
.cart[aria-hidden="true"] { visibility: hidden; }
.cart.open[aria-hidden="false"] { visibility: visible; }

.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 1.15rem; }
.cart-close { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--muted); border-radius: 8px; transition: color var(--t), background var(--t); }
.cart-close:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
.cart-close svg { width: 20px; height: 20px; }

.cart-body { flex: 1; overflow-y: auto; padding: 1.1rem 1.4rem; }
.cart-empty { color: var(--faint); font-size: .93rem; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: .3rem .9rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.cart-item h3 { margin: 0; font-size: .95rem; font-family: var(--body); font-weight: 700; }
.cart-item .line-price { font-family: var(--display); font-weight: 400; font-size: 1rem; }
.qty { display: flex; align-items: center; gap: .1rem; }
.qty button {
    width: 27px; height: 27px; display: grid; place-items: center; cursor: pointer;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--fg);
    font-family: var(--body); font-size: 1rem; line-height: 1; border-radius: 7px;
    transition: background var(--t), border-color var(--t);
}
.qty button:hover { background: rgba(61, 255, 110, .12); border-color: var(--line-strong); }
.qty span { min-width: 2.1em; text-align: center; font-size: .9rem; font-variant-numeric: tabular-nums; }
.cart-remove { grid-column: 1 / -1; justify-self: start; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--body); font-size: .8rem; color: var(--faint); text-decoration: underline; }
.cart-remove:hover { color: #ff5a5a; }

.cart-foot { padding: 1.2rem 1.4rem 1.5rem; border-top: 1px solid var(--line); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.cart-total span { color: var(--muted); font-size: .93rem; }
.cart-total b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--green); }
.cart-checkout { width: 100%; }
.cart-checkout:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.cart-checkout:disabled:hover { background: var(--green); transform: none; }
.cart-note { margin: .9rem 0 0; font-size: .8rem; color: var(--faint); line-height: 1.5; }

@media (max-width: 780px) {
    .shop-bar { flex-direction: column; align-items: flex-start; }
    .cart { width: 100%; }
}


@media (max-width: 860px) {
    .dir-grid { grid-template-columns: 1fr; }
    .side-cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 560px) {
    .feature-buy { width: 100%; justify-content: space-between; }
}
