/**
 * PENDU MART – HOMEPAGE SECTIONS CSS
 * Recreates exact layout, density, hierarchy and shopping experience of reference mockup
 */

/* ==========================================================================
   Hero Section (Pro-Level Modern Showcase)
   ========================================================================== */
.pm-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 50%, #E2E8F0 100%);
    border-bottom: 1px solid #E2E8F0;
    padding: 20px 0 28px;
    width: 100%;
}

.pm-hero-slider-wrap {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.pm-hero-slide {
    animation: pmFadeIn 0.35s ease-out;
}

.pm-hero-banner-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    min-height: 440px;
}

.pm-hero-content {
    padding: 40px 0 40px 44px;
    max-width: 580px;
    z-index: 2;
}

.pm-hero-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #15803D;
    background: #DCFCE7;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.pm-hero-headline {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 900;
    color: #0F172A;
    margin-bottom: 12px;
    letter-spacing: -0.8px;
}

.pm-hero-headline span.highlight {
    color: #1E6B3A;
    display: inline;
}

.pm-hero-subheadline {
    font-size: 15px;
    line-height: 1.5;
    color: #64748B;
    margin-bottom: 22px;
    font-weight: 500;
}

.pm-hero-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.pm-btn-hero-primary {
    background: #0F172A !important;
    color: #ffffff !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pm-btn-hero-primary:hover {
    background: #1E293B !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25) !important;
}

.pm-btn-hero-outline {
    background: #F8FAFC !important;
    color: #0F172A !important;
    border: 1.5px solid #CBD5E1 !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pm-btn-hero-outline:hover {
    background: #E2E8F0 !important;
    border-color: #94A3B8 !important;
}

.pm-hero-trust-bullets {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.pm-hero-bullet-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.pm-hero-bullet-item svg {
    width: 15px;
    height: 15px;
    color: #16A34A;
}

.pm-hero-visual-card {
    padding: 24px 32px 24px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-hero-img-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    border: 1px solid #E2E8F0;
}

.pm-hero-photo {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pm-hero-floating-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 3px solid #1E6B3A;
}

.pm-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16A34A;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.pm-hero-floating-badge strong {
    font-size: 12px;
    font-weight: 800;
    color: #0F172A;
    display: block;
}

.pm-hero-floating-badge span {
    font-size: 11px;
    color: #64748B;
    display: block;
}

.pm-hero-slider-dots {
    position: absolute;
    bottom: 14px;
    right: 32px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.pm-slider-dot {
    width: 28px;
    height: 6px;
    border-radius: 3px;
    background: #CBD5E1;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.pm-slider-dot.active {
    background: #0F172A;
    width: 36px;
}

/* ==========================================================================
   Pro-Level Photographic Circular Category Strip
   ========================================================================== */
.pm-category-icons-section {
    padding: 16px 0 24px;
    background: #ffffff;
    border-bottom: 1px solid #F1F5F9;
}

.pm-category-icons-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
    align-items: start;
    justify-content: center;
}

.pm-cat-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.pm-cat-icon-item:hover {
    transform: translateY(-3px);
}

.pm-cat-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: #F8FAFC;
    border: 2px solid #ffffff;
    outline: 2px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    position: relative;
    transition: outline-color 0.2s ease, box-shadow 0.2s ease;
}

.pm-cat-icon-item:hover .pm-cat-icon-circle {
    outline-color: var(--pm-primary, #1E6B3A);
    box-shadow: 0 6px 16px rgba(30, 107, 58, 0.2);
}

.pm-cat-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pm-cat-icon-item:hover .pm-cat-icon-circle img {
    transform: scale(1.08);
}

.pm-cat-pill-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #E11D48;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    white-space: nowrap;
    line-height: 1.2;
}

.pm-cat-icon-name {
    font-size: 11px;
    font-weight: 700;
    color: #1E293B;
    text-align: center;
    line-height: 1.25;
    margin-top: 2px;
}

/* ==========================================================================
   Section Headers (Deals, Best Sellers, Brands)
   ========================================================================== */
.pm-section {
    padding: 20px 0 28px;
}

.pm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pm-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pm-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--pm-heading);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.pm-section-title svg {
    width: 22px;
    height: 22px;
    color: var(--pm-secondary);
}

