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

/*
 * Store front styles. Fonts and text colour are inherited from the active Template;
 * the accent follows the Template's --cms-accent / --accent variable when it has one.
 * Override any token on :root or .shopcore.
 */
.shopcore, .shopcore-toast, .shopcore-visibility-badge {
    --shopcore-accent: var(--cms-accent, var(--accent, #2d5bd7));
    --shopcore-accent-ink: #fff;
    --shopcore-line: color-mix(in srgb, currentColor 14%, transparent);
    --shopcore-soft: color-mix(in srgb, currentColor 4%, transparent);
    --shopcore-muted: color-mix(in srgb, currentColor 62%, transparent);
    --shopcore-sale: #c2410c;
    --shopcore-ok: #15803d;
    --shopcore-warn: #b45309;
    --shopcore-bad: #b91c1c;
    --shopcore-radius: 10px;
}
.shopcore { box-sizing: border-box; }
.shopcore *, .shopcore *::before, .shopcore *::after { box-sizing: inherit; }
.shopcore .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shopcore-muted { color: var(--shopcore-muted); font-size: .92em; }
.shopcore .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Structural lists: themes often style every ul/ol as prose — keep store lists bullet-free. */
.shopcore ul.shopcore-products, .shopcore ul.shopcore-tabs__nav, .shopcore ul.shopcore-payment-methods, .shopcore ul.shopcore-shipping-methods,
.shopcore ul.shopcore-mini-cart, .shopcore ul.shopcore-order-overview, .shopcore ol.shopcore-review-list, .shopcore .shopcore-pagination ul,
.shopcore .shopcore-account__nav ul, ul.shopcore-widget-products, ul.shopcore-widget-categories, ul.shopcore-widget-reviews {
    list-style: none !important; padding-left: 0 !important;
}
.shopcore ul.shopcore-products > li, .shopcore ul.shopcore-tabs__nav > li, .shopcore ul.shopcore-payment-methods > li, .shopcore ul.shopcore-shipping-methods > li,
.shopcore ul.shopcore-mini-cart > li, .shopcore ul.shopcore-order-overview > li, .shopcore ol.shopcore-review-list > li, .shopcore .shopcore-pagination li,
.shopcore .shopcore-account__nav li, ul.shopcore-widget-products > li, ul.shopcore-widget-categories > li, ul.shopcore-widget-reviews > li {
    list-style: none !important; margin-left: 0 !important; padding-left: 0;
}
.shopcore ul.shopcore-products > li::marker, .shopcore ul.shopcore-tabs__nav > li::marker, .shopcore ul.shopcore-payment-methods > li::marker, .shopcore ul.shopcore-shipping-methods > li::marker,
.shopcore ul.shopcore-mini-cart > li::marker, .shopcore ul.shopcore-order-overview > li::marker, .shopcore ol.shopcore-review-list > li::marker, .shopcore .shopcore-account__nav li::marker { content: none; }

/* ---------------------------------------------------------------- buttons */
.shopcore-button, .shopcore button.shopcore-button, .shopcore a.shopcore-button {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    padding: .7em 1.2em; border: 1px solid var(--shopcore-accent); border-radius: 999px;
    background: var(--shopcore-accent); color: var(--shopcore-accent-ink) !important; font: inherit; font-weight: 600; font-size: .95em; line-height: 1.2;
    text-decoration: none !important; cursor: pointer; transition: filter .15s, transform .15s, background .15s; white-space: nowrap;
}
.shopcore-button:hover { filter: brightness(1.08); }
.shopcore-button:active { transform: translateY(1px); }
.shopcore-button:disabled, .shopcore-button[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.shopcore-button--secondary { background: transparent; color: inherit !important; border-color: var(--shopcore-line); }
.shopcore-button--secondary:hover { background: var(--shopcore-soft); filter: none; }
.shopcore-button--alt { padding: .85em 1.6em; font-size: 1em; }
.shopcore-button--small { padding: .4em .85em; font-size: .85em; }
.shopcore-button--block { width: 100%; }
.shopcore-button.is-loading { position: relative; color: transparent !important; }
.shopcore-button.is-loading::after { content: ""; position: absolute; width: 1em; height: 1em; border: 2px solid var(--shopcore-accent-ink); border-right-color: transparent; border-radius: 50%; animation: shopcore-spin .7s linear infinite; }
.shopcore-button.is-added::after { content: " ✓"; }
@keyframes shopcore-spin { to { transform: rotate(360deg); } }
.shopcore-link { background: none; border: 0; padding: 0; color: var(--shopcore-bad); cursor: pointer; font: inherit; font-size: .85em; }

/* ----------------------------------------------------------------- inputs */
.shopcore-input, .shopcore-select, .shopcore textarea, .shopcore input[type="email"], .shopcore input[type="password"], .shopcore input[type="tel"], .shopcore input[type="search"] {
    width: 100%; padding: .65em .8em; border: 1px solid var(--shopcore-line); border-radius: 8px; background: transparent; color: inherit; font: inherit; line-height: 1.4;
}
.shopcore select.shopcore-select { appearance: auto; background: Canvas; }
.shopcore-input:focus, .shopcore-select:focus, .shopcore textarea:focus { outline: 2px solid color-mix(in srgb, var(--shopcore-accent) 45%, transparent); outline-offset: 1px; border-color: var(--shopcore-accent); }
.shopcore-field { margin: 0 0 1em; }
.shopcore-field > label { display: block; margin-bottom: .35em; font-weight: 600; font-size: .92em; }
.shopcore-field .optional { font-weight: 400; color: var(--shopcore-muted); }
.shopcore abbr.required { color: var(--shopcore-bad); text-decoration: none; border: 0; }
.shopcore-fields { display: flex; flex-wrap: wrap; gap: 0 4%; }
.shopcore-fields > .shopcore-field { flex: 1 1 100%; }
.shopcore-fields > .shopcore-field--first, .shopcore-fields > .shopcore-field--last { flex: 1 1 48%; }
.shopcore-field--checkbox label { display: flex; gap: .5em; align-items: flex-start; font-weight: 400; }
.shopcore-invalid .shopcore-input, .shopcore-invalid .shopcore-select { border-color: var(--shopcore-bad); }
.shopcore-error { display: block; margin-top: .3em; color: var(--shopcore-bad); font-size: .85em; }

.shopcore-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--shopcore-line); border-radius: 999px; overflow: hidden; }
.shopcore-qty button { width: 2.4em; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.1em; cursor: pointer; }
.shopcore-qty button:hover { background: var(--shopcore-soft); }
.shopcore-qty__input { width: 3.2em !important; border: 0 !important; text-align: center; background: transparent; color: inherit; font: inherit; -moz-appearance: textfield; padding: .55em 0 !important; }
.shopcore-qty__input::-webkit-inner-spin-button, .shopcore-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------------------------------------------------------- notices */
.shopcore-notice { margin: 0 0 1.2em; padding: .9em 1.1em; border-radius: var(--shopcore-radius); border-left: 4px solid var(--shopcore-ok); background: color-mix(in srgb, var(--shopcore-ok) 9%, transparent); }
.shopcore-notice a { font-weight: 600; }
.shopcore-error-list { margin: 0; padding-left: 1.2em; }
.shopcore-error-list li { margin: .15em 0; }
.shopcore-notice .shopcore-button { margin-left: .6em; }
.shopcore-notice--error { border-color: var(--shopcore-bad); background: color-mix(in srgb, var(--shopcore-bad) 8%, transparent); }
.shopcore-notice--info, .shopcore-notice--notice { border-color: var(--shopcore-accent); background: color-mix(in srgb, var(--shopcore-accent) 8%, transparent); }

.shopcore-toast { position: fixed; z-index: 99999; right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 40px)); padding: .9em 1.2em; border-radius: 12px; background: #111827; color: #fff; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 18px 40px -12px rgb(0 0 0 / .45); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.shopcore-toast.is-in { opacity: 1; transform: none; }
.shopcore-toast--error { background: #7f1d1d; }
.shopcore-toast a { color: #c7d2fe; margin-left: .4em; font-weight: 600; }

/* ------------------------------------------------------------ product grid */
.shopcore-catalog-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1em; margin-bottom: 1.4em; }
.shopcore-result-count { margin: 0; color: var(--shopcore-muted); }
.shopcore-ordering select { width: auto; min-width: 220px; }
ul.shopcore-products { list-style: none; margin: 0 0 2em; padding: 0; display: grid; gap: 28px 22px; grid-template-columns: repeat(var(--shopcore-cols, 4), minmax(0, 1fr)); }
@media (max-width: 960px) { ul.shopcore-products { grid-template-columns: repeat(min(var(--shopcore-cols, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 640px) { ul.shopcore-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } }
.shopcore-product { display: flex; flex-direction: column; margin: 0 !important; }
.shopcore-product__link { display: flex; flex-direction: column; flex: 1; color: inherit !important; text-decoration: none !important; }
.shopcore-product__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--shopcore-radius); background: var(--shopcore-soft); margin-bottom: .8em; }
.shopcore-product__media img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; border-radius: 0 !important; transition: transform .5s ease; }
.shopcore-product__link:hover img { transform: scale(1.04); }
.shopcore-product__title { margin: 0 0 .3em !important; font-size: 1rem !important; line-height: 1.35 !important; font-weight: 600 !important; }
.shopcore-product .shopcore-price { display: block; margin-bottom: .8em; }
.shopcore-product__button, .shopcore-loop-add { margin-top: auto; align-self: flex-start; }
.shopcore-loop-add { margin-bottom: 0; }
.shopcore-product--outofstock .shopcore-product__media img { opacity: .55; }
.shopcore-onsale, .shopcore-badge { position: absolute; z-index: 1; top: 10px; padding: .25em .7em; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.shopcore-onsale { right: 10px; background: var(--shopcore-sale); }
.shopcore-badge { left: 10px; background: #111827; }
.shopcore-badge--new { background: var(--shopcore-ok); }
.shopcore-badge--hot { background: #ea580c; }
.shopcore-badge--limited { background: #7c3aed; }
.shopcore-category__ph { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--shopcore-radius); background: var(--shopcore-soft); font-size: 3rem; font-weight: 800; color: var(--shopcore-muted); margin-bottom: .7em; }
.shopcore-category a { color: inherit; text-decoration: none; }
.shopcore-category .count { background: none; color: var(--shopcore-muted); font-weight: 400; }

.shopcore-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.shopcore-price del { color: var(--shopcore-muted); font-weight: 400; margin-right: .3em; }
.shopcore-price ins { text-decoration: none; color: var(--shopcore-sale); }
.shopcore-price--lg { font-size: 1.6rem; margin: 0 0 .6em; }
.shopcore-price-suffix { font-weight: 400; color: var(--shopcore-muted); }

.shopcore-stars { position: relative; display: inline-block; width: 5.4em; height: 1em; line-height: 1; font-size: .95em; vertical-align: middle; }
.shopcore-stars::before, .shopcore-stars span::before { content: "★★★★★"; letter-spacing: .08em; position: absolute; inset: 0; }
.shopcore-stars::before { color: var(--shopcore-line); }
.shopcore-stars span { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.shopcore-stars span::before { color: #f59e0b; }
.shopcore-review-count { color: var(--shopcore-muted); font-size: .9em; }

.shopcore-pagination ul { display: flex; flex-wrap: wrap; gap: .4em; list-style: none; padding: 0; justify-content: center; }
.shopcore-pagination a, .shopcore-pagination span { display: inline-grid; place-items: center; min-width: 2.4em; height: 2.4em; padding: 0 .6em; border: 1px solid var(--shopcore-line); border-radius: 999px; color: inherit; text-decoration: none; }
.shopcore-pagination [aria-current] { background: var(--shopcore-accent); border-color: var(--shopcore-accent); color: var(--shopcore-accent-ink); }

/* --------------------------------------------------------- single product */
.shopcore-product-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-bottom: 2.4em; align-items: start; }
@media (max-width: 800px) { .shopcore-product-top { grid-template-columns: 1fr; } }
.shopcore-gallery__main { position: relative; border-radius: var(--shopcore-radius); overflow: hidden; background: var(--shopcore-soft); aspect-ratio: 1; }
.shopcore-gallery__main img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; border-radius: 0 !important; }
.shopcore-gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.shopcore-gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 1; }
.shopcore-gallery__thumbs button.is-active { border-color: var(--shopcore-accent); }
.shopcore-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; }
.shopcore-summary { position: sticky; top: 24px; }
.shopcore-rating { margin: -.2em 0 1em; display: flex; gap: .5em; align-items: center; font-size: .92em; }
.shopcore-short-description { margin-bottom: 1.4em; color: color-mix(in srgb, currentColor 85%, transparent); }
.shopcore-cart-form { margin: 0 0 1.4em; }
.shopcore-add-row { display: flex; flex-wrap: wrap; gap: .7em; align-items: center; }
.shopcore-stock { margin: 0 0 .9em; font-weight: 600; font-size: .92em; color: var(--shopcore-ok); }
.shopcore-stock--outofstock { color: var(--shopcore-bad); }
.shopcore-stock--onbackorder { color: var(--shopcore-warn); }
.shopcore-variations { width: 100%; margin-bottom: .8em; border-collapse: collapse; }
.shopcore-variations th { text-align: left; width: 30%; padding: .4em .8em .4em 0; font-weight: 600; vertical-align: middle; }
.shopcore-variations td { padding: .4em 0; }
.shopcore-reset-variations { display: inline-block; margin-bottom: .8em; font-size: .88em; }
.shopcore-single-variation:not(:empty) { margin: 0 0 1em; padding: .8em 1em; border-radius: 8px; background: var(--shopcore-soft); }
.shopcore-single-variation p { margin: 0 0 .4em; }
.shopcore-grouped__table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.shopcore-grouped__table td { padding: .6em .4em; border-bottom: 1px solid var(--shopcore-line); vertical-align: middle; }
.shopcore-product-meta { display: flex; flex-direction: column; gap: .3em; padding-top: 1.2em; border-top: 1px solid var(--shopcore-line); font-size: .9em; color: var(--shopcore-muted); }
.shopcore-product-meta a { color: inherit; }

.shopcore-tabs { margin: 2.4em 0; }
.shopcore-tabs__nav { display: flex; flex-wrap: wrap; gap: .3em; list-style: none; margin: 0 0 1.5em !important; padding: 0 !important; border-bottom: 1px solid var(--shopcore-line); }
.shopcore-tabs__nav li { margin: 0 !important; }
.shopcore-tabs__nav a { display: block; padding: .7em 1.1em; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--shopcore-muted); text-decoration: none !important; font-weight: 600; }
.shopcore-tabs__nav a.is-active { color: inherit; border-bottom-color: var(--shopcore-accent); }
.shopcore-attributes th { width: 30%; }
.shopcore-upsells, .shopcore-related { margin-top: 2.4em; }
.shopcore-upsells > h2, .shopcore-related > h2 { font-size: 1.35rem; margin-bottom: 1em; }

.shopcore-review-list { list-style: none; padding: 0; margin: 0 0 2em; }
.shopcore-review { display: flex; gap: 1em; padding: 1.1em 0; border-bottom: 1px solid var(--shopcore-line); }
.shopcore-review__avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--shopcore-soft); font-weight: 700; }
.shopcore-review__meta { margin: .3em 0; font-size: .92em; }
.shopcore-verified { color: var(--shopcore-ok); font-style: normal; font-size: .9em; }
.shopcore-review-form { padding: 1.4em; border-radius: var(--shopcore-radius); border: 1px solid var(--shopcore-line); }
.shopcore-review-form h3 { margin-top: 0; }
.shopcore-rate { border: 0; padding: 0; margin: 0 0 1em; }
.shopcore-rate legend { font-weight: 600; font-size: .92em; margin-bottom: .3em; }
.shopcore-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: .1em; }
.shopcore-rate__stars input { position: absolute; opacity: 0; }
.shopcore-rate__stars label { font-size: 1.7em; line-height: 1; color: var(--shopcore-line); cursor: pointer; transition: color .1s; }
.shopcore-rate__stars input:checked ~ label, .shopcore-rate__stars label:hover, .shopcore-rate__stars label:hover ~ label { color: #f59e0b; }
.shopcore-rate__stars input:focus-visible + label { outline: 2px solid var(--shopcore-accent); border-radius: 4px; }

/* ------------------------------------------------------------------ tables */
.shopcore-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.shopcore-table th, .shopcore-table td { padding: .85em .6em; border-bottom: 1px solid var(--shopcore-line); text-align: left; vertical-align: middle; }
.shopcore-table thead th { font-size: .82em; text-transform: uppercase; letter-spacing: .06em; color: var(--shopcore-muted); }
.shopcore-table tfoot th { font-weight: 600; }
.shopcore-row-total th, .shopcore-row-total td { font-size: 1.15em; border-bottom: 0; }
.shopcore-variation { margin: .3em 0 0; font-size: .85em; color: var(--shopcore-muted); display: grid; grid-template-columns: auto 1fr; gap: 0 .4em; }
.shopcore-variation dt, .shopcore-variation dd { margin: 0; }
.shopcore-qty-x { font-weight: 600; color: var(--shopcore-muted); }
.shopcore-status { padding: .2em .65em; border-radius: 999px; font-size: .82em; font-weight: 600; background: var(--shopcore-soft); color: inherit; }
.shopcore-status--completed { background: #dcfce7; color: #166534; }
.shopcore-status--processing { background: #dbeafe; color: #1e40af; }
.shopcore-status--on-hold { background: #fef3c7; color: #92400e; }
.shopcore-status--cancelled, .shopcore-status--failed, .shopcore-status--refunded { background: #fee2e2; color: #991b1b; }

/* -------------------------------------------------------------------- cart */
.shopcore-cart-table .remove { width: 2.2em; }
.shopcore-cart-table .thumb { width: 76px; }
.shopcore-cart-table .thumb img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; margin: 0; }
.shopcore-cart-table .name a { font-weight: 600; color: inherit; }
.shopcore-remove { width: 1.8em; height: 1.8em; display: grid; place-items: center; border: 1px solid var(--shopcore-line); border-radius: 50%; background: none; color: var(--shopcore-bad); font-size: 1.1em; line-height: 1; cursor: pointer; }
.shopcore-remove:hover { background: var(--shopcore-bad); color: #fff; border-color: var(--shopcore-bad); }
.shopcore-cart-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1em; margin-bottom: 2em; }
.shopcore-coupon { display: flex; gap: .5em; flex-wrap: wrap; }
.shopcore-coupon .shopcore-input { width: 200px; }
.shopcore-cart-collaterals { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 2.5em; align-items: start; }
.shopcore-cart-collaterals > .shopcore-cart-totals:only-child { grid-column: 2; }
@media (max-width: 800px) { .shopcore-cart-collaterals { grid-template-columns: 1fr; } .shopcore-cart-collaterals > .shopcore-cart-totals:only-child { grid-column: 1; } }
.shopcore-cart-totals { padding: 1.4em; border-radius: var(--shopcore-radius); background: var(--shopcore-soft); }
.shopcore-cart-totals h2 { margin-top: 0; font-size: 1.2rem; }
.shopcore-cart-totals .shopcore-table { margin-bottom: 1em; }
.shopcore-shipping-methods { list-style: none; margin: 0; padding: 0; }
.shopcore-shipping-methods li { margin: 0 0 .35em; }
.shopcore-shipping-methods label { display: flex; gap: .45em; align-items: baseline; }
.shopcore-shipping-calculator { margin-bottom: 1em; }
.shopcore-shipping-calculator summary { cursor: pointer; font-weight: 600; margin-bottom: .6em; }
.shopcore-incl-tax { display: block; font-weight: 400; color: var(--shopcore-muted); }

@media (max-width: 640px) {
    .shopcore-cart-table thead { display: none; }
    .shopcore-cart-table tr { display: grid; grid-template-columns: 70px 1fr auto; gap: .2em .8em; padding: .8em 0; border-bottom: 1px solid var(--shopcore-line); }
    .shopcore-cart-table td { border: 0; padding: .2em 0; }
    .shopcore-cart-table .thumb { grid-row: span 3; }
    .shopcore-cart-table .remove { grid-column: 3; grid-row: 1; }
    .shopcore-cart-table td[data-title]::before { content: attr(data-title) ": "; color: var(--shopcore-muted); font-size: .85em; }
    .shopcore-cart-table .num { text-align: left; }
}

/* ---------------------------------------------------------------- checkout */
.shopcore-checkout__cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
@media (max-width: 860px) { .shopcore-checkout__cols { grid-template-columns: 1fr; } }
.shopcore-checkout h3 { margin: 0 0 1em; font-size: 1.15rem; }
.shopcore-checkout section { margin-bottom: 2em; }
.shopcore-ship-different { display: flex; gap: .5em; align-items: center; font-size: 1.05rem; cursor: pointer; }
.shopcore-checkout__review { position: sticky; top: 24px; padding: 1.5em; border-radius: var(--shopcore-radius); background: var(--shopcore-soft); }
#shopcore-order-review { transition: opacity .2s; }
#shopcore-order-review.is-loading { opacity: .5; pointer-events: none; }
.shopcore-payment-methods { list-style: none; margin: 1em 0; padding: 0; border: 1px solid var(--shopcore-line); border-radius: var(--shopcore-radius); overflow: hidden; }
.shopcore-payment-method { margin: 0 !important; border-bottom: 1px solid var(--shopcore-line); }
.shopcore-payment-method:last-child { border-bottom: 0; }
.shopcore-payment-method > label { display: flex; gap: .6em; align-items: center; padding: .9em 1em; font-weight: 600; cursor: pointer; }
.shopcore-payment-box { padding: 0 1em 1em 2.6em; font-size: .93em; }
.shopcore-payment-box p:last-child { margin-bottom: 0; }
.shopcore-gcash { display: flex; flex-wrap: wrap; gap: 1em; align-items: flex-start; margin-top: .6em; }
.shopcore-gcash__qr { width: 160px; height: 160px; object-fit: contain; border-radius: 8px; background: #fff; padding: 6px; margin: 0 !important; }
.shopcore-gcash__info { flex: 1 1 200px; }
.shopcore-privacy { font-size: .85em; color: var(--shopcore-muted); }
.shopcore-place-order__button { width: 100%; margin-top: .6em; }
.shopcore-login-inline, .shopcore-coupon-inline { display: flex; flex-wrap: wrap; gap: 0 4%; padding: 1.2em; margin: -0.6em 0 1.4em; border: 1px dashed var(--shopcore-line); border-radius: var(--shopcore-radius); }
.shopcore-login-inline .shopcore-field { flex: 1 1 48%; }
.shopcore-login-inline p:last-child { flex-basis: 100%; }

/* --------------------------------------------------- thank you / account */
.shopcore-thankyou__title { font-size: 1.35rem; font-weight: 700; color: var(--shopcore-ok); }
.shopcore-order-overview { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 0 0 2em; border: 1px dashed var(--shopcore-line); border-radius: var(--shopcore-radius); }
.shopcore-order-overview li { flex: 1 1 160px; margin: 0 !important; padding: .9em 1.1em; border-right: 1px dashed var(--shopcore-line); font-size: .82em; text-transform: uppercase; letter-spacing: .05em; color: var(--shopcore-muted); }
.shopcore-order-overview li:last-child { border-right: 0; }
.shopcore-order-overview strong { display: block; margin-top: .25em; font-size: 1.15rem; text-transform: none; letter-spacing: 0; color: inherit; }
.shopcore-bacs-account ul { padding-left: 1.2em; }
.shopcore-addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5em; }
.shopcore-addresses address { font-style: normal; line-height: 1.6; padding: 1em 1.2em; border: 1px solid var(--shopcore-line); border-radius: var(--shopcore-radius); }
.shopcore-address header { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.shopcore-address h2, .shopcore-addresses h2 { font-size: 1.1rem; }
.shopcore-download-link { font-size: .9em; }
.shopcore-purchase-note { margin-top: .4em; padding: .5em .7em; border-radius: 6px; background: var(--shopcore-soft); font-size: .9em; }

.shopcore-account__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.5em; align-items: start; }
@media (max-width: 760px) { .shopcore-account__grid { grid-template-columns: 1fr; gap: 1.5em; } }
.shopcore-account__nav ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--shopcore-line); border-radius: var(--shopcore-radius); overflow: hidden; }
.shopcore-account__nav li { margin: 0 !important; border-bottom: 1px solid var(--shopcore-line); }
.shopcore-account__nav li:last-child { border-bottom: 0; }
.shopcore-account__nav a { display: block; padding: .8em 1.1em; color: inherit; text-decoration: none; }
.shopcore-account__nav li.is-active a { background: var(--shopcore-soft); font-weight: 700; box-shadow: inset 3px 0 0 var(--shopcore-accent); }
.shopcore-account__auth--two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3em; }
.shopcore-login__row { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.shopcore-order-updates { padding-left: 1.2em; }
.shopcore-edit-account fieldset { margin: 1.5em 0; padding: 1.2em; border: 1px solid var(--shopcore-line); border-radius: var(--shopcore-radius); }

/* ---------------------------------------------------------- mini cart etc */
.shopcore-mini-cart { list-style: none; padding: 0; margin: 0 0 1em; }
.shopcore-mini-cart li { display: flex; flex-direction: column; gap: .2em; padding: .6em 0; border-bottom: 1px solid var(--shopcore-line); }
.shopcore-mini-cart a { display: flex; gap: .6em; align-items: center; color: inherit; font-weight: 600; text-decoration: none; }
.shopcore-mini-cart img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; margin: 0; }
.shopcore-mini-cart__buttons { display: flex; gap: .5em; flex-wrap: wrap; }
.shopcore-widget-products, .shopcore-widget-categories, .shopcore-widget-reviews { list-style: none; padding: 0; margin: 0; }
.shopcore-widget-products li { display: flex; flex-direction: column; gap: .2em; padding: .5em 0; }
.shopcore-widget-products a { display: flex; gap: .6em; align-items: center; color: inherit; text-decoration: none; }
.shopcore-widget-products img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; margin: 0; }
.shopcore-widget-reviews li { display: flex; flex-direction: column; gap: .2em; padding: .5em 0; }
.shopcore-widget-reviews .reviewer { font-size: .85em; opacity: .7; }
.shopcore-product-search { display: flex; gap: .4em; }

