/* ==========================================================================
   Products Page Specific Styles
   ========================================================================== */

/* General page-level styles from original file (unchanged) */
.page-hero {
    min-height: 280px;
    padding: 5rem 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background:
        linear-gradient(180deg, rgba(8, 19, 29, 0.95), rgba(8, 19, 29, 0.95)),
        url('https://images.unsplash.com/photo-1560958089-b8a1929cea89?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at right top, rgba(0, 208, 132, 0.1), transparent 34%),
        radial-gradient(circle at left bottom, rgba(0, 208, 132, 0.05), transparent 32%);
    pointer-events: none;
}

.page-hero-panel {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
}

.page-hero h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.9rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    animation: fadeInUp 1s ease-out 0.2s both;
    letter-spacing: -0.5px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.08rem;
    line-height: 1.8;
    max-width: 860px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.page-hero .page-hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    background: rgba(0, 208, 132, 0.1);
    border: 1px solid rgba(0, 208, 132, 0.25);
    color: #00D084;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    animation: slideDown 0.7s ease-out;
}

.page-hero .page-hero-kicker i {
    font-size: 1rem;
}

/* ==========================================================================
   New Products Section Styles - REFINED (promo-card style)
   ========================================================================== */

.products {
    padding: 3rem 3%;
    background-color: #08131d11;
    /* Dark navy background */
    position: relative;
    overflow: hidden;
    /* Contains glows */
}

/* Ambient lighting effect */
.products::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 30%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 208, 132, 0.08), transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.products::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 30%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 208, 132, 0.1), transparent 70%);
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.category-heading {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    /* color: #FFFFFF; */
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.3px;
}

.category-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #00D084;
    border-radius: 2px;
}

.category-heading span {
    color: rgba(29, 28, 28, 0.6);
    font-weight: 500;
    font-size: 1rem;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
    z-index: 1;
    align-items: stretch;
    /* Ensures cards in the same row have equal height */
}

/* ==========================================================================
   Product Card — promo style
   ========================================================================== */
.product-card {
    background:
        radial-gradient(circle at 82% 12%, rgba(0, 208, 132, 0.16), transparent 45%),
        linear-gradient(160deg, #0d1f2e 0%, #08131D 55%, #060d15 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 2.75rem;
    position: relative;
    min-height: 680px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    width: calc(50% - 12px);
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 50px rgba(0, 208, 132, 0.14);
    border-color: rgba(0, 208, 132, 0.35);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 28, 43, 0.55);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: -2;
    border-radius: 24px;
}

/* --- Diagonal corner ribbon badge (Popular / Premium / Fast Charge / Ultra Fast) --- */
.product-badge {
    display: block;
    position: absolute;
    top: 22px;
    left: -46px;
    width: 170px;
    padding: 0.45rem 0;
    text-align: center;
    transform: rotate(-45deg);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #08131D;
    background: linear-gradient(90deg, #00E893, #00B871);
    box-shadow: 0 6px 14px rgba(0, 208, 132, 0.35);
    z-index: 3;
}

.product-badge::before {
    content: '\f0e7';
    /* fa-bolt */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.35rem;
}

.product-badge::after {
    content: attr(data-label);
}

.product-badge.premium {
    background: linear-gradient(90deg, #ffd76a, #f5a623);
}

.product-badge.premium::before {
    content: '\f521';
    /* fa-gem */
}

.product-badge.fast-charging {
    background: linear-gradient(90deg, #00E893, #00B871);
}

.product-badge.ultra-fast {
    background: linear-gradient(90deg, #35c6ff, #0090d1);
}

.product-badge.ultra-fast::before {
    content: '\f0e7';
}

/* Main product image — dominant, spans nearly full card height on the right */
.product-icon {
    position: absolute;
    right: -2.5rem;
    top: 0.2rem;
    bottom: 6.75rem;
    /* stop above the CTA button so it never overlaps */
    width: 70%;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 24px 34px rgba(0, 0, 0, 0.55));
    transition: transform 0.4s ease-out;
    transform-origin: center;
    position: relative;
    z-index: 1;
}

.product-card:hover .product-icon img {
    transform: scale(1.06) translateY(-4px);
}

/* Ambient glow behind image */
.product-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 42%;
    width: 140%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 208, 132, 0.24) 0%, rgba(0, 208, 132, 0) 65%);
    filter: blur(34px);
    transition: opacity 0.4s ease;
    z-index: 0;
    opacity: 0.6;
}

.product-card:hover .product-icon::after {
    opacity: 1;
}

/* Glowing pedestal ring beneath the charger image */
.product-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4%;
    width: 82%;
    height: 12px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(0, 208, 132, 0.6) 0%, rgba(0, 208, 132, 0) 75%);
    filter: blur(7px);
    z-index: 0;
}

/* Content styling (constrained width to avoid image overlap) */
.product-name,
.brand-name,
.product-desc,
.product-specs,
.bullet-features {
    position: relative;
    z-index: 1;
    max-width: 46%;
}

/* Title — medium by default so long names wrap fully instead of truncating.
   Cards flagged "premium" (the flagship tier) get the larger display size. */
