/* ===== BREADCRUMB / BACK NAV ===== */
.product-breadcrumb {
    background: #f8fafc;
    border-bottom: 1px solid #e9ecef;
    padding: 0.6rem 1.5rem;
}

.breadcrumb-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #64748b;
}

.breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #CC0000;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s;
}

.breadcrumb-back:hover { opacity: 0.75; }

.breadcrumb-sep { color: #cbd5e1; }

.breadcrumb-cat { color: #64748b; }

.breadcrumb-current {
    color: #1e293b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

/* ===== CSS RESET & BASE STYLES ===== */
.product-detail-modern * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Restore centering for section-wrapper overridden by the * reset above */
.product-detail-modern .section-wrapper {
    /*
    margin-left: auto;
    margin-right: auto;
    */
    margin: 0 auto;
    padding: 0 5rem 4rem;
}

.product-detail-modern {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes premium-glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 25px rgba(255, 215, 0, 0.6);
    }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }

/* ===== LAYOUT & SPACING ===== */
.product-detail-modern .product-main,
.product-detail-modern .product-details {
    margin-bottom: 2rem;
}

.product-main {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ===== PRODUCT GALLERY ===== */
.product-gallery {
    position: sticky;
    top: 2rem;
}

.main-image {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.product-img {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.premium-tag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B4513;    
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: premium-glow 2s ease-in-out infinite alternate;
}

/* ===== PRODUCT INFO ===== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.category-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.waterproofing {
    background: #10b981;
    color: white;
}

.product-name {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

/* ===== PRODUCT DESCRIPTION CHIPS ===== */
.product-description-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.description-chip {
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #e9ecef !important;
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: none !important;
    transform: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.description-chip:hover {
    background: #e9ecef !important;
    border-color: #dee2e6 !important;
    transform: translateY(-1px);
}

.product-description {
    display: none;
}

/* ===== FEATURES SECTION ===== */
.features-section,
.specs-section,
.documents-section {
    margin-bottom: 1.5rem;
}

.features-section h3,
.specs-section h3,
.documents-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.25rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.feature.checked {
    border-color: #10b981;
    background: #f0fdf4;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 22px;
    height: 22px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ===== SPECIFICATIONS ===== */
.specs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    gap: 1rem;
}

.spec-label {
    font-weight: 500;
    color: #64748b;
    flex-shrink: 0;
}

.spec-value {
    font-weight: 600;
    color: #1e293b;
    text-align: right;
    word-break: break-word;
}

/* ===== DOCUMENTS SECTION ===== */
.documents-section {
    margin-bottom: 2rem;
}

.documents-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.documents-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.doc-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #CC0000;
}

.doc-icon {
    font-size: 1.5rem;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.doc-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.doc-size {
    font-size: 0.8rem;
    color: #64748b;
}

.doc-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.doc-action {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.view-btn {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.view-btn:hover {
    background: #CC0000;
    color: white;
    border-color: #CC0000;
}

.download-btn {
    background: #10b981;
    color: white;
    border: 1px solid #10b981;
}

.download-btn:hover {
    background: #059669;
    border-color: #059669;
    color: white;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.btn {
    flex: 1;
    padding: 1.125rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-primary {
    background: #CC0000;
    color: white;
    border: none;
}

.btn-primary:hover {
    color: white;
    text-decoration: none;
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e2e6ea;
    color: #5a6268;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.2);
}

/* ===== PRODUCT DETAILS TABS ===== */
.product-details {
    padding: 3.5rem 0;
    background: white;
}

.details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2.5rem;
}

.tab-btn {
    padding: 1.125rem 2.25rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 1rem;
}

.tab-btn.active {
    color: #CC0000;
    border-bottom-color: #CC0000;
}

.tab-btn:hover {
    color: #CC0000;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.tab-pane p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 100%;
    margin-bottom: 1rem;
}

.description-text,
.applications-text {
    text-align: left;
    line-height: 1.7;
}

.technical-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
}

.tech-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    gap: 1.5rem;
}

.tech-label {
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}

.tech-value {
    font-weight: 500;
    color: #1e293b;
    text-align: right;
    word-break: break-word;
}

/* ===== FIXED FORMATTED CONTENT STYLES ===== */
.description-text.formatted-content {
    white-space: pre-line;
    text-align: left;
    line-height: 1.6;
    font-size: 0.9rem;
    color: #64748b;
}

.description-text.formatted-content b,
.description-text.formatted-content strong {
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin: 1.5rem 0 0.75rem 0;
}

.description-text.formatted-content br {
    content: "";
    display: block;
    margin: 0.75rem 0;
}

.description-text.formatted-content {
    line-height: 1.7;
}

.description-text.formatted-content b:first-child,
.description-text.formatted-content strong:first-child {
    margin-top: 0;
}

.description-text.formatted-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.description-text.formatted-content ul,
.description-text.formatted-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.description-text.formatted-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.applications-text {
    text-align: left;
    line-height: 1.7;
    font-size: 1.125rem;
    color: #64748b;
}

/* ===== APPLICATIONS TAB STYLES ===== */
.applications-content {
    margin-bottom: 2rem;
}

.applications-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

/* Main Title Chip */
.application-main-title {
    background: linear-gradient(135deg, #CC0000 0%, #c82333 100%);
    color: white;
    border-radius: 20px;
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

.main-title-icon {
    font-size: 1.2rem;
}

.main-title-text {
    font-weight: 700;
}

/* Regular Application Chip */
.application-chip {
    background: linear-gradient(135deg, #CC0000 0%, #990000 100%);
    color: white;
    border-radius: 20px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: none;
}

.application-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.4);
}

/* Specification Chip */
.application-spec-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 200px;
}

.application-spec-chip:hover {
    background: white;
    border-color: #CC0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.spec-label {
    font-weight: 600;
    color: #374151;
    background: #e5e7eb;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.spec-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
    text-align: right;
    flex: 1;
}

/* Material Composition Section */
.material-composition-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.material-composition-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
}

.material-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* Regular Material Chip */
.material-chip {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 10px 16px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.material-chip:hover {
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Material Specification Chip */
.material-spec-chip {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
}

.material-spec-chip:hover {
    border-color: #f59e0b;
    background: #fffbeb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.material-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
}

.material-value {
    color: #1e293b;
    font-weight: 500;
    text-align: right;
    flex: 1;
}

.material-icon {
    font-size: 1rem;
}

.material-text {
    color: #374151;
    font-weight: 500;
}

/* No Materials Info */
.no-materials-info {
    background: #fef3c7;
    border: 1px dashed #f59e0b;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #92400e;
    font-size: 0.9rem;
}

/* Applications Image */
.applications-image {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.applications-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* No Applications Info */
.no-applications-info {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.no-info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-applications-info p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design for Applications */
@media (max-width: 768px) {
    .applications-chips {
        gap: 0.5rem;
    }
    
    .application-main-title {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
    
    .application-chip {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .application-spec-chip {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        min-width: auto;
        width: 100%;
    }
    
    .spec-value {
        text-align: left;
    }
    
    .material-composition-section {
        padding: 1rem;
    }
    
    .material-chips {
        gap: 0.5rem;
    }
    
    .material-chip,
    .material-spec-chip {
        padding: 8px 12px;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .material-spec-chip {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .applications-chips {
        justify-content: center;
    }
    
    .application-chip,
    .application-spec-chip {
        text-align: center;
    }
    
    .application-spec-chip {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ===== RELATED PRODUCTS ===== */
/* Related Products Compact Styles */
.related-products .products-grid.compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-products .product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-products .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.related-products .card-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.related-products .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    transition: transform 0.3s ease;
}

.related-products .product-card:hover .card-image img {
    transform: scale(1.05);
}

.related-products .card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-products .badge {
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-products .card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-products .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: #2d3748;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-products .card-description {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.related-products .card-features {
    margin-bottom: 0.75rem;
}

.related-products .card-features .feature {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 0.75rem;
    color: #4a5568;
}

.related-products .card-features .feature i {
    font-size: 0.7rem;
    color: #CC0000;
    width: 14px;
}

.related-products .card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #CC0000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    transition: color 0.3s ease;
    margin-top: auto;
}

.related-products .card-link:hover {
    color: #a50000;
}

.related-products .card-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.related-products .card-link:hover i {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .related-products .products-grid.compact {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .related-products .card-image {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .related-products .products-grid.compact {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Ultra Compact Related Products */
.related-products.ultra-compact .products-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.related-products.ultra-compact .product-card {
    border-radius: 8px;
}

.related-products.ultra-compact .card-image {
    height: 160px;
}

.related-products.ultra-compact .card-content {
    padding: 0.75rem;
}

.related-products.ultra-compact .card-title {
    font-size: 0.85rem;
}

.related-products.ultra-compact .card-description {
    font-size: 0.75rem;
    -webkit-line-clamp: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.7rem;
    color: #2d3748;
    font-weight: 700;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.products-grid.compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f8fafc;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-paint { background: linear-gradient(135deg, #CC0000 0%, #c82333 100%); color: white; }
.badge-waterproofing { background: linear-gradient(135deg, #CC0000 0%, #990000 100%); color: white; }
.badge-complementary { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); color: white; }
.badge-decorative { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); color: white; }
.badge-base-paints-colorants { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); color: #212529; }

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-description {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.card-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #4a5568;
}

.card-features .feature i {
    color: #3B82F6;
    width: 16px;
    font-size: 0.85rem;
}

.card-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.card-link:hover {
    gap: 12px;
    color: #2563eb;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #CC0000 0%, #c82333 100%)!important; 
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #374151;
}

.modal-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

#docViewer {
    width: 100%;
    height: 60vh;
    border: none;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* ===== MODAL FORM STYLES ===== */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #CC0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Product Info in Modals */
.product-info-summary,
.quote-product-info {
    background: #f8fafc;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.quote-product-info h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: #1e293b;
}

.product-details-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.summary-item strong {
    color: #64748b;
    font-weight: 600;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-message h3 {
    color: #10b981;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.error-message {
    text-align: center;
    padding: 2rem;
}

.error-icon {
    font-size: 3rem;
    color: #CC0000;
    margin-bottom: 1rem;
}

.error-message h3 {
    color: #CC0000;
    margin-bottom: 0.5rem;
}

.error-message p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

#description > div > p > b:nth-child(n) > span {
    font-size: 24px!important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .product-container {
        gap: 3rem;
    }
    
    .product-name {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
    
    .product-gallery {
        position: static;
    }
    
    .main-image {
        min-height: 350px;
        padding: 2rem;
    }
    
    .product-img {
        max-height: 280px;
    }
    
    .product-name {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 140px;
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .details-container {
        padding: 0 1.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .products-grid.compact {
        grid-template-columns: 1fr;
    }
    
    .spec-item,
    .tech-spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .spec-value,
    .tech-value {
        text-align: left;
    }
    
    /* Modal Responsive */
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .summary-item {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .doc-card {
        padding: 1rem;
    }
    
    .doc-actions {
        flex-direction: column;
    }
    
    .doc-action {
        width: 32px;
        height: 32px;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    #docViewer {
        height: 50vh;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        flex: 1;
    }
    
    /* Description Chips Responsive */
    .product-description-chips {
        gap: 0.5rem;
    }
    
    .description-chip {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .product-main {
        padding: 2rem 0;
    }
    
    .product-details {
        padding: 2.5rem 0;
    }
    
    .main-image {
        padding: 1.5rem;
        min-height: 300px;
    }
    
    .product-img {
        max-height: 220px;
    }
        
    .product-container,
    .details-container,
    .container {
        padding: 0 1rem;
    }
    
    .tab-btn {
        min-width: 120px;
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }
}