/* ------------------------------------------------------ visibility badge */
.shopcore-visibility-badge { position: fixed; z-index: 99998; left: 16px; bottom: 16px; padding: .45em .9em; border-radius: 999px; background: #92400e; color: #fff !important; font: 600 12px/1.2 system-ui, sans-serif; text-decoration: none; box-shadow: 0 6px 16px -6px rgb(0 0 0 / .4); }
.shopcore-visibility-badge::before { content: "●"; margin-right: .45em; color: #fcd34d; }
.shopcore-visibility-badge.is-live { background: #14532d; }
.shopcore-visibility-badge.is-live::before { color: #86efac; }

/* Simple Shop markup still in old pages keeps a sensible look. */
.shop-grid { display: grid; grid-template-columns: repeat(var(--shop-cols, 4), minmax(0, 1fr)); gap: 22px; }

/* ------------------------------------------------------------ payment gateways */
.shopcore-form-messages:empty { display: none; }
.shopcore-form-messages { margin-bottom: 1.2em; }
form.is-processing { position: relative; }
form.is-processing .shopcore-checkout__review, form.is-processing .shopcore-payment-methods { opacity: .65; pointer-events: none; transition: opacity .2s; }
.shopcore-place-order[hidden], [data-shopcore-place-order][hidden] { display: none !important; }
.shopcore-gw-marks { display: inline-flex; gap: 4px; margin-left: auto; padding-left: .5em; }
.shopcore-gw-marks span { padding: 1px 5px; border: 1px solid var(--shopcore-line); border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .03em; color: var(--shopcore-muted); }
.shopcore-payment-method > label { width: 100%; }
.shopcore-gw-element { margin: .4em 0 .2em; min-height: 44px; }
.shopcore-gw-wallet { min-height: 48px; margin: .4em 0; }
.shopcore-gw-unavailable { color: var(--shopcore-warn); font-size: .9em; }
.shopcore-test-hint { margin: .2em 0 .8em; padding: .55em .8em; border-radius: 8px; background: color-mix(in srgb, var(--shopcore-warn) 10%, transparent); font-size: .85em; }
.shopcore-test-hint code { font-size: .95em; }
.shopcore-card-logos { display: flex; gap: 4px; margin: 0 0 .7em; }
.shopcore-card-logo { padding: 2px 6px; border-radius: 4px; background: var(--shopcore-soft); border: 1px solid var(--shopcore-line); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.shopcore-card-fields { display: flex; flex-wrap: wrap; gap: 0 4%; }
.shopcore-card-fields > .shopcore-field { flex: 1 1 100%; margin-bottom: .8em; }
.shopcore-card-fields > .shopcore-field--first, .shopcore-card-fields > .shopcore-field--last { flex: 1 1 48%; }

/* Express checkout (cart / product pages) */
.shopcore-express { margin: 1.2em 0; }
.shopcore-express[hidden] { display: none; }
.shopcore-express__buttons { display: grid; gap: 10px; }
.shopcore-express__button[hidden] { display: none; }
.shopcore-express__sep { display: flex; align-items: center; gap: .8em; margin: .9em 0; color: var(--shopcore-muted); font-size: .8em; text-transform: uppercase; letter-spacing: .08em; }
.shopcore-express__sep::before, .shopcore-express__sep::after { content: ""; flex: 1; height: 1px; background: var(--shopcore-line); }
.shopcore-express--product { max-width: 420px; }