.product-name {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.4px;
    min-height: calc(0.2em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card:has(.product-badge.premium) .product-name {
    font-size: 2.6rem;
    line-height: 1.1;
    letter-spacing: -1.1px;
    min-height: calc(1.1em * 1);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

/* --- Spec pills: icon chip + bold value, stacked list --- */
.product-specs {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.spec-tag {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.product-card:hover .spec-tag {
    background: rgba(0, 208, 132, 0.06);
    border-color: rgba(0, 208, 132, 0.2);
}

.spec-tag i {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #00D084;
    background: rgba(0, 208, 132, 0.12);
    border: 1px solid rgba(0, 208, 132, 0.25);
    border-radius: 9px;
    margin-bottom: 0;
}

/* --- Trust indicator strip (bottom, full width, icon + label) --- */
.bullet-features {
    display: flex;
    list-style: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    justify-content: space-between;
    max-width: 100%;
}

.bullet-features li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem;
    position: relative;
    text-align: left;
}

.bullet-features li+li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.12);
}

.bullet-features li i {
    color: #00D084;
    font-size: 1rem;
    flex-shrink: 0;
}

/* --- Full-width CTA Button --- */
.btn-card {
    background: linear-gradient(90deg, #00D084, #059669);
    border: none;
    border-radius: 16px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 0;
    height: 60px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    margin-top: auto;
    width: 100%;
    z-index: 1;
    box-shadow: 0 10px 24px rgba(0, 208, 132, 0.18);
}

.btn-card::before {
    content: '\f0e7';
    /* fa-bolt */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.95rem;
}

.btn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 208, 132, 0.3);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .product-card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 1024px) {

    /* Tablet & Mobile: switch to a compact, single-column stacked layout.
       Starting this at 1024px (not 768px) avoids the awkward mid-size zone
       where the two-column absolute-positioned desktop layout used to run
       with a 70%-wide image and a 680px min-height. */
    .products {
        padding: 3rem 16px;
    }

    .products-grid {
        gap: 18px;
    }

    .product-card {
        width: 100%;
        padding: 1.75rem;
        min-height: 0;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .product-icon {
        order: -1;
        position: relative;
        width: 58%;
        height: auto;
        min-height: 210px;
        top: auto;
        bottom: auto;
        right: auto;
        z-index: 1;
        pointer-events: auto;
        margin: 0 auto 0.25rem;
    }

    .product-icon img {
        max-height: 100%;
        object-fit: contain;
    }

    .product-name,
    .brand-name,
    .product-desc,
    .product-specs,
    .bullet-features,
    .btn-card {
        max-width: 100%;
    }

    .product-name {
        font-size: 1.55rem;
        margin-top: 0;
        margin-bottom: 0.4rem;
        min-height: 0;
        -webkit-line-clamp: 2;
    }

    .product-card:has(.product-badge.premium) .product-name {
        font-size: 1.95rem;
        min-height: 0;
    }

    .brand-name {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .product-desc {
        font-size: 0.86rem;
        line-height: 1.5;
        margin-bottom: 0.85rem;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }

    .product-specs {
        flex-direction: row; /* Display spec tags horizontally */
        justify-content: center; /* Center the tags */
        gap: 0.5rem;
        margin-bottom: 0.85rem;
        max-width: 420px; /* Provide enough width for tags */
        margin-left: auto;
        margin-right: auto;
    }

    .spec-tag {
        padding: 0.55rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.6rem;
    }

    .spec-tag i {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .bullet-features {
        padding: 0.6rem 0.85rem;
        margin-bottom: 0.85rem;
    }

    .bullet-features li {
        font-size: 0.72rem;
        padding: 0 0.5rem;
    }

    .btn-card {
        height: 52px;
        font-size: 0.9rem;
        margin-top: 0.4rem;
    }

    .product-badge {
        left: -50px;
        top: 18px;
        width: 150px;
        font-size: 0.62rem;
    }
}

@media (max-width: 480px) {

    /* Small Mobile: tighter spacing still */
    .products {
        padding: 2.25rem 14px;
    }

    .products-grid {
        gap: 14px;
    }

    .product-card {
        padding: 1.25rem;
        gap: 0.6rem;
    }

    .product-icon {
        width: 74%;
        min-height: 185px;
        margin-bottom: 0.15rem;
    }

    .product-icon::before {
        display: none;
    }

    .product-name {
        font-size: 1.35rem;
    }

    .product-card:has(.product-badge.premium) .product-name {
        font-size: 1.6rem;
    }

    .product-desc {
        font-size: 0.8rem;
        margin-bottom: 0.65rem;
    }

    .product-specs {
        gap: 0.4rem;
        margin-bottom: 0.65rem;
    }

    .spec-tag {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
    }

    .bullet-features {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.6rem;
        margin-bottom: 0.65rem;
    }

    .bullet-features li {
        justify-content: center;
        padding: 0;
    }

    .bullet-features li+li::before {
        display: none;
    }

    .btn-card {
        height: 48px;
        font-size: 0.85rem;
    }
}