/* --- Global Theme Sync --- */
:root {
    --primary-dark: #2D1B4E;
    --accent-pink: #FF4B91;
    --accent-orange: #FF8E3C;
    --accent-purple: #A855F7;
    --accent-yellow: #FBBF24;
    --white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-extra-light: #FCFCFC;
    --text-gray: #6B7280;
    --border-light: #F3F4F6;
    --border-extra-light: #F9FAFB;

    --gradient-premium: linear-gradient(120deg, var(--accent-pink) 0%, var(--accent-orange) 50%, var(--accent-purple) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(255, 75, 145, 0.05) 0%, rgba(255, 142, 60, 0.03) 50%, rgba(168, 85, 247, 0.05) 100%);
    --gradient-chemistry: linear-gradient(90deg, var(--accent-pink) 0%, var(--accent-orange) 100%);
    --gradient-bg: linear-gradient(141.34deg, #FFF5F7 0%, #FFF9F5 50%, #F5F3FF 100%);
    --shadow-premium: 0px 10px 25px -5px rgba(45, 27, 78, 0.1), 0px 8px 10px -6px rgba(45, 27, 78, 0.05);
    --shadow-large: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-btn: 0px 15px 30px -10px rgba(255, 75, 145, 0.4);

    --global-radius: 1.25rem;
}

/* --- Specialized Construction & Tiling Solutions Icons --- */
.bw-pg-step-box img {
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    display: block;
}

.bw-pg-step-box:hover img {
    transform: scale(1.1) rotate(2deg);
}

.bw-pg-step-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.bw-pg-step-box h3 {
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.bw-pg-step-box p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* --- Global Section Settings --- */
body {
    font-family: 'Inter', 'Poppins', sans-serif;
    /* Added Inter from Figma */
    color: var(--text-gray);
    margin: 0;
    background: var(--bg-extra-light);
}

.bw-resin-catalog {
    background: var(--bg-extra-light);
}


.category-block {
    margin-bottom: 60px;
}

.cat-title {
    font-size: 1.6rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 12px;
}

.cat-title .dot {
    width: 14px;
    height: 14px;
    background: var(--accent-pink);
    border-radius: 50%;
}

/* --- 4-Box Grid System --- */
.resin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.resin-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    min-height: 250px;
    position: relative;
}

/* --- Card Icon Styling --- */
.resin-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: var(--accent-pink);
}

.resin-icon svg {
    width: 100%;
    height: 100%;
}


.resin-card h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin: 10px 0;
    font-weight: 700;
}

.resin-card p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* --- Hover Effects --- */
.resin-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--accent-pink);
}

.resin-card:hover .resin-icon {
    transform: scale(1.1);
}

/* --- Responsive Layout --- */
@media (max-width: 1150px) {
    .resin-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 550px) {
    .resin-grid {
        grid-template-columns: 1fr;
    }

    .section-main-title {
        font-size: 2rem;
    }
}

/* --- Redesigned Catalog Section --- */
.bw-resin-catalog {
    background: #fdf2f86e;
    /* Very light pink background */
    position: relative;
    overflow: hidden;
}

.catalog-header {
    margin-bottom: 60px;
    z-index: 2;
    position: relative;
}

.catalog-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-top: 10px;
}

/* Category Container with Glass effect */
.catalog-category {
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    position: relative;
}

.catalog-category.cat-yellow {
    background: rgba(251, 191, 36, 0.08);
    /* Yellowish / Amber */
}

.catalog-category.cat-green {
    background: rgba(16, 185, 129, 0.08);
    /* Greenish / Emerald */
}

.catalog-category.cat-blue {
    background: rgba(45, 85, 165, 0.08);
}

.catalog-category.cat-orange {
    background: rgba(255, 142, 60, 0.08);
}

.catalog-category.cat-yellow .catalog-cat-title {
    color: #D97706;
}

.catalog-category.cat-green .catalog-cat-title {
    color: #059669;
}

.catalog-category.cat-blue .catalog-cat-title {
    color: #1976D2;
}

.catalog-category.cat-orange .catalog-cat-title {
    color: #F57C00;
}

