.shop-hero {
    position: relative;
    overflow: hidden;
}

.shop-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.category-pills {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.category-pill {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.category-pill:hover {
    border-color: #93c5fd;
    color: #2563eb;
}

.category-pill.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr 340px;
        align-items: start;
    }
}

#shopCart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    max-height: 75vh;
    transform: translateY(calc(100% - 60px));
    transition: transform 0.3s ease;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

#shopCart.cart-open {
    transform: translateY(0);
}

@media (min-width: 1024px) {
    #shopCart {
        position: sticky;
        top: 5.5rem;
        transform: none;
        max-height: calc(100vh - 7rem);
        border-radius: 0.75rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        z-index: 1;
    }

    #shopCart .cart-handle {
        display: none;
    }
}

.cart-handle {
    padding: 0.875rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    min-height: 60px;
}

#cartItems {
    max-height: 45vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
    #cartItems {
        max-height: 50vh;
    }
}

.product-card {
    touch-action: manipulation;
}

.product-thumb-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 120px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb-wrap img.product-thumb,
.product-thumb-wrap .product-thumb-placeholder {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-thumb {
    background: #fff;
}

.product-thumb-sm {
    width: 3.5rem !important;
    height: 3.5rem !important;
    min-width: 3.5rem;
    border-radius: 0.5rem;
    object-fit: contain;
}

.product-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.product-thumb-placeholder svg {
    width: 2rem;
    height: 2rem;
}

.shop-fab {
    position: fixed;
    bottom: 5.5rem;
    left: 1rem;
    z-index: 35;
    touch-action: manipulation;
}

@media (min-width: 1024px) {
    .shop-fab {
        display: none;
    }
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#shopToast.show {
    display: block;
    animation: shopToastIn 0.25s ease;
}

@keyframes shopToastIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
