/* Pest Details Page Custom CSS */

/* Page frame: full-width band; inner layout uses Bootstrap .container in the view */
.pd-page {
    background: #f5f6f8;
    padding: 18px 0 40px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Flex children (meta card / pills) must be allowed to shrink so they don’t force page wider than viewport */
.pd-meta-card,
.pd-pill-row {
    min-width: 0;
}

.pd-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    padding-bottom: 14px;
}

.pd-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid #cfd5db;
    border-radius: 3px;
    background: transparent;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 600;
}

.pd-content {
    background: transparent;
}

.pd-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.pd-product {
    padding: 0;
}

.pd-divider {
    height: 1px;
    background: #e6e8eb;
    margin: 14px 0;
}

.pd-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.pd-plan-select {
    height: 44px !important;
    /* Pill shape: fully rounded ends */
    border-radius: 9999px !important;
    border: 1px solid #b8962e !important;
    background: #d4af37 !important;
    color: #000 !important;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    padding-left: 18px;
    padding-right: 36px;
}

.pd-plan-select:focus {
    outline: none !important;
    border-color: #9a7b26 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(212, 175, 55, 0.45) !important;
}

.pd-add-btn {
    width: 100%;
    margin-top: 10px;
    height: 44px;
    border: none;
    border-radius: 4px;
    background: #0b0b0f;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pd-add-btn:hover {
    background: #000;
}


/* Header/Banner Section */
.pest-details-banner {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: white;
    background-color: #333;
    overflow-x: hidden;
    max-width: 100%;
}

.pest-details-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.banner-content .sub-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.banner-content .description {
    font-size: 1.2rem;
    font-family: "Georgia", serif;
    font-style: italic;
}

/* Navbar Section */
.pest-details-nav {
    background: #000;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    color: #fff;
}

.nav-social-icons a {
    color: #fff;
    margin-right: 15px;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.nav-social-icons a:hover {
    opacity: 0.7;
}

.nav-links span {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
}

.nav-search-box {
    background: #fff;
    border-radius: 5px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    max-width: 300px;
    width: 100%;
}

.nav-search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.85rem;
    color: #333;
}

.nav-search-box .btn-look-for {
    background: #333;
    color: #fff;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 10px;
}

/* Breadcrumbs */
.breadcrumb-container {
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    font-size: 0.85rem;
    color: #888;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
}

.breadcrumb-list li a {
    color: #888;
    text-decoration: none;
}

/* Product Info */
.product-main-title {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 6px;
}

.product-common-name {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 12px;
}

.product-price-info {
    font-size: 1rem;
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-description-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 18px;
}

/* Gallery Section */
.gallery-container {
    position: relative;
}

.main-img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: none;
}

.main-img-wrapper img {
    width: 100%;
    display: block;
    min-height: 300px;
    background: #f0f0f0;
}

.zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.thumb-gallery-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.thumb-item {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
}

