/* Sisters of Iron store */
.shop { background: var(--light, #faf6f4); color: var(--ink, #2b1c1c); font-family: 'Cabin', sans-serif; padding-bottom: clamp(56px, 8vw, 104px); }
.shop__wrap { max-width: 1200px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 48px) 0; }

/* Tabs: Shop · Order Info · Cart */
.shop__tabs { position: sticky; top: 0; z-index: 5; background: rgba(250,246,244,.94); backdrop-filter: blur(8px); border-bottom: 1px solid #efe5e2; scroll-margin-top: 0; }
.shop__tabs-in { display: flex; justify-content: center; gap: 6px; max-width: 1200px; margin: 0 auto; padding: 10px 16px; }
.shop__tabs button {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent;
  font: 700 16px 'Cabin', sans-serif; color: #7a6666; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.shop__tabs button:hover { color: var(--ink, #2b1c1c); }
.shop__tabs button[aria-selected="true"] { background: var(--ink, #2b1c1c); color: #fff; }
.shop__tabs b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent, #F5A1A0); color: var(--ink, #2b1c1c); font-size: 12px; }

.shop__notice { max-width: 720px; margin: 0 auto 28px; padding: 14px 18px; border-radius: 12px; background: #e7f4ea; color: #1f5a2c; text-align: center; font-weight: 600; }
.shop__notice--closed { background: #fdf1e3; color: #7a4a12; }

/* Product grid: photo, name, price. Tap opens the order window. */
.shop__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.shop__card { all: unset; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; cursor: pointer; }
.shop__card-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: #f3ebe8; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 30px rgba(90,40,40,.07); }
.shop__card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.shop__card-cta {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 8px); opacity: 0; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; background: var(--ink, #2b1c1c); color: #fff; font-weight: 700; font-size: 15px; transition: all .25s ease;
}
.shop__card:hover .shop__card-img img, .shop__card:focus-visible .shop__card-img img { transform: scale(1.04); }
.shop__card:hover .shop__card-cta, .shop__card:focus-visible .shop__card-cta { opacity: 1; transform: translate(-50%, 0); }
.shop__card:focus-visible .shop__card-img { outline: 3px solid var(--accent-deep, #c26d6c); outline-offset: 3px; }
.shop__card-name { margin: 14px 4px 2px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.shop__card-price { margin: 0 4px; font-size: 16px; font-weight: 600; color: #7a6666; }

/* Order info and cart panels */
.shop__info, .shop__cart { max-width: 760px; margin: 0 auto; }
.shop__info h2, .shop__cart h2 { margin: 0 0 20px; font-family: 'Aboreto', serif; font-weight: 400; font-size: clamp(28px, 3vw, 38px); }
.shop__info ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.shop__info li { position: relative; padding: 18px 20px 18px 52px; background: #fff; border-radius: 14px; font-size: 18px; line-height: 1.5; box-shadow: 0 8px 24px rgba(90,40,40,.06); }
.shop__info li::before { content: ""; position: absolute; left: 20px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent, #F5A1A0); }
.shop__info-q { font-size: 17px; color: #6a5a5a; }
.shop__info-q a { color: var(--accent-deep, #c26d6c); font-weight: 700; }
.shop__empty { padding: 28px; background: #fff; border-radius: 16px; text-align: center; }
.shop__empty p { margin: 0 0 16px; font-size: 18px; color: #6a5a5a; }
.shop__lines { list-style: none; margin: 0; padding: 0 20px; background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(90,40,40,.06); }
.shop__line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #f3ecea; }
.shop__line:last-child { border-bottom: 0; }
.shop__line img { border-radius: 12px; background: #f3ebe8; }
.shop__line-name { margin: 0; font-weight: 700; font-size: 17px; line-height: 1.3; }
.shop__line-meta { margin: 2px 0 10px; font-size: 15px; color: #6a5a5a; }
.shop__line-total { margin: 0; font-weight: 700; font-size: 17px; }
.shop__summary { margin-top: 18px; padding: 20px; background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(90,40,40,.06); }
.shop__total { display: flex; justify-content: space-between; margin: 0 0 16px; font-size: 20px; }
.shop__error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: #8f1d1d; font-size: 15px; }
.shop__fine { margin: 12px 0 0; font-size: 13px; color: #8a7a7a; text-align: center; }

.shop__qty { display: flex; align-items: center; gap: 8px; }
.shop__qty button { min-width: 34px; height: 34px; border: 1.5px solid #e2d8d5; border-radius: 9px; background: #fff; font: 700 17px 'Cabin', sans-serif; cursor: pointer; color: inherit; }
.shop__qty span { min-width: 22px; text-align: center; font-weight: 700; }
.shop__qty .shop__remove { border: 0; min-width: 0; padding: 0 4px; font-size: 14px; font-weight: 600; color: #8a6a6a; text-decoration: underline; }
.shop__qty--lg button { min-width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }
.shop__qty--lg span { min-width: 34px; font-size: 18px; }

.shop__primary, .shop__secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; cursor: pointer;
  font: 700 17px 'Cabin', sans-serif; transition: transform .15s ease, filter .15s ease;
}
.shop__primary { border: 0; background: var(--ink, #2b1c1c); color: #fff; }
.shop__secondary { border: 1.5px solid #d8cdca; background: #fff; color: var(--ink, #2b1c1c); }
.shop__primary:hover, .shop__secondary:hover { transform: translateY(-1px); }
.shop__primary:disabled { opacity: .5; cursor: default; transform: none; }
.shop__checkout { width: 100%; }

/* The order window */
.shop__modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.shop__scrim { position: absolute; inset: 0; border: 0; background: rgba(20,12,12,.55); cursor: pointer; animation: shop-fade .2s ease; }
.shop__sheet {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(960px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: shop-pop .25s ease-out;
}
.shop__sheet-img { background: #f3ebe8; }
.shop__sheet-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop__sheet-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); }
.shop__kind { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep, #c26d6c); }
.shop__sheet-name { margin: 0; font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; }
.shop__sheet-price { margin: 0; font-size: 22px; font-weight: 600; color: #6a5a5a; }
.shop__x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255,255,255,.92); font-size: 26px; line-height: 1; cursor: pointer; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,.1); }

.shop__sizes { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.shop__sizes legend { margin-bottom: 10px; padding: 0; font-size: 15px; font-weight: 700; }
.shop__sizes.is-needed legend { color: #b3262a; }
.shop__size-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #faf6f4; }
.shop__size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.shop__size-price { font-weight: 700; color: #6a5a5a; white-space: nowrap; }
.shop__sizes label { cursor: pointer; }
.shop__sizes input { position: absolute; opacity: 0; pointer-events: none; }
.shop__sizes span:not(.shop__size-price) { display: inline-grid; place-items: center; min-width: 52px; height: 42px; padding: 0 10px; border: 1.5px solid #e2d8d5; border-radius: 10px; background: #fff; font-size: 15px; font-weight: 700; transition: all .15s ease; }
.shop__sizes label:hover span { border-color: var(--accent-deep, #c26d6c); }
.shop__sizes input:checked + span { background: var(--ink, #2b1c1c); border-color: var(--ink, #2b1c1c); color: #fff; }
.shop__sizes input:focus-visible + span { outline: 2px solid var(--accent-deep, #c26d6c); outline-offset: 2px; }
.shop__sheet-qty { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.shop__add { width: 100%; margin-top: auto; background: var(--accent, #F5A1A0); color: var(--ink, #2b1c1c); }
.shop__added { margin-top: auto; padding: 16px; border-radius: 14px; background: #e7f4ea; }
.shop__added p { margin: 0 0 12px; font-weight: 700; color: #1f5a2c; }
.shop__added-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@keyframes shop-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes shop-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 960px) { .shop__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .shop__modal { padding: 0; align-items: end; }
  .shop__sheet { grid-template-columns: minmax(0, 1fr); border-radius: 22px 22px 0 0; max-height: 94vh; animation: shop-up .28s ease-out; }
  .shop__sheet-img { height: min(42vh, 360px); display: grid; place-items: center; }
  .shop__sheet-img img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
  .shop__sizes span:not(.shop__size-price) { min-width: 46px; height: 40px; font-size: 14px; }
  .shop__size-row { padding: 8px 10px; }
  .shop__card-cta { display: none; }
  .shop__card-name { font-size: 16px; }
  .shop__line { grid-template-columns: 64px 1fr; }
  .shop__line img { width: 64px; height: 64px; }
  .shop__line-total { grid-column: 2; }
  .shop__tabs button { padding: 0 14px; }
}
@keyframes shop-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .shop__sheet, .shop__scrim { animation: none; } }

/* Coming Soon (store closed) */
.shop--soon { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); }
.shop__soon { max-width: 980px; margin: 0 auto; text-align: center; }
.shop__soon-title { margin: 0 0 14px; font-family: 'Aboreto', serif; font-weight: 400; font-size: clamp(44px, 7vw, 84px); line-height: 1; letter-spacing: .04em; color: var(--ink, #2b1c1c); }
.shop__soon-lead { max-width: 560px; margin: 0 auto; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: #6a5a5a; text-wrap: balance; }
.shop__soon-peek { list-style: none; display: flex; justify-content: center; margin: clamp(36px, 5vw, 56px) 0; padding: 0; }
.shop__soon-peek li { width: clamp(96px, 17vw, 180px); aspect-ratio: 1; margin: 0 -10px; border-radius: 22px; overflow: hidden; background: #f3ebe8; border: 4px solid var(--light, #faf6f4); box-shadow: 0 14px 34px rgba(90,40,40,.12); transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); filter: saturate(.9); }
.shop__soon-peek li:nth-child(1) { --r: -8deg; --y: 14px; }
.shop__soon-peek li:nth-child(2) { --r: -4deg; --y: 4px; }
.shop__soon-peek li:nth-child(3) { --r: 0deg; z-index: 1; }
.shop__soon-peek li:nth-child(4) { --r: 4deg; --y: 4px; }
.shop__soon-peek li:nth-child(5) { --r: 8deg; --y: 14px; }
.shop__soon-peek img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop__soon-note { margin: 0 0 14px; font-weight: 700; font-size: 18px; }
.shop__soon .shop__primary { text-decoration: none !important; color: #fff !important; }
@media (max-width: 520px) { .shop__soon-peek li:nth-child(1), .shop__soon-peek li:nth-child(5) { display: none; } }

/* Next-order sign-up (store not taking orders) */
.shop__soon-title { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.05; text-wrap: balance; }
.shop__soon-peek { margin: clamp(28px, 4vw, 44px) 0; }
.shop__soon-form { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; text-align: left; background: #fff; border-radius: 20px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 14px 40px rgba(90,40,40,.08); }
.shop__soon-form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.shop__soon-form label > span, .shop__soon-form legend > span { font-weight: 400; color: #8a7a7a; }
.shop__soon-form input:not([type="checkbox"]), .shop__soon-form textarea { width: 100%; box-sizing: border-box; border: 1.5px solid #e2d8d5; border-radius: 10px; padding: 12px 14px; font: 16px 'Cabin', sans-serif; color: #2b1c1c; background: #fff; }
.shop__soon-form input:focus, .shop__soon-form textarea:focus { outline: none; border-color: var(--accent-deep, #c26d6c); box-shadow: 0 0 0 3px rgba(245,161,160,.35); }
.shop__soon-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shop__soon-form fieldset { border: 0; margin: 0; padding: 0; }
.shop__soon-form legend { margin-bottom: 8px; padding: 0; font-weight: 700; font-size: 15px; }
.shop__soon-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop__soon-item { display: flex !important; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1.5px solid #ece3e0; border-radius: 12px; font-weight: 600 !important; font-size: 14px !important; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.shop__soon-item:has(input:checked) { border-color: var(--ink, #2b1c1c); background: #faf6f4; }
.shop__soon-item input { width: 18px; height: 18px; accent-color: #2b1c1c; flex: 0 0 auto; }
.shop__soon-item img { border-radius: 8px; background: #f3ebe8; flex: 0 0 auto; }
.shop__soon-form .shop__primary { width: 100%; margin-top: 4px; }
.shop__soon-done { max-width: 520px; margin: 0 auto; padding: 28px; border-radius: 20px; background: #e7f4ea; color: #1f5a2c; }
.shop__soon-done p { margin: 0; font-size: 18px; }
.shop__soon-done .shop__soon-done-title { margin-bottom: 6px; font-size: 24px; font-weight: 700; }
.shop__soon-q { margin-top: 22px; color: #6a5a5a; }
.shop__soon-q a { color: var(--accent-deep, #c26d6c); font-weight: 700; }
@media (max-width: 560px) { .shop__soon-row, .shop__soon-items { grid-template-columns: 1fr; } }
.shop__soon-form label > span { display: inline !important; font-weight: 400; color: #8a7a76; }
@media (max-width: 560px) { .shop__soon-title { font-size: 28px; letter-spacing: .02em; } }
/* Extra photos of an item (e.g. hat sides and back) under the big photo in the order window */
.shop__sheet-img { position: relative; }
.shop__views { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.shop__view { padding: 0; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #fff; box-shadow: 0 2px 8px rgba(43, 28, 28, .14); cursor: pointer; transition: border-color .15s, transform .15s; }
.shop__view img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop__view:hover { transform: translateY(-2px); }
.shop__view.is-on { border-color: #2b1c1c; }
.shop__view:focus-visible { outline: 2px solid #f5a1a0; outline-offset: 2px; }
@media (max-width: 560px) { .shop__view { width: 48px; height: 48px; } }

/* Brothers of Iron store: the men's fonts and red. */
.side-ioi .shop__soon-title, .side-ioi .shop__info h2, .side-ioi .shop__cart h2 { font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 0; text-transform: none; }
.side-ioi .shop__soon-title { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; }
.side-ioi .shop__add, .side-ioi .shop__tabs b { color: #fff; }
.side-ioi .shop__soon-form input:focus, .side-ioi .shop__soon-form textarea:focus { box-shadow: 0 0 0 3px rgba(179,38,42,.25); }
.side-ioi .shop__soon-item:has(input:checked) { background: #f4f4f5; }
.side-ioi .shop__view:focus-visible { outline-color: #b3262a; }
