/* Shared card rhythm, variant controls, and product-page checkout. */
footer :is(.gb-store-logo, .gb-logo-mark, .um-footer-logo img) {
    filter: brightness(0) invert(1);
}
footer :is(.logo-name, .gb-wordmark, .um-logo-text) { color: #fff; }
footer :is(.logo-name, .gb-wordmark, .um-logo-text) em {
    color: inherit;
    background: transparent;
}

select:not([multiple]):not([size]) {
    appearance: none;
    padding-inline-end: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.75 4.5 3.25 3.25 3.25-3.25' fill='none' stroke='%234b5563' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}
select:not([multiple]):not([size]):dir(rtl) { background-position: left 12px center; }
@media (forced-colors: active) {
    select:not([multiple]):not([size]) { appearance: auto; background-image: none; padding-inline-end: 12px; }
}

.product-card, .um-card { min-inline-size: 0; }
.product-card { display: flex; flex-direction: column; }
/* Listing thumbnails fill the card; product-page galleries keep their own fit. */
.product-card > .product-img,
.gadgetbest .gb-card.product-card > .product-img,
.um-card > .um-card-img {
    flex-shrink: 0;
    align-self: start;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    overflow: hidden;
}
.product-card > .product-img > :is(img, video),
.gadgetbest .gb-card.product-card > .product-img > :is(img, video),
.um-card > .um-card-img > :is(img, video) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card .product-info, .um-card .um-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-inline-size: 0;
}
.product-card .product-name, .um-card .um-card-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    block-size: auto;
    min-block-size: 2.8em;
    line-height: 1.4;
    margin-block: 0 4px;
}
.product-card .product-prices, .um-card .um-card-prices {
    margin-block-start: auto;
    gap: 4px 8px;
    flex-wrap: wrap;
}
.product-card .price, .product-card .old-price, .um-card-prices > * { white-space: nowrap; }
.product-card .product-info .card-cart-btn { inset-inline: auto 12px; }
.product-card .gb-rating { min-inline-size: 0; margin-block-end: 4px; }
.gb-list .gb-card .product-info, .um-grid.um-list .um-card-body { justify-content: center; }
.gb-list .gb-card .product-name, .um-grid.um-list .um-card-name { min-block-size: 0; }
.gb-list .gb-card .product-prices, .um-grid.um-list .um-card-prices { margin-block-start: 4px; }
.gb-home .section-header { align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.gb-home .section-header h2 { min-inline-size: 0; }
.gb-trust > div, .gb-home-links a, .gb-collection-rail a { min-inline-size: 0; overflow-wrap: anywhere; }
[data-store-variant-source][hidden] { display: none; }
.store-variant-picker {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 2px 8px;
    min-inline-size: 0;
    margin-block: 8px 12px;
}
.store-option-group {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: center;
    min-inline-size: 0;
}
.store-option-title { font-size: .875rem; font-weight: 700; }
.store-option-row { display: flex; min-inline-size: 0; gap: 6px; overflow-x: auto; padding: 4px; }
.store-option {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-block-size: 34px;
    min-inline-size: 34px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--card, #fff);
    color: var(--text);
    font: inherit;
    font-size: .875rem;
    line-height: 1.35;
    text-align: start;
    white-space: nowrap;
}
.store-option:hover:not(:disabled), .store-option[aria-pressed="true"] {
    border-color: currentColor;
    color: var(--teal-dark, var(--brown, #174268));
}
.store-option[aria-pressed="true"] { box-shadow: inset 0 0 0 1px currentColor; }
.store-option:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.store-option:disabled { opacity: .5; cursor: not-allowed; }
.store-option-swatch, .store-option > img {
    flex: none;
    inline-size: 27px;
    block-size: 17px;
    border: 1px solid #11182740;
    border-radius: 5px;
    background: var(--variant-color, transparent);
    object-fit: cover;
}
#modalVariantOptions.store-variant-picker { display: grid; margin-block: 6px 0; }
.variant-price-hint { white-space: nowrap; }
.variant-btn:focus-visible, .store-inline-order :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
#quickOrderModal.store-inline-order {
    position: static;
    display: block;
    margin-block: 20px 12px;
    padding: 0;
    background: transparent;
    scroll-margin-block-start: 100px;
}
.store-inline-order .modal-card {
    max-inline-size: none;
    max-block-size: none;
    min-inline-size: 0;
    width: 100%;
    border: 1px solid var(--border);
    box-shadow: none;
}
.store-inline-order .modal-header, .store-inline-order .modal-body, .store-inline-order .modal-footer {
    padding: clamp(12px, 2vw, 20px);
}
.store-inline-order .modal-body { overflow: visible; }
.store-inline-order .modal-product, .store-inline-order #recapProduct { overflow-wrap: anywhere; }
.store-inline-order .modal-product, .store-inline-order #recapProduct:empty { display: none; }
.store-inline-order .modal-header h3 { scroll-margin-block-start: 110px; }
.store-inline-order .modal-header .modal-x[hidden] { display: none; }
.store-inline-order .modal-form-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.store-inline-order .modal-form-sections > * { grid-column: 1 / -1; }
.store-inline-order .modal-form-sections > .form-group:has(> [id^="order-field-"]) { grid-column: auto; }
.store-inline-order .modal-form-sections > .form-group { margin: 0; min-inline-size: 0; }
.checkout-free-delivery { margin: 0; color: inherit; font-weight: 650; }
#quickOrderModal .order-recap { margin-block: 16px 0; }
.store-inline-order #recapProduct, .store-inline-order .recap-product-row:has(#recapVariant:empty) { display: none; }
#recapVariant:empty { display: none; }
.recap-product-row { flex-wrap: wrap; }
[dir="rtl"] #recapVariant { direction: revert; unicode-bidi: isolate; }
#productDetails:has([data-store-inline-order]) [data-store-order-actions] { display: none; }
.store-inline-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.store-inline-order-actions > :is(button, a) {
    flex: 1 1 8rem;
    min-inline-size: 0;
    width: auto;
    min-block-size: 44px;
    padding: 10px 12px;
    white-space: normal;
    text-align: center;
}
.store-inline-order-actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: inherit;
    font-weight: 700;
}
.store-inline-order-actions > a:hover { border-color: currentColor; }
.store-inline-order .recap-item { gap: 10px; }
#productDetails:has([data-store-inline-order]) .product-delivery,
#productDetails:has([data-store-inline-order]) .classic-delivery { display: none; }
:is(.product-gallery, .classic-gallery, .um-gallery):has(img, video) { align-self: start; }
#productDetails > [data-store-inline-order] { grid-column: 1 / -1; min-inline-size: 0; }
.store-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 8px;
    overflow-wrap: anywhere;
}
[dir="rtl"] .store-crumb-separator { transform: scaleX(-1); }
.classic-footer-inner > *, .um-footer-grid > * { min-inline-size: 0; overflow-wrap: anywhere; }
.um-langs, .um-footer-cats { flex-wrap: wrap; }
@media (max-width: 760px) {
    .classic-nav-inner { flex-wrap: wrap; }
    .classic-links { flex-basis: 100%; flex-wrap: wrap; }
    .classic-links a { padding: 9px 10px; }
    .classic-footer-inner, .um-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .classic-footer-inner > :last-child, .um-footer-news { grid-column: 1 / -1; }
}
.store-inline-order .modal-footer button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 620px) {
    .gb-home .section-header { align-items: center; }
    .product-card .product-info, .um-card .um-card-body { padding: 9px; }
    .store-inline-order .modal-header h3 { scroll-margin-block-start: 150px; }
    .store-inline-order .modal-form-sections { grid-template-columns: minmax(0, 1fr); }
}
