/* FA storefront shop layout; scoped to the existing Laravel catalog. */
.shop-layout { align-items: start; }
.shop-sidebar, .shop-results { min-width: 0; }
.shop-filters { position: sticky; top: 1rem; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.25rem; }
.shop-filters section + section { border-top: 1px solid #e5e7eb; padding-top: 1.1rem; }
.shop-filter-title { margin-bottom: .85rem; padding-bottom: .65rem; border-bottom: 2px solid #f97316; }
.shop-categories { max-height: 13rem; overflow-y: auto; padding-inline-end: .5rem; scrollbar-width: thin; }
.shop-categories a { padding: .28rem .4rem; border-radius: .45rem; line-height: 1.6; }
.shop-categories a:hover, .shop-categories a[aria-current="page"] { background: #fff7ed; }
.shop-price-fields { min-width: 0; }
.shop-price-fields label { min-width: 0; }
.shop-filter-control { box-sizing: border-box; width: 100%; min-width: 0; margin-top: .35rem; border-color: #d1d5db; color: #1f2937; }
.shop-filter-control:focus-visible, .shop-filter-submit:focus-visible, .shop-card a:focus-visible, .shop-card button:focus-visible, .home-product-carousel-controls button:focus-visible, .alhaal-page-link:focus-visible { outline: 2px solid #ea580c; outline-offset: 2px; }
.shop-availability input { width: 1.1rem; height: 1.1rem; accent-color: #ea580c; }
.shop-filter-submit { min-height: 2.75rem; font-weight: 700; }
.shop-product-grid { align-items: stretch; }
.shop-card, .home-mobile-layout .shop-card { display: flex; flex-direction: column; box-sizing: border-box; width: 100%; height: 100%; min-width: 0; padding: 1rem; border: 1px solid #e5e7eb; border-radius: .85rem; box-shadow: 0 3px 14px rgb(0 0 0 / .07); }
.shop-card .shop-card-media, .home-mobile-layout .shop-card .shop-card-media { display: flex; align-items: center; justify-content: center; width: 100%; height: auto; aspect-ratio: 1; margin: 0 0 .85rem; overflow: hidden; background: #fff; border-radius: .7rem; }
.shop-card-media a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-width: 0; }
.shop-card .shop-card-media img, .home-mobile-layout .shop-card .shop-card-media img { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; padding: .7rem; box-sizing: border-box; }
.shop-card .shop-card-title, .home-mobile-layout .shop-card .shop-card-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; min-height: 3.3rem; margin: 0 0 .85rem; font-size: .95rem; line-height: 1.65rem; font-weight: 600; overflow-wrap: anywhere; text-align: start; }
.shop-card-footer { margin-top: auto; min-width: 0; }
.shop-card-action-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0; }
.home-mobile-layout .shop-card footer > .shop-card-action-row { align-items: center; }
.shop-card-pricing { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; text-align: start; }
.shop-card-discount { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .25rem .45rem; min-width: 0; color: #6b7280; font-size: .78rem; }
.shop-card-discount span { padding: .1rem .4rem; border-radius: .4rem; background: #c2410c; color: #fff; font-weight: 700; }
.shop-card-price { color: #111827; font-size: 1.1rem; font-weight: 800; white-space: nowrap; }
.shop-card-price small { font-size: .75rem; font-weight: 600; }
.shop-card-footer form { margin: 0; }
.shop-card-action, .home-mobile-layout .shop-card footer .shop-card-action { display: inline-grid; place-items: center; box-sizing: border-box; width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 12px; border: 0; border-radius: .5rem; color: #fff; text-decoration: none; cursor: pointer; }
.shop-card-action svg { width: 24px; height: 24px; }
.shop-card-action:hover { color: #fff; }
.shop-card-unavailable { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 2.75rem; padding: .45rem .7rem; border-radius: .65rem; background: #f3f4f6; color: #4b5563; font-size: .85rem; font-weight: 700; text-align: center; }
.home-product-carousel .product-carousel { overflow: hidden; padding: 2px; }
.home-product-carousel .swiper-wrapper { align-items: stretch; }
.home-product-carousel .product-carousel .swiper-slide { display: flex; box-sizing: border-box; width: min(78vw, 280px) !important; height: auto; min-width: 0; padding: 0 !important; }
.home-product-carousel-controls { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .8rem; }
.home-product-carousel .home-product-carousel-controls .swiper-button-prev, .home-product-carousel .home-product-carousel-controls .swiper-button-next { position: static; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin: 0; border: 1px solid #e5e7eb; border-radius: .65rem; background: #fff; color: #ea580c; }
.home-product-carousel-controls .swiper-button-prev::after { content: '›'; font-size: 1.7rem; }
.home-product-carousel-controls .swiper-button-next::after { content: '‹'; font-size: 1.7rem; }
.home-product-carousel-controls .swiper-button-disabled { opacity: .45; }
.alhaal-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; padding: .5rem 0; color: #374151; }
.alhaal-pagination-summary { font-size: .875rem; }
.alhaal-pagination-links { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.alhaal-page-link, .alhaal-page-ellipsis { min-width: 2.4rem; min-height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; padding: .35rem .7rem; border: 1px solid #e5e7eb; border-radius: .3rem; background: #fff; font-size: .875rem; text-decoration: none; color: inherit; }
.alhaal-page-link:not(.is-disabled):not(.is-current):hover { border-color: #ea580c; color: #c2410c; }
.alhaal-page-link.is-current { background: #ea580c; border-color: #ea580c; color: #fff; font-weight: 700; }
.alhaal-page-link.is-disabled { opacity: .5; cursor: default; }
.alhaal-page-ellipsis { border: 0; background: transparent; }
.dark .shop-filters, .dark .shop-card { border-color: #374151; }
.dark .shop-filters section + section { border-color: #374151; }
.dark .shop-categories a:hover, .dark .shop-categories a[aria-current="page"] { background: #374151; }
.dark .shop-card figure.image { background: #fff; }
.dark .shop-card-price { color: #fff; }
.dark .shop-card-discount { color: #d1d5db; }
.dark .shop-card-unavailable { background: #374151; color: #e5e7eb; }
.dark .home-product-carousel .home-product-carousel-controls .swiper-button-prev, .dark .home-product-carousel .home-product-carousel-controls .swiper-button-next { background: #1f2937; border-color: #4b5563; color: #fdba74; }
.dark .shop-filter-control { color: #f9fafb; border-color: #4b5563; background: #374151; }
.dark .alhaal-pagination { color: #e5e7eb; }
.dark .alhaal-page-link { border-color: #4b5563; background: #1f2937; }
.dark .alhaal-page-link.is-current { background: #ea580c; border-color: #ea580c; }
@media (max-width: 1023px) { .shop-filters { position: static; } .shop-layout { gap: 1.5rem; } }
@media (min-width: 480px) { .home-product-carousel .product-carousel .swiper-slide { width: calc((100% - 12px) / 2) !important; } }
@media (min-width: 768px) { .home-product-carousel .product-carousel .swiper-slide { width: calc((100% - 24px) / 3) !important; } }
@media (min-width: 1024px) { .home-product-carousel .product-carousel .swiper-slide { width: calc((100% - 36px) / 4) !important; } }
@media (min-width: 1440px) { .home-product-carousel .product-carousel .swiper-slide { width: calc((100% - 48px) / 5) !important; } }
@media (max-width: 767px) { .home-mobile-layout .shop-card footer .shop-card-action { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 8px; } }
@media (max-width: 639px) { .shop-heading { margin: 1.5rem 0; } .shop-filters { padding: 1rem; } .shop-card, .home-mobile-layout .shop-card { padding: .75rem; } .shop-card .shop-card-title, .home-mobile-layout .shop-card .shop-card-title { font-size: .88rem; } .shop-card-price { font-size: 1rem; } .alhaal-pagination { justify-content: center; text-align: center; } .alhaal-pagination-summary { width: 100%; } }

/* Purchased FA product actions: real owned favorites, details and native comparison, no demo handlers. */
.fa-card-visual{position:relative;min-height:144px}.fa-card-actions{position:absolute;right:0;left:auto;top:0;display:flex;flex-direction:column;gap:2px;z-index:2}.fa-card-action{display:flex!important;align-items:center;justify-content:center;width:44px!important;height:44px!important;min-height:44px;color:#475569;border-radius:9px;position:relative;background:#ffffffed}.fa-card-action svg{width:24px;height:24px;flex-shrink:0}.fa-card-action:hover{color:#b54500;background:#fff3e9}.dark .fa-card-action{color:#e2e8f0;background:#1f2937ed}.fa-card-tooltip{position:absolute;inset-inline-start:42px;top:50%;transform:translateY(-50%);background:#17243e;color:#fff;padding:6px 9px;border-radius:6px;white-space:nowrap;font-size:11px;pointer-events:none;visibility:hidden;opacity:0;z-index:5}.fa-card-action:hover .fa-card-tooltip,.fa-card-action:focus-visible .fa-card-tooltip{visibility:visible;opacity:1}.fa-favorite-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:20px}.fa-favorite-item{min-width:0;display:flex;flex-direction:column}.fa-favorite-remove button{min-height:44px;padding:10px;color:#b91c1c;width:100%;font-size:13px}.dark .fa-favorite-remove button{color:#fca5a5}.fa-comparison-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:16px;margin-block:24px}.fa-comparison-card{position:relative;border:1px solid #d8dee8;border-radius:12px;padding:20px;text-align:center;min-width:0}.fa-comparison-card img{height:128px;width:128px;object-fit:contain;margin:0 auto 16px}.fa-comparison-card h2{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.fa-comparison-card p{margin-top:12px;color:#ab4400}.dark .fa-comparison-card{border-color:#475569;color:#f1f5f9}.dark .fa-comparison-card p{color:#fdba74}.fa-comparison-remove{display:block;min-height:44px;padding:12px;font-size:12px;text-decoration:underline}

.product-benefits {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .08rem .65rem;
    margin-block: 0 .4rem;
    min-inline-size: 0;
}
.product-benefit {
    --benefit-ink: #175e3b;
    --benefit-surface: #f4fbf6;
    --benefit-edge: #badfc7;
    color: var(--benefit-ink);
    max-inline-size: 100%;
    min-inline-size: 0;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
}
.product-benefit--today, .product-benefit--tomorrow, .product-benefit--next {
    --benefit-ink: #194e99;
    --benefit-surface: #f4f8ff;
    --benefit-edge: #bdd4f7;
}
.product-benefit--warranty { --benefit-ink: #B45309; font-size: .72rem; font-weight: 600; }
.dark .product-benefit { --benefit-ink: #b8edc9; --benefit-surface: #18352a; --benefit-edge: #3d654d; }
.dark :is(.product-benefit--today, .product-benefit--tomorrow, .product-benefit--next) {
    --benefit-ink: #c4ddff; --benefit-surface: #1b3255; --benefit-edge: #3e6090;
}
.dark .product-benefit--warranty { --benefit-ink: #e4cab9; }

.product-benefit summary, .product-benefit--warranty {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    gap: .24rem;
}
.product-benefit summary { min-block-size: 24px; list-style: none; cursor: pointer; }
.product-benefit summary::-webkit-details-marker { display: none; }
.product-benefit summary:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.product-benefit--warranty { align-items: start; }
.product-benefit--warranty :is(a, span) { color: inherit; min-inline-size: 0; overflow-wrap: anywhere; }
.product-benefit--warranty a { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: .16em; }
.product-benefit svg { inline-size: .85rem; block-size: .85rem; flex: none; transition: transform 180ms ease; }
.product-benefit--warranty svg { margin-block-start: .08rem; }
@media (max-width: 767px) {
    .product-benefit--warranty { flex-basis: 100%; }
}
.product-benefit-reveal {
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: calc(100% + .24rem);
    z-index: 3;
    box-sizing: border-box;
    max-inline-size: 100%;
    padding: .18rem .42rem;
    border: 1px solid var(--benefit-edge);
    border-radius: .3rem;
    background: var(--benefit-surface);
    box-shadow: 0 3px 10px rgb(0 0 0 / .12);
    visibility: hidden;
    opacity: 0;
    transform: translateY(.2rem);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}
.product-benefit[open] .product-benefit-reveal,
.product-benefit summary:focus-visible .product-benefit-reveal {
    visibility: visible;
    opacity: 1;
    transform: none;
}
.product-benefit summary:focus-visible svg, .product-benefit--warranty:focus-within svg { transform: translateY(-2px); }
@media (hover: hover) and (pointer: fine) {
    .product-benefit summary:hover .product-benefit-reveal {
        visibility: visible;
        opacity: 1;
        transform: none;
    }
    .product-benefits:has(summary:hover) summary:not(:hover) .product-benefit-reveal {
        visibility: hidden;
        opacity: 0;
    }
    .product-benefit summary:hover svg, .product-benefit--warranty:hover svg { transform: translateY(-2px); }
}
.product-benefits-entered { animation: product-benefits-enter 280ms ease-out; }
@keyframes product-benefits-enter {
    from { opacity: .7; transform: translateY(.2rem); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .product-benefits-entered { animation: none; }
    .product-benefit svg, .product-benefit-reveal { transition: none; transform: none !important; }
}
