/* ============================================
   HOME PAGE SPECIFIC CSS
   ============================================ */

.section-padding {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.view-all-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-all-link:hover {
    color: var(--primary-dark);
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* Common Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-white {
    background: white;
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-white:hover {
    background: var(--bg-light);
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 60px 0 60px 0;
    overflow: hidden;
    color: var(--text-primary);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Removed background gradient overlay */
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon-wrapper {
    width: 32px;
    height: 32px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-icon {
    width: 16px;
    height: 16px;
}

.feature-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 120px;
    line-height: 1.2;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.hero-btn-outline:hover {
    background: var(--bg-light);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 16px;
    color: var(--text-primary);
}

.trust-text span {
    font-size: 12px;
    color: var(--text-secondary);
}

.trust-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}

.category-card {
    text-align: center;
}

.category-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.category-card:hover .category-img-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0,0,0,0.5);
}

.category-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.category-count {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.category-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   WHY CHOOSE US (ANIMATED)
   ============================================ */
.why-animated-section {
    position: relative;
    padding: 30px 0;
    overflow: hidden;
    background: #fcf9f5;
    text-align: center;
    display: flex;
    align-items: center;
}

.bg-swoop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.why-center-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
    margin: 0 auto;
    padding: 16px 32px;
    will-change: transform, opacity;
}

.why-badge {
    display: inline-block;
    background-color: #fbe6e8;
    color: #e54d60;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.why-main-title {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.why-main-title .dark-text {
    font-size: 42px;
    color: #4a2f1d;
}

.why-main-title .pink-text {
    font-size: 56px;
    color: #e54d60;
}

.why-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.why-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    position: relative;
    padding-left: 20px;
}

.why-features-list::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    border-left: 2px dotted #fbe6e8;
    z-index: 0;
}

.why-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.why-icon-wrapper {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e54d60;
    box-shadow: 0 4px 15px rgba(229, 77, 96, 0.1);
    flex-shrink: 0;
}

.why-text-content h4 {
    font-size: 16px;
    color: #4a2f1d;
    margin-bottom: 4px;
    font-weight: 700;
    margin-top: 4px;
}

.why-text-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.partner-btn {
    margin-top: 24px;
    border-radius: 30px;
    padding: 14px 32px;
    background: #e54d60;
    box-shadow: 0 10px 20px rgba(229, 77, 96, 0.2);
}

.floating-sweet {
    position: absolute;
    z-index: 5;
    will-change: transform;
}

/* Initial positions (scattered outwards) */
.sweet-5 { width: 300px; height: 300px; bottom: 5%; left: 50%; margin-left: -500px; z-index: 8; }
.sweet-6 { width: 300px; height: 300px; top: 15%; right: 50%; margin-right: -500px; z-index: 8; }
.sweet-7 { width: 300px; height: 300px; bottom: 5%; right: 50%; margin-right: -480px; z-index: 8; }
.sweet-8 { width: 280px; height: 280px; top: 10%; left: 50%; margin-left: -480px; z-index: 8; }
.sweet-9 { width: 600px; height: 600px; top: 20%; left: 50%; margin-left: -750px; z-index: 7; }
.sweet-10 { width: 600px; height: 600px; top: 20%; right: 50%; margin-right: -750px; z-index: 7; }

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-4px);
}

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-product {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0,0,0,0.5);
}

.product-info {
    padding: 16px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-weight {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.product-price-row {
    margin-bottom: 16px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-action-row {
    display: flex;
    gap: 8px;
}

.product-add-btn {
    flex: 1;
    padding: 8px 0;
    font-size: 13px;
    justify-content: center;
}

.product-cart-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.product-cart-icon:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* ============================================
   PROMO BANNERS
   ============================================ */
.promo-banners-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.promo-banner-large, .promo-banner-small {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    padding: 40px;
    display: flex;
    align-items: center;
}

.promo-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(67, 51, 42, 0.9) 0%, rgba(67, 51, 42, 0.4) 100%);
    z-index: 1;
}

.promo-content {
    position: relative;
    z-index: 2;
}

.promo-banner-large .promo-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
}

.promo-banner-large .promo-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    max-width: 320px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.promo-banner-small .promo-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.promo-illustration {
    position: relative;
    width: 100px;
    height: 100px;
}

