.demo-badge {
  display:inline-block;
  background:#e9e1d4;
  color:#665032;
  padding:6px 10px;
}

.demo-product-note {
  padding:10px 13px;
  background:#ede6db;
  color:#665032;
  margin-bottom:20px;
}

.option-label {
  display:block;
  margin-bottom:8px;
}

.shop-select {
  width:100%;
  padding:12px;
  min-height:46px;
  background:transparent;
  border:1px solid var(--line);
  border-radius:0;
  color:var(--ink);
}

.detail-copy .detail-demo-price {
  margin:15px 0 23px;
}

.size-picker {
  border:0;
  padding:0;
  margin:0 0 20px;
  min-width:0;
}

.size-picker legend {
  margin-bottom:10px;
}

.size-picker>div {
  display:flex;
  gap:9px;
}

.size-option {
  width:49px;
  height:44px;
  border:1px solid var(--line);
  background:transparent;
}

.size-option[aria-pressed=true] {
  background:var(--ink);
  color:white;
  border-color:var(--ink);
}

.product-quantity {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
}

.product-quantity input {
  width:75px;
  min-height:44px;
  padding:8px 12px;
  border:1px solid var(--line);
  background:transparent;
  border-radius:0;
  color:var(--ink);
}

.detail-copy .product-ref {
  color:var(--muted);
  margin:12px 0 0;
}

.detail-copy #detail-wa {
  background:transparent;
  color:var(--ink);
  border:0;
  justify-content:flex-start;
  padding:10px 0;
  min-height:44px;
  margin-top:0;
}

.detail-copy .detail-size {
  margin-top:0;
}

.detail-copy .button:disabled {
  opacity:.45;
  cursor:not-allowed;
}

.form-error,.payment-error {
  color:#8a3030;
}

.cart-dialog {
  position:fixed;
  inset:0 0 0 auto;
  margin:0 0 0 auto;
  width:min(500px,100vw);
  max-width:100vw;
  height:100dvh;
  max-height:100dvh;
  overflow:hidden;
  box-shadow:-15px 0 50px #0002;
}

.cart-dialog[open] {
  display:flex;
  flex-direction:column;
}

.cart-heading {
  padding:40px 30px 22px;
  border-bottom:1px solid var(--line);
  flex-shrink:0;
}

.cart-heading h2 {
  margin-bottom:16px;
}

.cart-heading .demo-badge {
  margin:0;
}

.cart-lines {
  padding:0 25px;
  overflow:auto;
  flex:1;
}

.cart-line {
  display:grid;
  grid-template-columns:75px minmax(0,1fr) auto;
  gap:14px;
  padding:23px 0;
  border-bottom:1px solid var(--line);
  align-items:start;
}

.cart-line>img {
  width:75px;
  height:105px;
  object-fit:cover;
}

.cart-line h3 {
  margin:0 0 9px;
}

.cart-line .cart-variant {
  margin:0 0 3px;
  color:var(--muted);
}

.cart-line .cart-unit {
  color:var(--muted);
  margin:0 0 12px;
}

.cart-line-total {
  white-space:nowrap;
  align-self:start;
  padding-top:3px;
}

