/*!
 * BoholwebCMS — Copyright (c) 2026 Haivelito Vistal (BoholwebWP)
 * Licensed under the MIT License. https://boholwebcms.com
 */

/* Simple Shop — front-end styles. Uses the theme accent via --cms-accent / --accent when available. */
.shop-grid { display: grid; grid-template-columns: repeat(var(--shop-cols, 4), minmax(0, 1fr)); gap: 22px; margin: 1.5em 0; }
@media (max-width: 900px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .shop-grid { grid-template-columns: 1fr; } }
.shop-card { display: flex; flex-direction: column; border: 1px solid rgb(15 23 42 / .1); border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.shop-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -22px rgb(15 23 42 / .45); }
.shop-card__media { position: relative; display: block; aspect-ratio: 1; background: #f1f5f9; overflow: hidden; }
.shop-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.shop-card__ph { display: grid; place-items: center; height: 100%; font-size: 64px; font-weight: 800; color: #cbd5e1; }
.shop-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font: 700 11px/1.6 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .06em; background: #0f172a; color: #fff; }
.shop-badge--sale { left: auto; right: 10px; background: #dc2626; }
.shop-badge--hot { background: #ea580c; }
.shop-badge--new { background: #16a34a; }
.shop-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.shop-card__cat { font: 600 11px system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.shop-card__title { margin: 4px 0 12px !important; font-size: 17px !important; }
.shop-card__title a { color: inherit !important; text-decoration: none !important; }
.shop-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-price { font-weight: 700; }
.shop-price del { opacity: .5; font-weight: 400; margin-right: 4px; }
.shop-price ins { text-decoration: none; color: #dc2626; }
.shop-price--lg { font-size: 28px; margin: 0 0 8px; }
.shop-add-form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.shop-button { white-space: nowrap; padding: 8px 14px !important; font-size: 14px !important; border-radius: 999px !important; }
.shop-qty { width: 72px !important; padding: 8px !important; }
.shop-stock { color: #15803d; font-size: 14px; }
.shop-stock--out { color: #b91c1c; font-weight: 600; }
.shop-sku { opacity: .6; font-size: 14px; margin-left: 10px; }
.shop-product-summary { padding: 22px; margin: 0 0 1.6em; border-radius: 14px; background: rgb(15 23 42 / .03); border: 1px solid rgb(15 23 42 / .08); }
.shop-excerpt { opacity: .8; }
.shop-meta { margin: 12px 0 0; }
.shop-table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.shop-table th, .shop-table td { padding: 12px 10px; border-bottom: 1px solid rgb(15 23 42 / .1); text-align: left; }
.shop-remove { background: none !important; border: 0 !important; color: #b91c1c !important; font-size: 22px !important; cursor: pointer; padding: 0 6px !important; box-shadow: none !important; }
.shop-cart__actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.shop-totals { display: flex; gap: 16px; align-items: baseline; font-size: 20px; }
.shop-proceed { text-align: right; margin-top: 20px; }
.shop-checkout__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; }
@media (max-width: 800px) { .shop-checkout__grid { grid-template-columns: 1fr; } }
.shop-checkout label { display: block; font-weight: 600; font-size: 14px; }
.shop-checkout input, .shop-checkout textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid rgb(15 23 42 / .15); border-radius: 8px; font: inherit; }
.shop-checkout__review { padding: 22px; border-radius: 14px; background: rgb(15 23 42 / .03); align-self: start; }
.shop-total-row th { font-size: 18px; }
.shop-place-order { width: 100%; justify-content: center; padding: 14px !important; font-size: 16px !important; }
.shop-error { color: #b91c1c; font-size: 13px; }
.shop-thanks { padding: 24px; border-radius: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.shop-order-overview { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; }
.shop-toast { position: fixed; right: 20px; bottom: 20px; z-index: 9999; padding: 12px 18px; border-radius: 10px; background: #0f172a; color: #fff; font: 14px system-ui, sans-serif; box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.shop-toast a { color: #a5b4fc; margin-left: 8px; }