.catalog-cat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Feature Card (Recycled PET) */
.feature-resin-card {
    background: var(--white);
    border-radius: 24px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
    border: 1px solid transparent;
}

.feature-resin-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 75, 145, 0.2);
    box-shadow: 0 20px 40px rgba(255, 75, 145, 0.1);
}

.feature-img-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-img-circle {
    position: absolute;
    width: 100%;
    padding-bottom: 100%;
    background: radial-gradient(circle, rgba(255, 75, 145, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.feature-img-box img {
    width: 80%;
    height: auto;
    position: relative;
    z-index: 2;
    /* transform: rotate(-5deg); */
}

.feature-badge {
    background: #fff0f5;
    color: #ff4b91;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.feature-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 500px;
}

.feature-link {
    color: var(--accent-pink);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.feature-link:hover {
    gap: 15px;
}

/* Product Grid and Modern Cards */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.catalog-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.modern-product-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.modern-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

/* Category Specific Hovers */
.cat-yellow .modern-product-card:hover {
    border-color: #f59e0b;
}

.cat-green .modern-product-card:hover {
    border-color: #10b981;
}

.cat-blue .modern-product-card:hover {
    border-color: #3b82f6;
}

.cat-orange .modern-product-card:hover {
    border-color: #f97316;
}

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.card-icon-wrapper.yellow {
    background: rgba(251, 191, 36, 0.1);
    color: #B45309;
}

.card-icon-wrapper.green {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.card-icon-wrapper.orange {
    background: rgba(255, 142, 60, 0.1);
    color: var(--accent-orange);
}

.card-icon-wrapper.navy {
    background: rgba(45, 85, 165, 0.1);
    color: #2D55A5;
}

.card-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.modern-product-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.modern-product-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .feature-resin-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-img-box {
        order: -1;
    }

    .feature-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-link {
        justify-content: center;
    }

    .catalog-grid,
    .catalog-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .catalog-grid,
    .catalog-grid.grid-3 {
        grid-template-columns: 1fr;
    }

    .catalog-category {
        padding: 25px 15px;
    }
}

.chem-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
}

.py-100 {
    padding: 50px 0;
}

.chem-bg-soft {
    background: var(--bg-light);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* --- Specialized Tabs --- */
.chem-tabs-nav {
    background: rgba(255, 75, 145, 0.05);
    border-radius: 50px;
    display: inline-flex;
    padding: 8px;
    margin-bottom: 50px;
}

.chem-tab-btn {
    border: none;
    background: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 13px;
    transition: 0.3s;
}

.chem-tab-btn.active {
    background: linear-gradient(135deg, #FF5F6D, #7B61FF);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(123, 97, 255, 0.25);
}

.chem-tab-content {
    display: none;
}

.chem-tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.chem-hero-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.chem-spec-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--white);
    border-radius: var(--global-radius);
    padding: 50px;
    border: 2px solid var(--accent-pink);

}

.chem-spec-info {
    flex: 1;
}

.chem-spec-visual {
    flex: 1.2;
    display: flex;
    gap: 5px;
    justify-content: space-evenly;
}

.chem-spec-visual img {
    width: 30%;
    border-radius: 20px;
    object-fit: cover;
    height: auto;
}

.chem-feat-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.chem-feat-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-dark);
}

.chem-feat-list .check {
    color: var(--accent-pink);
    font-size: 1.2rem;
}

.hero-visual iframe {
    width: 400px;
    height: 400px;
    border: none;
    filter: drop-shadow(0 20px 40px rgba(45, 27, 78, 0.15));
    /* Updated to use Navy shadow */
    transition: transform 0.3s ease;
}

.hero-visual:hover iframe {
    transform: scale(1.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Perks Section Styles --- */
.perks-section {
    font-family: 'Inter', sans-serif;
    background: var(--white);
}

.perks-inner {
    padding: 0 30px;
}

.perk-box {
    width: 100%;
    border: 2px solid var(--accent-pink);
    /* Updated from hardcoded blue */
    border-radius: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 10px;
    box-sizing: border-box;
    position: relative;
    gap: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.perk-box:nth-child(odd) {
    background-color: var(--bg-light);
}

.perk-box:nth-child(even) {
    background-color: var(--white);
}

.perk-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    gap: 10px;
}

.perk-content.reverse {
    flex-direction: row-reverse;
}

.perk-text {
    flex: 1;
    min-width: 0;
}

.perk-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.perk-img img {
    max-width: 100px;
    height: auto;
    display: block;
}

.perk-box::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 15px;
    width: 8px;
    background-color: var(--perk-color, var(--accent-pink));
}

.perk-box.left-line::before {
    left: 0;
}

.perk-box.right-line::before {
    right: 0;
}

.perk-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 8px 0;
    color: var(--perk-color, var(--primary-dark));
}

.perk-text p {
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: var(--text-gray);
}

/* --- Mobile Fixes --- */
@media (max-width: 1024px) {
    .chem-hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .chem-hero-info {
        order: 1;
    }

    .hero-visual {
        order: 2;
        margin: 20px 0;
    }

    .hero-visual iframe {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }

    .chem-spec-flex {
        flex-direction: column;
        text-align: left;
        padding: 30px 20px;
        gap: 30px;
    }

    .chem-spec-visual {
        width: 100%;
        flex-direction: row;
    }

    .chem-spec-visual img {
        width: 30%;
    }

    .chem-main-title {
        font-size: 2.5rem;
    }

    .chem-cat-grid,
    .chem-resins-grid,
    .chem-gel-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .chem-tabs-nav {
        padding: 5px;
        margin-bottom: 30px;
        width: auto;
        display: flex;
    }

    .chem-tab-btn {
        padding: 10px 12px;
        font-size: 11px;
        flex: 1;
    }

    .chem-spec-visual img {
        width: 100%;
    }

    .hero-visual iframe {
        max-width: 280px;
        height: 280px;
    }

    .chem-spec-visual {
        flex-direction: row;
    }

    .chem-spec-visual img {
        width: 50%;
    }

    .perk-box {
        flex-direction: column;
        padding: 20px 15px;
    }

    .perk-content,
    .perk-content.reverse {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .perk-text {
        display: contents;
    }

    .perk-title {
        order: 1;
        font-size: 21px;
    }

    .perk-img {
        order: 2;
        width: 100%;
    }

    .perk-text p {
        order: 3;
        font-size: 16px;
        margin-top: 10px;
    }

    .perk-img img {
        max-width: 100px;
    }
}

/* --- CTA Section --- */
.chem-cta-section {
    padding: 80px 0;
}

.chem-cta-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 3px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-premium);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    margin: 0 auto;
}

