/* SW13 Store — front end */
:root {
	--sw13-primary: #022771;
	--sw13-primary-ink: #fff;
	--sw13-ink: #212121;
	--sw13-muted: #6b7280;
	--sw13-line: #e4e7ee;
	--sw13-soft: #f5f6f9;
	--sw13-accent: #9a5f34;
	--sw13-ok: #1f7a3a;
	--sw13-err: #b42318;
	--sw13-radius: 14px;
	--sw13-shadow: 0 10px 30px rgba(2, 39, 113, .08);
}

.sw13-container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.sw13-main { padding-block: 28px 80px; }
.sw13-page-head { background: var(--sw13-soft); padding: 34px 0 30px; margin: -28px 0 34px; }
.sw13-page-head h1 { margin: 6px 0 4px; font-size: clamp(28px, 4vw, 40px); font-weight: 500; color: var(--sw13-primary); }
.sw13-page-head p { margin: 0; color: var(--sw13-muted); }

/* Buttons */
.sw13-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.1; text-decoration: none; cursor: pointer; border: 1.5px solid var(--sw13-primary); transition: background .2s, color .2s, transform .15s, box-shadow .2s; }
.sw13-btn--primary { background: var(--sw13-primary); color: var(--sw13-primary-ink); }
.sw13-btn--primary:hover { background: #011a4d; box-shadow: 0 8px 20px rgba(2, 39, 113, .25); color: #fff; }
.sw13-btn--outline { background: transparent; color: var(--sw13-primary); }
.sw13-btn--outline:hover { background: var(--sw13-primary); color: #fff; }
.sw13-btn--block { width: 100%; }
.sw13-btn:disabled { opacity: .6; cursor: progress; }
.sw13-btn.is-loading { position: relative; color: transparent !important; }
.sw13-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: sw13spin .7s linear infinite; }
@keyframes sw13spin { to { transform: rotate(360deg); } }

/* Crumbs */
.sw13-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--sw13-muted); margin-bottom: 18px; }
.sw13-crumbs a { color: var(--sw13-muted); text-decoration: none; }
.sw13-crumbs a:hover { color: var(--sw13-primary); }
.sw13-crumbs [aria-current] { color: var(--sw13-ink); }

