/* N2C Square Shop. Reads the theme tokens; fallbacks keep it usable on any theme. */

.n2c-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.n2c-tile { background: var(--n2c-white, #fff); border: 1px solid var(--n2c-line, #F5CFE0); border-radius: 18px; padding: 22px 20px; text-decoration: none; color: var(--n2c-ink, #2B0F1E); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s; }
.n2c-tile:hover { border-color: var(--n2c-berry, #A3135A); color: var(--n2c-ink, #2B0F1E); transform: translateY(-2px); }
.n2c-tile__name { font-family: var(--n2c-font-display, Georgia, serif); font-weight: 700; font-size: 22px; line-height: 1.15; }
.n2c-tile__count { font-size: 14px; color: var(--n2c-muted, #6E3A55); }

.n2c-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.n2c-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--n2c-line-strong, #E8B4CC); background: var(--n2c-white, #fff); color: var(--n2c-ink, #2B0F1E); text-decoration: none; font-size: 14px; font-weight: 500; }
.n2c-chip:hover { border-color: var(--n2c-berry, #A3135A); color: var(--n2c-berry, #A3135A); }
.n2c-chip.is-on { background: var(--n2c-ink, #2B0F1E); border-color: var(--n2c-ink, #2B0F1E); color: var(--n2c-white, #fff); font-weight: 700; }

.n2c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
@media (max-width: 560px) { .n2c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.n2c-card { background: var(--n2c-white, #fff); border: 1px solid var(--n2c-line, #F5CFE0); border-radius: var(--n2c-radius, 20px); overflow: hidden; display: flex; flex-direction: column; }
.n2c-card__media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: var(--n2c-soft, #FCE4EE); color: var(--n2c-berry, #A3135A); }
.n2c-card__media img { width: 100%; height: 100%; object-fit: cover; }
.n2c-badge { position: absolute; top: 12px; left: 12px; background: var(--n2c-ink, #2B0F1E); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; }
.n2c-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.n2c-card__cat { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8A3A62; font-weight: 700; }
.n2c-card__name { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.n2c-card__name a { color: inherit; text-decoration: none; }
.n2c-card__name a:hover { color: var(--n2c-berry, #A3135A); }
.n2c-card__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.n2c-card__price { font-size: 18px; font-weight: 700; }
@media (max-width: 560px) {
	.n2c-card__body { padding: 12px; }
	.n2c-card__name { font-size: 15px; }
	.n2c-card__foot .n2c-btn { width: 100%; }
}

.n2c-btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.n2c-btn--block { width: 100%; }
.n2c-btn[disabled] { opacity: .6; cursor: default; }

.n2c-ph { display: flex; align-items: center; justify-content: center; color: var(--n2c-berry, #A3135A); opacity: .35; }
.n2c-ph svg { width: 64px; height: auto; }
.n2c-empty-state { text-align: center; padding: 48px 24px; background: var(--n2c-white, #fff); border: 1px dashed var(--n2c-line-strong, #E8B4CC); border-radius: var(--n2c-radius, 20px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.n2c-empty-state p { margin: 0; max-width: 460px; }

/* Product */
.n2c-crumbs { font-size: 14px; color: var(--n2c-muted, #6E3A55); margin-bottom: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.n2c-product { display: flex; flex-wrap: wrap; gap: 48px; }
.n2c-product__gallery { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.n2c-product__main { aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; background: var(--n2c-soft, #FCE4EE); display: flex; align-items: center; justify-content: center; }
.n2c-product__main img { width: 100%; height: 100%; object-fit: cover; }
.n2c-product__main .n2c-ph svg { width: 120px; }
.n2c-product__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.n2c-thumb { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--n2c-soft, #FCE4EE); cursor: pointer; aspect-ratio: 1 / 1; }
.n2c-thumb img { width: 100%; height: 100%; object-fit: cover; }
.n2c-thumb.is-on { border-color: var(--n2c-berry, #A3135A); }
.n2c-product__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.n2c-product__title { margin: 0; font-family: var(--n2c-font-display, Georgia, serif); font-weight: 900; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.05; }
.n2c-product__price { margin: 0; font-size: 28px; font-weight: 700; }
.n2c-product__desc { font-size: 17px; color: #5C2A44; }
.n2c-product__desc p { margin: 0 0 12px; }
.n2c-options { border: 0; margin: 0; padding: 0; }
.n2c-options legend { font-weight: 700; padding: 0 0 10px; }
.n2c-options__list { display: flex; flex-wrap: wrap; gap: 10px; }
.n2c-option { position: relative; cursor: pointer; }
.n2c-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.n2c-option span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--n2c-line-strong, #E8B4CC); background: var(--n2c-white, #fff); font-size: 15px; }
.n2c-option input:checked + span { border-color: var(--n2c-ink, #2B0F1E); background: var(--n2c-ink, #2B0F1E); color: #fff; font-weight: 700; }
.n2c-option input:focus-visible + span { outline: 3px solid var(--n2c-berry, #A3135A); outline-offset: 2px; }
.n2c-option.is-out span { opacity: .5; text-decoration: line-through; }
.n2c-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.n2c-buy__add { flex: 1 1 220px; min-height: 52px; font-size: 17px; }
.n2c-qty { display: inline-flex; align-items: center; border: 1px solid var(--n2c-line-strong, #E8B4CC); border-radius: 999px; background: var(--n2c-white, #fff); }
.n2c-qty button { width: 46px; height: 50px; border: 0; background: transparent; font-size: 22px; color: var(--n2c-ink, #2B0F1E); cursor: pointer; border-radius: 999px; }
.n2c-qty button[disabled] { opacity: .35; cursor: default; }
.n2c-qty input { width: 44px; border: 0; text-align: center; font: 700 17px var(--n2c-font-body, sans-serif); background: transparent; color: var(--n2c-ink, #2B0F1E); -moz-appearance: textfield; }
.n2c-qty input::-webkit-outer-spin-button, .n2c-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.n2c-qty--sm button { width: 44px; height: 44px; font-size: 20px; }
.n2c-qty__n { min-width: 24px; text-align: center; font-weight: 700; }
.n2c-stock { margin: 0; font-weight: 700; color: #1F6B3F; }
.n2c-stock--out { color: var(--n2c-berry, #A3135A); }
.n2c-assure { list-style: none; margin: 0; padding: 16px 20px; background: var(--n2c-white, #fff); border: 1px solid var(--n2c-line, #F5CFE0); border-radius: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.n2c-assure li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--n2c-berry, #A3135A); margin-right: 10px; vertical-align: middle; }

/* Bag */
.n2c-cart { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-top: 24px; }
.n2c-cart__lines { flex: 999 1 520px; min-width: 0; }
.n2c-cart__summary { flex: 1 1 340px; background: var(--n2c-white, #fff); border: 1px solid var(--n2c-line, #F5CFE0); border-radius: var(--n2c-radius, 20px); padding: 24px; position: sticky; top: 110px; }
.n2c-cart__summary[hidden] { display: none; }
.n2c-cart__h { margin: 0 0 16px; font-family: var(--n2c-font-display, Georgia, serif); font-size: 24px; }
.n2c-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.n2c-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; background: var(--n2c-white, #fff); border: 1px solid var(--n2c-line, #F5CFE0); border-radius: 18px; padding: 14px; align-items: start; }
.n2c-line__media { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--n2c-soft, #FCE4EE); display: block; }
.n2c-line__media img { width: 100%; height: 100%; object-fit: cover; }
.n2c-line__info { display: flex; flex-direction: column; gap: 4px; }
.n2c-line__name { font-weight: 700; color: var(--n2c-ink, #2B0F1E); text-decoration: none; }
.n2c-line__name:hover { color: var(--n2c-berry, #A3135A); }
.n2c-line__row { display: flex; align-items: center; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.n2c-line__total { font-weight: 700; font-size: 17px; }
@media (max-width: 520px) {
	.n2c-line { grid-template-columns: 72px minmax(0, 1fr); }
	.n2c-line__media { width: 72px; height: 72px; }
	.n2c-line__total { grid-column: 2; }
}
.n2c-link { background: none; border: 0; padding: 10px 0; color: var(--n2c-berry, #A3135A); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }

.n2c-checkout { display: flex; flex-direction: column; gap: 14px; }
.n2c-fulfill { display: flex; flex-direction: column; gap: 10px; }
.n2c-fulfill__opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--n2c-line, #F5CFE0); border-radius: 14px; cursor: pointer; }
.n2c-fulfill__opt:has(input:checked) { border-color: var(--n2c-berry, #A3135A); background: #FFF8FB; }
.n2c-fulfill__opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--n2c-berry, #A3135A); }
.n2c-fulfill__opt span { display: flex; flex-direction: column; gap: 2px; }
.n2c-fulfill__opt small { color: var(--n2c-muted, #6E3A55); font-size: 13px; }
.n2c-pickup-fields { display: flex; flex-direction: column; gap: 14px; }
.n2c-pickup-fields[hidden] { display: none; }
.n2c-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.n2c-field input { min-height: 48px; padding: 10px 14px; border: 1px solid var(--n2c-line-strong, #E8B4CC); border-radius: 12px; font: 16px var(--n2c-font-body, sans-serif); color: var(--n2c-ink, #2B0F1E); background: #fff; }
.n2c-field input:focus { outline: 3px solid var(--n2c-berry, #A3135A); outline-offset: 1px; border-color: var(--n2c-berry, #A3135A); }
.n2c-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.n2c-totals { margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--n2c-line, #F5CFE0); display: flex; flex-direction: column; gap: 6px; }
.n2c-totals div { display: flex; justify-content: space-between; font-size: 17px; }
.n2c-totals div[hidden] { display: none; }
.n2c-totals dt { margin: 0; }
.n2c-totals dd { margin: 0; font-weight: 700; }
.n2c-small { font-size: 13px; }
.n2c-alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FFF1F1; color: #8A1C1C; font-size: 14px; }
.n2c-alert[hidden] { display: none; }
.n2c-secure { margin: 0; font-size: 13px; color: var(--n2c-muted, #6E3A55); display: flex; gap: 6px; align-items: center; justify-content: center; text-align: center; }

.n2c-thanks { max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.n2c-thanks p { margin: 0; font-size: 17px; }
.n2c-thanks .n2c-ph svg { width: 96px; }

.n2c-toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%); background: var(--n2c-ink, #2B0F1E); color: #fff; padding: 14px 18px; border-radius: 14px; display: flex; gap: 16px; align-items: center; font-size: 15px; z-index: 50; box-shadow: 0 10px 30px rgba(43, 15, 30, .25); transition: transform .25s; width: max-content; max-width: calc(100vw - 32px); }
.n2c-toast.is-on { transform: translate(-50%, 0); }
.n2c-toast a { color: #FFC8E0; font-weight: 700; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .n2c-toast, .n2c-tile { transition: none; } }