.excel-doc-icon {
    width: 80px;
    height: 100px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
}

.excel-x {
    width: 40px;
    height: 40px;
    background: #107c41; /* Excel green */
    color: white;
    font-weight: 800;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.upload-arrow-circle {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: #8BC34A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 3px solid white;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 160px;
}

.process-icon-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px dashed #f5cdc2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    color: var(--primary);
}

.process-icon {
    width: 32px;
    height: 32px;
}

.step-number {
    position: absolute;
    bottom: -10px;
    background: white;
    border: 1px solid var(--border-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.process-arrow {
    color: #e2e8f0;
    width: 24px;
    height: 24px;
}

.process-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.process-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   THE SIHIPAK ADVANTAGE
   ============================================ */
.advantage-section {
    display: flex;
    background: #fdfaf6;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.advantage-image-col {
    width: 40%;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.advantage-content-col {
    width: 60%;
    padding: 60px;
    position: relative;
}

.advantage-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.adv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.adv-icon {
    width: 20px;
    height: 20px;
    color: #8bc34a; /* Green check */
}

.quality-badge {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.quality-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    background: white;
}

/* ============================================
   PARTNERS & TESTIMONIALS
   ============================================ */
.partners-carousel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.partner-logo {
    font-size: 24px;
    font-weight: 800;
    color: #d32f2f;
    text-transform: uppercase;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.testimonial-quote {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 24px;
    min-height: 80px;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.star.filled {
    color: var(--accent-yellow);
    fill: var(--accent-yellow);
    width: 16px;
    height: 16px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
}

.user-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.user-company {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   APP PROMO
   ============================================ */
.app-promo-section {
    background: #362923; /* Dark brown */
    border-radius: var(--radius-lg);
    display: flex;
    padding: 0 60px;
    color: white;
    overflow: hidden;
}

.app-promo-left {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    padding: 60px 0;
}

.app-mockup {
    width: 180px;
    height: 360px;
    background: black;
    border-radius: 20px;
    border: 8px solid #222;
    margin-bottom: -100px; /* To let it stick out bottom slightly */
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.app-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 280px;
    line-height: 1.5;
}

.app-buttons {
    display: flex;
    gap: 16px;
}

.app-promo-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 60px 0 60px 60px;
    border-left: 1px solid rgba(255,255,255,0.1);
    align-items: center;
}

.app-feature {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.app-feature-icon {
    width: 28px;
    height: 28px;
    color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   HOMEPAGE MOBILE & TABLET RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1024px) {
    /* Hero Banner floating sweets adjust */
    .sweet-9, .sweet-10 {
        width: 300px;
        height: 300px;
    }
    .sweet-9 { margin-left: -500px; }
    .sweet-10 { margin-right: -500px; }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }

    /* Hero Banner Section */
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }
    .hero-desc {
        font-size: 14px;
        margin: 0 auto 30px auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    /* Hide ALL floating sweets on mobile so they do not block headline readability */
    .sweet-1, .sweet-2, .sweet-3, .sweet-4, .sweet-5, .sweet-6, .sweet-7, .sweet-8, .sweet-9, .sweet-10 {
        display: none !important;
    }

    /* Homepage Trust Bar */
    .hero-trust-bar {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }
    .trust-divider {
        display: none;
    }
    .trust-item {
        justify-content: center;
        width: 100%;
    }

    /* Categories Grid */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .product-card {
        padding: 12px;
    }
    .product-name {
        font-size: 14px;
    }
    .product-price {
        font-size: 16px;
    }

    /* Promo Banners Grid */
    .banners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .promo-banner {
        padding: 30px;
    }
    .promo-banner h3 {
        font-size: 22px;
    }

    /* App Promo Section */
    .app-promo-section {
        flex-direction: column;
        padding: 40px 24px 0 24px;
    }
    .app-promo-left {
        padding: 0 0 40px 0;
        flex-direction: column;
        text-align: center;
    }
    .app-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .app-buttons {
        justify-content: center;
    }
    .app-mockup {
        margin-bottom: 0;
        margin-top: 20px;
    }
    .app-promo-features {
        padding: 40px 0;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}
