/* ==========================================================================
   Homepage CSS V2 - Noon/Talabat Professional Style
   All classes use hp- prefix to avoid conflicts
   ========================================================================== */

/* ==========================================================================
   Hero Banner — Editorial "Curated Canvas" layout
   Full-bleed hero image + floating deals strip that overlaps the bottom
   ========================================================================== */
.hp-hero {
    position: relative;
    margin: 0;
    background: #f8f9fa;
    padding-bottom: 48px;
    overflow-x: clip;
}
.hp-hero-inner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Split layout: banner full-width, deals strip overlaps below */
.hp-hero-split {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}
.hp-hero-banner-col {
    min-width: 0;
    width: 100%;
}
.hp-hero-deals-col {
    position: relative;
    z-index: 3;
    margin: -32px 12px 0;
    box-sizing: border-box;
    max-width: calc(100% - 24px);
}

/* ============ Hero Slider ============ */
.hp-hero-slider {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #0f172a;
}
.hp-hero-slider img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 8s ease;
}
.hp-hero-slide {
    display: none;
    position: relative;
}
.hp-hero-slide.active {
    display: block;
}
.hp-hero-slide.active img {
    transform: scale(1.05);
}

/* Left-side content with emerald gradient wash (editorial) */
.hp-hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 20px 72px;
    color: #fff;
    box-sizing: border-box;
    background: linear-gradient(
        90deg,
        rgba(6, 78, 59, 0.78) 0%,
        rgba(6, 78, 59, 0.55) 40%,
        rgba(6, 78, 59, 0.15) 75%,
        transparent 100%
    );
}
.hp-hero-slide-content > * { max-width: 100%; }
.hp-hero-slide-content::before {
    content: 'Featured';
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: var(--color-accent, #f59e0b);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}
.hp-hero-slide-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    width: 100%;
    max-width: 620px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hp-hero-slide-content p {
    font-size: 0.875rem;
    opacity: 0.94;
    margin-bottom: 18px;
    width: 100%;
    max-width: 440px;
    line-height: 1.55;
    font-weight: 400;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Slide without image — full editorial gradient */
.hp-hero-slide--noimg {
    min-height: 420px;
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(245,158,11,0.35), transparent 65%),
        linear-gradient(135deg, #064e3b 0%, #065f46 45%, #047857 100%);
}
.hp-hero-slide-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 20px 72px;
    min-height: 420px;
    color: #fff;
    position: relative;
    box-sizing: border-box;
}
.hp-hero-slide-text > * { max-width: 100%; }
.hp-hero-slide-text::before {
    content: 'New Collection';
    display: inline-flex;
    align-items: center;
    background: var(--color-accent, #f59e0b);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}
.hp-hero-slide-text h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    width: 100%;
    max-width: 620px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.hp-hero-slide-text p {
    font-size: 0.875rem;
    opacity: 0.92;
    margin-bottom: 18px;
    width: 100%;
    max-width: 440px;
    line-height: 1.55;
    font-weight: 400;
    overflow-wrap: break-word;
}

/* CTA — chunky amber button */
.hp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-accent, #f59e0b);
    color: #fff;
    padding: 12px 22px;
    border-radius: 11px;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 8px 20px -6px rgba(245,158,11,0.4);
    letter-spacing: -0.005em;
    align-self: flex-start;
}
.hp-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px rgba(245,158,11,0.5);
    filter: brightness(1.08);
    color: #fff;
}

/* Hero arrows — hidden, revealed on hover */
.hp-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    box-shadow: 0 6px 16px -6px rgba(15,23,42,0.3);
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}
.hp-hero-slider:hover .hp-hero-arrow { opacity: 1; }
.hp-hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hp-hero-arrow--prev { left: 20px; }
.hp-hero-arrow--next { right: 20px; }
.hp-hero-arrow svg {
    width: 20px;
    height: 20px;
    stroke: #0f172a;
    fill: none;
    stroke-width: 2.5;
}

/* Hero dots — slim pills (active wider) */
.hp-hero-dots {
    position: absolute;
    bottom: 28px;
    left: 24px;
    transform: none;
    display: flex;
    gap: 8px;
    z-index: 5;
}
.hp-hero-dot {
    width: 14px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}
.hp-hero-dot.active {
    background: #fff;
    width: 44px;
}

/* ============ Floating Deals Strip (overlaps hero bottom) ============ */
.hp-hero-deals {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 14px 12px;
    box-shadow: 0 20px 40px -8px rgba(15,23,42,0.14), 0 2px 8px rgba(15,23,42,0.05);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}
.hp-hero-deals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
    gap: 8px;
}
.hp-hero-deals-header h3 {
    font-size: 0.625rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.hp-hero-deals-viewall {
    font-size: 0.625rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.hp-hero-deals-viewall:hover { color: var(--color-primary-dark); }

/* Horizontal scrolling strip */
.hp-hero-deals-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 2px 4px;
    flex: 1;
    min-width: 0;
}
.hp-hero-deals-slider::-webkit-scrollbar { display: none; }

/* Deal card — compact row: image + text column */
.hp-hero-deal-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 0;
    text-decoration: none;
    color: #0f172a;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 180px;
    min-width: 0;
    transition: transform 0.2s ease;
}
.hp-hero-deal-card:hover {
    transform: translateY(-1px);
    color: #0f172a;
}
.hp-hero-deal-card:hover .hp-hero-deal-img img {
    transform: scale(1.08);
}