/* Grid & cards */
.sw13-grid { display: grid; grid-template-columns: repeat(var(--sw13-cols, 3), minmax(0, 1fr)); gap: 26px; }
.sw13-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sw13-line); border-radius: var(--sw13-radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.sw13-card:hover { transform: translateY(-4px); box-shadow: var(--sw13-shadow); border-color: transparent; }
.sw13-card__media { position: relative; display: block; aspect-ratio: 6 / 5; background: radial-gradient(circle at 50% 40%, #fff 0, var(--sw13-soft) 75%); }
.sw13-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .4s; }
.sw13-card:hover .sw13-card__media img { transform: scale(1.04); }
.sw13-card__badge { position: absolute; top: 12px; left: 12px; background: var(--sw13-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.sw13-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; flex: 1; }
.sw13-card__title { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.3; }
.sw13-card__title a { color: var(--sw13-ink); text-decoration: none; }
.sw13-card__title a:hover { color: var(--sw13-primary); }
.sw13-card__price { color: var(--sw13-primary); font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.sw13-card__btn { margin-top: auto; align-self: flex-start; padding: 10px 18px; font-size: 14px; }
.sw13-price del { color: var(--sw13-muted); font-weight: 400; margin-right: 4px; }
.sw13-price ins { text-decoration: none; }
.sw13-price--quote { font-size: .95em; color: var(--sw13-accent); }
.sw13-empty { color: var(--sw13-muted); }

/* Shop layout */
.sw13-shop__layout.has-filters { display: grid; grid-template-columns: 230px 1fr; gap: 34px; align-items: start; }
.sw13-filters { position: sticky; top: 110px; background: #fff; border: 1px solid var(--sw13-line); border-radius: var(--sw13-radius); padding: 20px; }
.sw13-filters__title { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--sw13-primary); }
.sw13-check { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 15px; }
.sw13-check input { width: 18px; height: 18px; accent-color: var(--sw13-primary); }
.sw13-check em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--sw13-muted); background: var(--sw13-soft); border-radius: 99px; padding: 1px 8px; }
.sw13-filters__reset { margin-top: 10px; background: none; border: 0; padding: 0; color: var(--sw13-primary); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.sw13-shop__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sw13-shop__count { margin: 0; color: var(--sw13-muted); font-size: 14px; }
.sw13-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sw13-muted); }
.sw13-sort select { font: inherit; padding: 8px 12px; border: 1px solid var(--sw13-line); border-radius: 10px; background: #fff; }

/* Categories */
.sw13-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.sw13-cat { display: block; text-decoration: none; color: var(--sw13-ink); border-radius: var(--sw13-radius); overflow: hidden; border: 1px solid var(--sw13-line); background: #fff; }
.sw13-cat__img { display: block; aspect-ratio: 4/3; background: var(--sw13-soft); }
.sw13-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.sw13-cat__name { display: block; padding: 14px 16px; font-weight: 600; }

/* Single */
.sw13-single__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.sw13-gallery { position: sticky; top: 100px; }
.sw13-gallery__stage { position: relative; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #fff 0, var(--sw13-soft) 70%); border: 1px solid var(--sw13-line); aspect-ratio: 6 / 5; display: grid; place-items: center; }
.sw13-gallery__main { width: 100%; height: 100%; object-fit: contain; padding: 4%; transition: opacity .2s; }
.sw13-gallery__main.is-swapping { opacity: .35; }
.sw13-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.sw13-gallery__thumbs button { width: 76px; height: 76px; padding: 4px; border: 1.5px solid var(--sw13-line); border-radius: 12px; background: #fff; cursor: pointer; }
.sw13-gallery__thumbs button.is-active { border-color: var(--sw13-primary); }
.sw13-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.sw13-summary__title { margin: 0 0 8px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; font-weight: 500; color: var(--sw13-ink); }
.sw13-summary__price { font-size: 24px; font-weight: 600; color: var(--sw13-primary); margin-bottom: 14px; }
.sw13-summary__excerpt { color: var(--sw13-muted); }

.sw13-add-form { display: flex; flex-direction: column; gap: 22px; margin-top: 20px; }
.sw13-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.sw13-field__label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; color: var(--sw13-ink); }
.sw13-req { color: var(--sw13-err); }
.sw13-attr__chosen { font-weight: 400; color: var(--sw13-muted); }
.sw13-field.is-invalid .sw13-field__label { color: var(--sw13-err); }
.sw13-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.sw13-choice { position: relative; cursor: pointer; }
.sw13-choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.sw13-choice__box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 14px; border: 1.5px solid var(--sw13-line); border-radius: 12px; background: #fff; font-size: 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
.sw13-choice:hover .sw13-choice__box { border-color: #9aa6c3; }
.sw13-choice input:checked + .sw13-choice__box { border-color: var(--sw13-primary); box-shadow: 0 0 0 3px rgba(2, 39, 113, .12); background: #f7f9ff; }
.sw13-choice input:focus-visible + .sw13-choice__box { outline: 2px solid var(--sw13-primary); outline-offset: 2px; }
.sw13-choice.is-unavailable .sw13-choice__box { opacity: .4; }
.sw13-attr--images .sw13-choice__box { width: 92px; padding: 8px 6px; }
.sw13-attr--images .sw13-choice__box img { width: 64px; height: 64px; object-fit: contain; }
.sw13-attr--images .sw13-choice__text { font-size: 12px; text-align: center; line-height: 1.2; }
.sw13-attr--swatches .sw13-choice__box { width: 92px; padding: 8px 6px; }
.sw13-attr--swatches .sw13-choice__box img, .sw13-attr--swatches .sw13-choice__box i { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; }
.sw13-attr--swatches .sw13-choice__text { font-size: 12px; }
.sw13-attr--buttons .sw13-choice__box { flex-direction: row; padding: 10px 16px; }
.sw13-attr select, .sw13-add-form select, .sw13-add-form textarea, .sw13-add-form input[type="text"] { width: 100%; font: inherit; color: var(--sw13-ink); padding: 12px 14px; border: 1.5px solid var(--sw13-line); border-radius: 12px; background: #fff; }

.sw13-total { display: flex; align-items: baseline; gap: 12px; padding: 16px 18px; background: var(--sw13-soft); border-radius: 14px; }
.sw13-total span { color: var(--sw13-muted); }
.sw13-total strong { font-size: 24px; color: var(--sw13-primary); }
.sw13-total small { color: var(--sw13-muted); margin-left: auto; }
.sw13-buy { display: flex; gap: 12px; }
.sw13-buy .sw13-add-btn { flex: 1; font-size: 16px; padding-block: 16px; }
.sw13-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--sw13-line); border-radius: 999px; background: #fff; overflow: hidden; }
.sw13-qty button { width: 42px; height: 50px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--sw13-ink); }
.sw13-qty button:hover { background: var(--sw13-soft); }
.sw13-qty input { width: 54px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.sw13-qty input::-webkit-inner-spin-button, .sw13-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sw13-qty--sm button { width: 34px; height: 38px; font-size: 17px; }
.sw13-qty--sm input { width: 42px; }
.sw13-form-msg:empty { display: none; }
.sw13-form-msg { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.sw13-form-msg.is-error { background: #fdecea; color: var(--sw13-err); }

.sw13-desc, .sw13-related { margin-top: 64px; }
.sw13-desc h2, .sw13-related h2 { font-size: 24px; font-weight: 500; color: var(--sw13-primary); margin: 0 0 18px; }
.sw13-desc__body { max-width: 760px; color: #3a3f4a; }
.sw13-related .sw13-grid { --sw13-cols: 4; }

/* Toast */
.sw13-toast { position: fixed; right: 20px; top: 20px; z-index: 99999; width: min(380px, calc(100% - 40px)); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(10, 20, 50, .22); padding: 18px; transform: translateY(-14px); opacity: 0; transition: transform .25s, opacity .25s; }
.sw13-toast.is-open { transform: none; opacity: 1; }
.sw13-toast__head { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 14px; }
.sw13-toast__ok { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e7f5ec; color: var(--sw13-ok); }
.sw13-toast__close { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--sw13-muted); padding: 4px; }
.sw13-toast__item { display: flex; gap: 12px; font-size: 14px; }
.sw13-toast__item img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: var(--sw13-soft); flex: none; }
.sw13-toast__item ul { list-style: none; margin: 4px 0; padding: 0; color: var(--sw13-muted); font-size: 13px; }
.sw13-toast__item em { font-style: normal; color: var(--sw13-ink); }
.sw13-toast__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sw13-toast__actions .sw13-btn { padding: 11px 10px; font-size: 14px; }

/* Cart */
.sw13-cart.is-busy { opacity: .6; pointer-events: none; }
.sw13-cart__grid, .sw13-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.sw13-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 90px; gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--sw13-line); }
.sw13-line:first-child { border-top: 1px solid var(--sw13-line); }
.sw13-line__img img { width: 96px; height: 96px; object-fit: contain; border-radius: 12px; background: var(--sw13-soft); }
.sw13-line__name { font-weight: 600; color: var(--sw13-ink); text-decoration: none; }
.sw13-line__meta { list-style: none; padding: 0; margin: 6px 0 0; font-size: 13px; color: var(--sw13-muted); }
.sw13-line__meta li { margin: 2px 0; }
.sw13-line__meta span { color: #4b5160; }
.sw13-line__meta a { color: var(--sw13-primary); }
.sw13-line__remove { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--sw13-err); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.sw13-line__qty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sw13-line__qty small { color: var(--sw13-muted); font-size: 12px; white-space: nowrap; }
.sw13-line__total { text-align: right; font-weight: 600; }
.sw13-summary-box { position: sticky; top: 100px; background: var(--sw13-soft); border-radius: 18px; padding: 24px; }
.sw13-summary-box h2 { margin: 0 0 14px; font-size: 20px; font-weight: 600; color: var(--sw13-primary); }
.sw13-summary-box .sw13-line { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; }
.sw13-summary-box .sw13-line__img img { width: 60px; height: 60px; background: #fff; }
.sw13-summary-box .sw13-line__total { grid-column: 3; }
.sw13-summary-box .sw13-line__qty { display: none; }
.sw13-totals { margin: 14px 0; }
.sw13-totals > div { display: flex; justify-content: space-between; padding: 6px 0; }
.sw13-totals dt { color: var(--sw13-muted); }
.sw13-totals dd { margin: 0; font-weight: 600; }
.sw13-totals .is-savings dt, .sw13-totals .is-savings dd { color: var(--sw13-ok); }
.sw13-totals .is-total { border-top: 1px solid #d5d9e3; margin-top: 8px; padding-top: 12px; font-size: 18px; }
.sw13-totals .is-total dt { color: var(--sw13-ink); font-weight: 700; }
.sw13-summary-box__note { font-size: 13px; color: var(--sw13-muted); }
.sw13-summary-box__continue { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: var(--sw13-primary); }
.sw13-empty-cart { text-align: center; padding: 60px 20px; background: var(--sw13-soft); border-radius: 18px; }
.sw13-empty-cart p { font-size: 18px; margin: 0 0 18px; }

/* Checkout */
.sw13-checkout__form h2 { font-size: 20px; font-weight: 600; color: var(--sw13-primary); margin: 0 0 14px; }
.sw13-checkout__form h2:not(:first-child) { margin-top: 28px; }
.sw13-checkout__form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.sw13-checkout__form input[type="text"], .sw13-checkout__form input[type="email"], .sw13-checkout__form input[type="tel"], .sw13-checkout__form textarea { font: inherit; font-weight: 400; color: var(--sw13-ink); padding: 12px 14px; border: 1.5px solid var(--sw13-line); border-radius: 12px; background: #fff; }
.sw13-checkout__form input:focus, .sw13-checkout__form textarea:focus { outline: none; border-color: var(--sw13-primary); box-shadow: 0 0 0 3px rgba(2, 39, 113, .12); }
.sw13-checkout__form .is-invalid { border-color: var(--sw13-err) !important; }
.sw13-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sw13-row--3 { grid-template-columns: 2fr 1fr 1fr; }
.sw13-methods { display: grid; gap: 10px; margin-bottom: 14px; }
.sw13-method { flex-direction: row !important; align-items: center; padding: 14px 16px; border: 1.5px solid var(--sw13-line); border-radius: 12px; cursor: pointer; font-weight: 500 !important; margin: 0 !important; }
.sw13-method input { accent-color: var(--sw13-primary); width: 18px; height: 18px; }
.sw13-method strong { margin-left: auto; }
.sw13-method:has(input:checked) { border-color: var(--sw13-primary); background: #f7f9ff; }
.sw13-checkout__note { font-size: 13px; color: var(--sw13-muted); text-align: center; }
.sw13-pay-btn { margin-top: 8px; font-size: 16px; padding-block: 16px; }

/* Thanks */
.sw13-thanks { max-width: 720px; margin: 0 auto; text-align: center; }
.sw13-thanks h1 { font-weight: 500; color: var(--sw13-primary); font-size: clamp(26px, 3.5vw, 36px); }
.sw13-thanks__icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #e7f5ec; color: var(--sw13-ok); display: grid; place-items: center; }
.sw13-thanks__icon svg { width: 32px; height: 32px; }
.sw13-thanks__order { text-align: left; margin: 26px 0; border: 1px solid var(--sw13-line); border-radius: 18px; overflow: hidden; }
.sw13-thanks__order > div { padding: 0 !important; background: #fff !important; }

/* Header cart link */
.sw13-cart-link { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; color: inherit; }
.sw13-cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--sw13-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.sw13-cart-count[data-empty] { background: #9aa3b5; }

@media (max-width: 1024px) {
	.sw13-grid { --sw13-cols: 2 !important; }
	.sw13-single__grid { gap: 30px; }
	.sw13-cart__grid, .sw13-checkout { grid-template-columns: 1fr; }
	.sw13-summary-box { position: static; }
}
@media (max-width: 860px) {
	.sw13-single__grid { grid-template-columns: 1fr; }
	.sw13-gallery { position: static; }
	.sw13-shop__layout.has-filters { grid-template-columns: 1fr; gap: 18px; }
	.sw13-filters { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
	.sw13-filters__title { width: 100%; margin-bottom: 4px; }
	.sw13-filters__reset { margin: 0; }
}
@media (max-width: 600px) {
	.sw13-container { width: calc(100% - 28px); }
	.sw13-grid { gap: 14px; }
	.sw13-card__body { padding: 12px 12px 16px; }
	.sw13-card__title { font-size: 15px; }
	.sw13-card__btn { padding: 9px 12px; font-size: 13px; }
	.sw13-line { grid-template-columns: 70px minmax(0, 1fr) auto; }
	.sw13-line__img img { width: 70px; height: 70px; }
	.sw13-line__qty { grid-column: 2; align-items: flex-start; }
	.sw13-line__total { grid-column: 3; grid-row: 1; }
	.sw13-row, .sw13-row--3 { grid-template-columns: 1fr; gap: 0; }
	.sw13-buy { flex-direction: column; }
	.sw13-qty { align-self: flex-start; }
	.sw13-related .sw13-grid { --sw13-cols: 2; }
	.sw13-toast { top: auto; bottom: 14px; right: 14px; }
}

/* Guard against theme label colors */
.sw13-check, .sw13-checkout__form label, .sw13-sort, .sw13-method, .sw13-field__label { color: var(--sw13-ink); }
.sw13-sort { color: var(--sw13-muted); }
