

/* Products Page Specific Styles */

/* Products Intro */
.products-intro {
    padding: 80px 0 40px;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.product-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.product-stat {
    background: var(--light-color);
    padding: 25px 15px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-stat:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.product-stat i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.product-stat h4 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.product-stat p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

/* Product Categories Section */
.product-categories-section {
    padding: 60px 0;
    background: var(--light-color);
}

.categories-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    align-items: center;
}

#categorySearch {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    width: 300px;
    font-family: var(--font-body);
    transition: var(--transition);
}

#categorySearch:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.2);
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-color);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.category-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--secondary-color);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.category-card p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.category-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.category-type {
    display: inline-block;
    padding: 5px 12px;
    background: var(--light-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-color);
}

.category-type.organic { background: #e8f5e9; color: #2e7d32; }
.category-type.inorganic { background: #e3f2fd; color: #1565c0; }
.category-type.pharma { background: #f3e5f5; color: #7b1fa2; }
.category-type.specialty { background: #fff3e0; color: #ef6c00; }

.view-all-container {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-large i {
    margin-right: 10px;
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
}

.catalog-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--gray-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Chemical Visualizer */
.chemical-visualizer {
    padding: 80px 0;
    background: white;
}

.visualizer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.structure-selector {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.structure-selector h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

#structureSelect {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 30px;
    background: white;
    cursor: pointer;
}

#structureSelect:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.structure-info h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.structure-info p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.structure-properties {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.property {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.property:last-child {
    border-bottom: none;
}

.prop-label {
    font-weight: 600;
    color: var(--primary-color);
}

.prop-value {
    color: var(--dark-color);
    font-family: 'Courier New', monospace;
}

.structure-display {
    background: var(--primary-color);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.molecule-display {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.molecule-display div {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.atom-c, .atom-o, .atom-oh, .atom-h, .atom-r {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
}

.atom-c { background: #4CAF50; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.atom-o { background: #FF5722; top: 30%; left: 50%; transform: translate(-50%, -50%); }
.atom-oh { background: #2196F3; top: 70%; left: 50%; transform: translate(-50%, -50%); }
.atom-h { background: #FFC107; top: 70%; left: 70%; transform: translate(-50%, -50%); }
.atom-r { background: #9C27B0; top: 50%; left: 20%; transform: translate(-50%, -50%); }

.bond-oh, .bond-double, .bond-single {
    background: white;
    transform-origin: 0 0;
}

.bond-oh { 
    width: 80px; 
    height: 3px; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) rotate(90deg); 
}

.bond-double { 
    width: 80px; 
    height: 3px; 
    top: 30%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
}

.bond-single { 
    width: 60px; 
    height: 3px; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) rotate(180deg); 
}

.structure-controls {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.structure-controls button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.structure-controls button:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.structure-controls i {
    margin-right: 8px;
}

/* Services Sections */
.services-section {
    padding: 80px 0;
}

.manufacturing-services {
    background: var(--light-color);
}

.supply-services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 35px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid transparent;
}

.manufacturing-services .service-card {
    border-top-color: var(--secondary-color);
}

.supply-services .service-card {
    border-top-color: var(--accent-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--success-color);
}

/* Additional Services */
.additional-services {
    padding: 80px 0;
    background: var(--light-color);
}

.services-list {
    max-width: 900px;
    margin: 50px auto 0;
}

.additional-service {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.additional-service:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-heavy);
}

.additional-icon {
    background: var(--primary-color);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.additional-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.additional-content p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* Inquiry CTA */
.inquiry-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #1a3a7a);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive Design for Products Page */
@media (max-width: 992px) {
    .product-stats,
    .visualizer-container {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .additional-service {
        flex-direction: column;
        text-align: center;
    }
    
    .additional-icon {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .product-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    #categorySearch {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large, .btn-outline {
        width: 100%;
        max-width: 300px;
    }
    
    .molecule-display {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 576px) {
    .product-stats {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
}













/* Products Data Display Section */
.products-data-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.data-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.data-card {
    background: white;
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 87, 255, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8f0ff;
    position: relative;
    overflow: hidden;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0057ff, #00c6ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.data-card:hover::before {
    transform: scaleX(1);
}

.data-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 87, 255, 0.15);
}

.data-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0057ff, #00c6ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
}

.data-card h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.data-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.data-card-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.data-card-stats span {
    background: #f0f7ff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: #0057ff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.data-card-stats i {
    font-size: 12px;
}

.view-data-btn {
    background: linear-gradient(135deg, #0057ff, #00c6ff);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-data-btn:hover {
    background: linear-gradient(135deg, #0045cc, #00a8e6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 87, 255, 0.3);
}

/* Data Modal */
.data-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.data-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #0057ff, #00c6ff);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.data-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.data-search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e8f0ff;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.data-search-box input:focus {
    outline: none;
    border-color: #0057ff;
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #0057ff, #00c6ff);
    color: white;
    border: none;
    width: 50px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #0045cc, #00a8e6);
}

.data-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e8f0ff;
    border-radius: 10px;
    margin-bottom: 25px;
}

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

.data-table th {
    background: linear-gradient(135deg, #0057ff, #00c6ff);
    color: white;
    padding: 15px;
    text-align: left;
    position: sticky;
    top: 0;
    font-weight: 600;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e8f0ff;
    color: #333;
}

.data-table tr:hover {
    background: #f8faff;
}

.data-table tr:nth-child(even) {
    background: #fafcff;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.data-note {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.data-note a {
    color: #0057ff;
    text-decoration: none;
    font-weight: 500;
}

.data-note a:hover {
    text-decoration: underline;
}

.download-btn {
    background: linear-gradient(135deg, #00c853, #64dd17);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #00b248, #4caf50);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .data-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-footer {
        flex-direction: column;
        text-align: center;
    }
}























/* Brand Header in Modal */
.brand-header-cell {
    padding: 0 !important;
    background: linear-gradient(135deg, #ff6b8b, #ff4081) !important;
}

.brand-header-content {
    display: flex;
    align-items: center;
    padding: 25px;
    gap: 25px;
}

.brand-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: white;
    padding: 10px;
}

.brand-info h4 {
    color: white;
    font-size: 28px;
    margin: 0 0 8px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 16px;
}

/* Product Preview in Card */
.product-preview {
    margin: 15px 0 20px;
    text-align: center;
}

.brand-preview-img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    border: 3px solid #ff4081;
    box-shadow: 0 5px 15px rgba(255, 64, 129, 0.2);
}

/* Status Icons */
.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto;
}

.category-cell .status-icon {
    background: linear-gradient(135deg, #0057ff, #00c6ff);
    color: white;
}

.available-cell .status-icon {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
}

.dev-cell .status-icon {
    background: linear-gradient(135deg, #FF9800, #FFC107);
    color: white;
}

.niche-cell .status-icon {
    background: linear-gradient(135deg, #9C27B0, #E91E63);
    color: white;
}

/* Table Cells */
.category-name {
    color: #0057ff;
    font-size: 16px;
}

.product-name-cell {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.description-cell {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Status Badges */
.status-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.available-badge {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.dev-badge {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc80;
}

.niche-badge {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

/* Category Rows */
#dataTable tr.category {
    background: #f8f9ff !important;
}

#dataTable tr.category td {
    border-top: 2px solid #e8f0ff;
    border-bottom: 2px solid #e8f0ff;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

#dataTable tr.category:first-child td {
    border-top: none;
}

/* Row Hover Effects */
#dataTable tr:not(.brand-header):not(.category):hover {
    background: #f8faff !important;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

#dataTable tr:not(.brand-header):not(.category) {
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .brand-header-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 15px;
    }
    
    .brand-logo {
        width: 80px;
        height: 80px;
    }
    
    .brand-info h4 {
        font-size: 22px;
    }
    
    .brand-info p {
        font-size: 14px;
    }
    
    .status-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .product-name-cell,
    .description-cell {
        font-size: 14px;
    }
    
    .status-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Search Box Styling for Cosmetics */
.cosmetic-modal .data-search-box {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e8f0ff;
}

/* Modal Styling */
.cosmetic-modal .modal-header {
    background: linear-gradient(135deg, #ff6b8b, #ff4081);
}