/*
 * E-FLOUR-style homepage sections, ported into the NadPoint homepage
 * engine. Scoped under .ndp-section-<key> so they don't collide with the
 * rest of the homepage CSS. Palette kept faithful to the source theme:
 * dark green #1b3022, green #4caf50, pink #d81b60, gold #d4af37.
 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Poppins:wght@300;400;600;700;800&display=swap');

/* ===================================================================
   Shared: blinking section title + green divider for the three titled
   sections (the hero hides its header entirely).
=================================================================== */
.ndp-section-trending_banner .ndp-section-header,
.ndp-section-super_deals .ndp-section-header,
.ndp-section-category_circles .ndp-section-header {
    text-align: center;
    display: block;
}
.ndp-section-trending_banner .ndp-section-heading,
.ndp-section-super_deals .ndp-section-heading,
.ndp-section-category_circles .ndp-section-heading {
    display: block;
    text-align: center;
}
.ndp-section-trending_banner .ndp-section-title,
.ndp-section-super_deals .ndp-section-title,
.ndp-section-category_circles .ndp-section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #d81b60;
    text-align: center;
    animation: ndpBlinker 1.5s linear infinite;
}
.ndp-section-trending_banner .ndp-section-title::after,
.ndp-section-super_deals .ndp-section-title::after,
.ndp-section-category_circles .ndp-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #4caf50;
    margin: 10px auto 4px;
    border-radius: 10px;
    animation: none;
}
@keyframes ndpBlinker { 50% { opacity: 0.3; } }

.ndp-section-super_deals .ndp-section-viewall {
    display: inline-block;
    background: #e8f5e9;
    color: #1b3022;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 6px;
    border: 2px solid #c8e6c9;
    transition: all 0.3s ease;
}
.ndp-section-super_deals .ndp-section-viewall:hover {
    background: #4caf50; color: #fff; border-color: #4caf50;
    transform: translateY(-2px); box-shadow: 0 4px 12px rgba(76,175,80,0.3);
}

/* ===================================================================
   1. BRAND HERO
=================================================================== */
.ndp-section-brand_hero .ndp-section-header { display: none; }
.ndp-section-brand_hero .ndp-section-inner,
.ndp-section-brand_hero .ndp-section-body { padding: 0; margin: 0; max-width: none; }

.ef-clean-hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    background: #fdfdfb;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    padding: 40px 20px 30px;
    box-sizing: border-box;
}
.ef-hero-core { position: relative; max-width: 950px; width: 100%; }
.ef-hero-logo {
    display: block; max-width: 420px; width: 100%; height: auto;
    margin: 0 auto 20px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
    animation: ndpSmoothFloat 5s ease-in-out infinite;
}
.ef-hero-brand {
    font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900;
    color: #1b3022; margin: 0 auto 16px;
}
@keyframes ndpSmoothFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.ef-hero-desc {
    font-size: 1.4rem; line-height: 1.8; max-width: 750px;
    margin: 0 auto 30px; font-weight: 500; letter-spacing: 0.5px;
}
.ef-social-row { display: flex; justify-content: center; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.ef-clean-hero .social-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: #fff; border: 1px solid #e0e0e0;
    display: flex; align-items: center; justify-content: center;
    color: #1b3022; font-size: 1.1rem; text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
    animation: ndpIconFloat 3s ease-in-out infinite;
}
.ef-clean-hero .social-icon:nth-child(2) { animation-delay: 0.2s; }
.ef-clean-hero .social-icon:nth-child(3) { animation-delay: 0.4s; }
.ef-clean-hero .social-icon:nth-child(4) { animation-delay: 0.6s; }
.ef-clean-hero .social-icon:nth-child(5) { animation-delay: 0.8s; }
.ef-clean-hero .social-icon:nth-child(6) { animation-delay: 1s; }
@keyframes ndpIconFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.ef-clean-hero .social-icon:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #1b3022; color: #fff; border-color: #1b3022; animation: none;
}
.app-store-badges { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.store-badge {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid #ddd; border-radius: 50px;
    padding: 10px 24px; text-decoration: none; color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); transition: all 0.3s;
    min-width: 200px; justify-content: center; box-sizing: border-box;
}
.store-badge:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.12); transform: translateY(-3px); background: #f9f9f9; }
.store-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; }
.store-icon svg { display: block; width: 100%; height: 100%; }
.store-text { font-size: 0.8rem; line-height: 1.3; color: #555; text-align: left; white-space: nowrap; }
.store-text strong { font-weight: 700; color: #1b3022; display: block; }

/* ===================================================================
   2. TRENDING NOW (asymmetric banner)
=================================================================== */
.banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: stretch; }
.banner-small-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 15px; }
.banner-box {
    display: block; position: relative; overflow: hidden;
    border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s; aspect-ratio: 1 / 1;
}
.banner-box:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.banner-box img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.banner-box:hover img { transform: scale(1.05); }
.banner-label {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff; font-weight: 700; padding: 28px 14px 12px;
    font-size: 1rem; text-align: left;
}
.box-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: #f5f5f5; color: #888; font-size: 1.1rem; font-weight: 600; text-align: center;
}

