.cart-trigger { position: relative; border: 0; background: transparent; cursor: pointer; }
.product-card [data-cart-add][hidden], [data-card-quantity][hidden], .detail-card [data-cart-add][hidden] { display: none !important; }
.card-quantity { display: flex; align-items: center; justify-content: space-between; min-height: 35px; padding: 0 7px; border: 1px solid #c9cbd0; border-radius: 4px; background: #dedfe2; color: #414141; font-weight: 700; }
.card-quantity button { display: grid; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; width: 22px; height: 32px; padding: 0; }
.card-quantity button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.card-quantity__count { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; }
.card-quantity__count svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.product-dialog__quantity { width: 180px; min-height: 37px; }
.cart-toast { position: fixed; right: 22px; bottom: 22px; z-index: 1000; width: min(310px, calc(100vw - 44px)); padding: 14px 18px; border-radius: 5px; background: #252525; color: white; box-shadow: 0 5px 18px #0005; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.cart-toast.is-visible { opacity: 1; transform: translateY(0); }
.cart-toast strong, .cart-toast span { display: block; }
.cart-toast span { margin-top: 5px; font-size: 12px; }
.cart-count { position: absolute; top: -5px; right: -8px; min-width: 18px; padding: 2px 4px; border-radius: 10px; background: #e31e2f; color: white; font: 700 11px/1.3 sans-serif; }
.cart-count[hidden], .cart-dialog [hidden] { display: none !important; }
.cart-dialog { width: min(460px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 24px)); margin: auto 0 auto auto; padding: 0; border: 0; box-shadow: 0 12px 40px #0004; color: #17212c; }
.cart-dialog::backdrop { background: #0006; }
.cart-header, .cart-footer { padding: 18px 22px; }
.cart-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ddd; }
.cart-header h2 { margin: 0; }
.cart-header button { border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.cart-items { max-height: min(60vh, 550px); overflow: auto; padding: 8px 22px; }
.cart-empty { padding: 35px 0; text-align: center; color: #59636d; }
.cart-item { display: grid; grid-template-columns: 75px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eee; }
.cart-item img { width: 75px; height: 75px; object-fit: contain; }
.cart-item strong, .cart-item span { display: block; }
.cart-item strong { margin-bottom: 5px; }
.cart-quantity { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.cart-quantity button { border: 1px solid #cbd5d1; border-radius: 4px; background: white; padding: 4px 9px; cursor: pointer; }
.cart-quantity button:last-child { margin-left: auto; }
.cart-footer { border-top: 1px solid #ddd; }
.cart-footer p { display: flex; justify-content: space-between; font-size: 18px; }
.cart-footer .green-button { display: block; text-align: center; }
.cart-page { max-width: 1100px; min-height: 700px; margin: 0 auto; padding: 36px 20px 70px; display: grid; grid-template-columns: minmax(0, 1fr) 252px; gap: 36px; color: #111827; }
.cart-page-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin: 36px 0 38px; }
.cart-page-heading h1 { margin: 0 0 8px; font-size: 22px; color: #111; }
.cart-page-heading a { color: var(--store-primary,#009b73); font-weight: 700; font-size: 14px; }
.cart-page-heading > strong { margin-top: 2px; font-size: 18px; color: #111; white-space: nowrap; }
.cart-table-heading, .cart-page-item { display: grid; grid-template-columns: minmax(0, 2fr) 144px 100px 100px; align-items: center; gap: 14px; }
.cart-table-heading { padding: 0 18px 18px; font-size: 12px; font-weight: 700; text-align: center; }
.cart-table-heading span:first-child { text-align: left; }
.cart-page-item { min-height: 116px; margin-bottom: 12px; padding: 12px 16px; border: 1px solid #dfe3e8; border-radius: 4px; background: #fff; text-align: center; font-size: 13px; }
.cart-page-identity { display: flex; align-items: center; gap: 16px; min-width: 0; text-align: left; }
.cart-page-identity img { flex: 0 0 70px; width: 70px; height: 76px; object-fit: contain; }
.cart-page-identity strong { display: block; color: #111; line-height: 1.3; }
.cart-page-brand { display: block; margin-top: 3px; color: #64748b; font-size: 12px; }
.cart-page-brand:empty { display: none; }
.cart-mobile-price, .cart-page-identity .cart-mobile-total { display: none; }
.cart-remove { display: block; margin-top: 6px; padding: 0; border: 0; background: transparent; color: #ef4444; font-size: 12px; cursor: pointer; }
.cart-session-logout { margin-top: 18px; padding: 0; border: 0; background: transparent; color: #475569; font-size: 13px; cursor: pointer; }
.cart-page .cart-quantity { display: flex; justify-content: space-between; align-items: center; width: 144px; min-height: 36px; gap: 8px; padding: 5px 7px; border: 1px solid #cdd0d5; border-radius: 4px; background: #dedfe2; }
.cart-page .cart-quantity button { padding: 0; min-width: 20px; border: 0; background: transparent; font-size: 20px; line-height: 1; }
.cart-page .cart-quantity button svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.cart-page .cart-quantity button:disabled { color: #9ca3af; cursor: default; }
.cart-page .cart-quantity span { white-space: nowrap; }
.cart-quantity__value { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-weight: 700; }
.cart-quantity__value svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-summary { align-self: start; min-height: 540px; padding: 22px; border: 1px solid #e0e3e7; border-radius: 7px; background: #f6f6f6; box-shadow: 0 1px 3px #0001; }
.cart-summary h2 { margin: 0 0 42px; font-size: 20px; color: #111; }
.cart-summary dl { margin: 0; }
.cart-summary dl > div { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0; font-size: 14px; font-weight: 700; }
.cart-summary dd { margin: 0; white-space: nowrap; }
.cart-summary-total { border-top: 1px solid #e0e3e7; padding-top: 28px; margin-top: 22px !important; }
.cart-summary .green-button { display: flex; width: 100%; margin-top: 26px; background: #008339; cursor: pointer; }
.cart-summary .green-button[hidden] { display: none; }
@media (max-width: 950px) { .cart-page { min-height: 0; grid-template-columns: 1fr; gap: 18px; } .cart-summary { min-height: 0; } .cart-summary h2 { margin-bottom: 20px; } }
@media (max-width: 640px) { .cart-page { padding: 14px 12px 40px; } .cart-page-heading { margin: 15px 0 25px; } .cart-table-heading { display: none; } .cart-page-item { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 8px; border-width: 0 0 1px; } .cart-page-identity { align-items: flex-start; gap: 12px; } .cart-page-identity img { flex-basis: 64px; width: 64px; height: 82px; } .cart-page-item > strong { display: none; } .cart-mobile-price, .cart-page-identity .cart-mobile-total { display: block; margin-top: 3px; font-size: 14px; } .cart-page .cart-quantity { align-self: flex-end; width: 178px; margin-top: 2px; } }
.customer-auth { max-width: 710px; margin: 54px auto; padding: 0 16px; }
.checkout-page .cart-page-heading { margin-bottom: 16px; }
.checkout-panel { padding: 18px 22px; border: 1px solid #e0e3e7; border-radius: 7px; background: #f5f5f5; box-shadow: 0 1px 2px #0001; }
.checkout-panel h1, .checkout-panel h2 { margin: 0 0 20px; color: #111; font-size: 20px; }
.checkout-panel label { display: block; margin-bottom: 12px; color: #111; font-size: 11px; font-weight: 700; }
.checkout-panel input:not([type=radio]), .checkout-panel textarea, .checkout-panel select { display: block; width: 100%; min-height: 43px; margin-top: 8px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 4px; background: white; color: #374151; font-size: 14px; font-weight: 400; }
.checkout-panel select:disabled { background: #e4e6ea; }
.checkout-panel [hidden] { display: none !important; }
.checkout-panel input:disabled { background: #e4e6ea; }
.checkout-panel textarea { resize: vertical; }
.checkout-fields { display: grid; gap: 14px; }
.checkout-fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkout-panel fieldset { margin: 15px 0 35px; padding: 0; border: 0; }
.checkout-panel legend { margin-bottom: 10px; font-size: 11px; font-weight: 700; }
.checkout-panel .payment-choice { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.checkout-panel .payment-choice input { width: 21px; height: 21px; margin: 0; }
.checkout-panel .checkout-payment .payment-choice { margin: 0 0 9px; flex-wrap: wrap; gap: 7px; color: #23304a; font-weight: 700; }
.checkout-panel .checkout-payment .payment-choice input { flex: 0 0 22px; width: 22px; height: 22px; appearance: none; border: 1px solid #aaa; border-radius: 1px; background: #fff; box-shadow: 0 1px 3px #0002; cursor: pointer; }
.checkout-panel .checkout-payment .payment-choice input:checked { background: var(--store-primary,#079c78); border-color: var(--store-primary,#079c78); box-shadow: inset 0 0 0 4px #fff, 0 1px 3px #0002; }
.payment-choice__logos { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.payment-choice__logos img { display: block; width: auto; max-width: 56px; height: 22px; object-fit: contain; }
.payment-choice__logos img[alt="Nequi"] { max-width: 66px; }
.payment-choice__logos img[alt="PSE"] { max-width: 26px; }
.payment-choice__logos img[alt="Visa"] { max-width: 34px; }
.payment-choice__logos img[alt="Mastercard"] { max-width: 32px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 15px; }
.form-actions a, .form-error { color: #ef4444; font-size: 13px; font-weight: 700; }
.form-actions button { cursor: pointer; }
.checkout-page .cart-products > form:last-child > .cart-remove { margin-top: 18px; }
@media (max-width: 640px) { .customer-auth { margin: 25px auto; } .checkout-fields.two, .checkout-fields.three { grid-template-columns: 1fr; gap: 0; } .checkout-panel { padding: 16px; } }
