:root {
  --ink: #171717;
  --muted: #737373;
  --line: #e7e5e4;
  --paper: #ffffff;
  --soft: #fafaf9;
  --accent: #f5f0ea;
  --doge: #c2a633;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.store-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.store-brand,
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.store-brand {
  width: 34px;
  height: 34px;
}

.store-name {
  font-size: 15px;
  font-weight: 800;
}

.bag-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
}

.bag-button span {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}

.store-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 76px;
}

.creator-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 0 46px;
}

.avatar {
  width: 72px;
  height: 72px;
  font-size: 28px;
}

.powered,
.section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 2px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
}

.pay-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.pay-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.pay-strip strong,
.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(194, 166, 51, 0.4);
  border-radius: 999px;
  background: rgba(194, 166, 51, 0.14);
  color: #7a650d;
  padding: 6px 10px;
  font-size: 13px;
}

.btc-pill {
  border-color: rgba(247, 147, 26, 0.35);
  background: rgba(247, 147, 26, 0.12);
  color: #8a4d00;
}

.coin-logo {
  display: inline-grid;
  place-items: center;
  pointer-events: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.doge-logo {
  background: #c2a633;
}

.btc-logo {
  background: #f7931a;
}

.store-note {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
}

.product-list {
  padding-top: 20px;
}

.simple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 34px;
  margin-top: 24px;
}

.product-card {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
}

.image-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.image-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  padding: 16px;
}

.badge,
.product-card p,
.product-series {
  display: none;
}

.product-card h3 {
  min-height: 44px;
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 750;
}

.product-card > div:not(.card-actions) {
  display: grid;
  gap: 4px;
}

.product-card strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
}

.card-rating,
.rating-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.card-rating span,
.rating-summary span,
.review-stars {
  color: #e4a11b;
  letter-spacing: 0;
}

.card-rating strong,
.rating-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.card-rating em,
.rating-summary em {
  font-style: normal;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.card-actions button,
.primary-action,
.ticket-actions button,
.ticket-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.card-actions button:first-child {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.product-modal,
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 23, 23, 0.48);
}

.product-modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 24px;
  width: min(980px, 100%);
  max-height: min(860px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  padding: 20px;
}

.modal-close,
.drawer-head button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.modal-gallery {
  display: grid;
  gap: 12px;
  align-content: start;
}

.modal-gallery > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.gallery-thumbs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: #fff;
  cursor: pointer;
}

.gallery-thumbs button.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.modal-info {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 34px;
}

.modal-info h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.modal-info p,
.detail-list,
.checkout-panel p,
.payment-ticket p {
  color: var(--muted);
  line-height: 1.65;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
}

.reviews-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.reviews-panel[hidden] {
  display: none;
}

.reviews-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.reviews-head h3 {
  margin: 0;
  font-size: 18px;
}

.reviews-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.review-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.review-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

.review-card > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.review-card strong,
.review-card h4 {
  color: var(--ink);
}

.review-card h4,
.review-card p {
  margin: 0;
}

.review-card h4 {
  font-size: 14px;
}

.review-card p {
  color: var(--muted);
  line-height: 1.55;
}

.review-card span,
.review-card small {
  color: var(--muted);
  font-size: 12px;
}

.buy-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.buy-line strong {
  font-size: 28px;
}