/* ===================================================================
   3. TODAY'S SUPER DEALS (product slider)
=================================================================== */
@media (min-width: 992px) { .vip-deals-slider { margin: 0 50px; } }
.vip-deal-card {
    background: #fff; margin: 10px; border-radius: 16px; overflow: hidden;
    transition: all 0.3s; border: 1px solid #eee; position: relative;
}
.vip-deal-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.1); transform: translateY(-3px); }
.card-visuals { position: relative; overflow: hidden; background: #f9f9f9; }
.image-wrapper { display: block; position: relative; padding-bottom: 100%; }
.image-wrapper img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: opacity 0.4s, transform 0.4s;
}
.image-wrapper .img-secondary { opacity: 0; }
@media (min-width: 992px) {
    .vip-deal-card:hover .img-primary { opacity: 0; }
    .vip-deal-card:hover .img-secondary { opacity: 1; transform: scale(1.05); }
}
.image-wrapper .no-image {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #ccc; font-size: 2rem;
}
.sale-badge {
    position: absolute; top: 12px; left: 12px; background: #d81b60; color: #fff;
    padding: 5px 14px; border-radius: 20px; font-size: 0.7rem; font-weight: bold;
    z-index: 2; letter-spacing: 0.5px; box-shadow: 0 2px 8px rgba(216,27,96,0.4);
}
.wishlist-btn {
    position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.9);
    border: none; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    z-index: 3; transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 0;
}
.wishlist-btn .heart-svg { color: #ccc; transition: color 0.3s, fill 0.3s, transform 0.3s; }
.wishlist-btn:hover .heart-svg { color: #E63946; transform: scale(1.05); }
.wishlist-btn.active .heart-svg { color: #E63946; fill: #E63946; transform: scale(1.1); }
.wishlist-btn:active { transform: scale(0.95); }
.card-details { padding: 16px; text-align: center; }
.card-details h3 { font-size: 1rem; line-height: 1.4; margin: 0 0 6px; height: 2.8em; overflow: hidden; }
.card-details h3 a {
    color: #222; text-decoration: none; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
}
.vip-price-tag { margin: 8px 0; font-size: 1rem; }
.vip-price-tag del { color: #999; font-size: 0.85rem; display: block; margin-bottom: 4px; }
.vip-price-tag ins, .vip-price-tag .vip-price-current {
    font-weight: 800; color: #2e7d32; font-size: 1.15rem; text-decoration: none; display: block;
}
.vip-atc-btn {
    display: block; width: 100%; background: #111; color: #fff; padding: 12px;
    border: none; border-radius: 8px; text-decoration: none; font-weight: 700;
    cursor: pointer; transition: background 0.3s; margin-top: 10px; font-size: 0.95rem;
}
.vip-atc-btn:hover { background: #d81b60; }
.vip-atc-btn:disabled { opacity: 0.6; cursor: default; }

/* Slick arrows (shared look for both sliders) */
@keyframes ndpArrowColorCycle {
    0% { color: #000; } 25% { color: #4caf50; } 50% { color: #d81b60; } 75% { color: #d4af37; } 100% { color: #000; }
}
.vip-deals-slider .slick-prev, .vip-deals-slider .slick-next,
.category-slider .slick-prev, .category-slider .slick-next {
    width: 44px; height: 44px; background: none; border: none; z-index: 10;
    display: flex !important; align-items: center; justify-content: center;
    top: 40%; transform: translateY(-50%); line-height: 1;
}
.vip-deals-slider .slick-prev, .category-slider .slick-prev { left: -50px; }
.vip-deals-slider .slick-next, .category-slider .slick-next { right: -50px; }
.vip-deals-slider .slick-prev i, .vip-deals-slider .slick-next i,
.category-slider .slick-prev i, .category-slider .slick-next i {
    font-size: 1.8rem; color: #000; animation: ndpArrowColorCycle 4s linear infinite;
}
.vip-deals-slider .slick-prev:hover i, .vip-deals-slider .slick-next:hover i,
.category-slider .slick-prev:hover i, .category-slider .slick-next:hover i {
    animation: none; transform: scale(1.2); color: #4caf50;
}
.vip-deals-slider .slick-dots { bottom: -40px; }
.vip-deals-slider .slick-dots li button:before { font-size: 14px; color: #ccc; }
.vip-deals-slider .slick-dots li.slick-active button:before { color: #4caf50; opacity: 1; }

/* ===================================================================
   4. EXPLORE ALL CATEGORIES (circular slider)
=================================================================== */
.ndp-section-category_circles { padding-bottom: 40px; }
.category-slider { margin: 0 40px; position: relative; }
.category-item { padding: 10px; text-align: center; }
.category-link { text-decoration: none; color: inherit; display: block; }
.category-circle {
    width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
    background: #f5f5f5; border: 3px solid #eee;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    margin: 0 auto 10px; max-width: 160px; display: flex; align-items: center; justify-content: center;
}
.category-link:hover .category-circle {
    transform: scale(0.92); border-color: #4caf50; box-shadow: 0 8px 20px rgba(76,175,80,0.35);
}
.category-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.category-circle-empty { color: #bbb; font-size: 2rem; }
.category-name {
    font-weight: 600; font-size: 0.9rem; color: #333; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 8px;
}

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 1024px) {
    .ef-hero-logo { max-width: 360px; }
    .ef-hero-desc { font-size: 1.25rem; }
}
@media (max-width: 991px) {
    .ndp-section-trending_banner .ndp-section-title,
    .ndp-section-super_deals .ndp-section-title,
    .ndp-section-category_circles .ndp-section-title { font-size: 2rem; }
    .image-wrapper { padding-bottom: 75%; }
    .vip-deal-card { margin: 6px; border-radius: 10px; }
    .image-wrapper .img-secondary { display: none; }
    .vip-deals-slider { margin: 0; }
    .vip-deals-slider .slick-prev, .vip-deals-slider .slick-next { display: none !important; }
}
@media (max-width: 768px) {
    .ef-clean-hero { min-height: auto; padding: 30px 20px 20px; }
    .ef-hero-logo { max-width: 260px; }
    .ef-hero-desc { font-size: 1.1rem; }
    .ef-social-row { gap: 12px; }
    .ef-clean-hero .social-icon { width: 42px; height: 42px; font-size: 1rem; }
    .app-store-badges { gap: 12px; }
    .store-badge { min-width: 170px; padding: 8px 16px; }
    .banner-grid { grid-template-columns: 1fr; gap: 10px; }
    .banner-small-grid { gap: 10px; }
    .image-wrapper { padding-bottom: 100%; }
    .category-slider { margin: 0 30px; }
    .category-circle { max-width: 120px; }
    .category-slider .slick-prev { left: -32px; }
    .category-slider .slick-next { right: -32px; }
}
@media (max-width: 480px) {
    .ef-hero-logo { max-width: 200px; }
    .ef-hero-desc { font-size: 1rem; }
    .store-badge { min-width: 150px; padding: 6px 12px; }
    .store-text { font-size: 0.68rem; }
    .category-circle { max-width: 100px; }
    .category-slider { margin: 0 25px; }
}
