/* Nigeria Market (Products) Page Styles */
/* Standardized styling matching Celebrate page template */

/* Products Page - Standard layout with sidebar (uses Bootstrap grid) */

/* Hero Banner */
.products-hero-banner {
    background: linear-gradient(135deg, #0f5132 0%, #198754 50%, #10321d 100%);
    border-radius: 12px;
    padding: 60px 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.products-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.products-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
}

.products-hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.products-hero-content .hero-tagline {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    opacity: 0.95;
}

.products-hero-content .hero-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ffffff;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.products-hero-content .hero-ctas {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.products-hero-content .hero-ctas .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.products-hero-content .hero-ctas .btn-primary {
    background-color: #ffffff;
    color: #0f5132;
    border: 2px solid #ffffff;
}

.products-hero-content .hero-ctas .btn-primary:hover {
    background-color: #f7faf9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.products-hero-content .hero-ctas .btn-outline-primary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.products-hero-content .hero-ctas .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Management Links Section */
.products-management-section {
    margin-bottom: 30px;
}

.products-management-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background-color: #f7faf9;
    border-radius: 8px;
    border: 1px solid rgba(16, 50, 29, 0.1);
}

.products-management-links .btn {
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.products-management-links .btn-primary {
    background-color: #198754;
    color: #ffffff;
    border: 2px solid #198754;
}

.products-management-links .btn-primary:hover {
    background-color: #0f5132;
    border-color: #0f5132;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 81, 50, 0.2);
}

.products-management-links .btn-outline-primary {
    background-color: #ffffff;
    color: #198754;
    border: 2px solid #198754;
}

.products-management-links .btn-outline-primary:hover {
    background-color: #198754;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Section Styling */
.products-section {
    margin-bottom: 40px;
}

.products-section-header {
    margin-bottom: 30px;
    text-align: center;
}

.products-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #10321d;
    margin-bottom: 10px;
}

.products-section-header p {
    font-size: 16px;
    color: #516371;
    line-height: 1.5;
}

/* Benefits Grid */
.products-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.products-benefit-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    border: 1px solid rgba(16, 50, 29, 0.1);
    box-shadow: 0 2px 8px rgba(16, 50, 29, 0.05);
    transition: all 0.3s ease;
}

.products-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(16, 50, 29, 0.15);
    border-color: rgba(25, 135, 84, 0.3);
}

.products-benefit-card-body {
    text-align: center;
}

.products-benefit-card .benefit-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.products-benefit-card h3 {
    font-size: 20px;
    font-weight: 650;
    color: #10321d;
    margin-bottom: 10px;
}

.products-benefit-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #46555f;
    margin: 0;
}

/* Statistics Grid */
.products-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.products-stat-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(16, 50, 29, 0.1);
    box-shadow: 0 2px 8px rgba(16, 50, 29, 0.05);
    transition: all 0.3s ease;
}

.products-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(16, 50, 29, 0.15);
    border-color: rgba(25, 135, 84, 0.3);
}

.products-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #198754;
    margin-bottom: 8px;
    display: block;
}

.products-stat-card .stat-label {
    font-size: 13px;
    color: #516371;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* FAQ Section */
.products-faq {
    margin-top: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
    overflow: visible !important;
    float: none !important;
    display: block !important;
    position: relative !important;
}

.products-faq-item {
    background-color: #ffffff !important;
    border-radius: 12px;
    padding: 25px !important;
    margin-bottom: 20px !important;
    border: 1px solid rgba(16, 50, 29, 0.1);
    box-shadow: 0 2px 8px rgba(16, 50, 29, 0.05);
    transition: all 0.3s ease;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
    overflow: visible !important;
    display: block !important;
    position: relative !important;
}

.products-faq-item:hover {
    box-shadow: 0 4px 12px rgba(16, 50, 29, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
}

.products-faq-item h3 {
    font-size: 20px;
    font-weight: 650;
    color: #10321d;
    margin-bottom: 10px;
}

.products-faq-item p {
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #46555f !important;
    margin: 0 0 15px 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0 !important;
    clear: both !important;
    width: 100% !important;
    float: none !important;
    position: relative !important;
}

/* Location Filters */
.products-location-filters {
    margin-top: 20px;
}

.location-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.location-filter-item {
    width: 100%;
}

.location-filter-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #10321d;
}

.location-filter-item select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(16, 50, 29, 0.2);
    border-radius: 8px;
    font-size: 15px;
    color: #10321d;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2310321d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.location-filter-item select:hover {
    border-color: rgba(16, 50, 29, 0.4);
    box-shadow: 0 2px 4px rgba(16, 50, 29, 0.1);
}

