/* Keells Super–inspired homepage styles for BuyFromItaly.lk */

/* Keells signature asymmetric radius */
.keells-radius {
    border-top-right-radius: 1.25rem;
    border-bottom-left-radius: 1.25rem;
}

.keells-radius-sm {
    border-top-right-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

/* Top accent bar */
.keells-top-bar {
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 50%, #0ea5e9 100%);
}

/* Quick action tiles */
.keells-quick-tile {
    background: #fff;
    border: 1px solid #e8edf2;
    transition: all 0.2s ease;
    min-width: 100px;
}
.keells-quick-tile:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
    transform: translateY(-2px);
}
.keells-quick-tile-icon {
    width: 48px;
    height: 48px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Hero carousel */
.keells-hero {
    position: relative;
    overflow: hidden;
}
.keells-hero-slide {
    min-width: 100%;
    height: 180px;
}
@media (min-width: 640px) { .keells-hero-slide { height: 260px; } }
@media (min-width: 1024px) { .keells-hero-slide { height: 340px; } }

.keells-hero-arrow {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    color: #0ea5e9;
    transition: all 0.2s;
    z-index: 10;
}
.keells-hero-arrow:hover {
    background: #0ea5e9;
    color: #fff;
}

.keells-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
}
.keells-hero-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Category scroll tiles */
.keells-cat-tile {
    min-width: 88px;
    text-align: center;
    flex-shrink: 0;
}
.keells-cat-icon {
    width: 72px;
    height: 72px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1.75rem;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.keells-cat-tile:hover .keells-cat-icon {
    border-color: #0ea5e9;
    background: #bae6fd;
    transform: scale(1.05);
}

/* Promo banner grid */
.keells-promo-banner {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/7;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    position: relative;
}
.keells-promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section headers */
.keells-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0f2fe;
}
.keells-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.keells-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #0ea5e9;
    border-radius: 2px;
}
.keells-view-all {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0ea5e9;
    display: flex;
    align-items: center;
    gap: 4px;
}
.keells-view-all:hover { color: #0284c7; }

/* Horizontal product scroll */
.keells-product-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.keells-product-scroll::-webkit-scrollbar { height: 4px; }
.keells-product-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

/* Keells-style product card */
.keells-product-card {
    min-width: 150px;
    max-width: 150px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    scroll-snap-align: start;
    overflow: hidden;
    transition: box-shadow 0.2s;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .keells-product-card { min-width: 170px; max-width: 170px; }
}
.keells-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.keells-product-img {
    width: 100%;
    aspect-ratio: 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
}
.keells-product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.keells-sale-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
}

.keells-product-body {
    padding: 10px;
}
.keells-product-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.keells-product-size {
    font-size: 0.6875rem;
    color: #94a3b8;
    margin-top: 2px;
}
.keells-product-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0ea5e9;
    margin-top: 6px;
}
.keells-product-price-old {
    font-size: 0.6875rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 4px;
    font-weight: 400;
}

/* Keells asymmetric Add button */
.keells-add-btn {
    width: 100%;
    margin-top: 8px;
    padding: 6px 0;
    background: #0ea5e9;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 12px;
    transition: all 0.2s;
}
.keells-add-btn:hover {
    background: #0284c7;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

/* Quantity stepper */
.keells-qty-stepper {
    display: flex;
    align-items: center;
    margin-top: 8px;
    border: 1px solid #0ea5e9;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 12px;
    overflow: hidden;
}
.keells-qty-btn {
    width: 32px;
    height: 32px;
    background: #e0f2fe;
    border: none;
    color: #0ea5e9;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.keells-qty-btn:hover { background: #bae6fd; }
.keells-qty-value {
    flex: 1;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

/* Scroll arrows for product rows */
.keells-scroll-arrow {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.keells-scroll-arrow:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
    background: #e0f2fe;
}

/* Delivery info bar */
.keells-delivery-bar {
    background: #e0f2fe;
    border-bottom: 1px solid #bae6fd;
}

/* Brand strip */
.keells-brand-strip {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
}

/* Hide scrollbar for category row */
.keells-hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.keells-hide-scroll::-webkit-scrollbar { display: none; }
