/* Shop, product page and cart drawer. */
.shop-head p { margin-top: 10px; color: var(--muted); }
.shop-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 26px; }
.shop-tabs button { border: 2px solid var(--ink); background: transparent; border-radius: var(--radius); padding: 8px 18px; cursor: pointer; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; }
.shop-tabs button[aria-selected="true"] { background: var(--ink); color: var(--yellow); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px 22px; }
.card { display: block; text-decoration: none; }
.card .img { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #ecebe4; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card .img img.fade-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease, transform .3s ease; pointer-events: none; }
.card .img img.fade-layer.in { opacity: 1; }
.card:hover .img img.fade-layer { transform: scale(1.04); }
.card:hover .img img { transform: scale(1.04); }
.card .dots { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.card .dots span { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(17,17,17,.5); transition: transform .3s ease, box-shadow .3s ease; }
.card .dots span.on { transform: scale(1.25); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }
.card h3 { font-size: 1.15rem; margin-top: 12px; }
.card .price { margin-top: 4px; font-weight: 600; }
.shop-note { margin-top: 40px; color: var(--muted); font-size: .92rem; }
.loading { color: var(--muted); }

.crumb { display: inline-block; margin-bottom: 22px; font-size: .95rem; }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.pdp-main { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #ecebe4; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pdp-thumbs button { width: 74px; height: 74px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #ecebe4; }
.pdp-thumbs button[aria-current="true"] { border-color: var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-cat { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--muted); }
.pdp-info h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-top: 6px; }
.pdp-price { font: 400 1.7rem/1 var(--display); margin-top: 14px; }
.opt { margin-top: 24px; }
.opt-label { font-size: .95rem; margin-bottom: 10px; }
.swatches { display: flex; gap: 12px; }
.swatches button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(17,17,17,.35); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 3px var(--paper); }
.swatches button[aria-checked="true"] { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
.sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.sizes button { min-width: 56px; height: 46px; border-radius: 10px; border: 2px solid var(--ink); background: var(--white); cursor: pointer; font-weight: 600; }
.sizes button[aria-checked="true"] { background: var(--ink); color: var(--yellow); }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; }
.qty input { width: 48px; height: 44px; border: 0; text-align: center; font: 600 1rem var(--body); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-btn { margin-top: 28px; width: 100%; max-width: 420px; min-height: 56px; font-size: 1rem; }
.pdp-msg { min-height: 1.4em; margin-top: 10px; font-weight: 600; }
.pdp-desc { margin-top: 18px; max-width: 46ch; }
.pdp-facts { margin: 18px 0 0; padding-left: 1.2em; color: var(--muted); font-size: .94rem; }
.pdp-facts li + li { margin-top: 4px; }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; } }

/* Cart drawer */
.cart-drawer { position: fixed; inset: 0; z-index: 150; }
.cart-drawer[hidden] { display: none; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.5); }
.cart-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); display: grid; grid-template-rows: auto 1fr auto; box-shadow: -10px 0 40px rgba(0,0,0,.2); animation: slidein .25s ease; }
@keyframes slidein { from { transform: translateX(40px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .cart-panel { animation: none; } }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 2px solid var(--ink); background: var(--yellow); }
.cart-head h2 { font-size: 1.9rem; }
.cart-x { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; }
.cart-items { overflow-y: auto; padding: 10px 22px; }
.cart-empty { padding: 30px 0; color: var(--muted); }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; background: #ecebe4; }
.line h3 { font: 600 .98rem/1.3 var(--body); text-transform: none; }
.line .meta { font-size: .86rem; color: var(--muted); margin-top: 2px; }
.line .controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.line .controls .qty button { width: 32px; height: 32px; font-size: 1rem; }
.line .controls .qty span { min-width: 26px; text-align: center; font-weight: 600; }
.line .remove { background: none; border: 0; padding: 0; text-decoration: underline; font-size: .85rem; cursor: pointer; color: var(--muted); }
.line .amt { font-weight: 700; }
.cart-foot { padding: 18px 22px 24px; border-top: 2px solid var(--ink); background: var(--white); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.cart-note { font-size: .85rem; color: var(--muted); margin: 6px 0 14px; }
.cart-foot .btn { width: 100%; min-height: 54px; }
.cart-error { color: #b42318; font-size: .9rem; margin-top: 10px; min-height: 1em; }