.buy-line span {
  color: var(--muted);
  font-weight: 800;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 42px 52px 42px;
  width: max-content;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.quantity-control button,
.quantity-control output {
  display: grid;
  place-items: center;
  border: 0;
  background: #fff;
}

.quantity-control output {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-weight: 900;
}

.trust-section,
.assurance-section,
.process-section,
.policy-section {
  margin-top: clamp(58px, 8vw, 92px);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.trust-strip > div {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 132px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-strip strong {
  font-size: 16px;
}

.trust-strip span,
.assurance-copy p,
.assurance-grid p,
.process-steps p,
.policy-column p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.assurance-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: clamp(42px, 6vw, 68px);
}

.assurance-copy {
  position: sticky;
  top: 92px;
}

.assurance-copy h2,
.process-section h2 {
  margin: 12px 0 16px;
  max-width: 520px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.assurance-grid article,
.process-steps > div,
.policy-note,
.policy-column details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.assurance-grid article {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 22px;
}

.assurance-grid article span,
.process-steps span {
  color: #8a4d00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.assurance-grid h3,
.policy-note h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.process-section {
  border-top: 1px solid var(--line);
  padding-top: clamp(38px, 6vw, 58px);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.process-steps > div {
  display: grid;
  gap: 10px;
  min-height: 184px;
  padding: 20px;
}

.process-steps strong {
  font-size: 16px;
}

.process-steps span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(247, 147, 26, 0.14);
}

.policy-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(24px, 4vw, 46px);
  border-top: 1px solid var(--line);
  padding-top: clamp(38px, 6vw, 58px);
}

.policy-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.policy-column .section-kicker {
  margin-bottom: 6px;
}

.policy-column details {
  padding: 0;
}

.policy-column summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 850;
  list-style: none;
}

.policy-column summary::-webkit-details-marker {
  display: none;
}

.policy-column summary::after {
  content: "+";
  float: right;
  color: var(--muted);
}

.policy-column details[open] summary::after {
  content: "-";
}

.policy-column details p {
  border-top: 1px solid var(--line);
  padding: 16px 20px 18px;
}

.policy-note {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.policy-note a {
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.64fr);
  gap: clamp(34px, 6vw, 76px);
  width: 100%;
  margin: 0;
  min-height: calc(100vh - 64px);
  padding: 58px max(18px, calc((100vw - 1120px) / 2 + 40px)) 70px;
  border-top: 1px solid #24242b;
  background: #090a0f;
  color: #f8fafc;
}

body.checkout-active {
  background: #090a0f;
}

body.checkout-active .store-shell,
body.checkout-active .site-footer {
  display: none;
}

body.checkout-active .checkout-panel {
  display: grid;
}

body.checkout-active .store-top {
  border-bottom-color: #24242b;
  background: rgba(9, 10, 15, 0.94);
}

body.checkout-active .store-name,
body.checkout-active .bag-button {
  color: #f8fafc;
}

body.checkout-active .store-brand,
body.checkout-active .bag-button span {
  background: #1ea7e1;
  color: #051018;
}

body.checkout-active .bag-button {
  border-color: #2a2d36;
  background: #15161d;
}

.checkout-main {
  max-width: 520px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: #9fb0c9;
  font-size: 14px;
}

.checkout-main h2 {
  margin: 0 0 26px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1;
}

.checkout-form,
.checkout-form fieldset {
  display: grid;
}

.checkout-form {
  gap: 30px;
}

.checkout-form fieldset {
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-form legend,
.payment-caption {
  margin-bottom: 6px;
  color: #8191b2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}

.checkout-form input,
.checkout-form select {
  width: 100%;
  height: 42px;
  border: 1px solid #2a2d36;
  border-radius: 8px;
  background: #0b0c12;
  color: #f8fafc;
  padding: 0 12px;
  outline: none;
}

.checkout-form input:focus,
.checkout-form select:focus {
  border-color: #22a7e8;
  box-shadow: 0 0 0 3px rgba(34, 167, 232, 0.14);
}

.checkout-form small,
.method-note,
.crypto-note,
.secure-note {
  margin: 0;
  color: #71809c;
  font-size: 12px;
  line-height: 1.6;
}

.shipping-options {
  display: grid;
  gap: 10px;
}

.shipping-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 48px;
  border: 1px solid #2a2d36;
  border-radius: 8px;
  background: #0b0c12;
  padding: 10px 12px;
  cursor: pointer;
}

.shipping-option:has(input:checked) {
  border-color: #22a7e8;
  background: #0c1621;
}

.shipping-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.shipping-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.shipping-option strong {
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.35;
}

.shipping-option em {
  color: #7f8da8;
  font-size: 12px;
  font-style: normal;
}

.shipping-option b {
  color: #f8fafc;
  font-size: 13px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-summary {
  display: grid;
  align-content: start;
  gap: 18px;
}

.summary-card,
.payment-ticket {
  border: 1px solid #2a2d36;
  border-radius: 12px;
  background: #15161d;
  padding: 22px;
}

.summary-card .section-kicker {
  color: #8791a6;
}

.summary-items {
  display: grid;
  gap: 14px;
  padding: 8px 0 20px;
  border-bottom: 1px solid #2a2d36;
}

.summary-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
}

.summary-item img {
  width: 52px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.summary-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.summary-item span,
.summary-empty,
.summary-totals span {
  color: #8490a6;
  font-size: 12px;
}

.summary-empty {
  margin: 10px 0 20px;
}

.summary-empty[hidden] {
  display: none;
}

.summary-totals {
  display: grid;
  gap: 14px;
  padding: 18px 0;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.payment-methods label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #2a2d36;
  border-radius: 8px;
  padding: 0 13px;
  background: #0b0c12;
  cursor: pointer;
}

.payment-methods label:has(input:checked) {
  border-color: #22a7e8;
  background: #101826;
}

.payment-methods input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.summary-totals div,
.drawer-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.summary-totals div:last-child {
  padding-top: 10px;
  color: #f8fafc;
  font-size: 17px;
}

.summary-card .primary-action {
  width: 100%;
  border-color: #1ea7e1;
  background: #1ea7e1;
  color: #051018;
}

.secure-note {
  margin-top: 14px;
  text-align: center;
}

.payment-ticket[hidden] {
  display: none;
}

.ticket-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.ticket-head span,
.wallet-box span {
  color: #8791a6;
  font-size: 13px;
  font-weight: 800;
}

.ticket-head strong {
  color: #f8fafc;
  font-size: 24px;
  word-break: break-word;
}

.qr-code,
.qr-placeholder {
  width: 100%;
  max-width: 230px;
  aspect-ratio: 1 / 1;
  border: 1px solid #2a2d36;
  border-radius: 8px;
  margin: 0 auto 14px;
  object-fit: contain;
  background: #fff;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  color: #8490a6;
  text-align: center;
  padding: 16px;
  background: #0b0c12;
}

.qr-code[hidden],
.qr-placeholder[hidden] {
  display: none;
}

.wallet-box {
  display: grid;
  gap: 6px;
}

.wallet-box code {
  overflow-wrap: anywhere;
  border: 1px solid #2a2d36;
  border-radius: 8px;
  padding: 10px;
  background: #0b0c12;
  color: #f8fafc;
  font-size: 12px;
}

.ticket-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ticket-actions .disabled {
  opacity: 0.55;
  pointer-events: none;
}

.payment-ticket p {
  color: #8490a6;
}

.payment-ticket .order-status {
  color: #8bd7a2;
  font-weight: 800;
}

.payment-ticket .order-status.error {
  color: #ffb4a6;
}

.cart-drawer {
  display: none;
  place-items: stretch end;
  padding: 0;
}

.cart-drawer.open {
  display: grid;
}

.drawer-panel {
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
  width: min(380px, 100vw);
  height: 100vh;
  border-radius: 0;
  overflow: auto;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 66px 1fr 34px;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 66px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.cart-item span,
.empty-cart {
  color: var(--muted);
}

.cart-item button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.drawer-total {
  margin: 18px 0;
}

.site-footer {
  border-top: 1px solid #24242b;
  background: #090a0f;
  color: #f8fafc;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 28px;
}

.footer-brand-block {
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.footer-powered {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1ea7e1;
  color: #061018;
  font-weight: 900;
}

.footer-powered span:not(.footer-mark),
.footer-pay > span {
  display: block;
  color: #8191b2;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-powered strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.footer-brand-block p {
  margin: 0;
  max-width: 460px;
  color: #8490a6;
  line-height: 1.65;
}

.footer-pay {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-pay strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 160px;
  color: #b9c6dc;
  font-size: 14px;
}

.footer-links a:hover {
  color: #f8fafc;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid #24242b;
  padding-top: 24px;
  color: #66738b;
  font-size: 12px;
}

.footer-bottom span:first-child {
  font-size: 0;
}

.footer-bottom span:first-child::before {
  content: "(c) 2026 Dogefunny. Adult 18+ store.";
  font-size: 12px;
}

@media (max-width: 980px) {
  .simple-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
  }

  .trust-strip,
  .assurance-section,
  .policy-section {
    grid-template-columns: 1fr;
  }

  .trust-strip > div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip > div:last-child {
    border-bottom: 0;
  }

  .assurance-copy {
    position: static;
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-card,
  .checkout-panel {
    grid-template-columns: 1fr;
  }

  .checkout-main {
    max-width: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .store-shell,
  .checkout-panel {
    width: min(100% - 28px, 1120px);
  }

  .simple-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-card h3 {
    min-height: auto;
    font-size: 19px;
  }

  .trust-section,
  .assurance-section,
  .process-section,
  .policy-section {
    margin-top: 48px;
  }

  .assurance-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .assurance-grid article,
  .process-steps > div {
    min-height: auto;
  }

  .image-button img {
    aspect-ratio: 4 / 3;
    padding: 18px;
  }

  .modal-card {
    padding: 14px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .checkout-panel {
    width: 100%;
    padding: 34px 18px 48px;
  }

  .form-row,
  .summary-item {
    grid-template-columns: 1fr;
  }

  .summary-item img {
    width: 72px;
  }

  .footer-inner {
    width: min(100% - 28px, 1120px);
    padding: 42px 0 24px;
  }

  .footer-bottom {
    display: grid;
  }
}