.chem-cta-title {
    font-size: 2.25rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.chem-btn-primary {
    padding: 14px 28px;
    border-radius: 0.8rem;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #FF5F6D, #7B61FF);
    box-shadow:
        0 10px 25px rgba(123, 97, 255, 0.25),
        0 4px 10px rgba(255, 95, 109, 0.2);
    transition: all 0.25s ease;
    text-decoration: underline;
}

.chem-btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #FF4D5E, #6A4DFF);
    box-shadow:
        0 14px 30px rgba(123, 97, 255, 0.35),
        0 6px 14px rgba(255, 95, 109, 0.25);
}

/* --- Overrides for PaymentGateway Classes --- */
.bw-pg-main-title,
.bw-pg-sec-title {
    background: none !important;
    -webkit-text-fill-color: var(--primary-dark) !important;
    color: var(--primary-dark) !important;
}

.bw-pg-main-title span {
    background: var(--gradient-chemistry) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.bw-pg-btn-main {
    background: var(--gradient-premium) !important;
    box-shadow: var(--shadow-btn) !important;
}

.bw-pg-btn-main:hover {
    box-shadow: 0 15px 20px -5px rgba(255, 75, 145, 0.4) !important;
}

.bw-pg-how-num {
    background: linear-gradient(135deg, #FF5F6D, #7B61FF) !important;
    box-shadow: 0 10px 25px rgba(123, 97, 255, 0.25) !important;
    color: var(--white) !important;
}

.bw-pg-how-item h4 {
    color: var(--primary-dark) !important;
}

.bw-pg-how-item p {
    color: var(--text-gray) !important;
}