.hp-hero-deal-img {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    order: 1;
}
.hp-hero-deal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-hero-deal-badge {
    position: absolute;
    top: 0;
    left: 68px;
    display: inline-block;
    background: none;
    color: #dc2626;
    font-size: 0.5625rem;
    font-weight: 800;
    padding: 0;
    border-radius: 0;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: none;
    margin: 0;
    z-index: 2;
}

.hp-hero-deal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    flex: 1;
    order: 2;
    padding-top: 12px;
}
.hp-hero-deal-card:not(:has(.hp-hero-deal-badge)) .hp-hero-deal-info {
    padding-top: 0;
}

.hp-hero-deal-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    letter-spacing: -0.005em;
    min-width: 0;
    line-height: 1.2;
}
.hp-hero-deal-prices {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
}
.hp-hero-deal-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: -0.005em;
    white-space: nowrap;
}
.hp-hero-deal-was {
    font-size: 0.6875rem;
    color: #cbd5e1;
    text-decoration: line-through;
    white-space: nowrap;
}

/* Fallback Hero (when no banners) — editorial gradient panel */
.hp-hero-fallback {
    text-align: left;
    padding: 72px 24px 100px;
    color: #fff;
    position: relative;
    z-index: 1;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(245,158,11,0.3), transparent 65%),
        linear-gradient(135deg, #064e3b 0%, #065f46 45%, #047857 100%);
    overflow: hidden;
}
.hp-hero-fallback h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    line-height: 1.05;
    max-width: 680px;
}
.hp-hero-fallback p {
    font-size: 1.0625rem;
    opacity: 0.92;
    margin-bottom: 28px;
    max-width: 480px;
    line-height: 1.55;
    font-weight: 300;
    margin-left: 0;
    margin-right: 0;
}

/* Frosted-glass trust badges in hero */
.hp-hero-features {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.hp-hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
}
.hp-hero-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hp-hero-feature-icon svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

/* Hero wave bottom */

/* Side banners */
.hp-hero-side {
    display: none;
    flex-direction: column;
    gap: 12px;
}
.hp-side-banner {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    min-height: 120px;
    background: linear-gradient(135deg, #1e40af, #7c3aed);
}
.hp-side-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hp-side-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
}
.hp-side-banner-overlay h3 {
    font-size: 0.9rem;
    font-weight: 700;
}

/* ==========================================================================
   Section Layout
   ========================================================================== */