/* Deals Countdown Timer */
.pm-deals-countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFF7ED;
    border: 1px solid #FFEDD5;
    padding: 4px 12px;
    border-radius: var(--pm-radius-sm);
    font-size: 13px;
    color: #C2410C;
    font-weight: 600;
}

.pm-countdown-clock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #9A3412;
}

.pm-countdown-digit {
    background: #FFFFFF;
    border: 1px solid #FED7AA;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

.pm-view-all-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--pm-heading);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--pm-transition-fast);
}

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

/* ==========================================================================
   Promotional Cards (3-Column Grid)
   ========================================================================== */
.pm-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

@media (max-width: 900px) {
    .pm-promo-grid {
        grid-template-columns: 1fr;
    }
}

.pm-promo-card {
    border-radius: var(--pm-radius-md);
    overflow: hidden;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 28px;
    box-sizing: border-box;
    box-shadow: var(--pm-shadow-light);
    transition: transform var(--pm-transition-fast), box-shadow var(--pm-transition-fast);
}

.pm-promo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pm-shadow-hover);
}

.pm-promo-card-1 {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECDD3 100%);
}

.pm-promo-card-2 {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.pm-promo-card-3 {
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
}

.pm-promo-content {
    max-width: 60%;
    z-index: 2;
}

.pm-promo-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--pm-heading);
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.pm-promo-desc {
    font-size: 13px;
    color: var(--pm-text);
    margin: 0 0 16px 0;
}

.pm-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: var(--pm-heading);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all var(--pm-transition-fast);
    width: fit-content;
}

.pm-promo-btn:hover {
    background: var(--pm-heading);
    color: #ffffff !important;
}

.pm-promo-image {
    position: absolute;
    right: 12px;
    bottom: 0;
    max-height: 85%;
    max-width: 42%;
    object-fit: contain;
}

/* ==========================================================================
   Horizontal Trust Features Strip
   ========================================================================== */
.pm-trust-strip-section {
    padding: 16px 0;
    margin: 10px 0 20px;
}

.pm-trust-strip {
    background: #ffffff;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-md);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    box-shadow: var(--pm-shadow-light);
}

@media (max-width: 1024px) {
    .pm-trust-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .pm-trust-strip {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

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

.pm-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--pm-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pm-trust-icon svg {
    width: 22px;
    height: 22px;
    color: var(--pm-primary);
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.pm-trust-info {
    display: flex;
    flex-direction: column;
}

.pm-trust-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--pm-heading);
    line-height: 1.2;
}

.pm-trust-desc {
    font-size: 12px;
    color: var(--pm-muted);
    line-height: 1.2;
    margin-top: 2px;
}

/* ==========================================================================
   Top Brands Carousel / Grid
   ========================================================================== */
.pm-brands-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
}

@media (max-width: 1024px) {
    .pm-brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .pm-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pm-brand-card {
    background: #ffffff;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-default);
    padding: 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color var(--pm-transition-fast), box-shadow var(--pm-transition-fast);
    height: 64px;
    box-sizing: border-box;
}

.pm-brand-card:hover {
    border-color: var(--pm-primary);
    box-shadow: var(--pm-shadow-light);
}

.pm-brand-card img {
    max-width: 80%;
    max-height: 38px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: filter var(--pm-transition-fast), opacity var(--pm-transition-fast);
}

.pm-brand-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.pm-newsletter-section {
    padding: 30px 0;
}

.pm-newsletter-banner {
    background-color: var(--pm-primary);
    border-radius: var(--pm-radius-md);
    padding: 24px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #ffffff;
    flex-wrap: wrap;
}

.pm-newsletter-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pm-newsletter-icon svg {
    width: 36px;
    height: 36px;
    color: #ffffff;
    fill: currentColor;
}

.pm-newsletter-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff;
}

.pm-newsletter-desc {
    font-size: 13px;
    color: #E2E8F0;
    margin: 0;
}

.pm-newsletter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 440px;
}

.pm-newsletter-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--pm-radius-sm);
    border: none;
    font-size: 13px;
    outline: none;
}

.pm-newsletter-submit {
    background-color: var(--pm-accent);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--pm-radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background-color var(--pm-transition-fast);
}

.pm-newsletter-submit:hover {
    background-color: var(--pm-accent-dark);
}