.location-filter-item select:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

/* State Filter in Widget Menu */
.location-state-filter {
    width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 12px 40px 12px 15px !important;
    line-height: 1.5 !important;
    border: 1px solid rgba(16, 50, 29, 0.2) !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    color: #10321d !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2310321d' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    margin-bottom: 10px !important;
}

.location-state-filter option {
    color: #10321d !important;
    background-color: #ffffff !important;
    padding: 10px !important;
}

.location-state-filter option:first-child {
    color: #516371 !important;
    font-weight: 500 !important;
}

/* Product Create Form - State/City/LGA Selects */
#product_state,
#product_city,
#product_lga {
    min-height: 48px !important;
    height: auto !important;
    padding: 12px 40px 12px 15px !important;
    line-height: 1.5 !important;
    font-size: 15px !important;
    color: #10321d !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(16, 50, 29, 0.2) !important;
    border-radius: 8px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2310321d' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    cursor: pointer !important;
}

#product_state option,
#product_city option,
#product_lga option {
    padding: 10px !important;
    min-height: 40px !important;
    line-height: 1.5 !important;
}

#product_state option:first-child,
#product_city option:first-child,
#product_lga option:first-child {
    color: #516371 !important;
    font-weight: 500 !important;
}

.location-state-filter:hover {
    border-color: rgba(16, 50, 29, 0.4) !important;
    box-shadow: 0 2px 4px rgba(16, 50, 29, 0.1) !important;
}

.location-state-filter:focus {
    outline: none !important;
    border-color: #198754 !important;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1) !important;
}

/* Ensure dropdown menu has proper spacing */
.market_widget .market_categories {
    padding: 10px 0;
}

/* Popular Locations */
.popular-locations {
    margin-top: 25px;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.location-tag {
    display: inline-block;
    padding: 10px 18px;
    background-color: #f7faf9;
    color: #10321d;
    border: 1px solid rgba(16, 50, 29, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.location-tag:hover {
    background-color: #198754;
    color: #ffffff;
    border-color: #198754;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-hero-banner {
        padding: 40px 20px;
    }

    .products-hero-content h1 {
        font-size: 32px;
    }

    .products-hero-content .hero-tagline {
        font-size: 18px;
    }

    .products-hero-content .hero-description {
        font-size: 15px;
    }

    .products-benefits-grid {
        grid-template-columns: 1fr;
    }

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

    .products-management-links {
        flex-direction: column;
    }

    .products-management-links .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .products-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Image Hover Popup Feature */
.product-image-hover-container {
    position: relative;
    overflow: visible !important;
}

.product-thumb-image {
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.product-image-hover-container:hover .product-thumb-image {
    opacity: 0.9;
    transform: scale(1.02);
}

.product-image-hover-popup {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: #ffffff;
    padding: 8px;
    max-width: 500px;
    max-height: 500px;
    overflow: hidden;
}

.product-image-hover-popup.active {
    opacity: 1;
    pointer-events: auto;
}

.product-image-hover-popup img {
    width: 100%;
    height: auto;
    max-width: 500px;
    max-height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

/* Ensure popup doesn't interfere on mobile */
@media (max-width: 768px) {
    .product-image-hover-popup {
        display: none !important;
    }
}