.cart-line-actions {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.quantity-stepper {
  display:flex;
  align-items:center;
  border:1px solid var(--line);
}

.quantity-stepper button {
  width:34px;
  min-height:36px;
  border:0;
  background:transparent;
}

.quantity-stepper button:disabled {
  opacity:.3;
}

.quantity-stepper span {
  min-width:25px;
  text-align:center;
}

.remove-line {
  min-height:36px;
  border:0;
  border-bottom:1px solid var(--line);
  padding:0;
  background:transparent;
  color:var(--muted);
}

.cart-footer {
  padding:23px 30px 27px;
  background:var(--cream);
  flex-shrink:0;
}

.total-row {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:20px;
}

.cart-shipping-note {
  color:var(--muted);
  margin:12px 0 18px;
}

.cart-footer>.button {
  width:100%;
  gap:14px;
}

.cart-footer>.underlined {
  display:block;
  width:fit-content;
  margin:12px auto 0;
}

.cart-empty {
  text-align:center;
  padding:50px 30px;
  overflow:auto;
  flex:1;
}

.cart-empty>svg {
  width:42px;
  height:42px;
  color:var(--brown);
  margin-bottom:25px;
}

.cart-empty p {
  color:var(--muted);
}

.cart-empty>.button {
  margin-top:10px;
}

.checkout-dialog {
  width:min(1050px,96vw);
  max-height:94dvh;
}

.checkout-heading {
  padding:40px 45px 0;
}

.checkout-heading h2 {
  margin-bottom:12px;
}

.checkout-heading .demo-badge {
  margin-bottom:20px;
}

.checkout-progress {
  display:flex;
  list-style:none;
  gap:40px;
  margin:0;
  padding:18px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.checkout-progress li {
  color:var(--muted);
}


.checkout-progress li[aria-current=step] {
  color:var(--ink);
}

.checkout-progress li.complete {
  color:var(--brown);
}

.checkout-grid {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:40px;
  padding:30px 45px 45px;
  align-items:start;
}

.form-heading {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:15px;
}

.form-heading h3 {
  margin:0;
}

.form-heading .underlined {
  gap:0;
}

.form-hint {
  color:var(--muted);
  margin:12px 0 20px;
}

.delivery-options {
  display:grid;
  gap:10px;
  margin:20px 0;
}

.delivery-options label {
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--line);
  padding:14px;
  cursor:pointer;
  min-height:67px;
}

.delivery-options label:has(input:checked) {
  border-color:var(--brown);
  background:var(--cream);
}

.delivery-options input {
  accent-color:var(--brown);
  width:16px;
  height:16px;
  flex-shrink:0;
}

.delivery-options strong {
  display:block;
}

.delivery-options small {
  display:block;
  color:var(--muted);
}

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

.form-fields label {
  min-width:0;
  display:block;
}

.form-fields .full {
  grid-column:1/-1;
}

.form-fields input {
  width:100%;
  min-height:44px;
  border:1px solid var(--line);
  background:transparent;
  border-radius:0;
  padding:10px 12px;
  color:var(--ink);
  margin-top:6px;
}

.form-fields input::placeholder {
  color:#97918a;
}

.form-fields+.form-fields {
  margin-top:14px;
}

.next-payment {
  margin:25px 0 12px;
  width:100%;
  padding:15px;
}

.checkout-summary {
  padding:25px;
  background:var(--cream);
  position:sticky;
  top:0;
}

.checkout-summary>h3 {
  margin-bottom:20px;
}

.summary-item {
  display:grid;
  grid-template-columns:45px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:14px 0;
  border-top:1px solid #d9cfc1;
}

.summary-item>img {
  width:45px;
  height:60px;
  object-fit:cover;
}

.summary-item strong {
  display:block;
}

.summary-item small {
  color:var(--muted);
}

.summary-item>span {
  white-space:nowrap;
}

.summary-totals {
  border-top:1px solid #d9cfc1;
  padding-top:18px;
  margin-top:5px;
}

.summary-totals .total-row {
  margin-bottom:12px;
}

.summary-totals .grand-total {
  border-top:1px solid #d9cfc1;
  padding-top:18px;
  margin:18px 0;
}

.checkout-summary>p {
  color:var(--muted);
  margin:0;
}

.payment-form>h3,#payment-form>h3 {
  margin:25px 0 18px;
}

.demo-card {
  padding:25px;
  background:#292722;
  color:#ede6d9;
  border:1px solid #d2b57b;
  aspect-ratio:1.7;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  max-width:390px;
}

.demo-card>div {
  display:flex;
  justify-content:space-between;
  gap:15px;
}

.demo-card>div>span:last-child {
  opacity:.7;
}

.demo-card p {
  margin:25px 0 20px;
  white-space:nowrap;
}

.demo-card>small {
  color:var(--gold);
}

.delivery-recap {
  margin:24px 0;
  padding-bottom:15px;
  border-bottom:1px solid var(--line);
}

.delivery-recap p {
  color:var(--muted);
  margin:7px 0 0;
}

.payment-outcome {
  padding:0;
  border:0;
  margin:22px 0;
}

.payment-outcome legend {
  margin-bottom:13px;
}

.payment-outcome label {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:36px;
  cursor:pointer;
}

.payment-outcome input,.demo-consent input {
  accent-color:var(--brown);
  width:16px;
  height:16px;
  flex-shrink:0;
}

.demo-consent {
  display:flex;
  gap:11px;
  align-items:flex-start;
  cursor:pointer;
  margin-bottom:20px;
}

.demo-consent input {
  margin-top:3px;
}

.payment-error {
  padding:13px;
  background:#f8e9e7;
  border:1px solid #e3c0ba;
}

.payment-error:focus {
  outline:2px solid #8a3030;
  outline-offset:2px;
}

#simulate-payment {
  width:100%;
  padding-inline:10px;
}

#simulate-payment:disabled {
  opacity:.6;
  cursor:wait;
}

.payment-footnote {
  color:var(--muted);
  margin:13px 0 0;
  text-align:center;
}

.checkout-success {
  max-width:620px;
  margin:auto;
  padding:60px 45px;
  text-align:center;
  outline:0;
}

.success-mark {
  width:55px;
  height:55px;
  display:grid;
  place-items:center;
  border:1px solid var(--brown);
  border-radius:50%;
  color:var(--brown);
  margin:0 auto 25px;
}

