/* ==========================================================================
   PRODUCTS PAGE - DESKTOP ENHANCEMENTS
   Fixes color issues, improves layout consistency, and matches mobile cleanliness
   ========================================================================== */

/* ==========================================================================
   HERO SECTION - IMPROVED CONSISTENCY
   ========================================================================== */

.page-hero {
    background: linear-gradient(135deg, #092180 0%, #1a3db8 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50% 0 0 50%;
    transform: translateX(30%);
}

.hero-eyebrow {
    display: inline-block;
    color: #31cc22;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    background: rgba(49, 204, 34, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
}

.page-hero h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 700px;
}

/* ==========================================================================
   CONTENT SECTIONS - BETTER SPACING
   ========================================================================== */

.page-content {
    padding: 80px 0;
}

.content-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.content-intro h2 {
    color: #092180;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.content-intro p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ==========================================================================
   CATEGORY CARDS - IMPROVED STYLING
   ========================================================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #31cc22 0%, #28a81b 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    border-color: #31cc22;
    box-shadow: 0 12px 30px rgba(9, 33, 128, 0.1);
    transform: translateY(-5px);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card i {
    font-size: 3rem;
    color: #31cc22;
    margin-bottom: 20px;
    display: block;
}

.category-card h3 {
    color: #092180;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-card p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   SECTION HEADERS - CONSISTENT STYLING
   ========================================================================== */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header.align-left {
    text-align: left;
}

.section-eyebrow {
    display: inline-block;
    color: #31cc22;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-header h2 {
    color: #092180;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
}

.section-header.align-left p {
    max-width: 100%;
}

/* ==========================================================================
   CATALOG CONTROLS - ENHANCED DESKTOP VERSION
   ========================================================================== */

.catalog-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: flex-end;
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.catalog-search {
    flex: 1;
    min-width: 300px;
}

.catalog-search input {
    width: 100%;
    padding: 14px 18px 14px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.catalog-search input:focus {
    outline: none;
    border-color: #31cc22;
    box-shadow: 0 0 0 4px rgba(49, 204, 34, 0.1);
}

.catalog-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
}

.catalog-filters {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.catalog-filters label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #092180;
    margin-bottom: 0;
}

.catalog-filters select {
    padding: 12px 40px 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.catalog-filters select:focus {
    outline: none;
    border-color: #31cc22;
    box-shadow: 0 0 0 4px rgba(49, 204, 34, 0.1);
}

.catalog-summary {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 25px;
    font-weight: 500;
    padding: 12px 0;
}

/* ==========================================================================
   PRODUCT LINES - IMPROVED LAYOUT
   ========================================================================== */

.product-lines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-line-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 35px 30px;
    transition: all 0.3s ease;
}

.product-line-card:hover {
    border-color: #31cc22;
    box-shadow: 0 10px 25px rgba(9, 33, 128, 0.08);
    transform: translateY(-3px);
}

.product-line-card h3 {
    color: #092180;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #31cc22;
}

.product-line-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-line-card li {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    padding: 12px 0 12px 30px;
    position: relative;
}

.product-line-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #31cc22;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ==========================================================================
   QUALITY HIGHLIGHT SECTION - FIXED LAYOUT
   ========================================================================== */

.quality-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 50px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
}

.quality-highlight h2 {
    color: #092180;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.quality-highlight p {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.8;
}

.quality-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.quality-list li {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    padding: 12px 0 12px 30px;
    position: relative;
}

.quality-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #31cc22;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ==========================================================================
   CTA BANNER - FIXED BUTTON CONTRAST ISSUE
   ========================================================================== */

.cta-banner {
    background: linear-gradient(135deg, #092180 0%, #1a3db8 100%);
    padding: 60px 50px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(49, 204, 34, 0.1);
    border-radius: 50%;
}

.cta-banner h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

/* FIXED: Secondary button - now has proper contrast */
.cta-banner .secondary-btn {
    background: white;
    color: #092180;
    border: 2px solid white;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-banner .secondary-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* FIXED: Products button - now has proper green styling */
.cta-banner .products-btn {
    background: #31cc22;
    color: white;
    border: 2px solid #31cc22;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-banner .products-btn:hover {
    background: #28a81b;
    border-color: #28a81b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 204, 34, 0.3);
}

/* ==========================================================================
   GENERAL BUTTON IMPROVEMENTS
   ========================================================================== */

.secondary-btn {
    background: white;
    color: #092180;
    border: 2px solid #092180;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary-btn:hover {
    background: #092180;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 33, 128, 0.2);
}

/* ==========================================================================
   MODAL IMPROVEMENTS
   ========================================================================== */

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #092180 0%, #1a3db8 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 25px 30px;
    border: none;
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.modal-body {
    padding: 30px;
}

.image-container {
    text-align: center;
    margin-bottom: 30px;
}

.modal-product-image {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.product-details-container {
    margin-top: 20px;
}

.product-details-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.product-title {
    color: #092180;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-category {
    display: inline-block;
    background: #e8f5e9;
    color: #31cc22;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    background: #092180;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.product-description {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.info-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.info-card h6 {
    color: #092180;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h6 i {
    color: #31cc22;
    font-size: 1.2rem;
}

.product-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-details-list li {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    padding: 10px 0 10px 30px;
    position: relative;
}

.product-details-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #31cc22;
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-footer {
    border-top: 2px solid #e5e7eb;
    padding: 20px 30px;
}

.modal-footer .btn-secondary {
    background: #6b7280;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
}

.modal-footer .btn-secondary:hover {
    background: #4b5563;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS - TABLET
   ========================================================================== */

@media (max-width: 991px) {
    .quality-highlight {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-banner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS - MOBILE
   ========================================================================== */

@media (max-width: 767px) {
    .page-hero {
        padding: 80px 0 60px;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .content-intro h2,
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .quality-highlight {
        padding: 30px 25px;
    }
    
    .cta-banner {
        padding: 40px 25px;
    }
    
    .cta-banner h2 {
        font-size: 1.6rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .product-details-header {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .cta-banner,
    .catalog-controls,
    .catalog-pagination,
    .btn-details,
    .btn-quick-view {
        display: none !important;
    }
}