/* =========================================
   Product Detail Page Styles
   ========================================= */

/* -------------------------------------------------------------------------- */
/* 1. Hero Section */
/* -------------------------------------------------------------------------- */
.product-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 0 60px;
    margin-top: 0;
    color: white;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: -1.5vh;
    left: 0;
    width: 100%;
    height: 110%;
    /* Updated to match Home Page/Dark Theme */
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    z-index: 0;
}

/* Updated CTA Buttons to match Home Page Design */
.product-hero .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start; /* Default desktop alignment */
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Button Base Styles */
.product-hero .cta-buttons a {
    position: relative;
    overflow: hidden;
    border-radius: 60px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Primary Button Style (Matches Home Page Primary) */
.product-hero .cta-buttons .btn-white {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.product-hero .cta-buttons .btn-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4);
    color: white;
}

/* Secondary Button Style (Matches Home Page Secondary) */
.product-hero .cta-buttons .btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
}

.product-hero .cta-buttons .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mobile Alignment and Layout (Matches Home Page Mobile) */
@media (max-width: 768px) {
    h2, .section-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }

    .product-hero .cta-buttons {
        justify-content: center !important;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        width: 100%;
    }
    
    .product-hero .cta-buttons a {
        width: auto !important;
        padding: 14px 22px;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    /* Fix height mismatch for primary button on mobile */
    .product-hero .cta-buttons .btn-white {
        border: 2px solid transparent;
    }

    /* Center text content on mobile */
    .product-hero-content {
        text-align: center;
    }
    
    .hero-text h1, 
    .hero-text .subtitle, 
    .hero-text p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Subtitle visible again, width matched to image */
    .hero-text .subtitle {
        display: block !important;
        margin-top: 15px;
        margin-bottom: 15px;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
        line-height: 1.4;
        text-align: center !important;
    }

    /* Hide description paragraph on mobile */
    .hero-text p:not(.subtitle) {
        display: none !important;
    }

    /* Make hero visual square on mobile */
    .hero-visual {
        height: auto;
        aspect-ratio: 1 / 1;
        width: 100%;
        max-width: 350px; /* Optional: prevent it from being too huge */
        margin: 0 auto;
    }
}

.product-hero > .container {
    position: relative;
    z-index: 1;
}

.product-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin: 0 auto 1.5rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
    position: relative;
    text-align: left;
    width: 100%;
    display: block;
    top: 0;
    opacity: 0;
    animation: slideDown 0.8s ease-out forwards;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-visual {
    position: relative;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual .hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-visual .hero-slide {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-visual .hero-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.hero-visual .hero-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
}

.hero-visual .hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0;
}

.hero-visual .hero-dot.active { 
    background: #ffffff; 
    box-shadow: 0 0 0 2px rgba(255,255,255,0.4); 
}