.checkout-success>.eyebrow {
  color:var(--brown);
}

.checkout-success h2 {
  margin-bottom:25px;
}

.checkout-success>p:not(.eyebrow) {
  color:var(--muted);
}

.checkout-success .success-title {
  color:var(--ink)!important;
  margin-bottom:10px;
}

.checkout-success dl {
  text-align:left;
  margin:30px 0;
}

.checkout-success dl div {
  padding:13px 0;
  display:flex;
  gap:20px;
  justify-content:space-between;
  border-top:1px solid var(--line);
}

.checkout-success dd {
  margin:0;
  text-align:right;
}

.checkout-success .form-hint {
  margin-top:20px;
}

@media(max-width:1100px) {
.checkout-grid {
  gap:25px;
  padding:25px 30px 35px;
}

.checkout-heading {
  padding-inline:30px;
}

.checkout-summary {
  padding:20px;
}

.checkout-grid .total-row {
  gap:10px;
}
}

@media(max-width:760px) {
.cart-heading {
  padding:35px 22px 20px;
}

.cart-lines {
  padding:0 18px;
}

.cart-line {
  grid-template-columns:65px minmax(0,1fr);
  gap:12px;
  padding:20px 0;
}

.cart-line>img {
  width:65px;
  height:95px;
  grid-row:1/3;
}

.cart-line-total {
  grid-column:2;
  margin-top:-5px;
  padding:0;
}

.cart-line-copy {
  min-width:0;
}

.cart-line-actions {
  gap:15px;
}

.quantity-stepper button {
  width:36px;
  min-height:38px;
}

.remove-line {
  min-height:38px;
}

.cart-footer {
  padding:20px 22px;
}

.cart-footer>.button {
  padding-inline:12px;
}

.cart-shipping-note {
  margin:10px 0 15px;
}

.checkout-dialog {
  width:100vw;
  max-width:100vw;
  max-height:100dvh;
  height:100dvh;
  margin:0;
  border:0;
}

.checkout-heading {
  padding:35px 22px 0;
}

.checkout-heading .eyebrow {
  max-width:270px;
}

.checkout-progress {
  gap:35px;
  padding:15px 0;
}

.checkout-grid {
  display:flex;
  flex-direction:column;
  padding:25px 22px 35px;
  gap:30px;
}

.checkout-grid>div {
  width:100%;
}

.form-heading {
  align-items:flex-start;
}

.form-fields {
  gap:12px;
}

.form-fields input {
  min-height:47px;
  padding:10px;
}

.delivery-options label {
  padding:12px;
}

.next-payment {
  min-height:49px;
}

.checkout-summary {
  width:100%;
  position:static;
  padding:20px;
}

.summary-item {
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:10px;
}

.demo-card {
  padding:22px;
  max-width:none;
}

.demo-card p {
  margin:25px 0 20px;
}

.payment-outcome label {
  min-height:40px;
}

#simulate-payment {
  min-height:50px;
}

.checkout-success {
  padding:65px 25px 35px;
}

.checkout-success>.button {
  padding:15px 18px;
}
}

.cart-photo {
  width: 75px;
  height: 105px;
  grid-row: 1/3;
}

.summary-photo {
  width: 45px;
  height: 60px;
}

.size-option {
  min-height: 46px;
  width: 49px;
}

.size-option[aria-pressed=true] {
  border: 2px solid var(--gold);
}

.quantity-stepper button {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 44px;
}

.quantity-stepper button svg {
  width: 16px;
  height: 16px;
}

.remove-line {
  min-height: 44px;
}

.checkout-progress li[aria-current=step] {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
}

.success-mark svg {
  width: 27px;
  height: 27px;
}

@media (max-width:760px) {
.cart-photo {
  width: 65px;
  height: 95px;
}

.summary-photo {
  width: 42px;
  height: 60px;
}

.summary-item {
  grid-template-columns: 42px minmax(0,1fr) auto;
}
}

/* Pago con Stripe: aviso de redirección y resultado al volver */
.payment-redirect { margin-bottom:24px; }
#payment-error { margin:0 0 16px; }
.checkout-result { padding:56px 45px 48px; max-width:640px; }
.checkout-result h2 { margin-bottom:16px; }
.checkout-result h2:focus { outline:none; }
.checkout-result p { color:var(--muted); }
.checkout-result-ref { color:#111; font-weight:500; }
.checkout-result-ref:empty { display:none; }
.checkout-result .button { margin:24px 24px 0 0; }
@media (max-width:640px) { .checkout-result { padding:48px 24px 36px; } .checkout-result .button { width:100%; margin-right:0; margin-bottom:16px; } }
