/* ==========================================================================
   HOMEPAGE STYLES - FREQUENCY APPLIANCES
   ========================================================================== */

/* Section Padding & Headers */
.section-padding-sm {
    padding: 2.5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: 16px;
}

.section-header-row .section-desc {
    margin: 0;
}

/* ==========================================================================
   SECTION 1: HERO BANNER (60FPS PHOTONIC CANVAS + SPOTLIGHT + ORBITAL RINGS)
   ========================================================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #090E17 0%, #0F172A 50%, #1E293B 100%);
    color: var(--color-text-light);
    padding: 70px 0 80px;
    overflow: hidden;
    min-height: 520px;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-spotlight {
    position: absolute;
    width: 580px;
    height: 580px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(2, 132, 199, 0.05) 45%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-overlay {
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(circle at 75% 40%, rgba(2, 132, 199, 0.15) 0%, transparent 55%),
                radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 45%);
    pointer-events: none;
    z-index: 1;
}

.hero-container-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    color: #FFFFFF;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.12rem;
    color: #CBD5E1;
    margin-bottom: 26px;
    line-height: 1.6;
}

/* Hero Search Box */
.hero-search-box {
    margin-bottom: 24px;
    max-width: 580px;
}

.hero-search-form {
    display: flex;
    background: #FFFFFF;
    padding: 5px;
    border-radius: var(--border-radius-full);
    box-shadow: 0 16px 28px -4px rgba(0, 0, 0, 0.35);
    gap: 8px;
}

.hero-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 14px;
    color: var(--color-text-muted);
}

.hero-input-wrapper input {
    border: none !important;
    background: transparent !important;
    padding: 10px 12px !important;
    font-size: 0.95rem !important;
    color: var(--color-primary) !important;
    width: 100%;
}

.hero-input-wrapper input:focus {
    box-shadow: none !important;
}

.hero-search-form .btn {
    flex-shrink: 0;
    border-radius: var(--border-radius-full);
    padding: 11px 26px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Model Stage: No borders, 3D floating presence with orbital rings */
.hero-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-model-stage {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 460px;
}

.orbital-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.ring-1 {
    width: 440px;
    height: 440px;
    border: 1.5px dashed rgba(56, 189, 248, 0.35);
    animation: faOrbitRotate 30s linear infinite;
}

.ring-2 {
    width: 350px;
    height: 350px;
    border: 1.5px dotted rgba(14, 165, 233, 0.3);
    animation: faOrbitRotateRev 22s linear infinite;
}

.ring-3 {
    width: 520px;
    height: 520px;
    border: 1px solid rgba(56, 189, 248, 0.12);
}

.model-ambient-glow {
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.32) 0%, rgba(56, 189, 248, 0.12) 45%, transparent 70%);
    filter: blur(35px);
    z-index: 0;
    animation: faPulseGlow 4s ease-in-out infinite alternate;
}

.hero-model-img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.55));
    transition: transform 0.4s ease;
}

.hero-model-stage:hover .hero-model-img {
    transform: translateY(-4px) scale(1.02);
}

@keyframes faOrbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes faOrbitRotateRev {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes faPulseGlow {
    0% { transform: scale(0.92); opacity: 0.6; }
    100% { transform: scale(1.08); opacity: 0.95; }
}

/* ==========================================================================
   SECTION 2: BULK SUPPLIERS
   ========================================================================== */
.bulk-suppliers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.supplier-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--box-shadow-sm);
}

.supplier-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--color-secondary);
}

.supplier-img-box {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    width: 100%;
}

.supplier-img-box img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.supplier-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* ==========================================================================
   SECTION 3: SOURCE BANNER
   ========================================================================== */