/* -------------------------------------------------------------------------- */
/* 2. Animations */
/* -------------------------------------------------------------------------- */
@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* -------------------------------------------------------------------------- */
/* 3. Product Overview */
/* -------------------------------------------------------------------------- */
.product-overview {
    padding: 5rem 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 2rem;
    padding: 0;
    color: #333;
    line-height: 1.2;
    display: block;
    text-align: center;
    position: relative;
    width: 100%;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: slideDown 0.8s ease-out forwards;
}

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.overview-content,
.quick-specs,
.alloy-card,
.application-card {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

.overview-content h3 {
    color: #333;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    text-align: left;
    width: 100%;
    display: block;
    font-weight: 600;
    line-height: 1.3;
}

.overview-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.overview-content ul {
    color: #666;
    text-align: justify;
    margin-left: 3.5rem;
}

/* -------------------------------------------------------------------------- */
/* 4. Quick Specs */
/* -------------------------------------------------------------------------- */
.quick-specs {
    background: linear-gradient(135deg, #333, #555);
    padding: 3rem 2.5rem;
    margin-top: 4.5rem;
    border-radius: 20px;
    height: fit-content;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.quick-specs::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

.quick-specs h4 {
    color: white;
    margin: 0 auto 2rem;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    width: 100%;
    display: block;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.spec-value {
    color: white;
    font-weight: 700;
}

/* -------------------------------------------------------------------------- */
/* 5. Alloy Types & Flip Cards */
/* -------------------------------------------------------------------------- */
.alloy-types-section, .forms-section {
    padding: 5rem 0;
    background: #f8f9fa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 420px;
    perspective: 1000px;
    position: relative;
}

.flip-card::after {
    content: '↻';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.2rem;
    color: rgba(31, 41, 55, 0.6);
    z-index: 10;
    transition: all 0.3s ease;
    pointer-events: none;
}

.flip-card:hover::after {
    color: #4b5563;
    transform: rotate(180deg);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card.clicked .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 41, 55, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.flip-card-front {
    background: white;
    border: 1px solid rgba(31, 41, 55, 0.2);
}

.circular-badge {
    width: 320px;
    height: 200px;
    aspect-ratio: 3 / 2;
    background: transparent !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
    border: none !important;
    animation: none !important;
}

.circular-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.card-tagline {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flip-instruction {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(31, 41, 55, 0.7);
    font-weight: 400;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.flip-card:hover .flip-instruction {
    opacity: 1;
    color: #4b5563;
}

.flip-card-back {
    background: #fefefe;
    color: #2c3e50;
    transform: rotateY(180deg);
    justify-content: center;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border: 2px solid #34495e;
    box-shadow: inset 0 0 20px rgba(52, 73, 94, 0.05);
    overflow: hidden;
    min-height: 300px;
}

.back-header {
    text-align: center;
    width: 100%;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #34495e;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #4b5563;
}

.back-title {
    font-size: 1.3rem !important;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    color: #2c3e50;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.grade-chip {
    background: #4b5563;
    color: #fefefe;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    border: 1px solid #1f2937;
    display: block;
    margin: 0 auto;
    width: fit-content;
}

.back-description {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #34495e;
    text-align: center;
    font-style: italic;
    font-family: 'Inter', sans-serif;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.5rem;
    flex-shrink: 0;
}

.applications-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
    padding: 0.5rem;
    margin-top: auto;
    gap: 0.5rem;
    min-height: 100px;
    justify-content: center;
}

.applications-row {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 0;
    align-items: center;
}

.applications-list::before {
    content: 'APPLICATIONS';
    display: block;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 0.4rem;
}

.app-pill {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 15px;
    padding: 0.2rem 0.45rem;
    display: inline-block;
    transition: all 0.3s ease;
    color: #495057;
    font-size: 0.66rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    white-space: nowrap;
    flex-shrink: 0;
}

.applications-row .app-pill { flex: 0 0 auto; display: inline-flex; align-items: center; }

.app-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    display: inline-block;
    visibility: visible;
}

.app-pill span {
    font-size: 0.72rem;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0;
    display: inline-block;
    visibility: visible;
}

/* -------------------------------------------------------------------------- */
/* 6. Applications Section */
/* -------------------------------------------------------------------------- */
.applications-section {
    padding: 3rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.applications-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    opacity: 0.5;
    pointer-events: none;
}

.applications-section .section-title {
    color: #333;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.applications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    justify-content: center;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.application-card {
    flex: 0 0 calc(25% - 1.2rem);
    max-width: 270px;
    min-width: 200px;
    background: white;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.application-card:nth-child(n+5) { margin-top: 1rem; }

.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.application-card:hover::before { opacity: 1; }

.application-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

.applications-section .app-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: all 0.4s ease;
    transform: translateZ(20px);
    text-align: center;
    width: 100%;
}

.application-card:hover .app-icon {
    transform: scale(1.3) rotate(10deg) translateZ(30px);
}

.application-card h4 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.application-card:hover h4 { color: #007bff; }

.application-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 300;
    transform: translateZ(5px);
}

.application-card:hover p {
    color: #555;
    transform: translateZ(10px);
}

/* -------------------------------------------------------------------------- */
/* 7. Technical Specs */
/* -------------------------------------------------------------------------- */
.technical-specs {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.specs-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th {
    background: linear-gradient(135deg, #696969, #A9A9A9);
    color: white;
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 600;
}

.specs-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #dee2e6;
    color: #333;
}

.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:nth-child(even) { background: #f8f9fa; }

/* -------------------------------------------------------------------------- */
/* 8. Related Products */
/* -------------------------------------------------------------------------- */
.related-products {
    padding: 5rem 0;
    background: white;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.related-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(105, 105, 105, 0.1);
    text-decoration: none;
    color: inherit;
}

.related-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.related-card h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* 9. CTA Section */
/* -------------------------------------------------------------------------- */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #333, #555);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    animation: float 6s ease-in-out infinite;
}

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

.cta-content h2 {
    color: white;
    margin-bottom: 2rem;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
}

.btn-white {
    background: white;
    color: #007bff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 3px solid white;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-white:hover {
    background: transparent;
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.btn-outline-white {
    background: transparent;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 3px solid white;
    font-size: 1.1rem;
}

.btn-outline-white:hover {
    background: white;
    color: #007bff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* -------------------------------------------------------------------------- */
/* 10. Key Advantages */
/* -------------------------------------------------------------------------- */
.advantages-section {
    padding: 5rem 0;
    background: #f8f9fa; /* Light grey background */
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.advantage-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.advantage-card h4 {
    color: #333;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.advantage-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Ensure section title has the underline */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #007bff;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Responsive for Advantages */
@media (max-width: 991px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-card {
        padding: 2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .product-hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        text-align: center;
        font-size: 2.5rem;
    }

    /* Center section intro text on mobile */
    .section-intro {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* Mobile adjustments for flip card header and toggle overlap */
    .back-header {
        margin-bottom: 0.4rem !important;
        padding-bottom: 0.3rem !important;
        padding-top: 5px;
    }

    .flip-toggle-button {
        top: 5px !important;
        right: 8px !important;
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 0.9rem;
    }
    
    .hero-visual {
        height: auto !important;
        aspect-ratio: 1 / 1;
        width: 100%;
        max-width: 350px;
        margin: 20px auto;
    }
    
    /* Narrower width for Product Overview on mobile */
    .product-overview .container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 95%; /* Slightly reduce container width */
        margin: 0 auto;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .quick-specs {
        margin-top: 2rem;
        padding: 2rem 1.5rem; /* Reduced padding inside the card */
        width: 100%; /* Ensure it doesn't overflow */
        box-sizing: border-box;
    }
    
    .overview-content ul {
        margin-left: 1rem;
    }

    /* Adjust container padding for Forms section to give more breathing room */
    .forms-section .container {
        padding-left: 50px;
        padding-right: 50px;
    }

    /* CTA Section Mobile Redesign */
    .cta-section {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important; /* Match Products Page */
        padding: 60px 0;
    }

    .cta-section .cta-content h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .cta-section .cta-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .cta-section .cta-buttons {
        flex-direction: row; /* Keep buttons side-by-side like Hero */
        flex-wrap: nowrap;
        gap: 12px;
        justify-content: center;
        width: 100%;
    }

    /* Style primary buttons (btn-white or btn-primary) to match Hero Primary */
    .cta-section .btn-white,
    .cta-section .btn-primary {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
        width: auto;
        padding: 14px 22px;
        font-size: 0.95rem;
        border-radius: 60px;
        white-space: nowrap;
    }

    /* Style secondary buttons (btn-outline-white or btn-secondary) to match Hero Secondary */
    .cta-section .btn-outline-white,
    .cta-section .btn-secondary {
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(20px);
        box-shadow: none;
        width: auto;
        padding: 14px 22px;
        font-size: 0.95rem;
        border-radius: 60px;
        white-space: nowrap;
    }

    /* Horizontal scrolling for Available Forms (Flip Cards) */
    .flip-cards-grid {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 20px; /* Space for scrollbar if visible or just breathing room */
        scroll-snap-type: x mandatory;
        scroll-padding-left: 55px; /* Ensures items snap to the start of the content area */
        -webkit-overflow-scrolling: touch;
        margin-top: 2rem;
        
        /* Start the cards with a larger gap from the left edge */
        padding-left: 55px;
        padding-right: 55px;
        
        margin-left: -20px; /* Pull out to edge */
        margin-right: -20px; /* Pull out to edge */
        width: calc(100% + 40px); /* Compensate for negative margins */
    }

    .flip-cards-grid::-webkit-scrollbar {
        display: none;
    }

    .flip-card {
        flex: 0 0 65vw;
        width: 65vw;
        scroll-snap-align: start; /* Snap to the start (left) instead of center */
        margin-bottom: 0; /* Reset any bottom margin */
        height: 350px;
    }

    .circular-badge {
        width: 100%;
        max-width: 300px;
        height: 200px;
        margin: 0 auto 15px;
    }

    .purity-text {
        font-size: 1.1rem;
    }

    /* Remove shadow on mobile */
    .flip-card-front, .flip-card-back {
        box-shadow: none !important;
        border: 1px solid rgba(0,0,0,0.1); /* Ensure border is visible */
    }

    .card-title {
        font-size: 1.3rem !important;
    }

    /* Mobile fix for text touching edges - allow wrapping and add padding */
    .card-tagline {
        white-space: normal !important;
        padding-left: 15px;
        padding-right: 15px;
        line-height: 1.4;
    }

    .back-description {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Adjust container padding for Advantages section to give more breathing room */
    .advantages-section .container {
        padding-left: 45px;
    }

    /* Horizontal scrolling for Advantages Section */
    .advantages-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start !important; /* Ensure start alignment */
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 55px;
        -webkit-overflow-scrolling: touch;
        margin-top: 2rem;
        
        /* Spring effect spacing */
        padding-left: 55px;
        padding-right: 55px;
        
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        
        /* Reset grid properties */
        grid-template-columns: none !important;
    }

    .advantages-grid::-webkit-scrollbar {
        display: none;
    }

    .advantage-card {
        flex: 0 0 65vw;
        width: 65vw;
        max-width: none;
        min-width: auto;
        scroll-snap-align: start;
        margin-top: 0 !important;
        margin-bottom: 0;
    }

    /* Adjust container padding for Applications section to give more breathing room */
    .applications-section .container {
        padding-left: 45px;
    }

    /* Horizontal scrolling for Applications Section */
    .applications-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start !important; /* Ensure start alignment */
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 55px;
        -webkit-overflow-scrolling: touch;
        margin-top: 2rem;
        
        /* Spring effect spacing */
        padding-left: 55px;
        padding-right: 55px;
        
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }

    .applications-grid::-webkit-scrollbar {
        display: none;
    }

    .application-card {
        flex: 0 0 65vw;
        width: 65vw;
        max-width: none;
        min-width: auto;
        scroll-snap-align: start;
        margin-top: 0 !important;
        margin-bottom: 0;
    }

    /* Adjust container padding for Related Products to match other sections */
    .related-products .container {
        padding-left: 20px;
    }

    /* Related Products Section - Horizontal Scroll Override */
    .related-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 20px;
        -webkit-overflow-scrolling: touch;
        margin-top: 2rem;
        
        /* Spring effect spacing */
        padding-left: 20px;
        padding-right: 20px;
        
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        
        /* Reset grid properties */
        grid-template-columns: none !important;
    }
    
    .related-grid::-webkit-scrollbar {
        display: none;
    }

    .related-card {
        flex: 0 0 65vw !important;
        width: 65vw !important;
        max-width: none !important;
        min-width: auto !important;
        scroll-snap-align: start;
        margin-top: 0 !important;
        margin-bottom: 0;
    }
}
