:root {
    --primary-color: #ffad36;
    --primary-dark: #f7931e;
    --ink: #17181c;
    --muted: #6a6f76;
    --line: #e6e7ea;
    --surface: #ffffff;
    --surface-soft: #f6f6f7;
    --success: #137a45;
    --danger: #b42318;
    --max-width: 1540px;
    --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.ui.container { width: min(calc(100% - 32px), var(--max-width)) !important; max-width: var(--max-width) !important; }
.ui.primary.button.brand-button,
.ui.primary.buttons .button.brand-button {
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: none !important;
}
.ui.primary.button.brand-button:hover,
.ui.primary.button.brand-button:focus { background: var(--primary-dark) !important; }
.ui.button { border-radius: 9px !important; font-weight: 600 !important; }
.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 9999;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px 14px;
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: none;
}
.header-inner {
    min-height: 76px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand-lockup {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 7px 11px;
    border-radius: 11px;
    background: transparent;
    text-decoration: none;
    transition: transform .22s ease, background-color .22s ease;
}
.brand-lockup:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .05); }
.brand-logo {
    display: block;
    width: 232px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}
.header-actions { display: flex; gap: 10px; align-items: center; }
.site-header .header-actions .ui.basic.button {
    background: rgba(255,255,255,.96) !important;
    border-color: rgba(23,24,28,.12) !important;
    color: #17181c !important;
    box-shadow: none !important;
}
.site-header .header-actions .ui.basic.button:hover,
.site-header .header-actions .ui.basic.button:focus-visible {
    background: #fff !important;
    border-color: rgba(23,24,28,.24) !important;
}
.ui.button.whatsapp-header-button {
    background: #25D366 !important;
    color: #fff !important;
    box-shadow: none !important;
}
.ui.button.whatsapp-header-button i.icon {
    color: #fff !important;
    opacity: 1 !important;
}
.ui.button.whatsapp-header-button:hover,
.ui.button.whatsapp-header-button:focus-visible {
    background: #1FBD59 !important;
    color: #fff !important;
}