.thumb-item.active {
    border-color: #d4af37;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav-btns {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.gallery-nav-btns a {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

/* Plan Buttons Design */
.plans-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.plan-wrapper {
    flex: 1 1 300px;
    max-width: 100%;
}

.plan-row {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
}

.plan-row:hover {
    transform: translateY(-3px);
}

.btn-plan-main {
    background: #d4af37;
    color: #000;
    font-weight: 700;
    border: none;
    padding: 10px 25px;
    border-radius: 50px 0 0 50px;
    flex-grow: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 15px;
}

.btn-plan-main .plan-name {
    font-size: 0.85rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-plan-main .plan-price-detail {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.btn-add-cart-wrap {
    background: #333;
    color: #fff;
    width: 65px;
    height: 60px;
    border-radius: 0 50px 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.btn-add-cart-wrap i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.btn-add-cart-wrap span {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
}

.btn-add-cart-wrap:hover {
    background: #000;
}

/* Dropdown Plan Select Styling */
#planSelect { /* legacy rule kept but neutralized by .pd-plan-select */ }

#planSelect option {
    background-color: #fff;
    color: #000;
    padding: 10px;
}

#planSelect:focus {
    outline: none;
}

/* Feature Sections */
.features-container {
    margin-top: 26px;
}

.pd-meta {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

/* Bottom (sequence + info) */
.pd-bottom {
    margin-top: 18px;
}

.pd-side {
    margin-top: 0;
}

/* Bottom section uses Bootstrap gutters normally */

.pd-seq {
    padding-top: 0;
}

/* Same column as .pd-product / cart — no extra horizontal inset */
.pd-seq--product-column {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

/* Meta cards sit in same width as gallery column */
.pd-bottom .pd-meta-card {
    max-width: 100%;
    box-sizing: border-box;
}

.pd-seq-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #666;
    margin: 0 0 6px;
}

.pd-seq-stage {
    min-height: 90px;
    padding-top: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pd-seq-slide + .pd-seq-slide {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.pd-seq-stage img,
.pd-seq-stage table {
    max-width: 100%;
}

.pd-seq-stage table {
    display: block;
    overflow-x: auto;
}

.pd-seq-stage h3,
.pd-seq-stage h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #333;
}

.pd-seq-stage p {
    margin: 0 0 10px;
    color: #666;
}

.pd-seq-nav {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    justify-content: space-between;
}

.pd-seq-btn {
    width: 48%;
    height: 34px;
    border: 1px solid #d7dbe0;
    background: #fff;
    color: #333;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.85rem;
}

.pd-seq-btn:disabled {
    opacity: 0.6;
}

.pd-side-block {
    border-top: none;
    padding-top: 0;
    margin-top: 16px;
}

.pd-side-title {
    font-weight: 800;
    color: #222;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.pd-side-title i {
    width: 18px;
    text-align: center;
}

.pd-strategy {
    background: #e9eaee;
    border-radius: 6px;
    padding: 14px 14px;
}

.pd-strategy-body {
    color: #555;
    line-height: 1.4;
    font-size: 0.9rem;
}

.pd-strategy-title {
    font-weight: 800;
    color: #222;
    margin-bottom: 6px;
}

.pd-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 3px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    color: #555;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Right-side meta card (matches reference) */
.pd-meta-card {
    background: #fff;
    border: 1px solid #eee;
    border-left: 3px solid #d4af37;
    border-radius: 6px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 0;
}

.pd-meta-section {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.pd-meta-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pd-meta-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #222;
}

.pd-meta-title i {
    color: #d4af37;
    width: 18px;
    text-align: center;
}

.feature-block {
    margin-bottom: 40px;
}

.feature-block h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
}

.feature-block p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

.advantages-list {
    list-style: none;
    padding: 0;
}

.advantages-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
    color: #666;
}

.advantages-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: 900;
    color: #333;
}

/* Social Footer */
.social-share-footer {
    display: flex;
    gap: 10px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.social-share-footer a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #fff !important;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-share-footer a i {
    color: #fff !important;
}

.bg-facebook {
    background: #3b5998;
}

.bg-twitter {
    background: #1da1f2;
}

.bg-email {
    background: #7f8c8d;
}

.bg-whatsapp {
    background: #25d366;
}

.bg-linkedin {
    background: #0077b5;
}

.bg-plus {
    background: #e74c3c;
}

/* Meta Info Card Below Gallery */
.pest-meta-card {
    background: #fff;
    border: 1px solid #eee;
    border-left: 3px solid #d4af37;
    border-radius: 6px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pest-meta-section {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.pest-meta-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pest-meta-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
}

.pest-meta-label i {
    color: #d4af37;
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.pest-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 26px;
}

.pest-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
    cursor: default;
}

.pest-tag:hover {
    background: #f0ead6;
    border-color: #d4af37;
    color: #333;
}

@media (max-width: 991px) {
    .plan-wrapper {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .product-main-title {
        font-size: 1.8rem;
    }

    .pest-details-banner {
        padding: 60px 0;
    }

    .banner-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 575px) {
    .btn-plan-main {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        height: auto;
        padding: 10px 20px;
        gap: 5px;
    }

    .btn-plan-main .plan-price-detail {
        margin-left: 0;
        padding: 2px 8px;
    }

    .btn-add-cart-wrap {
        height: 74px;
        /* Matches the new height of btn-plan-main roughly */
    }
}

.trial-tag {
    display: flex;
    align-items: center;
}

.trial-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.35);
    white-space: nowrap;
    animation: pulseGlow 1.8s infinite;
}

/* Soft glowing animation */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
    }

    50% {
        box-shadow: 0 0 12px rgba(40, 167, 69, 0.6);
    }

    100% {
        box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
    }
}