.source-banner-section {
    background: var(--color-primary);
    color: #FFFFFF;
    padding: 45px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.source-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.source-subtitle {
    font-size: 1.05rem;
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.source-url {
    font-size: 0.88rem;
    color: #94A3B8;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   SECTION 4: ABOUT & FEATURES (WITH BODY-BANNER.WEBP)
   ========================================================================== */
.about-info-box {
    position: relative;
    background-color: #FFFFFF;
    background-image: url('../../../../uploads/2024/06/body-banner.webp');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 44px 48px;
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.about-info-content {
    margin-left: auto;
    max-width: 580px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 34px 38px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.85);
    position: relative;
    z-index: 2;
}

.about-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.about-bullets {
    list-style: square;
    padding-left: 20px;
    margin-bottom: 24px;
}

.about-bullets li {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.about-btn-wrap {
    margin-top: 20px;
}

.features-trio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-trio-card {
    padding: 28px 24px;
    text-decoration: none;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.feature-trio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--color-secondary);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #E0F2FE;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-trio-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.feature-trio-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.55;
}

/* ==========================================================================
   SECTION 5: WE STOCK PARTS FOR YOUR (COMPACT PRODUCT CARDS)
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #FFFFFF;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--color-secondary);
}

.product-img-wrap {
    display: block;
    position: relative;
    padding-top: 80%;
    background: #F8FAFC;
    overflow: hidden;
}

.product-img-wrap .product-img-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-subtle);
}

/* Floating Cart Icon Action on Desktop Hover & Always Visible on Mobile */
.product-card-floating-action {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 5;
}

.product-card-floating-action .button {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: var(--color-secondary) !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
    cursor: pointer !important;
    opacity: 0;
    transform: translateY(6px) scale(0.9);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Shopping Cart SVG Mask */
.product-card-floating-action .button::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-color: #FFFFFF;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") no-repeat center / contain;
}

.product-card:hover .product-card-floating-action .button {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.product-card-floating-action .button:hover {
    background: #0369A1 !important;
    transform: translateY(-2px) scale(1.08) !important;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45) !important;
}

.product-card-floating-action .button:hover::before {
    background-color: #FFFFFF !important;
}

/* Checked/Added state */
.product-card-floating-action .button.added {
    background: #10B981 !important;
}

.product-card-floating-action .button.added::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* View cart pill injected by WooCommerce AJAX */
.product-card-floating-action a.added_to_cart.wc-forward {
    position: absolute;
    bottom: 46px;
    right: 0;
    background: #0F172A !important;
    color: #38BDF8 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: var(--border-radius-full) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    z-index: 6;
    animation: fadeInSlideUp 0.3s ease;
}

.product-card-floating-action a.added_to_cart.wc-forward:hover {
    background: #1E293B !important;
    color: #FFFFFF !important;
}

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    min-height: 38px;
}

.product-title a {
    color: var(--color-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a:hover {
    color: var(--color-secondary);
}

.product-price {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0;
}

/* ==========================================================================
   SECTION 6: BRAND LOGOS GRID
   ========================================================================== */
.brand-logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.brand-logo-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--box-shadow-sm);
    transition: all var(--transition-fast);
    min-height: 95px;
}

.brand-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--color-secondary);
}

.brand-logo-card img {
    max-height: 44px;
    max-width: 90%;
    width: auto;
    object-fit: contain;
    margin-bottom: 6px;
}

.brand-name-tag {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.brand-logo-card:hover .brand-name-tag {
    color: var(--color-secondary);
}

/* ==========================================================================
   SECTION 7: HOME CONTACT US
   ========================================================================== */
.home-contact-box {
    padding: 40px;
}

.notice-electrical {
    font-size: 0.88rem;
    font-weight: 600;
    color: #B45309;
    margin-top: 8px;
}

.home-contact-form-wrap {
    margin-top: 28px;
}

/* ==========================================================================
   SECTION 8: BRAND LOGO RUNNING MARQUEE BAR (ABOVE FOOTER)
   ========================================================================== */
.brand-marquee-section {
    background: #F8FAFC;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
    overflow: hidden;
    position: relative;
}

.brand-marquee-section::before,
.brand-marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    z-index: 3;
    pointer-events: none;
}

.brand-marquee-section::before {
    left: 0;
    background: linear-gradient(to right, #F8FAFC 0%, transparent 100%);
}

.brand-marquee-section::after {
    right: 0;
    background: linear-gradient(to left, #F8FAFC 0%, transparent 100%);
}

.marquee-track-container {
    width: 100%;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: faMarquee 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px 22px;
    min-width: 150px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.marquee-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    border-color: var(--color-secondary);
}

.marquee-item img {
    max-height: 42px;
    max-width: 110px;
    width: auto;
    object-fit: contain;
    display: block;
}

@keyframes faMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (HOMEPAGE)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-search-box {
        margin: 0 auto 24px;
    }
    .about-info-box {
        background-position: center top;
        padding: 30px;
    }
    .about-info-content {
        margin: 0 auto;
        max-width: 100%;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .brand-logos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-model-stage {
        max-width: 340px;
    }
    .ring-1 { width: 320px; height: 320px; }
    .ring-2 { width: 260px; height: 260px; }
    .ring-3 { width: 380px; height: 380px; }
    .model-ambient-glow { width: 240px; height: 240px; }
    .hero-model-img { max-height: 380px; }

    .bulk-suppliers-grid,
    .features-trio-grid {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Mobile: Floating action button is always visible */
    .product-card-floating-action .button {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
        pointer-events: auto !important;
    }
    .brand-logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .home-contact-box {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .product-grid,
    .brand-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-info-content {
        padding: 24px 20px;
    }
}
