/* Store Profile Section */
.store-profile {
    background-color: #F8F8F8;
    padding: 40px 0;
    text-align: center;
}
.store-profile-inner {
    max-width: 600px;
    margin: 0 auto;
}
.store-logo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    object-fit: cover;
}
.store-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-top: 16px;
    letter-spacing: -0.5px;
}
.store-location {
    color: #6B7280;
    font-size: 15px;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    text-decoration: none;
}

/* Product Section */
.products-section {
    padding: 32px 0 60px;
}
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    text-align: center;
}

/* ── Brand Filter (horizontal pills, hidden scrollbar) ── */
.brand-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    justify-content: center;
    flex-wrap: nowrap;
}
.brand-filter::-webkit-scrollbar {
    display: none;                  /* Chrome / Safari / Edge */
}
.brand-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    background-color: #F8F8F8;
    color: #374151;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.brand-pill:hover {
    border-color: #10B981;
    color: #059669;
}
.brand-pill:active {
    transform: scale(0.96);
}
.brand-pill.active {
    background-color: #10B981;
    color: #FFFFFF;
    border-color: #10B981;
}
.brand-pill.active:hover {
    color: #FFFFFF;
}
@media (max-width: 640px) {
    .brand-filter {
        justify-content: flex-start; /* allows scrolling on small screens */
    }
}
/* Hides product cards filtered out by brand selection */
.product-card.brand-filtered-out {
    display: none !important;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Product Card */
.product-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-title {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    min-height: 42px;
}
.product-model-badge {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #6B7280;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 1px 8px;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.product-price {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #10B981;
}
.add-btn {
    width: 36px;
    height: 36px;
    background-color: #10B981;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.2s;
}
.add-btn:hover {
    background-color: #059669;
}

/* Checkout */
.checkout-section {
    background-color: #F8F8F8;
    padding: 32px 0;
    border-top: 1px solid #E5E7EB;
}
.cart-total {
    font-size: 18px;
    margin: 16px 0;
    color: #111827;
}
#cartItems {
    margin-top: 12px;
}
.cart-item-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #E5E7EB;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #374151;
}

/*
 * Cart Modal      → css/cart.css
 * Product Modal   → css/modal.css
 * Floating WA Btn → css/floating-wa.css
 */
