/* This layer is scoped to the storefront; AdminLTE and admin forms remain unchanged. */
:is(.storefront-public, .storefront-preview) {
    font-family: var(--sf-font, "Source Sans Pro", Arial, sans-serif);
    color: var(--sf-text, #343a40);
    background-color: var(--sf-background, #fff);
    letter-spacing: 0;
}
.storefront-public .content-wrapper { background-color: var(--sf-background, #fff); }
:is(.storefront-public, .storefront-preview) .main-header.navbar {
    background-color: var(--sf-header, #fff) !important;
    color: var(--sf-header-text, #212529);
}
.storefront-public .main-header .nav-link,
.storefront-public .main-header .nav-link .text-muted,
.storefront-public .main-header .nav-link.text-dark { color: var(--sf-header-text, #212529) !important; }
.storefront-public .main-header .nav-link i,
.storefront-public .main-header .nav-link .text-dark { color: var(--sf-icons, #000) !important; }
:is(.storefront-public, .storefront-preview) .custom-brand {
    height: max(70px, calc(var(--sf-logo-height, 45px) + 24px));
}
:is(.storefront-public, .storefront-preview) .custom-brand .brand-image {
    float: none;
    height: var(--sf-logo-height, 45px);
    max-height: var(--sf-logo-height, 45px);
    max-width: calc(100% - 24px);
    width: auto;
    margin: 0;
    object-fit: contain;
}
:is(.storefront-public, .storefront-preview) .aly-footer {
    background-color: var(--sf-footer, #f8f9fa);
    color: var(--sf-footer-text, #212529);
    font-family: inherit;
}
.storefront-public .aly-footer h5,
.storefront-public .aly-footer-info,
.storefront-public .aly-copyright { color: var(--sf-footer-text, #212529); }
.storefront-public .aly-footer a,
.storefront-public .aly-footer ul li a,
.storefront-public .aly-footer-info i { color: var(--sf-footer-link, #666); }
.storefront-public .aly-footer a:hover,
.storefront-public .aly-footer ul li a:hover { color: var(--sf-footer-hover, #ff4747); }
:is(.storefront-public, .storefront-preview) .btn-add-cart,
:is(.storefront-public, .storefront-preview) .btn-primary {
    background: var(--sf-button, #e74c3c);
    border-color: var(--sf-button, #e74c3c);
    color: var(--sf-button-text, #fff);
}
:is(.storefront-public, .storefront-preview) .btn-add-cart:hover,
:is(.storefront-public, .storefront-preview) .btn-primary:hover { filter: brightness(.93); }
:is(.storefront-public, .storefront-preview) .product-title {
    color: var(--sf-text, #343a40);
    overflow-wrap: anywhere;
}
:is(.storefront-public, .storefront-preview) .product-card:hover .product-title { color: var(--sf-brand, #e74c3c); }
:is(.storefront-public, .storefront-preview) .product-price,
:is(.storefront-public, .storefront-preview) .product-card:hover .product-price,
.storefront-public #product-price {
    color: var(--sf-price, #2c3e50) !important;
    background: none;
    -webkit-text-fill-color: currentColor;
}
:is(.storefront-public, .storefront-preview) .sf-product-col {
    flex: 0 0 calc(100% / var(--sf-columns-mobile, 2));
    max-width: calc(100% / var(--sf-columns-mobile, 2));
    min-width: 0;
}
@media (min-width: 768px) {
    .storefront-public .sf-product-col { flex-basis: calc(100% / var(--sf-columns-tablet, 4)); max-width: calc(100% / var(--sf-columns-tablet, 4)); }
}
@media (min-width: 1200px) {
    .storefront-public .sf-product-col { flex-basis: calc(100% / var(--sf-columns-desktop, 4)); max-width: calc(100% / var(--sf-columns-desktop, 4)); }
}
:is(.storefront-public, .storefront-preview) .product-img-top { object-fit: var(--sf-image-fit, contain); }
:is(.storefront-public, .storefront-preview)[data-sf-fit="cover"] .product-img-top:not(.error) { padding: 0; }
:is(.storefront-public, .storefront-preview)[data-sf-ratio]:not([data-sf-ratio="current"]) .sf-product-col .product-image-container {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: var(--sf-image-ratio);
    display: block;
}
:is(.storefront-public, .storefront-preview)[data-sf-ratio]:not([data-sf-ratio="current"]) .sf-product-col .product-img-top {
    position: absolute;
    inset: 0;
}
:is(.storefront-public, .storefront-preview) .sf-product-code,
:is(.storefront-public, .storefront-preview) .sf-product-availability {
    display: block;
    overflow-wrap: anywhere;
    font-size: .75rem;
    color: var(--sf-text, #343a40);
}
[data-sf-show-code="0"] .sf-product-code,
[data-sf-show-availability="0"] .sf-product-availability,
[data-sf-show-badges="0"] .offer-badge,
[data-sf-show-badges="0"] .discount-percentage-badge,
[data-sf-show-notice="0"] .ecommerce-product-notice { display: none !important; }
:is(.storefront-public, .storefront-preview)[data-sf-style="minimal"] .product-card {
    border: 1px solid #e3e6e8 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    animation: none;
}
:is(.storefront-public, .storefront-preview)[data-sf-style="commercial"] .product-card {
    border: 1px solid #dedfe2 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.07) !important;
    animation: none;
}
:is(.storefront-public, .storefront-preview)[data-sf-style]:not([data-sf-style="current"]) .product-card:hover { transform: translateY(-2px); }
:is(.storefront-public, .storefront-preview)[data-sf-style]:not([data-sf-style="current"]) .product-image-container { border-radius: inherit; }
:is(.storefront-public, .storefront-preview)[data-sf-style="commercial"] .product-title { font-weight: 700; }
:is(.storefront-public, .storefront-preview)[data-sf-style="minimal"] .offer-badge { animation: none; border-radius: 4px; }
.sf-settings-section { padding-top: 20px; margin-top: 20px; border-top: 1px solid #dee2e6; }
.sf-settings-section h5 { font-size: 1.1rem; }
.sf-settings-section .form-control { min-width: 0; }
.sf-preview-frame { max-width: 580px; border: 1px solid #dee2e6; border-radius: 4px; overflow: hidden; }
.sf-preview-frame .sf-preview-header { background: var(--sf-header); color: var(--sf-header-text); padding: 12px; display: flex; align-items: center; gap: 16px; }
.sf-preview-frame .sf-preview-header img { height: var(--sf-logo-height); max-width: 160px; object-fit: contain; }
.sf-preview-frame .row { margin: 0; padding-top: 12px; }
.sf-preview-frame .aly-footer { padding: 12px; }
@media (prefers-reduced-motion: reduce) {
    .storefront-public .product-card, .storefront-public .offer-badge, .storefront-public .brand-image { animation: none !important; transition: none !important; }
}
.sf-detail-note { white-space: pre-line; overflow-wrap: anywhere; }
#sf-detail-shipping, #sf-detail-warranty, #sf-detail-stock { max-width: 60%; white-space: pre-line; overflow-wrap: anywhere; text-align: right; margin-left: 12px; }
.aly-footer .sf-footer-logo { display: block; max-width: 100%; width: auto; height: var(--sf-logo-height, 45px); object-fit: contain; margin-bottom: 16px; }
.aly-footer p, .aly-footer a, .aly-footer h5 { overflow-wrap: anywhere; }
.sf-home-section { min-width: 0; scroll-margin-top: 100px; }