.hp-section {
    padding: 32px 0 12px;
}
.hp-section + .hp-section {
    border-top: 1px solid #f1f5f9;
}
.hp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}
.hp-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.01em;
}
.hp-section-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}
.hp-section-link:hover {
    color: var(--color-primary-dark);
    gap: 6px;
}
.hp-section-link::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ==========================================================================
   Scroll-in Animations
   ========================================================================== */
.hp-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.hp-animate.hp-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Circular Category Carousel - Color-Coded
   ========================================================================== */
.hp-category-carousel {
    position: relative;
}
.hp-category-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 4px 12px;
}
.hp-category-track::-webkit-scrollbar { display: none; }
.hp-category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
    width: 88px;
    transition: transform 0.2s;
}
.hp-category-circle:hover { transform: translateY(-3px); }
.hp-category-circle-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e2e8f0;
    background: linear-gradient(145deg, #f0fdf4, #dcfce7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hp-category-circle:hover .hp-category-circle-img {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-light), 0 4px 16px rgba(22,163,74,0.2);
}
.hp-category-circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hp-category-circle-img svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.5;
}
.hp-category-circle-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    line-height: 1.25;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hp-category-circle:hover .hp-category-circle-name {
    color: var(--color-primary);
}

/* Color-coded category backgrounds via data attribute */
[data-category*="fruit"] .hp-category-circle-img,
[data-category*="vegetable"] .hp-category-circle-img {
    background: linear-gradient(145deg, #f0fdf4, #bbf7d0);
    border-color: #86efac;
}
[data-category*="fruit"] .hp-category-circle-img svg,
[data-category*="vegetable"] .hp-category-circle-img svg {
    stroke: #16a34a;
}

[data-category*="dairy"] .hp-category-circle-img,
[data-category*="milk"] .hp-category-circle-img {
    background: linear-gradient(145deg, #eff6ff, #bfdbfe);
    border-color: #93c5fd;
}
[data-category*="dairy"] .hp-category-circle-img svg,
[data-category*="milk"] .hp-category-circle-img svg {
    stroke: #2563eb;
}

[data-category*="meat"] .hp-category-circle-img,
[data-category*="poultry"] .hp-category-circle-img,
[data-category*="chicken"] .hp-category-circle-img {
    background: linear-gradient(145deg, #fef2f2, #fecaca);
    border-color: #fca5a5;
}
[data-category*="meat"] .hp-category-circle-img svg,
[data-category*="poultry"] .hp-category-circle-img svg,
[data-category*="chicken"] .hp-category-circle-img svg {
    stroke: #dc2626;
}

[data-category*="bakery"] .hp-category-circle-img,
[data-category*="bread"] .hp-category-circle-img {
    background: linear-gradient(145deg, #fffbeb, #fde68a);
    border-color: #fcd34d;
}
[data-category*="bakery"] .hp-category-circle-img svg,
[data-category*="bread"] .hp-category-circle-img svg {
    stroke: #d97706;
}

[data-category*="beverage"] .hp-category-circle-img,
[data-category*="drink"] .hp-category-circle-img,
[data-category*="juice"] .hp-category-circle-img {
    background: linear-gradient(145deg, #f0fdfa, #99f6e4);
    border-color: #5eead4;
}
[data-category*="beverage"] .hp-category-circle-img svg,
[data-category*="drink"] .hp-category-circle-img svg,
[data-category*="juice"] .hp-category-circle-img svg {
    stroke: #0d9488;
}

[data-category*="snack"] .hp-category-circle-img,
[data-category*="chip"] .hp-category-circle-img {
    background: linear-gradient(145deg, #fdf4ff, #f0abfc);
    border-color: #e879f9;
}
[data-category*="snack"] .hp-category-circle-img svg,
[data-category*="chip"] .hp-category-circle-img svg {
    stroke: #a855f7;
}

[data-category*="household"] .hp-category-circle-img,
[data-category*="cleaning"] .hp-category-circle-img {
    background: linear-gradient(145deg, #f0f9ff, #bae6fd);
    border-color: #7dd3fc;
}
[data-category*="household"] .hp-category-circle-img svg,
[data-category*="cleaning"] .hp-category-circle-img svg {
    stroke: #0284c7;
}

[data-category*="personal"] .hp-category-circle-img,
[data-category*="care"] .hp-category-circle-img,
[data-category*="beauty"] .hp-category-circle-img {
    background: linear-gradient(145deg, #fdf2f8, #fbcfe8);
    border-color: #f9a8d4;
}
[data-category*="personal"] .hp-category-circle-img svg,
[data-category*="care"] .hp-category-circle-img svg,
[data-category*="beauty"] .hp-category-circle-img svg {
    stroke: #db2777;
}

[data-category*="frozen"] .hp-category-circle-img {
    background: linear-gradient(145deg, #eff6ff, #c7d2fe);
    border-color: #a5b4fc;
}
[data-category*="frozen"] .hp-category-circle-img svg {
    stroke: #4f46e5;
}

/* ==========================================================================
   Horizontal Product Carousel
   ========================================================================== */
.hp-carousel {
    position: relative;
}
.hp-carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 4px 12px;
}
.hp-carousel-track::-webkit-scrollbar { display: none; }

/* Carousel scroll arrows */
.hp-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.hp-carousel-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(22,163,74,0.3);
}
.hp-carousel-arrow:hover svg { stroke: #fff; }
.hp-carousel-arrow svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-text);
    fill: none;
    stroke-width: 2.5;
    transition: stroke 0.2s;
}
.hp-carousel-arrow--prev { left: -8px; }
.hp-carousel-arrow--next { right: -8px; }

/* ==========================================================================
   Product Card - Noon / Talabat Style
   ========================================================================== */
.hp-product-card {
    flex-shrink: 0;
    width: 170px;
    background: var(--color-white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eef0f4;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.hp-product-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    border-color: transparent;
    transform: translateY(-4px);
}
.hp-product-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fafbfc;
    display: block;
}
.hp-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.4s ease;
}
.hp-product-card:hover .hp-product-card-image img {
    transform: scale(1.08);
}

/* Green gradient placeholder with shopping bag */
.hp-product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f0fdf4, #dcfce7);
}
.hp-product-card-placeholder svg {
    opacity: 0.5;
}

/* Badges */
.hp-badge {
    position: absolute;
    top: 8px;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.2;
    z-index: 2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.hp-badge-sale {
    left: 8px;
    background: #dc2626;
    color: #fff;
    box-shadow: 0 2px 4px rgba(220,38,38,0.3);
}
.hp-badge-new {
    right: 8px;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 4px rgba(37,99,235,0.3);
}

/* Card body */
.hp-product-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Star ratings */
.hp-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 6px;
}
.hp-stars svg {
    width: 12px;
    height: 12px;
}
.hp-stars .star-filled {
    fill: #f59e0b;
    stroke: #f59e0b;
}
.hp-stars .star-empty {
    fill: none;
    stroke: #d1d5db;
}
.hp-stars-count {
    font-size: 0.625rem;
    color: var(--color-text-secondary);
    margin-left: 4px;
}

/* Title */
.hp-product-card-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.1em;
}
.hp-product-card-title a {
    color: inherit;
    text-decoration: none;
}
.hp-product-card-title a:hover {
    color: var(--color-primary);
}

/* Price */
.hp-product-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
    margin-top: auto;
}
.hp-price-current {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--color-text);
}
.hp-price-compare {
    font-size: 0.7rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Add to cart - outlined green, fills on hover */
.hp-product-card .add-to-cart-btn {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.hp-product-card .add-to-cart-btn:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(22,163,74,0.3);
}
.hp-product-card .btn-secondary {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f8fafc;
    color: #9ca3af;
    cursor: default;
}

/* ==========================================================================
   Promotional Banner Row - Vibrant Gradient Cards
   ========================================================================== */
.hp-promo-section {
    padding: 8px 0 20px;
}
.hp-promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.hp-promo-banner {
    border-radius: 16px;
    overflow: hidden;
    display: block;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hp-promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.hp-promo-banner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.hp-promo-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    color: #fff;
}
.hp-promo-banner-overlay h3 {
    font-size: 0.9rem;
    font-weight: 700;
}
.hp-promo-banner-overlay p {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Fallback promo cards with decorative circles */
.hp-promo-card {
    border-radius: 16px;
    padding: 28px 24px;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.hp-promo-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    pointer-events: none;
}
.hp-promo-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}
.hp-promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    color: #fff;
}
.hp-promo-card h3 {
    font-size: 1.125rem;
    font-weight: 900;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}
.hp-promo-card p {
    font-size: 0.8125rem;
    opacity: 0.92;
    position: relative;
    z-index: 1;
}
.hp-promo-card--1 { background: linear-gradient(135deg, #f97316, #ea580c); }
.hp-promo-card--2 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.hp-promo-card--3 { background: linear-gradient(135deg, #0891b2, #0e7490); }

/* ==========================================================================
   Trust Strip - 4 Icon Grid
   ========================================================================== */
.hp-trust-strip {
    padding: 24px 0;
}
.hp-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.hp-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}
.hp-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hp-trust-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke-width: 1.8;
}
.hp-trust-icon--delivery {
    background: #f0fdf4;
}
.hp-trust-icon--delivery svg { stroke: #16a34a; }
.hp-trust-icon--fresh {
    background: #eff6ff;
}
.hp-trust-icon--fresh svg { stroke: #2563eb; }
.hp-trust-icon--price {
    background: #fffbeb;
}
.hp-trust-icon--price svg { stroke: #d97706; }
.hp-trust-icon--support {
    background: #fdf2f8;
}
.hp-trust-icon--support svg { stroke: #db2777; }

.hp-trust-text h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
}
.hp-trust-text p {
    font-size: 0.6875rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
}

/* ==========================================================================
   Flash Sale Section
   ========================================================================== */
.hp-section-flash {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    padding: 24px 16px;
    border-radius: 16px;
    border: 1px solid #fde047;
    position: relative;
    overflow: hidden;
}
/* Zap watermark */
.hp-section-flash::before {
    content: '\26A1';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 6rem;
    opacity: 0.06;
    pointer-events: none;
}
.hp-flash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}
.hp-flash-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hp-flash-timer {
    display: flex;
    align-items: center;
    gap: 4px;
}
.hp-flash-timer-unit {
    text-align: center;
}
.hp-flash-timer-block {
    background: #1e293b;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 8px;
    min-width: 38px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.hp-flash-timer-sep {
    font-size: 1.125rem;
    font-weight: 800;
    color: #1e293b;
    padding: 0 1px;
}
.hp-flash-timer-label {
    font-size: 0.5625rem;
    color: #78716c;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* ==========================================================================
   Deals section accent
   ========================================================================== */
.hp-section--deals {
    background: #fff8f8;
    padding: 32px 0 12px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}
.hp-section--deals .hp-section-title {
    color: #dc2626;
}
.hp-section--deals .hp-section-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    animation: hp-pulse 2s infinite;
}
@keyframes hp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ==========================================================================
   Responsive - Tablet (768px+)
   ========================================================================== */
@media (min-width: 768px) {
    .hp-hero { padding-bottom: 56px; }
    .hp-hero-slider img { height: 540px; }
    .hp-hero-slide--noimg { min-height: 540px; }
    .hp-hero-slide-text { min-height: 540px; padding: 56px 48px 96px; }
    .hp-hero-slide-text h2 { font-size: 2.5rem; }
    .hp-hero-slide-text p { font-size: 1rem; }
    .hp-hero-slide-content { padding: 56px 48px 96px; }
    .hp-hero-slide-content h2 { font-size: 2.5rem; }
    .hp-hero-slide-content p { font-size: 1rem; max-width: 520px; }
    .hp-hero-fallback { padding: 72px 48px 96px; min-height: 540px; }
    .hp-hero-fallback h1 { font-size: 2.75rem; }
    .hp-hero-fallback p { font-size: 1.0625rem; }

    .hp-hero-slide-content::before,
    .hp-hero-slide-text::before {
        padding: 6px 14px;
        font-size: 0.6875rem;
        margin-bottom: 20px;
    }
    .hp-hero-cta { padding: 13px 26px; font-size: 0.9375rem; border-radius: 12px; }

    .hp-hero-deals-col { margin: -40px 24px 0; }
    .hp-hero-deals { padding: 20px 24px; border-radius: 18px; }
    .hp-hero-deal-card { width: 220px; }
    .hp-hero-deals-slider { gap: 24px; }

    .hp-hero-dots { left: 48px; bottom: 36px; }

    .hp-category-circle-img { width: 88px; height: 88px; }
    .hp-category-circle { width: 96px; }
    .hp-category-circle-name { font-size: 0.75rem; max-width: 96px; }

    .hp-product-card { width: 185px; }

    .hp-promo-grid { grid-template-columns: repeat(3, 1fr); }
    .hp-promo-banner img { height: 170px; }

    .hp-trust-grid { grid-template-columns: repeat(4, 1fr); }

    .hp-section-title { font-size: 1.375rem; }
    .hp-carousel-arrow { display: flex; }

    .hp-section-flash { padding: 28px 24px; }

    .hp-section--deals {
        margin: 0;
        border-radius: 16px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ==========================================================================
   Responsive - Desktop (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
    .hp-hero { padding-bottom: 64px; }
    .hp-hero-slider img { height: 620px; }
    .hp-hero-slide--noimg { min-height: 620px; }
    .hp-hero-slide-text { min-height: 620px; padding: 0 clamp(56px, 8vw, 120px); display: flex; justify-content: center; }
    .hp-hero-slide-text h2 { font-size: 3.5rem; }
    .hp-hero-slide-content { padding: 0 clamp(56px, 8vw, 120px); }
    .hp-hero-slide-content h2 { font-size: 3.5rem; line-height: 1.05; max-width: 700px; }
    .hp-hero-slide-content p { font-size: 1.0625rem; max-width: 540px; }
    .hp-hero-fallback { min-height: 620px; padding: 0 clamp(56px, 8vw, 120px); }
    .hp-hero-fallback h1 { font-size: 3.5rem; line-height: 1.05; max-width: 700px; }
    .hp-hero-fallback p { max-width: 540px; font-size: 1.0625rem; }

    .hp-hero-deals-col {
        margin: -48px auto 0;
        max-width: calc(var(--container-max) - 64px);
        padding: 0 16px;
    }
    .hp-hero-deals {
        padding: 24px 32px;
        border-radius: 20px;
    }
    .hp-hero-deals-header { padding: 0 4px 14px; }
    .hp-hero-deal-card { width: 220px; }
    .hp-hero-deals-slider { gap: 28px; }

    .hp-hero-cta { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }

    .hp-hero-dots { left: clamp(56px, 8vw, 120px); bottom: 40px; }
    .hp-hero-arrow { width: 48px; height: 48px; }
    .hp-hero-arrow--prev { left: 28px; }
    .hp-hero-arrow--next { right: 28px; }

    .hp-category-circle-img { width: 96px; height: 96px; }
    .hp-category-circle { width: 108px; }
    .hp-category-circle-name { font-size: 0.8rem; max-width: 108px; }

    .hp-product-card { width: 205px; }
    .hp-product-card-title { font-size: 0.8125rem; }

    .hp-promo-banner img { height: 190px; }
    .hp-section-title { font-size: 1.5rem; }

    .hp-hero-arrow svg { width: 20px; height: 20px; }
}

/* ==========================================================================
   Large Desktop (1280px+)
   ========================================================================== */
@media (min-width: 1280px) {
    .hp-product-card { width: 215px; }
    .hp-carousel-track { gap: 16px; }
    .hp-category-track { gap: 24px; }
}
