:root {
    --p3-primary: #0f4c81;
    --p3-accent: #8bce09;
    --p3-dark: #07101d;
    --p3-darker: #040914;
    --p3-light: #f8fafc;
    --p3-glow: 0 0 30px rgba(139, 206, 9, 0.4);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--p3-light);
    color: #334155;
    overflow-x: hidden;
}

/* Theme Hero Section */
.p3-hero {
    position: relative;
    background: linear-gradient(135deg, #061329 0%, #0c335e 50%, #074b26 100%);
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
}

.p3-hero .container {
    position: relative;
    z-index: 2;
}

.p3-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #a3c4f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.p3-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--p3-accent);
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(139, 206, 9, 0.4);
}

.p3-hero-desc {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Interactive 360 Showcase Container in Hero */
.p3-hero-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
}

.p3-panel-img {
    max-height: 550px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
    z-index: 5;
}

.p3MainSwiper .swiper-slide img {
    aspect-ratio: 16:9;
    max-height: 100%;
    object-fit: contain;
    height: 600px;
}

/* 360 Rotator specifics */
#p3Viewer360 {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 6;
    cursor: grab;
    perspective: 1200px;
}

#p3Viewer360:active {
    cursor: grabbing;
}

#p3RotatorWrap {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

#p3RotatorWrap img {
    max-height: 550px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* Floating Stats in Hero */
.p3-stat-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: floatStat 4s infinite ease-in-out alternate;
}

.p3-stat-float.top-right {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.p3-stat-float.bottom-left {
    bottom: 15%;
    left: 0%;
    animation-delay: 1s;
}

.p3-stat-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--p3-accent);
    line-height: 1.1;
}

.p3-stat-lbl {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

@keyframes floatStat {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-15px);
    }
}

/* Buttons */
.p3-btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.p3-btn-primary {
    background: var(--p3-accent);
    color: #0d3866;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(139, 206, 9, 0.3);
}

.p3-btn-primary:hover {
    background: #ffffff;
    color: #0f4c81;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.p3-btn-360 {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.p3-btn-360:hover,
.p3-btn-360.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* Features Strip */
.p3-features-strip {
    background: #ffffff;
    padding: 60px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.05);
}

.p3-feature-box {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.p3-feature-box:hover {
    transform: translateY(-10px);
}

.p3-f-icon {
    font-size: 2.5rem;
    color: var(--p3-primary);
    margin-bottom: 15px;
    background: #f0f4f8;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.p3-feature-box:hover .p3-f-icon {
    background: var(--p3-accent);
    color: #ffffff;
    box-shadow: var(--p3-glow);
}

.p3-f-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.p3-f-desc {
    font-size: 0.9rem;
    color: #64748b;
}

/* Data Tabs Section */
.p3-data-section {
    padding: 80px 0;
    background: var(--p3-light);
}

.p3-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--p3-primary);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.p3-nav-tabs {
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--p3-primary) #f1f5f9;
}

.p3-nav-tabs::-webkit-scrollbar {
    height: 6px;
}

.p3-nav-tabs::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.p3-nav-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.p3-nav-tabs .nav-item {
    flex-shrink: 0;
}

.p3-nav-tabs .nav-link {
    border: none;
    background: #ffffff;
    color: #64748b;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 35px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.p3-nav-tabs .nav-link:hover {
    color: var(--p3-primary);
    transform: translateY(-2px);
}

.p3-nav-tabs .nav-link.active {
    background: var(--p3-primary);
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(15, 76, 129, 0.3);
}

.p3-tab-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.p3-data-table,
.p3-tab-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    margin: 20px 0;
}

.p3-data-table th,
.p3-data-table td,
.p3-tab-content table th,
.p3-tab-content table td {
    padding: 18px 20px !important;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    vertical-align: middle !important;
}

.p3-data-table th,
.p3-tab-content table th {
    font-weight: 700 !important;
    color: #334155 !important;
    width: 40% !important;
    background: rgba(248, 250, 252, 0.5) !important;
    text-align: left !important;
}

.p3-data-table td,
.p3-tab-content table td {
    font-weight: 600 !important;
    color: var(--p3-primary) !important;
}

.p3-data-table tr:hover td,
.p3-data-table tr:hover th,
.p3-tab-content table tr:hover td,
.p3-tab-content table tr:hover th {
    background-color: rgba(241, 245, 249, 0.5) !important;
}

.p3-data-table tr:last-child th,
.p3-data-table tr:last-child td,
.p3-tab-content table tr:last-child th,
.p3-tab-content table tr:last-child td {
    border-bottom: none !important;
}


/* Warranty Banner Redesign */
.p3-warranty-banner {
    background: #ffffff;
    padding: 60px;
    border-radius: 20px;
    color: var(--p3-primary);
    margin: 40px 0 80px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.p3-warranty-banner .text-white-50 {
    color: #64748b !important;
}

.p3-w-icon {
    font-size: 4rem;
    color: var(--p3-accent);
    margin-bottom: 20px;
}

.p3-cert-logos img {
    height: 55px;
    max-width: 130px;
    margin: 6px 8px;
    background: #ffffff;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p3-cert-logos img:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Product Gallery */
.p3-gallery {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.p3GallerySwiper {
    padding-bottom: 50px;
}

.p3GallerySwiper .swiper-button-next,
.p3GallerySwiper .swiper-button-prev {
    color: var(--p3-primary);
}

.p3GallerySwiper .swiper-pagination-bullet-active {
    background: var(--p3-accent);
}

/* 360 Tooltip */
.p3-360-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--p3-dark);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10;
    pointer-events: none;
}

#p3Viewer360.active~.p3-360-hint {
    display: block;
    animation: pulseHint 2s infinite;
}

@keyframes pulseHint {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateX(-50%) scale(1.05);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.8;
    }
}

@media (max-width: 991px) {
    .p3-hero {
        padding: 120px 0 60px;
        text-align: center;
    }

    .p3-title {
        font-size: 2.8rem;
    }

    .p3-subtitle {
        font-size: 1.5rem;
    }

    .p3-btn-group {
        justify-content: center;
    }

    .p3-stat-float {
        display: none;
    }

    .p3-hero-showcase {
        height: 400px;
        margin-top: 40px;
    }

    .p3-panel-img,
    #p3RotatorWrap img {
        max-height: 380px;
    }

    .p3-nav-tabs {
        justify-content: flex-start;
        flex-direction: row;
    }

    .p3-warranty-banner {
        padding: 40px 20px;
        text-align: center;
    }
}