.pm-newsletter-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pm-newsletter-socials a {
    color: #ffffff;
    opacity: 0.85;
    transition: opacity var(--pm-transition-fast);
    display: flex;
}

.pm-newsletter-socials a:hover {
    opacity: 1;
}

.pm-newsletter-socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES (PRO-LEVEL LUXURY FINISH)
   ========================================================================== */
@media (max-width: 768px) {
    .pm-hero-section {
        padding: 10px 0 16px;
    }

    .pm-hero-slider-wrap {
        border-radius: 12px;
    }

    .pm-hero-banner-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .pm-hero-content {
        padding: 20px 16px 12px 16px;
        max-width: 100%;
    }

    .pm-hero-pill-tag {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 8px;
    }

    .pm-hero-headline {
        font-size: 26px !important;
        line-height: 1.2 !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 8px !important;
    }

    .pm-hero-subheadline {
        font-size: 13px !important;
        line-height: 1.45 !important;
        margin-bottom: 14px !important;
    }

    .pm-hero-cta-group {
        display: flex;
        flex-direction: row;
        gap: 8px;
        margin-bottom: 14px;
        width: 100%;
    }

    .pm-btn-hero-primary,
    .pm-btn-hero-outline {
        flex: 1;
        padding: 10px 12px !important;
        font-size: 13px !important;
        text-align: center;
        border-radius: 25px !important;
    }

    .pm-hero-trust-bullets {
        gap: 10px;
        font-size: 11px;
    }

    .pm-hero-visual-card {
        padding: 0 16px 16px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .pm-hero-img-box {
        max-width: 100%;
        border-radius: 10px;
    }

    .pm-hero-photo {
        height: 220px !important;
    }

    .pm-hero-floating-badge {
        bottom: 10px;
        left: 10px;
        padding: 6px 10px;
        gap: 6px;
        border-radius: 8px;
    }

    .pm-hero-floating-badge strong {
        font-size: 11px;
    }

    .pm-hero-floating-badge span {
        font-size: 10px;
    }

    .pm-hero-slider-dots {
        bottom: 8px;
        right: 50%;
        transform: translateX(50%);
    }

    /* Category Strip Mobile Horizontal Smooth Scroll */
    .pm-category-icons-section {
        padding: 10px 0 14px;
    }

    .pm-category-icons-grid {
        display: flex !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding: 4px 16px 8px 16px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: flex-start !important;
    }

    .pm-category-icons-grid::-webkit-scrollbar {
        display: none !important;
    }

    .pm-cat-icon-item {
        min-width: 64px !important;
        flex-shrink: 0 !important;
    }

    .pm-cat-icon-circle {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 4px !important;
    }

    .pm-cat-icon-name {
        font-size: 10px !important;
    }

    /* Mobile Section Headers & Deals Countdown */
    .pm-section-header {
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        margin-bottom: 12px;
    }

    .pm-section-title-wrap {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        flex: 1;
    }

    .pm-section-title {
        font-size: 17px !important;
    }

    .pm-section-title svg {
        width: 18px !important;
        height: 18px !important;
    }

    .pm-deals-countdown {
        font-size: 11px !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
        gap: 4px !important;
    }

    .pm-countdown-digit {
        font-size: 11px !important;
        padding: 1px 4px !important;
    }

    .pm-view-all-link {
        font-size: 12px !important;
        margin-left: auto;
    }

    /* Trust Strip 2-Column Grid on Mobile */
    .pm-trust-strip {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 14px 12px !important;
    }

    .pm-trust-item {
        gap: 8px !important;
    }

    .pm-trust-icon {
        width: 34px !important;
        height: 34px !important;
    }

    .pm-trust-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    .pm-trust-title {
        font-size: 12px !important;
    }

    .pm-trust-desc {
        font-size: 10px !important;
    }

    /* Promo Banners Mobile Touch Up */
    .pm-promo-grid {
        gap: 12px !important;
        margin: 16px 0 !important;
    }

    .pm-promo-card {
        min-height: 150px !important;
        padding: 16px 18px !important;
    }

    .pm-promo-title {
        font-size: 16px !important;
    }

    .pm-promo-desc {
        font-size: 11px !important;
        margin-bottom: 10px !important;
    }

    .pm-promo-btn {
        font-size: 11px !important;
        padding: 6px 14px !important;
    }
}