.hero-section { background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.hero-grid {
    min-height: 390px;
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(340px, .6fr);
    align-items: center;
    gap: 72px;
    padding-top: 64px;
    padding-bottom: 64px;
}
.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hero-copy h1 {
    margin: 0;
    max-width: 800px;
    font-size: clamp(40px, 5vw, 70px);
    line-height: 1.01;
    letter-spacing: -.045em;
}
.hero-copy > p {
    max-width: 720px;
    margin: 24px 0 26px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; color: #33363b; font-weight: 700; }
.hero-trust i { color: var(--primary-color); }
.hero-panel {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.hero-panel__label { display: block; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.hero-panel strong { display: block; margin-top: 12px; font-size: 30px; letter-spacing: -.03em; }
.hero-panel p { color: var(--muted); margin: 10px 0 22px; }

.catalog-section { padding: 70px 0 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 3vw, 44px); letter-spacing: -.035em; }
.catalog-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 34px; align-items: start; }
.filters-panel {
    position: sticky;
    top: 102px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.filter-block { margin-bottom: 22px; }
.filter-block > label,
.filter-block > div > label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 13px; }
.filters-panel .ui.input input,
.filters-panel select.ui.dropdown,
.sort-control select.ui.dropdown {
    border-radius: 8px !important;
    border-color: #dfe1e5 !important;
}
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; min-width: 0; }
.two-fields > div { min-width: 0; }
.two-fields .ui.input { width: 100% !important; min-width: 0 !important; }
.two-fields .ui.input > input { width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
.catalog-toolbar {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    color: var(--muted);
}
.catalog-toolbar strong { color: var(--ink); }
.sort-control { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.mobile-filter-toggle { display: none !important; }
/* Product cards keep their natural height instead of stretching to the tallest card in each CSS Grid row. */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.related-grid { align-items: start; }
/* Semantic UI pagination for all products and every category. */
.catalog-pagination { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 32px; }
.catalog-pagination__range { color: var(--muted); font-size: 13px; font-weight: 600; }
.catalog-pagination__nav { max-width: 100%; overflow-x: auto; padding: 2px; }
.catalog-pagination__nav[hidden] { display: none !important; }
.catalog-pagination__nav .ui.pagination.menu { margin: 0; box-shadow: none; border: 1px solid var(--line); border-radius: 9px; }
.catalog-pagination__nav .ui.pagination.menu .item { min-width: 42px; justify-content: center; font-weight: 600; color: var(--ink); }
.catalog-pagination__nav .ui.pagination.menu .item.active { background: var(--primary-color) !important; color: #111 !important; }
.catalog-pagination__nav .ui.pagination.menu a.item:not(.active):hover { background: #f6f6f6; color: var(--primary-color); }
.catalog-pagination__nav .ui.pagination.menu .disabled.item { opacity: .4; pointer-events: none; }
@media (max-width: 540px) {
    .catalog-pagination { margin-top: 24px; }
    .catalog-pagination__nav .ui.pagination.menu .item { min-width: 36px; padding: 11px 12px; font-size: 12px; }
}

.catalog-card.ui.card {
    align-self: start;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease;
}
.catalog-card.ui.card:hover { transform: translateY(-2px); border-color: #cfd1d6 !important; }
.catalog-card__image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    padding: 18px;
    background: var(--surface-soft);
    overflow: hidden;
}
.catalog-card__image img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.catalog-card:hover .catalog-card__image img { transform: scale(1.025); }
.catalog-card__badges {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 28px);
}
.catalog-card__badges .ui.label { margin: 0 !important; }
.catalog-condition-badge.ui.label {
    border-radius: 999px !important;
    background: #fff !important;
    color: #555960 !important;
    border: 1px solid #dedfe2 !important;
    font-weight: 600 !important;
}
.discount-badge.ui.label {
    border-radius: 8px 0 8px 0 !important;
    background: #CC0C39 !important;
    color: #fff !important;
    font-weight: 700 !important;
}
.catalog-card__content { padding: 18px !important; }

/* Compact product brand marks: visually replace the text without growing the layout. */
.catalog-brand,
.product-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    line-height: 1;
}
.catalog-brand--image,
.product-brand--image {
    /* El zoom es estrictamente visual: no modifica el espacio reservado por el layout. */
    overflow: visible;
    position: relative;
    z-index: 1;
}
.catalog-brand-logo {
    --brand-target-width: 82px;
    --brand-target-height: 17px;
    display: block;
    width: auto;
    height: var(--brand-target-height);
    max-width: var(--brand-target-width);
    object-fit: contain;
    object-position: left center;
    transform: scale(var(--brand-logo-scale, 1));
    transform-origin: left center;
}
.product-brand-logo {
    --brand-target-width: 112px;
    --brand-target-height: 19px;
    display: block;
    width: auto;
    height: var(--brand-target-height);
    max-width: var(--brand-target-width);
    object-fit: contain;
    object-position: left center;
    transform: scale(var(--brand-logo-scale, 1));
    transform-origin: left center;
}
.catalog-brand-logo[data-brand-normalized="1"],
.product-brand-logo[data-brand-normalized="1"] {
    /* brand-logos.js already applies the persisted zoom to the visible artwork. */
    transform: none !important;
}
.catalog-brand-fallback,
.product-brand-fallback { line-height: 1; }

.catalog-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.catalog-stock-badge.ui.label {
    margin: 0 !important;
    border-radius: 999px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 600 !important;
}
.catalog-card__title.header { display: block !important; min-height: 50px; margin-bottom: 14px !important; color: var(--ink) !important; font-size: 17px !important; line-height: 1.4 !important; text-decoration: none; }
.catalog-card__specs { display: grid; gap: 7px; min-height: 108px; color: #50545a; font-size: 13px; }
.catalog-card__specs span { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-spec-icon { flex: 0 0 20px; width: 20px; height: 20px; object-fit: contain; }
.price-row { display: block; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.compare-price { display: block; color: #93969c; font-size: 12px; text-decoration: line-through; }
.current-price { display: block; margin-top: 2px; font-size: 24px; letter-spacing: -.03em; }
.currency-conversion {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    white-space: normal;
}
.currency-conversion--unavailable { font-weight: 500; }
.condition-pill { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border-radius: 999px; background: #f0f1f3; color: #555960; font-size: 11px; font-weight: 600; white-space: nowrap; }
.card-actions { display: grid !important; gap: 8px; padding: 14px 18px 18px !important; border-top: 0 !important; }
.card-actions .button { margin: 0 !important; }
.gallery-button { background: #fff !important; }
.empty-state { padding: 70px 24px; text-align: center; border: 1px dashed #d4d6db; border-radius: 14px; color: var(--muted); }
.empty-state > i { font-size: 28px; color: var(--primary-color); }
.empty-state h3 { color: var(--ink); }

.seo-content-section { padding: 78px 0; border-top: 1px solid var(--line); background: var(--surface-soft); }
.seo-content-grid { display: grid !important; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: start; }
.seo-content-grid h2 { margin: 0 0 18px; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.035em; }
.seo-content-grid p { color: var(--muted); font-size: 17px; line-height: 1.75; }
.benefits-list .item { padding: 14px 0 !important; }
.benefits-list > .item > i.icon { color: var(--primary-color); font-size: 20px; }
.benefits-list .description { color: var(--muted) !important; margin-top: 4px; }

.site-footer { padding: 44px 0 28px; background: #17181c; color: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid !important; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(170px, .7fr)); align-items: start; gap: 42px; }
.site-footer p { margin: 6px 0 0; color: #aeb1b7; }
.footer-section { min-width: 0; }
.footer-title { display: inline-block; margin-bottom: 12px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-links,
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-links a,
.footer-contact a { display: inline-flex; align-items: center; width: fit-content; gap: 9px; color: #fff; text-decoration: none; }
.footer-links a i.icon,
.footer-contact a i.icon { margin: 0 !important; width: 18px; text-align: center; font-size: 17px; }
.footer-social--facebook i.icon { color: #1877f2 !important; }
.footer-social--whatsapp i.icon { color: #25d366 !important; }
.footer-social--instagram i.icon {
    color: transparent !important;
    background: radial-gradient(circle at 32% 100%, #fed373 0 18%, #f15245 28%, #d92e7f 50%, #9b36b7 68%, #515ecf 86%);
    -webkit-background-clip: text;
    background-clip: text;
}
.footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; }
.footer-bottom p { margin: 0; }
.footer-brand-copy { max-width: 430px; }
.footer-brand .footer-thanks { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 10px; color: #fff !important; font-size: 13px; }
.footer-heart { display: inline-block; color: #ff3b4d; font-size: 16px; line-height: 1; animation: footerHeartBeat 1.3s ease-in-out infinite; }
.footer-copyright { color: #aeb1b7 !important; font-size: 13px; text-align: center; }

.product-page { padding: 34px 0 80px; }
.product-breadcrumb { margin-bottom: 28px !important; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 54px; align-items: start; }
.product-gallery-column { min-width: 0; }
.product-gallery-card { min-width: 0; }
.product-main-image { position: relative; display: grid; place-items: center; padding: 34px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.product-image-zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid rgba(23, 24, 28, .14);
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: zoom-in;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(23,24,28,.08);
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.product-image-zoom i.icon { margin: 0 !important; color: var(--primary-dark); }
.product-image-zoom:hover,
.product-image-zoom:focus-visible { transform: translateY(-1px); border-color: var(--primary-color); background: #fff; outline: none; }
.product-image-zoom:active { transform: translateY(0) scale(.98); }
.product-main-image img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.product-thumb { aspect-ratio: 4 / 3; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb.is-active { border-color: var(--primary-color); box-shadow: inset 0 0 0 1px var(--primary-color); }
.product-info-panel { position: sticky; top: 104px; padding-top: 10px; }
.product-topline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.product-info-panel h1 { margin: 14px 0 12px; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.04em; }
.product-short-description { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.product-price-block { margin: 26px 0 18px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-price-block > strong { display: block; margin: 2px 0; font-size: 38px; letter-spacing: -.04em; }
.product-price-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 5px; }
.product-price-meta > span:first-child { min-width: 0; color: var(--muted); font-size: 12px; }
.product-price-block .currency-conversion {
    margin: 9px 0 3px;
    color: #4f5359;
    font-size: 14px;
}
.product-sku-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: -2px 0 14px; }
.product-sku-copy.ui.label {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    background: #f8f8f9 !important;
    color: #4c5057 !important;
    font: inherit;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer;
}
.product-sku-copy.ui.label > i.icon { margin: 0 !important; }
.product-sku-copy.ui.label:hover,
.product-sku-copy.ui.label:focus-visible { border-color: var(--primary-color) !important; color: var(--primary-dark) !important; outline: 0; }
.product-sku-copy.ui.label.is-copied { border-color: #96d5a8 !important; background: #f1fbf4 !important; color: #187a39 !important; }
.product-sku-copy-feedback { min-height: 16px; color: #187a39; font-size: 11px; font-weight: 600; }
.product-stock-badge.ui.label { margin: 0 !important; padding: 9px 12px !important; border-radius: 999px !important; font-size: 12px !important; font-weight: 600 !important; }
.product-stock-badge.ui.label > i.icon { margin-right: 6px !important; }
.product-additional-note.ui.message { margin: 0 0 18px !important; border-radius: 12px !important; box-shadow: none !important; }
.product-additional-note.ui.message > i.icon { font-size: 20px !important; }
.product-additional-note__line { display: flex !important; align-items: baseline; flex-wrap: wrap; gap: 5px; line-height: 1.55; }
.product-additional-note__line strong { flex: 0 0 auto; font-weight: 700 !important; }
.product-additional-note__line span { min-width: 0; white-space: normal; }
.product-info-panel > .button { margin: 0 0 10px !important; }
.product-description-card { width: 100%; max-width: none; margin-top: 60px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; }
.product-description-card h2 { margin-top: 0; }
.product-description-card p { margin-bottom: 0; color: #555960; line-height: 1.8; }
.related-section { margin-top: 74px; }
.related-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.not-found { min-height: 60vh; padding: 80px 0; }

.catalog-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}
.catalog-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.catalog-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 11, 13, .72);
    opacity: 0;
    transition: opacity .24s ease;
}
.catalog-modal.is-open .catalog-modal__backdrop { opacity: 1; }
.catalog-modal__panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px;
    border-radius: 16px;
    background: #fff;
    opacity: 0;
    transform: translateY(18px) scale(.985);
    transition: opacity .24s ease, transform .28s cubic-bezier(.2,.7,.2,1);
}
.catalog-modal.is-open .catalog-modal__panel { opacity: 1; transform: translateY(0) scale(1); }
.catalog-modal__panel h2 { margin: 0 48px 20px 0; }
.catalog-modal__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.catalog-modal__close i { margin: 0 !important; }
.gallery-stage { display: grid; place-items: center; min-height: 460px; padding: 20px; border-radius: 12px; background: var(--surface-soft); }
.gallery-stage img { max-width: 100%; max-height: 60vh; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(85px, 110px)); gap: 10px; margin-top: 12px; }
.gallery-thumbs button { aspect-ratio: 4 / 3; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; overflow: hidden; }
.gallery-thumbs button.is-active { border-color: var(--primary-color); box-shadow: inset 0 0 0 1px var(--primary-color); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
body.modal-open { overflow: hidden; }


/* Typography: the storefront never exceeds 700 weight. */
h1, h2, h3, h4, h5, h6,
.ui.header,
strong,
b { font-weight: 700 !important; }
label,
.catalog-card__meta,
.product-topline,
.product-stock-badge,
.condition-pill { font-weight: 600; }

/* Interactive motion kept subtle and GPU-friendly. */
.ui.button,
.catalog-card__title,
.footer-links a,
.product-thumb,
.gallery-thumbs button,
.catalog-modal__close,
.product-sku-copy.ui.label {
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease, opacity .18s ease !important;
}
.ui.button:not(.disabled):hover,
.ui.button:not(.disabled):focus-visible { transform: translateY(-1px); }
.ui.button:not(.disabled):active { transform: translateY(0) scale(.985); }
.filters-panel .ui.input input,
.filters-panel select.ui.dropdown,
.sort-control select.ui.dropdown { transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.filters-panel .ui.input:focus-within input,
.filters-panel select.ui.dropdown:focus,
.sort-control select.ui.dropdown:focus { border-color: var(--primary-color) !important; box-shadow: 0 0 0 2px rgba(255, 173, 54, .14) !important; }
.catalog-card__title:hover { color: var(--primary-color) !important; }
.footer-links a:hover,
.footer-contact a:hover { color: #fff; transform: translateY(-1px); }
.product-thumb:hover,
.gallery-thumbs button:hover { transform: translateY(-2px); border-color: #c7c9ce; }
.catalog-modal__close:hover { transform: rotate(4deg); border-color: #c7c9ce; }

[data-product-card][hidden].catalog-card.ui.card { display: none !important; }
.catalog-card.ui.card.is-opening { transform: translateY(-4px) scale(.992); border-color: var(--primary-color) !important; }
.catalog-card.ui.card { animation: cardEntrance .42s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--card-delay, 0ms); }
.product-grid.has-filter .catalog-card.ui.card:not([hidden]) { animation: filterEntrance .24s ease both; animation-delay: 0ms; }

.product-main-image img.is-swapping,
.gallery-stage img.is-swapping { animation: imageSwap .28s ease both; }

.site-header { animation: headerDrop .38s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy { animation: contentRise .48s cubic-bezier(.2,.7,.2,1) .04s both; }
.hero-panel { animation: detailFromRight .48s cubic-bezier(.2,.7,.2,1) .09s both; }
.section-heading { animation: contentRise .42s ease .05s both; }
.seo-content-grid > div:first-child { animation: detailFromLeft .46s ease both; }
.seo-content-grid > div:last-child { animation: detailFromRight .46s ease .05s both; }

.product-detail-grid > .product-gallery-column { animation: detailFromLeft .48s cubic-bezier(.2,.7,.2,1) both; }
.product-detail-grid > .product-info-panel { animation: detailFromRight .48s cubic-bezier(.2,.7,.2,1) .06s both; }
.product-description-card,
.related-section { animation: contentRise .45s ease .12s both; }

.page-leaving main { opacity: .55; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }

.footer-brand { min-width: 0; }
.footer-logo { display: block; width: 205px; height: auto; max-height: 44px; object-fit: contain; }

@keyframes footerHeartBeat {
    0%, 100% { transform: scale(1); }
    20% { transform: scale(1.16); }
    40% { transform: scale(.95); }
    60% { transform: scale(1.1); }
    80% { transform: scale(.98); }
}

@keyframes headerDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes filterEntrance {
    from { opacity: .35; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes imageSwap {
    0% { opacity: .3; transform: scale(.985); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes detailFromLeft {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes detailFromRight {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes contentRise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1220px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .related-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}


.product-warranty-message.ui.message { margin: 16px 0 18px !important; border-radius: 12px !important; box-shadow: none !important; }
.product-warranty-message .content { line-height: 1.55; }
.product-warranty-message .content > strong { display: block; margin-bottom: 3px; }
.product-warranty-message a { color: #0e6eb8; text-decoration: underline; text-underline-offset: 2px; }

.legal-page { padding: 40px 0 84px; }
.legal-breadcrumb { margin-bottom: 24px !important; }
.legal-hero { padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.legal-hero .eyebrow { display: block; margin-bottom: 8px; color: var(--primary-dark); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.legal-hero h1 { margin: 0 0 12px; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.04em; }
.legal-hero p { max-width: 900px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; align-items: start; margin-top: 28px; }
.legal-content { display: grid; gap: 18px; }
.legal-section { padding: 26px 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.legal-section h2 { margin: 0 0 14px; font-size: 22px; }
.legal-section h3 { margin: 20px 0 8px; font-size: 16px; }
.legal-section p, .legal-section li { color: #50545a; line-height: 1.72; }
.legal-section ul, .legal-section ol { margin: 10px 0 0; padding-left: 22px; }
.legal-section li + li { margin-top: 8px; }
.legal-sidebar { position: sticky; top: 100px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.legal-sidebar h3 { margin: 0 0 12px; font-size: 16px; }
.legal-sidebar a { display: block; padding: 8px 0; color: #40444a; text-decoration: none; border-bottom: 1px solid #f0f0f1; }
.legal-sidebar a:last-child { border-bottom: 0; }
.legal-sidebar a:hover { color: var(--primary-dark); }
.legal-note.ui.message { box-shadow: none !important; }
.info-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.info-link-grid a { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; background: var(--surface-soft); transition: transform .18s ease, border-color .18s ease; }
.info-link-grid a:hover { border-color: var(--primary-color); transform: translateY(-1px); }
.info-link-grid a > i.icon { flex: 0 0 22px; margin: 1px 0 0 !important; color: var(--primary-dark); font-size: 18px; }
.info-link-grid span { display: grid; gap: 4px; }
.info-link-grid small { color: var(--muted); line-height: 1.45; }
.benefits-list > a.item { color: inherit !important; text-decoration: none; }
@media (max-width: 820px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-sidebar { position: static; order: -1; }
    .info-link-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 34px; min-height: auto; }
    .hero-panel { max-width: 640px; }
    .catalog-layout { grid-template-columns: 1fr; }
    .filters-panel {
        position: static;
        display: block;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-color: transparent;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: max-height .38s ease, padding .3s ease, opacity .25s ease, transform .3s ease, border-color .25s ease;
    }
    .filters-panel.is-open {
        max-height: 720px;
        padding-top: 22px;
        padding-bottom: 22px;
        border-color: var(--line);
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .mobile-filter-toggle { display: inline-flex !important; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .product-info-panel { position: static; }
    .seo-content-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
    .ui.container { width: min(calc(100% - 24px), var(--max-width)) !important; }
    .header-inner { min-height: 68px; }
    .brand-logo { width: 190px; }
    .header-actions .basic.button { display: none; }
    .header-actions .button { padding-left: 12px !important; padding-right: 12px !important; }
    .hero-grid { padding-top: 46px; padding-bottom: 46px; }
    .hero-copy h1 { font-size: 41px; }
    .hero-copy > p { font-size: 16px; }
    .hero-trust { display: grid; gap: 10px; }
    .hero-panel { padding: 24px; }
    .catalog-section { padding: 52px 0 70px; }
    .section-heading { align-items: center; }
    .product-grid, .related-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .footer-bottom { margin-top: 26px; padding-top: 18px; }
    .catalog-toolbar { align-items: flex-start; flex-direction: column; }
    .sort-control { width: 100%; justify-content: space-between; }
    .sort-control select { max-width: 220px; }
    .two-fields { grid-template-columns: 1fr; }
    .product-main-image { padding: 16px; }
    .product-image-zoom { right: 10px; bottom: 10px; min-height: 36px; padding: 8px 10px; }
    .product-image-zoom span { display: none; }
    .product-thumb-row { grid-template-columns: repeat(3, 1fr); }
    .product-info-panel h1 { font-size: 36px; }
    .catalog-modal { padding: 10px; }
    .catalog-modal__panel { padding: 20px; max-height: calc(100vh - 20px); }
    .gallery-stage { min-height: 300px; }
}

@media (max-width: 520px) {
    .product-sku-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


@media (max-width: 640px) {
    .product-price-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
    .catalog-card__badges { top: 10px; left: 10px; max-width: calc(100% - 20px); }
}

/* =========================================================
   Category catalog architecture
   ========================================================= */
.category-heading-section {
    padding: 34px 0 42px;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
    animation: contentRise .34s ease both;
}
.category-breadcrumb.ui.breadcrumb {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 12px;
}
.category-breadcrumb.ui.breadcrumb a.section {
    color: var(--muted);
    text-decoration: none;
    transition: color .18s ease;
}
.category-breadcrumb.ui.breadcrumb a.section:hover { color: var(--primary-dark); }
.category-breadcrumb.ui.breadcrumb .active.section { color: var(--ink); font-weight: 600; }
.category-heading-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
}
.category-heading-grid h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 700;
}
.category-heading-grid p {
    max-width: 800px;
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}
.category-heading-icon {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,173,54,.42);
    border-radius: 22px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 38px;
}
.category-heading-icon i.icon { margin: 0 !important; }
.category-directory-section {
    padding: 54px 0 8px;
    background: #fff;
}
.category-section-heading { align-items: center; }
.category-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.category-card {
    min-width: 0;
    min-height: 112px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
    animation: cardEntrance .34s ease both;
}
.category-card:hover,
.category-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255,173,54,.72);
    background: #fffcf7;
    outline: none;
}
.category-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #fff3e2;
    color: #b96600;
    font-size: 21px;
    transition: transform .2s ease, background-color .2s ease;
}
.category-card:hover .category-card__icon { transform: scale(1.04); background: #ffe9c8; }
.category-card__icon i.icon,
.category-card__arrow.icon { margin: 0 !important; }
.category-card__body { min-width: 0; display: grid; gap: 5px; }
.category-card__body strong {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}
.category-card__body small { color: var(--muted); font-size: 12px; font-weight: 500; }
.category-card__arrow { color: #a5a6ab; transition: transform .2s ease, color .2s ease; }
.category-card:hover .category-card__arrow { color: var(--primary-dark); transform: translateX(3px); }
.category-empty-message.ui.message {
    margin: 0 !important;
    min-height: 150px;
    align-items: center;
    border: 1px solid #efc98e !important;
    border-radius: var(--radius) !important;
    background: #fffaf2 !important;
    box-shadow: none !important;
    color: #76531e !important;
}
.category-empty-message.ui.message > i.icon { color: var(--primary-dark) !important; }
.category-empty-message.ui.message .header { color: #5e3d0b !important; font-weight: 700 !important; }
.category-empty-message.ui.message p { margin-top: 6px !important; }

@media (max-width: 1180px) {
    .category-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .category-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-heading-icon { width: 74px; height: 74px; border-radius: 18px; font-size: 30px; }
}
@media (max-width: 640px) {
    .category-heading-section { padding: 26px 0 34px; }
    .category-breadcrumb.ui.breadcrumb { margin-bottom: 20px; }
    .category-heading-grid { grid-template-columns: 1fr; gap: 20px; }
    .category-heading-icon { display: none; }
    .category-directory-section { padding-top: 38px; }
    .category-card-grid { grid-template-columns: 1fr; gap: 10px; }
    .category-card { min-height: 92px; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .category-heading-section,
    .category-card { animation: none !important; }
}

/* =========================================================
   Mobile storefront — marketplace-style navigation and lists
   Inspired by modern mobile electronics catalogs; original
   CPU Store VZLA markup/styles, no third-party site code copied.
   ========================================================= */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.mobile-store-header,
.mobile-drawer,
.mobile-filter-head,
.mobile-filter-backdrop,
.mobile-filter-actions,
.mobile-product-action { display: none; }
.mobile-filter-body, .mobile-filter-card { min-width: 0; }

@media (max-width: 820px) {
    :root { --mobile-header-offset: 162px; }
    html {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        scroll-padding-top: calc(var(--mobile-header-offset) + 12px);
    }
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        background: #f5f5f6;
    }
    body.mobile-menu-open,
    body.filters-open { overflow: hidden; touch-action: none; }
    .ui.container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* Header */
    .desktop-header-inner { display: none !important; }
    .site-header {
        background: #111214;
        border-bottom: 0;
        box-shadow: 0 1px 0 rgba(0,0,0,.12);
    }
    .mobile-store-header { display: block; }
    .mobile-store-topbar {
        min-height: 54px;
        display: grid;
        grid-template-columns: 42px minmax(0,1fr) 42px;
        align-items: center;
        gap: 8px;
        padding: 6px 10px 4px;
    }
    .mobile-menu-button,
    .mobile-header-whatsapp {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        margin: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #fff;
        font-size: 20px;
        cursor: pointer;
    }
    .mobile-menu-button i.icon,
    .mobile-header-whatsapp i.icon { margin: 0 !important; }
    .mobile-header-whatsapp { color: #25D366; }
    .mobile-store-logo {
        justify-self: center;
        justify-content: center;
        display: inline-flex;
        align-items: center;
        min-width: 0;
        height: 42px;
        text-decoration: none;
    }
    .mobile-store-logo img {
        width: min(178px, 49vw);
        height: auto;
        max-height: 38px;
        object-fit: contain;
    }
    .mobile-store-search {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0,1fr) 46px;
        margin: 2px 10px 7px;
        overflow: hidden;
        border: 2px solid #fff;
        border-radius: 24px;
        background: #fff;
    }
    .mobile-store-search input {
        width: 100%;
        min-width: 0;
        height: 40px;
        padding: 0 12px 0 15px;
        border: 0;
        outline: 0;
        background: #fff;
        color: #17181c;
        font: inherit;
        font-size: 14px;
    }
    .mobile-store-search input::placeholder { color: #92959b; }
    .mobile-store-search button {
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 21px;
        background: var(--primary-color);
        color: #111214;
        font-size: 18px;
        cursor: pointer;
    }
    .mobile-store-search button i.icon { margin: 0 !important; }
    .mobile-delivery-row {
        min-height: 28px;
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 0 12px 7px;
        color: #f0f0f1;
        font-size: 11px;
        font-weight: 600;
    }
    .mobile-delivery-row i.icon { margin: 0 !important; color: var(--primary-color); }
    .mobile-quick-categories {
        display: flex;
        gap: 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        border-top: 1px solid rgba(255,255,255,.08);
        background: #fff;
        white-space: nowrap;
    }
    .mobile-quick-categories::-webkit-scrollbar { display: none; }
    .mobile-quick-categories a {
        flex: 0 0 auto;
        min-height: 35px;
        display: inline-flex;
        align-items: center;
        padding: 0 13px;
        color: #2f3135;
        border-right: 1px solid #ececef;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
    }
    .mobile-quick-categories a:first-child { color: #a85800; }

    /* Off-canvas category drawer */
    .mobile-drawer {
        position: fixed;
        inset: 0;
        z-index: 300;
        display: block;
        visibility: hidden;
        pointer-events: none;
    }
    .mobile-drawer.is-open { visibility: visible; pointer-events: auto; }
    .mobile-drawer-backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        border: 0;
        background: rgba(0,0,0,.56);
        opacity: 0;
        transition: opacity .2s ease;
    }
    .mobile-drawer.is-open .mobile-drawer-backdrop { opacity: 1; }
    .mobile-drawer-panel {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(88vw, 360px);
        overflow-y: auto;
        background: #fff;
        color: #17181c;
        transform: translateX(-101%);
        transition: transform .24s cubic-bezier(.2,.7,.2,1);
        box-shadow: 18px 0 45px rgba(0,0,0,.22);
    }
    .mobile-drawer.is-open .mobile-drawer-panel { transform: translateX(0); }
    .mobile-drawer-head {
        position: sticky;
        top: 0;
        z-index: 2;
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 14px;
        border-bottom: 1px solid #27282b;
        background: #111214;
        color: #fff;
    }
    .mobile-drawer-head strong { font-size: 17px; }
    .mobile-drawer-head button {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: #222326;
        color: #fff;
        cursor: pointer;
    }
    .mobile-drawer-head i.icon { margin: 0 !important; }
    .mobile-drawer-home,
    .mobile-drawer-categories > li > a,
    .mobile-drawer-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 10px 16px;
        border-bottom: 1px solid #eeeeef;
        color: #2a2c30;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }
    .mobile-drawer-home { color: #a85800; }
    .mobile-drawer-categories { margin: 0; padding: 0; list-style: none; }
    .mobile-drawer-categories.is-nested { background: #fafafa; }
    .mobile-drawer-categories.is-nested > li > a { padding-left: 34px; font-size: 13px; }
    .mobile-drawer-categories i.icon,
    .mobile-drawer-links i.icon,
    .mobile-drawer-home i.icon { width: 18px; margin: 0 !important; color: #6e7278; }
    .mobile-drawer-arrow { margin-left: auto !important; color: #b1b3b7 !important; }
    .mobile-drawer-links { margin-top: 14px; border-top: 8px solid #f4f4f5; }
    .mobile-drawer-links .mobile-drawer-whatsapp { color: #147a3f; }
    .mobile-drawer-links .mobile-drawer-whatsapp i.icon { color: #25D366; }

    /* Home / category landing */
    .hero-section { padding: 12px 0 0; border-bottom: 0; background: #f5f5f6; }
    .hero-grid { min-height: 0; display: block !important; padding-top: 0; padding-bottom: 0; }
    .hero-copy {
        padding: 22px 18px;
        border-radius: 14px;
        background: #17181c;
        color: #fff;
    }
    .hero-copy .eyebrow { margin-bottom: 8px; color: var(--primary-color); font-size: 10px; }
    .hero-copy h1 { max-width: none; font-size: 27px; line-height: 1.08; letter-spacing: -.035em; }
    .hero-copy > p { margin: 12px 0 15px; color: #d7d8db; font-size: 13px; line-height: 1.55; }
    .hero-trust {
        display: flex;
        flex-wrap: nowrap;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 2px;
        color: #fff;
        scrollbar-width: none;
    }
    .hero-trust::-webkit-scrollbar { display: none; }
    .hero-trust span {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        min-height: 29px;
        padding: 0 9px;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 15px;
        background: #222327;
        font-size: 10px;
        font-weight: 600;
    }
    .hero-panel { display: none; }
    .category-heading-section { padding: 16px 0 18px; background: #fff; }
    .category-breadcrumb.ui.breadcrumb {
        display: flex;
        align-items: center;
        overflow-x: auto;
        margin: 0 0 12px !important;
        padding-bottom: 3px;
        white-space: nowrap;
        scrollbar-width: none;
    }
    .category-breadcrumb.ui.breadcrumb::-webkit-scrollbar { display: none; }
    .category-heading-grid { display: block; }
    .category-heading-grid h1 { font-size: 28px; line-height: 1.08; }
    .category-heading-grid p { margin-top: 8px; font-size: 13px; line-height: 1.5; }
    .category-heading-icon { display: none; }
    .category-directory-section { padding: 18px 0 10px; background: #f5f5f6; }
    .category-section-heading { margin-bottom: 10px; }
    .category-section-heading .eyebrow { display: none; }
    .category-section-heading h2 { font-size: 20px; }
    .category-section-heading > .ui.button { display: none; }
    .category-card-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 1px 1px 8px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .category-card-grid::-webkit-scrollbar { display: none; }
    .category-card {
        flex: 0 0 156px;
        min-height: 82px;
        grid-template-columns: 42px minmax(0,1fr);
        gap: 10px;
        padding: 12px;
        border-radius: 10px;
        scroll-snap-align: start;
    }
    .category-card__icon { width: 42px; height: 42px; border-radius: 10px; font-size: 18px; }
    .category-card__body strong { font-size: 13px; white-space: normal; line-height: 1.2; }
    .category-card__body small { font-size: 10px; }
    .category-card__arrow { display: none !important; }

    /* Catalog list + sticky controls */
    .catalog-section { padding: 20px 0 36px; background: #fff; }
    .catalog-section-heading { margin-bottom: 8px; }
    .catalog-section-heading .eyebrow { display: none; }
    .section-heading h2,
    .catalog-section-heading h2 { font-size: 24px; line-height: 1.15; }
    .catalog-layout { display: block; }
    .catalog-results { min-width: 0; }
    .catalog-toolbar {
        position: sticky;
        top: var(--mobile-header-offset);
        z-index: 55;
        min-height: 48px;
        margin: 0 0 10px;
        padding: 7px 10px;
        border-radius: 9px;
        border-top: 1px solid #ececef;
        border-bottom: 1px solid #dedfe2;
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(10px);
        color: #555960;
        font-size: 12px;
    }
    .catalog-toolbar-actions { display: flex; align-items: center; gap: 7px; }
    .mobile-filter-toggle { display: inline-flex !important; min-height: 34px !important; margin: 0 !important; padding: 8px 10px !important; border-radius: 7px !important; font-size: 12px !important; }
    .sort-control { display: flex; align-items: center; gap: 5px; font-size: 0; }
    .sort-control span { display: none; }
    .sort-control select.ui.dropdown {
        width: 132px;
        min-height: 34px;
        margin: 0;
        padding: 7px 24px 7px 9px !important;
        font-size: 12px;
    }
    .filters-panel {
        position: fixed;
        z-index: 240;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(94vw, 410px);
        max-width: 100%;
        max-height: none;
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
        border: 0;
        border-left: 1px solid #dedfe2;
        border-radius: 0;
        background: #f4f4f5;
        opacity: 1;
        overflow: hidden;
        pointer-events: none;
        transform: translateX(102%);
        transition: transform .25s cubic-bezier(.2,.7,.2,1);
        box-shadow: -20px 0 55px rgba(0,0,0,.22);
    }
    .filters-panel.is-open {
        max-height: none;
        padding: 0;
        border-color: #dedfe2;
        pointer-events: auto;
        transform: translateX(0);
    }
    .mobile-filter-head {
        position: relative;
        z-index: 3;
        flex: 0 0 auto;
        min-height: 68px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin: 0;
        padding: 10px 14px;
        border-bottom: 1px solid #27282b;
        background: #111214;
        color: #fff;
    }
    .mobile-filter-head > div { display: grid; gap: 2px; }
    .mobile-filter-kicker {
        color: var(--primary-color);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .11em;
        text-transform: uppercase;
    }
    .mobile-filter-head strong { color: #fff; font-size: 19px; line-height: 1.15; }
    .mobile-filter-head button {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 50%;
        background: #242529;
        color: #fff;
        cursor: pointer;
    }
    .mobile-filter-head button i.icon { margin: 0 !important; }
    .mobile-filter-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 14px;
        background: #f4f4f5;
    }
    .mobile-filter-card {
        width: 100%;
        padding: 15px;
        border: 1px solid #e2e3e6;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(0,0,0,.03);
    }
    .mobile-filter-card .filter-block:last-of-type { margin-bottom: 14px; }
    .mobile-filter-card .ui.input,
    .mobile-filter-card .ui.input > input,
    .mobile-filter-card select.ui.dropdown { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
    .mobile-filter-card .two-fields { width: 100%; max-width: 100%; min-width: 0; gap: 8px; }
    .mobile-filter-card .two-fields > div { min-width: 0; max-width: 100%; }
    .filter-reset-button { min-height: 42px !important; margin-top: 3px !important; }
    .mobile-filter-actions {
        flex: 0 0 auto;
        display: block;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid #dedfe2;
        background: #fff;
        box-shadow: 0 -6px 18px rgba(0,0,0,.05);
    }
    .mobile-filter-actions .ui.button { min-height: 44px; margin: 0 !important; }
    .mobile-filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 230;
        display: none;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(0,0,0,.52);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }
    body.filters-open .mobile-filter-backdrop { display: block; opacity: 1; pointer-events: auto; }
    .filter-block { margin-bottom: 18px; }
    .filter-block > label,
    .filter-block > div > label { font-size: 14px; }
    .two-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }

    .product-grid,
    .related-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
    .catalog-card.ui.card {
        display: grid !important;
        grid-template-columns: minmax(125px, 39%) minmax(0, 61%);
        grid-template-areas: "image content" "actions actions";
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border: 1px solid #e3e4e7 !important;
        border-bottom: 1px solid #dedfe2 !important;
        border-radius: 10px !important;
        background: #fff;
        overflow: visible;
        box-shadow: none !important;
    }
    .catalog-card.ui.card:first-child { border-top: 1px solid #e3e4e7 !important; }
    .product-grid, .related-grid { gap: 10px; }
    .catalog-card.ui.card:hover { transform: none; }
    .catalog-card__image {
        grid-area: image;
        min-height: 188px;
        aspect-ratio: auto;
        padding: 32px 8px 10px 12px;
        background: #fff;
    }
    .catalog-card__image img { object-fit: contain; }
    .catalog-card:hover .catalog-card__image img { transform: none; }
    .catalog-card__badges { top: 9px; left: 10px; gap: 4px; max-width: calc(100% - 16px); }
    .catalog-card__badges .ui.label { padding: 5px 6px !important; font-size: 9px !important; }
    .catalog-card__content {
        grid-area: content;
        min-width: 0;
        padding: 14px 12px 10px 7px !important;
    }
    .catalog-card__meta { margin-bottom: 7px; font-size: 10px; }
    .catalog-brand-logo { --brand-target-width: 68px; --brand-target-height: 16px; height: var(--brand-target-height); max-width: var(--brand-target-width); }
    .product-brand-logo { --brand-target-width: 96px; --brand-target-height: 17px; height: var(--brand-target-height); max-width: var(--brand-target-width); }
    .catalog-stock-badge.ui.label { padding: 4px 6px !important; font-size: 9px !important; }
    .catalog-card__title.header {
        min-height: 0;
        display: -webkit-box !important;
        overflow: hidden;
        margin-bottom: 8px !important;
        font-size: 15px !important;
        line-height: 1.28 !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    .catalog-card__specs { min-height: 0; gap: 4px; font-size: 11px; }
    .catalog-card__specs span { gap: 5px; }
    .catalog-card__specs span:nth-child(n+4) { display: none; }
    .product-spec-icon { flex-basis: 17px; width: 17px; height: 17px; }
    .price-row { margin-top: 9px; padding-top: 8px; border-top-color: #eeeeef; }
    .compare-price { font-size: 10px; }
    .current-price { font-size: 23px; line-height: 1; }
    .currency-conversion { margin-top: 6px; font-size: 10px; }
    .card-actions {
        grid-area: actions;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px;
        padding: 0 12px 12px !important;
    }
    .card-actions .button { min-height: 38px; padding: 9px 11px !important; font-size: 12px !important; }
    .card-actions .gallery-button { width: 44px; overflow: hidden; font-size: 0 !important; }
    .card-actions .gallery-button i.icon { margin: 0 !important; font-size: 16px; }
    .empty-state { margin: 12px 0; padding: 48px 18px; }

    /* Product page */
    .product-page { padding: 12px 0 94px; background: #fff; }
    .product-breadcrumb.ui.breadcrumb {
        display: flex;
        overflow-x: auto;
        margin-bottom: 12px !important;
        padding: 3px 0;
        white-space: nowrap;
        scrollbar-width: none;
        font-size: 11px;
    }
    .product-breadcrumb.ui.breadcrumb::-webkit-scrollbar { display: none; }
    .product-detail-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
    .product-gallery-card { width: 100%; max-width: 100%; margin: 0; }
    .product-main-image {
        min-height: 330px;
        padding: 18px 14px 10px;
        border-width: 1px;
        border-radius: 10px;
        background: #fff;
    }
    .product-image-zoom { right: 14px; bottom: 12px; min-width: 40px; min-height: 40px; border-radius: 50%; padding: 0; }
    .product-image-zoom span { display: none; }
    .product-thumb-row {
        display: flex;
        gap: 8px;
        margin: 8px 0 0;
        padding: 0 14px 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .product-thumb-row::-webkit-scrollbar { display: none; }
    .product-thumb { flex: 0 0 72px; width: 72px; aspect-ratio: 1 / .78; }
    .product-info-panel { position: static; padding-top: 2px; }
    .product-topline { gap: 8px; font-size: 10px; }
    .product-info-panel h1 { margin: 8px 0 9px; font-size: 26px; line-height: 1.08; }
    .product-sku-row { margin: 0 0 9px; }
    .product-short-description { font-size: 13px; line-height: 1.5; }
    .product-price-block { margin: 14px 0 12px; padding: 13px 0; }
    .product-price-block > strong { font-size: 34px; }
    .product-price-block .currency-conversion { font-size: 12px; }
    .product-price-meta { align-items: center; flex-direction: row; gap: 8px; }
    .product-price-meta > span:first-child { flex: 1; font-size: 10px; }
    .product-stock-badge.ui.label { flex: 0 0 auto; padding: 7px 9px !important; font-size: 10px !important; }
    .product-warranty-message.ui.message,
    .product-additional-note.ui.message { margin: 12px 0 !important; padding: 12px !important; border-radius: 9px !important; }
    .product-warranty-message.ui.message > i.icon,
    .product-additional-note.ui.message > i.icon { font-size: 22px !important; }
    .product-warranty-message .content,
    .product-additional-note .content { font-size: 12px; line-height: 1.45; }
    .product-info-panel > a.brand-button { display: none !important; }
    .product-info-panel > .gallery-button { min-height: 42px; margin-top: 4px !important; }
    .product-description-card { width: 100%; max-width: 100%; margin: 18px 0 0; padding: 18px 14px; border-width: 1px; border-radius: 10px; }
    .product-description-card h2 { font-size: 21px; }
    .product-description-card p { font-size: 13px; line-height: 1.65; }
    .related-section { margin-top: 28px; }
    .related-section .section-heading { margin-bottom: 10px; }
    .mobile-product-action {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 150;
        display: grid;
        grid-template-columns: auto minmax(160px,1fr);
        align-items: center;
        gap: 12px;
        padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
        border-top: 1px solid #dedfe2;
        background: rgba(255,255,255,.98);
        box-shadow: 0 -8px 24px rgba(0,0,0,.08);
    }
    .mobile-product-action__price { display: grid; line-height: 1.05; }
    .mobile-product-action__price span { color: #7a7d82; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
    .mobile-product-action__price strong { font-size: 20px; }
    .mobile-product-action .ui.button { min-height: 43px; margin: 0 !important; }

    /* Fullscreen image viewer */
    .catalog-modal { padding: 0; }
    .catalog-modal__panel {
        width: 100%;
        height: 100%;
        max-height: 100%;
        padding: 58px 12px 14px;
        border-radius: 0;
        background: #111214;
        color: #fff;
    }
    .catalog-modal__panel h2 { position: absolute; top: 17px; left: 14px; right: 62px; margin: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
    .catalog-modal__close { top: 10px; right: 10px; border-color: #3c3d41; background: #222327; color: #fff; }
    .gallery-stage { min-height: calc(100vh - 190px); padding: 8px; background: #111214; }
    .gallery-stage img { max-height: calc(100vh - 210px); }
    .gallery-thumbs { display: flex; overflow-x: auto; grid-template-columns: none; scrollbar-width: none; }
    .gallery-thumbs::-webkit-scrollbar { display: none; }
    .gallery-thumbs button { flex: 0 0 72px; width: 72px; border-color: #3c3d41; background: #1d1e21; }

    /* Legal + footer */
    .legal-page { padding: 20px 0 40px; }
    .legal-layout { display: block; }
    .legal-section { padding: 18px 14px; border-radius: 9px; }
    .legal-section h1 { font-size: 26px; }
    .legal-section h2 { font-size: 19px; }
    .legal-sidebar { position: static; margin-bottom: 12px; }
    .seo-content-section { padding: 34px 0; }
    .seo-content-grid { gap: 20px; }
    .seo-content-grid h2 { font-size: 26px; }
    .seo-content-grid p { font-size: 14px; }
    .site-footer { padding: 30px 0 calc(28px + env(safe-area-inset-bottom)); }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-brand { padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
    .footer-logo { width: 180px; max-height: 40px; }
    .footer-section { padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.09); }
    .footer-title { margin-bottom: 10px; }
    .footer-links { flex-direction: row; flex-wrap: wrap; gap: 8px 12px; }
    .footer-social,
    .footer-contact a { min-height: 34px; }
    .footer-bottom { margin-top: 0; padding-top: 6px; text-align: center; }
    .footer-copyright { text-align: center; }
}

@media (max-width: 420px) {
    :root { --mobile-header-offset: 160px; }
    .mobile-store-logo img { width: min(166px, 48vw); }
    .catalog-card.ui.card { grid-template-columns: minmax(116px, 38%) minmax(0, 62%); }
    .catalog-card__image { min-height: 174px; padding-left: 8px; }
    .catalog-card__content { padding-right: 9px !important; }
    .catalog-card__title.header { font-size: 14px !important; }
    .catalog-card__specs { font-size: 10px; }
    .current-price { font-size: 22px; }
    .product-main-image { min-height: 300px; }
    .product-info-panel h1 { font-size: 24px; }
}


/* Mobile overflow hardening */
@media (max-width: 820px) {
    .mobile-store-topbar,
    .mobile-store-search,
    .mobile-delivery-row,
    .catalog-layout,
    .catalog-results,
    .catalog-toolbar,
    .product-detail-grid,
    .product-info-panel,
    .product-price-meta,
    .product-description-card,
    .related-section,
    .legal-layout,
    .footer-grid { min-width: 0; max-width: 100%; }

    .mobile-quick-categories,
    .hero-trust,
    .category-breadcrumb.ui.breadcrumb,
    .category-card-grid,
    .product-breadcrumb.ui.breadcrumb,
    .product-thumb-row,
    .gallery-thumbs {
        max-width: 100%;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .catalog-card__content,
    .catalog-card__meta,
    .catalog-card__title,
    .catalog-card__specs,
    .price-row,
    .currency-conversion,
    .product-short-description,
    .product-additional-note__line,
    .footer-links a { min-width: 0; max-width: 100%; }

    .catalog-card__meta > span:first-child,
    .product-price-meta > span:first-child { overflow-wrap: anywhere; }
}


/* =========================================================
   Mobile storefront polish — compact specs, toolbar & actions
   ========================================================= */
@media (max-width: 820px) {
    /* Product image / zoom */
    .product-main-image {
        min-height: 0 !important;
        padding: 12px !important;
    }
    .product-image-zoom {
        right: 8px !important;
        bottom: 8px !important;
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        border-radius: 9px !important;
        display: grid !important;
        place-items: center !important;
        box-shadow: 0 3px 10px rgba(23,24,28,.08) !important;
    }
    .product-image-zoom i.icon {
        margin: 0 !important;
        font-size: 14px !important;
    }
    .product-image-zoom span { display: none !important; }


    /* Catalog toolbar: result count + controls in one clean row. */
    .catalog-toolbar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        min-height: 52px !important;
        padding: 7px 0 !important;
        margin: 0 0 10px !important;
        border: 0 !important;
        border-bottom: 1px solid #e5e6e8 !important;
        border-radius: 0 !important;
        background: rgba(255,255,255,.98) !important;
        box-shadow: none !important;
    }
    .catalog-results-count {
        flex: 0 0 auto;
        display: inline-flex !important;
        align-items: baseline !important;
        gap: 4px !important;
        margin: 0 !important;
        color: #6a6d72 !important;
        font-size: 12px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
    .catalog-results-count strong {
        font-size: 13px !important;
        line-height: 1 !important;
    }
    .catalog-toolbar-actions {
        flex: 0 1 auto;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 7px !important;
        min-width: 0 !important;
        margin-left: auto !important;
    }
    .mobile-filter-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 8px 11px !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        font-size: 12px !important;
        line-height: 1 !important;
    }
    .mobile-filter-toggle i.icon {
        width: auto !important;
        margin: 0 !important;
        font-size: 14px !important;
    }
    .sort-control {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
    .sort-control span { display: none !important; }
    .sort-control select.ui.dropdown {
        width: 128px !important;
        min-width: 0 !important;
        max-width: 128px !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 8px 28px 8px 10px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
    }

    /* Filter drawer gets a clear full-height container. */
    .filters-panel {
        width: min(92vw, 390px) !important;
        background: #f5f5f6 !important;
    }
    .mobile-filter-body { padding: 12px !important; }
    .mobile-filter-card {
        padding: 16px !important;
        border: 1px solid #dedfe2 !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,.04) !important;
    }
    .mobile-filter-head {
        min-height: 62px !important;
        padding: 10px 12px !important;
    }
    .mobile-filter-head strong { font-size: 17px !important; }
    .mobile-filter-head button {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }
    .mobile-filter-actions { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important; }

    /* Product cards: show the fourth spec (graphics) and align both CTAs. */
    .catalog-card__specs span:nth-child(n+5) { display: none !important; }
    .catalog-card__specs span:nth-child(4) { display: flex !important; }
    .card-actions {
        grid-template-columns: minmax(0,1fr) 46px !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 0 12px 12px !important;
    }
    .card-actions .brand-button {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        margin: 0 !important;
        padding: 9px 10px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }
    .card-actions .brand-button i.icon {
        width: auto !important;
        margin: 0 !important;
    }
    .card-actions .gallery-button {
        width: 46px !important;
        min-width: 46px !important;
        height: 44px !important;
        min-height: 44px !important;
        display: grid !important;
        place-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        font-size: 0 !important;
    }
    .card-actions .gallery-button i.icon {
        margin: 0 !important;
        font-size: 17px !important;
    }
}

@media (max-width: 420px) {
    .catalog-toolbar { gap: 7px !important; }
    .catalog-toolbar-actions { gap: 5px !important; }
    .mobile-filter-toggle { padding: 8px 9px !important; }
    .sort-control select.ui.dropdown {
        width: 116px !important;
        max-width: 116px !important;
        padding-left: 8px !important;
        font-size: 11px !important;
    }
    .filters-panel { width: 100vw !important; max-width: 100vw !important; }
    .catalog-card__specs { font-size: 10px !important; }
    .catalog-card__specs span { gap: 5px !important; }
    .product-spec-icon { width: 16px !important; height: 16px !important; flex-basis: 16px !important; }
}


/* Product price savings and interactive gallery zoom */
.product-compare-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 22px;
}
.product-compare-row .compare-price { display: inline-flex; margin: 0; }
.product-compare-row .discount-badge.ui.label { margin: 0 !important; }
.gallery-stage {
    position: relative;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-in;
}
.gallery-stage.is-zoomed { cursor: zoom-out; }
.gallery-stage.is-panning { cursor: grabbing; }
.gallery-stage #galleryMainImage {
    transform-origin: center center;
    will-change: transform;
    transition: transform .16s cubic-bezier(.22, .61, .36, 1);
    user-select: none;
    -webkit-user-drag: none;
}
.gallery-stage.is-following #galleryMainImage { transition: transform .11s ease-out; }
.gallery-stage.is-panning #galleryMainImage { transition: none; }
.gallery-zoom-controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(23,24,28,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 5px 18px rgba(23,24,28,.10);
    backdrop-filter: blur(8px);
}
.gallery-zoom-controls .ui.button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.gallery-zoom-controls .ui.button i.icon {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 16px !important;
}
.gallery-zoom-value {
    min-width: 44px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 820px) {
    .product-compare-row { gap: 6px; }
    .product-compare-row .discount-badge.ui.label { font-size: 9px !important; padding: 5px 6px !important; }
    .gallery-zoom-controls {
        right: 8px;
        bottom: 8px;
        gap: 4px;
        padding: 4px;
        border-color: #34363a;
        background: rgba(29,30,33,.94);
    }
    .gallery-zoom-controls .ui.button {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        background: #2a2b2f !important;
        color: #fff !important;
        border-color: #42444a !important;
    }
    .gallery-zoom-controls .ui.button i.icon { color: #fff !important; }
    .gallery-zoom-value { min-width: 38px; color: #fff; }

    /* Keep the two product-card actions perfectly centered and equal-height. */
    .card-actions {
        grid-template-columns: minmax(0, 1fr) 48px !important;
        grid-auto-rows: 46px !important;
        align-items: center !important;
    }
    .card-actions .brand-button,
    .card-actions .gallery-button {
        height: 46px !important;
        min-height: 46px !important;
        align-self: center !important;
    }
    .card-actions .brand-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    .card-actions .brand-button > i.icon,
    .card-actions .gallery-button > i.icon {
        position: static !important;
        float: none !important;
        width: 18px !important;
        min-width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 18px !important;
        vertical-align: middle !important;
    }
    .card-actions .gallery-button {
        width: 48px !important;
        min-width: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }
}

/* WhatsApp CTAs keep the storefront primary color at rest and switch to WhatsApp green on hover. */
a.ui.primary.button.brand-button[href*="wa.me"],
a.ui.primary.button.brand-button[href*="whatsapp"] {
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease !important;
}
a.ui.primary.button.brand-button[href*="wa.me"]:hover,
a.ui.primary.button.brand-button[href*="wa.me"]:focus-visible,
a.ui.primary.button.brand-button[href*="whatsapp"]:hover,
a.ui.primary.button.brand-button[href*="whatsapp"]:focus-visible {
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
}


/* Gallery zoom: the image-swap fade must never override the interactive transform. */
.gallery-stage #galleryMainImage.is-swapping {
    animation: galleryImageFade .28s ease both !important;
}
@keyframes galleryImageFade {
    from { opacity: .3; }
    to { opacity: 1; }
}
.gallery-stage #galleryMainImage {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 60vh;
    transform-origin: center center;
}
@media (max-width: 820px) {
    .gallery-stage #galleryMainImage { max-height: calc(100vh - 210px); }
}


/* Catalog discount: keep the condition badge over the image and place savings beside the crossed-out price. */
.catalog-price-compare-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 22px;
}
.catalog-price-compare-row .compare-price { display: inline-flex; margin: 0; }
.catalog-price-compare-row .discount-badge.ui.label { margin: 0 !important; }

/* Product price notice: Semantic UI warning made explicit without competing with the price. */
.product-price-meta { align-items: flex-start; }
.product-price-currency-alert.ui.message {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    padding: 10px 12px !important;
    box-shadow: none !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}
.product-price-currency-alert.ui.icon.message > i.icon { font-size: 20px !important; }
.product-price-currency-alert .header { margin-bottom: 2px !important; font-size: 12px !important; }
.product-price-currency-alert p { margin: 0 !important; }
.product-price-currency-alert p + p { margin-top: 7px !important; }

/* Rich product descriptions produced by the admin editor. */
.product-description-rich { color: #555960; font-size: 15px; line-height: 1.8; }
.product-description-rich > :first-child { margin-top: 0; }
.product-description-rich > :last-child { margin-bottom: 0; }
.product-description-rich p { margin: 0 0 1em; color: inherit; line-height: inherit; }
.product-description-rich h2,
.product-description-rich h3 { margin: 1.25em 0 .55em; color: var(--ink); line-height: 1.25; }
.product-description-rich h2 { font-size: 1.45em; }
.product-description-rich h3 { font-size: 1.2em; }
.product-description-rich ul,
.product-description-rich ol { margin: .5em 0 1em; padding-left: 1.6em; }
.product-description-rich li { margin: .3em 0; }
.product-description-rich a { color: #1678c2; text-decoration: underline; }

@media (max-width: 820px) {
    .catalog-price-compare-row { gap: 6px; }
    .catalog-price-compare-row .discount-badge.ui.label { padding: 5px 6px !important; font-size: 9px !important; }

    /* Give the mobile actions breathing room from the card divider and side borders. */
    .card-actions {
        padding: 12px 16px 16px !important;
    }

    .product-price-meta { align-items: stretch !important; flex-direction: column !important; gap: 9px !important; }
    .product-price-currency-alert.ui.message { width: 100%; padding: 10px !important; font-size: 11px !important; }
    .product-stock-badge.ui.label { align-self: flex-start; }
    .product-description-rich { font-size: 13px; line-height: 1.65; }
}

/* Product price header: condition on the left, stock on the right, full-width payment notice below. */
.product-price-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 14px;
}
.product-condition-row {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    min-width: 0;
}
.product-condition-title {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    transform: translateY(-1px);
}
.product-price-block .product-condition-value {
    display: inline-flex;
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}
.product-condition-info {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.condition-info-trigger.ui.circular.basic.icon.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 27px;
    min-width: 27px;
    height: 27px;
    min-height: 27px;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #17181c !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #17181c !important;
    box-shadow: none !important;
}
.condition-info-trigger.ui.button > i.icon {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
}
.condition-info-trigger.ui.button:hover,
.condition-info-trigger.ui.button:focus-visible {
    background: #17181c !important;
    color: #fff !important;
    transform: none !important;
}
.product-condition-popup.ui.popup {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    z-index: 10050 !important;
    display: block !important;
    visibility: hidden;
    width: min(330px, calc(100vw - 48px));
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid #d7d9de !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #4f535a !important;
    box-shadow: 0 8px 24px rgba(23, 24, 28, .12) !important;
    isolation: isolate;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.product-condition-popup.ui.popup::before,
.product-condition-popup.ui.popup::after {
    content: none !important;
    display: none !important;
}
.product-condition-popup.ui.popup * {
    position: relative;
    z-index: 1;
}
.product-price-block .product-condition-popup strong {
    display: block;
    margin: 0 0 5px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}
.product-condition-popup > span {
    display: block;
    font-size: 12px;
    line-height: 1.5;
}
.product-condition-info:hover .product-condition-popup,
.product-condition-info:focus-within .product-condition-popup {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.product-price-heading-row .product-stock-badge.ui.label {
    flex: 0 0 auto;
    margin: 0 0 0 auto !important;
    white-space: nowrap;
}
.product-price-meta {
    display: block;
    width: 100%;
    margin-top: 12px;
}
.product-price-currency-alert.ui.message {
    width: 100%;
}

@media (max-width: 820px) {
    .product-price-heading-row {
        gap: 8px 10px;
        margin-bottom: 12px;
    }
    .product-condition-row {
        gap: 5px 7px;
    }
    .product-condition-title,
    .product-price-block .product-condition-value {
        font-size: 11px;
    }
    .condition-info-trigger.ui.circular.basic.icon.button {
        width: 25px;
        min-width: 25px;
        height: 25px;
        min-height: 25px;
    }
    .product-price-heading-row .product-stock-badge.ui.label {
        align-self: auto;
        margin-left: auto !important;
    }
    .product-condition-popup.ui.popup {
        width: min(300px, calc(100vw - 44px));
    }
    .product-price-meta {
        display: block !important;
        width: 100%;
        margin-top: 10px;
    }
}

/* Live deployment/update notification. */
.app-update-notice[hidden] { display: none !important; }
.app-update-notice {
    position: fixed;
    left: 50%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: min(560px, calc(100vw - 32px));
    padding: 9px 10px 9px 16px;
    border: 1px solid #3b3c40;
    border-radius: 15px;
    background: #26272b;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    --app-update-bottom: 22px;
    bottom: var(--app-update-bottom);
    opacity: 0;
    transform: translateX(-50%);
    will-change: opacity, bottom;
}
.app-update-notice.is-visible {
    opacity: 1;
}
.app-update-notice.is-entering {
    animation: app-update-fade-in-down .38s cubic-bezier(.215, .61, .355, 1) both;
}
.app-update-notice.is-exiting {
    animation: app-update-fade-out-down .32s cubic-bezier(.55, .055, .675, .19) both;
    pointer-events: none;
}
@keyframes app-update-fade-in-down {
    from { opacity: 0; bottom: calc(var(--app-update-bottom) + 16px); }
    to { opacity: 1; bottom: var(--app-update-bottom); }
}
@keyframes app-update-fade-out-down {
    from { opacity: 1; bottom: var(--app-update-bottom); }
    to { opacity: 0; bottom: calc(var(--app-update-bottom) - 16px); }
}
.app-update-notice__message {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}
.app-update-notice__message > i.icon,
.app-update-notice__button > i.icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    line-height: 16px !important;
    vertical-align: middle !important;
}
.app-update-notice__message > i.icon::before,
.app-update-notice__button > i.icon::before {
    display: block;
    width: 16px;
    line-height: 16px !important;
    text-align: center;
}
.app-update-notice__button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.app-update-notice__button:hover,
.app-update-notice__button:focus-visible {
    background: #fff;
    color: #26272b;
    outline: none;
}
.app-update-notice__button:disabled { cursor: wait; opacity: .8; }
.app-update-notice__button.is-loading > i.icon { animation: app-update-spin .8s linear infinite; }
@keyframes app-update-spin { to { transform: rotate(360deg); } }

@media (max-width: 620px) {
    .app-update-notice {
        --app-update-bottom: 14px;
        bottom: var(--app-update-bottom);
        width: calc(100vw - 24px);
        gap: 10px;
        padding: 9px 9px 9px 13px;
        border-radius: 13px;
    }
    .app-update-notice__message { font-size: 11px; }
    .app-update-notice__message > i.icon { display: none; }
    .app-update-notice__button {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-update-notice.is-entering,
    .app-update-notice.is-exiting { animation: none; }
    .app-update-notice__button.is-loading > i.icon { animation: none; }
}

/* Rich-text tables and detailed product technical specifications. */
.product-description-rich .product-rich-table.ui.table,
.product-technical-specs-rich .product-technical-table.ui.table {
    width: 100%;
    margin: 14px 0 0 !important;
    border: 1px solid #c7c9cc !important;
    border-radius: 0 !important;
    border-collapse: collapse !important;
    box-shadow: none !important;
    table-layout: auto;
    background: #fff !important;
    color: #202124 !important;
}
.product-description-rich .product-rich-table.ui.table th,
.product-description-rich .product-rich-table.ui.table td,
.product-technical-specs-rich .product-technical-table.ui.table th,
.product-technical-specs-rich .product-technical-table.ui.table td {
    padding: 8px 10px !important;
    border: 1px solid #c7c9cc !important;
    vertical-align: middle !important;
    text-align: left !important;
    line-height: 1.45 !important;
}
.product-description-rich .product-rich-table.ui.table tr:nth-child(odd) > th,
.product-description-rich .product-rich-table.ui.table tr:nth-child(odd) > td,
.product-technical-specs-rich .product-technical-table.ui.table tr:nth-child(odd) > th,
.product-technical-specs-rich .product-technical-table.ui.table tr:nth-child(odd) > td { background: #eeeeee !important; }
.product-description-rich .product-rich-table.ui.table tr:nth-child(even) > th,
.product-description-rich .product-rich-table.ui.table tr:nth-child(even) > td,
.product-technical-specs-rich .product-technical-table.ui.table tr:nth-child(even) > th,
.product-technical-specs-rich .product-technical-table.ui.table tr:nth-child(even) > td { background: #fff !important; }
.product-description-rich .product-rich-table.ui.table th,
.product-technical-specs-rich .product-technical-table.ui.table th,
.product-technical-specs-rich .product-technical-table.ui.table td:first-child { font-weight: 700 !important; color: #17181c !important; }
.product-technical-specs-rich .product-technical-table.ui.table th:first-child,
.product-technical-specs-rich .product-technical-table.ui.table td:first-child { width: 20%; min-width: 160px; }

.product-technical-specs-card {
    width: 100%;
    max-width: none;
    margin-top: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.product-technical-specs-card h2 { margin: 0 0 14px; color: var(--ink); }
.product-technical-specs-rich { width: 100%; color: #4f5359; font-size: 15px; line-height: 1.65; }
.product-technical-specs-rich > :first-child { margin-top: 0; }
.product-technical-specs-rich > :last-child { margin-bottom: 0; }
.product-technical-specs-rich p { margin: 0 0 1em; }
.product-technical-specs-rich ul,
.product-technical-specs-rich ol { margin: .5em 0 1em; padding-left: 1.6em; }
.product-technical-specs-rich a { color: #1678c2; text-decoration: underline; }

@media (max-width: 820px) {
    .product-technical-specs-card { margin-top: 14px; padding: 18px 14px; border-radius: 10px; }
    .product-technical-specs-card h2 { font-size: 21px; }
    .product-technical-specs-rich { font-size: 12.5px; line-height: 1.5; }
    .product-description-rich .product-rich-table.ui.table th,
    .product-description-rich .product-rich-table.ui.table td,
    .product-technical-specs-rich .product-technical-table.ui.table th,
    .product-technical-specs-rich .product-technical-table.ui.table td { padding: 7px 8px !important; }
    .product-technical-specs-rich .product-technical-table.ui.table th:first-child,
    .product-technical-specs-rich .product-technical-table.ui.table td:first-child { width: 33%; min-width: 105px; }
}

/* =========================================================
   Global product search — Semantic UI header search
   ========================================================= */
.header-catalog-search.ui.search {
    position: relative;
    z-index: 245;
    flex: 1 1 560px;
    width: auto;
    min-width: 280px;
    max-width: 640px;
    margin: 0;
}
.header-catalog-search .ui.input > input {
    min-height: 44px;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #17181c !important;
    box-shadow: none !important;
    font-size: 14px;
}
.header-catalog-search .ui.input > input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(255,173,54,.15) !important;
}
.header-catalog-search .ui.input > i.icon { color: #17181c; opacity: .72; }

[data-global-product-search].ui.search > .results[hidden] {
    display: none !important;
}
[data-global-product-search].ui.search > .results.is-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
[data-global-product-search].ui.search > .results {
    width: 100%;
    max-height: 430px;
    overflow-y: auto;
    margin-top: 7px;
    border: 1px solid #dedee2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(17,18,20,.16);
}
[data-global-product-search].ui.search > .results > .result {
    display: grid !important;
    grid-template-columns: 58px minmax(0,1fr);
    align-items: center;
    gap: 11px;
    min-height: 70px;
    padding: 9px 11px !important;
    border-bottom: 1px solid #ededf0 !important;
    color: #17181c !important;
    text-decoration: none;
}
[data-global-product-search].ui.search > .results > .result:last-child { border-bottom: 0 !important; }
[data-global-product-search].ui.search > .results > .result:hover,
[data-global-product-search].ui.search > .results > .result.active {
    background: #f7f7f8 !important;
}
.header-search-result-image {
    width: 58px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #ececef;
    border-radius: 8px;
    background: #f7f7f8;
}
.header-search-result-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
[data-global-product-search].ui.search > .results > .result > .content {
    min-width: 0;
    padding: 0 !important;
}
[data-global-product-search].ui.search > .results .result .title {
    display: block;
    overflow: hidden;
    color: #17181c !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.28;
    text-overflow: ellipsis;
    white-space: nowrap;
}
[data-global-product-search].ui.search > .results .result .description {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #72757b !important;
    font-size: 11px !important;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
[data-global-product-search].ui.search > .results > .message {
    padding: 16px !important;
    color: #55585e;
}
[data-global-product-search].ui.search > .results > .message .header {
    margin-bottom: 4px;
    color: #17181c;
    font-size: 13px;
    font-weight: 700;
}
[data-global-product-search].ui.search > .results > .message .description { font-size: 12px; }

@media (min-width: 821px) and (max-width: 1120px) {
    .header-inner { gap: 14px; }
    .brand-logo { width: 190px; }
    .header-catalog-search.ui.search { min-width: 240px; }
    .header-actions .ui.basic.button { display: none; }
}

@media (max-width: 820px) {
    .mobile-global-search.ui.search {
        position: relative;
        z-index: 246;
        width: auto !important;
        margin: 2px 10px 7px !important;
    }
    .mobile-global-search .mobile-store-search { margin: 0; }
    .mobile-global-search.ui.search > .results {
        top: calc(100% + 6px);
        right: 0;
        left: 0;
        width: 100%;
        max-height: min(58vh, 420px);
        margin-top: 0;
        border-radius: 10px;
        text-align: left;
    }
    .mobile-global-search.ui.search > .results > .result {
        grid-template-columns: 50px minmax(0,1fr);
        min-height: 64px;
        gap: 9px;
        padding: 8px 9px !important;
    }
    .mobile-global-search .header-search-result-image { width: 50px; height: 44px; }
}

/* =========================================================
   Desktop catalog cards — uniform height without loose space
   Keep each visual block at a predictable height so every card
   ends at the same point without stretching the content area.
   ========================================================= */
@media (min-width: 821px) {
    .product-grid,
    .related-grid {
        align-items: start;
    }

    .catalog-card.ui.card {
        align-self: start;
        height: auto;
    }

    .catalog-card__meta {
        min-height: 24px;
    }

    .catalog-card__title.header {
        display: -webkit-box !important;
        height: 95.2px;
        min-height: 95.2px;
        max-height: 95.2px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .catalog-card__specs {
        height: 108px;
        min-height: 108px;
        max-height: 108px;
        overflow: hidden;
    }

    .price-row {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 92px;
        min-height: 92px;
        max-height: 92px;
    }

    .card-actions {
        min-height: 112px;
        box-sizing: border-box;
    }
}

/* Semantic UI select dropdowns: every native <select> is enhanced by
   assets/js/semantic-selects.js and marked with .cpu-select-dropdown.
   Keep the real Semantic UI opening animation and preserve one continuous,
   rounded outline while the menu is visible, like the Semantic UI examples. */
.cpu-select-dropdown.ui.selection.dropdown {
    min-height: 38px;
    border-color: #dfe1e5 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
.cpu-select-dropdown.ui.selection.dropdown:focus:not(.visible) {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(255, 173, 54, .14) !important;
}

/* Restore the gentle menu reveal without replacing Semantic UI's event handling.
   In particular, do not delay or intercept its native hide operation: that
   previously caused dropdowns to close/reopen unexpectedly on repeated taps. */
@keyframes cpu-dropdown-reveal-down {
    from { opacity: 0; transform: translate3d(0, -9px, 0) scaleY(.97); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scaleY(1); }
}
@keyframes cpu-dropdown-reveal-up {
    from { opacity: 0; transform: translate3d(0, 9px, 0) scaleY(.97); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scaleY(1); }
}
.cpu-select-dropdown.ui.selection.dropdown.active.visible:not(.upward) > .menu {
    animation: cpu-dropdown-reveal-down .15s cubic-bezier(.22, .61, .36, 1) both;
    transform-origin: top center;
}
.cpu-select-dropdown.ui.selection.dropdown.upward.active.visible > .menu {
    animation: cpu-dropdown-reveal-up .15s cubic-bezier(.22, .61, .36, 1) both;
    transform-origin: bottom center;
}

/* Downward menu: rounded top belongs to the selection, rounded bottom to menu. */
.cpu-select-dropdown.ui.selection.dropdown.active.visible:not(.upward) {
    border-color: var(--primary-color) !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: none !important;
}
.cpu-select-dropdown.ui.selection.dropdown.active.visible:not(.upward) > .menu {
    margin-top: 0 !important;
    border-color: var(--primary-color) !important;
    border-top-width: 0 !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 7px 16px rgba(34, 36, 38, .10) !important;
}

/* Upward menu: mirror the same continuous rounded silhouette. */
.cpu-select-dropdown.ui.selection.dropdown.upward.active.visible {
    border-color: var(--primary-color) !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: none !important;
}
.cpu-select-dropdown.ui.selection.dropdown.upward.active.visible > .menu {
    margin-bottom: 0 !important;
    border-color: var(--primary-color) !important;
    border-bottom-width: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: 0 -7px 16px rgba(34, 36, 38, .10) !important;
}
.cpu-select-dropdown.ui.selection.dropdown > .menu > .item {
    font-weight: 500;
}

.filters-panel .cpu-select-dropdown.ui.selection.dropdown,
.sort-control .cpu-select-dropdown.ui.selection.dropdown {
    width: 100%;
}
.sort-control .cpu-select-dropdown.ui.selection.dropdown {
    min-width: 196px;
    margin: 0;
}

@media (max-width: 760px) {
    .mobile-filter-card .cpu-select-dropdown.ui.selection.dropdown {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .sort-control .cpu-select-dropdown.ui.selection.dropdown {
        width: 132px !important;
        min-width: 132px !important;
        max-width: 132px !important;
        min-height: 34px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 520px) {
    .sort-control .cpu-select-dropdown.ui.selection.dropdown {
        width: 128px !important;
        min-width: 128px !important;
        max-width: 128px !important;
        min-height: 38px !important;
    }
}

@media (max-width: 420px) {
    .sort-control .cpu-select-dropdown.ui.selection.dropdown {
        width: 116px !important;
        min-width: 116px !important;
        max-width: 116px !important;
        font-size: 11px !important;
    }
}

/* Product photography: fill the existing media frames without changing their dimensions. */
.catalog-card__image,
.product-main-image {
    padding: 0 !important;
    background: #fff;
}

.catalog-card__image > img,
.product-main-image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center;
}

/* Thumbnails keep their existing frame size but render the photo edge-to-edge inside it. */
.product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center;
}

/* Keep every decoded thumbnail on its own paint layer. This avoids Chromium
   leaving off-axis/high-resolution thumbnails blank until the first hover repaint. */
.product-thumb {
    contain: paint;
    content-visibility: visible !important;
}
.product-thumb img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* Mobile storefront refinements: three distinct Semantic UI service icons. */
@media (max-width: 820px) {
    .mobile-delivery-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px 13px;
        min-height: 0;
        padding: 3px 14px 11px;
        font-size: 11px;
        line-height: 1.35;
    }
    .mobile-delivery-item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }
    .mobile-delivery-item > i.icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        align-self: center;
        flex: 0 0 14px;
        width: 14px;
        height: 16px;
        line-height: 1 !important;
        margin: 0 !important;
        font-size: 12px;
        color: var(--primary-color);
    }
    .mobile-delivery-item > span { line-height: 1.35; }

    /* Keep the toolbar separated from the mobile category strip. */
    .catalog-results { padding-top: 12px; }
    .catalog-toolbar { margin-top: 0 !important; }
    .catalog-toolbar-actions,
    .sort-control { align-items: center !important; }
    .sort-control .cpu-select-dropdown.ui.selection.dropdown {
        box-sizing: border-box;
        display: flex !important;
        align-items: center !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 29px 0 10px !important;
        line-height: 1.25 !important;
    }
    .sort-control .cpu-select-dropdown.ui.selection.dropdown > .text {
        display: block !important;
        width: 100%;
        margin: 0 !important;
        line-height: 1.25 !important;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .sort-control .cpu-select-dropdown.ui.selection.dropdown > .dropdown.icon {
        position: absolute;
        top: 50% !important;
        right: 9px !important;
        margin: 0 !important;
        transform: translateY(-50%);
        line-height: 1 !important;
    }

    /* The actions row should fit the buttons, without unused space below. */
    .catalog-card.ui.card { grid-template-rows: auto auto !important; }
    .catalog-card.ui.card > .extra.content.card-actions {
        box-sizing: border-box;
        grid-template-rows: 44px !important;
        grid-auto-rows: auto !important;
        align-content: center !important;
        align-items: center !important;
        align-self: start !important;
        min-height: 0 !important;
        height: auto !important;
        /* Keep the same total vertical padding while lowering both buttons by 4px. */
        padding: 12px 12px 8px !important;
    }
    .catalog-card.ui.card > .card-actions .brand-button,
    .catalog-card.ui.card > .card-actions .gallery-button {
        height: 44px !important;
        min-height: 44px !important;
    }

    /* Product-detail sticky purchase bar: price in USD + reference Bs. */
    .mobile-product-action {
        /* Price needs less width than the CTA: give the button the remaining space. */
        /* The price column hugs its text; the button uses all remaining width. */
        grid-template-columns: fit-content(128px) minmax(0, 1fr);
        column-gap: 8px;
        padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    }
    .mobile-product-action__price {
        min-width: 0;
        gap: 3px;
        line-height: 1.15;
    }
    .mobile-product-action__price strong {
        font-size: clamp(16px, 4.8vw, 20px);
        white-space: nowrap;
    }
    .mobile-product-action__ves {
        display: block;
        color: #4b5057;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
    .mobile-product-action__ves--unavailable {
        font-size: 10px;
        font-weight: 500;
    }
    .mobile-product-action .ui.primary.button.brand-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        min-width: 0;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 9px 8px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        text-align: center;
        white-space: nowrap;
    }
    .mobile-product-action .brand-button > i.icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        margin: 0 !important;
        line-height: 1 !important;
        flex: 0 0 16px;
    }
}
