/* ============================================
   PAGES CSS - Consolidated styles for all pages
   ============================================ */

/* Body Background */
body {
    background-color: #fff !important;
    padding-bottom: 60px;
}

/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* Banner Hero Section */
.hero-banner-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}
#banner_tabs {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}
#banner_tabs .slides {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    height: 100%;
}
#banner_tabs .slides li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}
#banner_tabs .slides li.active {
    opacity: 1;
    z-index: 2;
}
#banner_tabs .slides li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 53, 69, 0.9);
    padding: 40px 60px;
    text-align: center;
    color: #fff;
    font-size: 28px;
    line-height: 1.6;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10;
    pointer-events: none;
}
.hero-overlay strong {
    font-weight: 700;
    font-size: 32px;
}
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.banner-nav:hover {
    background: rgba(255,255,255,0.5);
}
.banner-nav.prev {
    left: 20px;
}
.banner-nav.next {
    right: 20px;
}
.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}
.banner-controls button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}
.banner-controls button.active {
    background: #fff;
}

/* Product Categories Section */
.homeplace {
    background: #fff;
    padding: 70px 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}
.homeplace .in {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.homeplace .pd {
    background: #fff;
    display: flex;
    gap: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    align-items: stretch;
    min-height: 300px;
    overflow: visible;
    margin-bottom: 0;
}
.homeplace .pd:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.homeplace .pd img {
    width: 380px;
    min-width: 380px;
    height: 300px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
    display: block;
    position: relative;
    z-index: 1;
}
.homeplace .pd-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 40px 30px 25px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}
.homeplace .pd-content > div:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}
.homeplace .pd-number {
    font-size: 72px;
    font-weight: 700;
    color: #DC3545;
    line-height: 1;
    display: block;
    letter-spacing: -4px;
    position: absolute;
    top: 0;
    left: -80px;
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
}
.homeplace .proname {
    font-size: 22px;
    font-weight: 700;
    margin: 50px 0 15px 0;
    line-height: 1.3;
    color: #000;
}
.homeplace .proname a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}
.homeplace .proname a:hover {
    color: #DC3545;
}
.homeplace .pd-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}
.homeplace .pd-list li {
    line-height: 1.8;
    color: #666;
    font-size: 14px;
    padding: 6px 0;
    margin: 0;
    display: block;
    border-bottom: 1px solid #e0e0e0;
}
.homeplace .pd-list li:last-child {
    border-bottom: none;
}
.homeplace .pd > a {
    color: #DC3545;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-top: 15px;
    transition: padding-left 0.3s ease;
    align-self: flex-start;
}
.homeplace .pd > a:hover {
    padding-left: 5px;
}
.homeplace .pd span {
    display: none;
}

/* Bottom Chat Bar */
.bottom-chat-bar {
    background: #2b2b2b;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}
.bottom-chat-bar .chat-left {
    color: #fff;
    font-size: 14px;
}
.bottom-chat-bar .chat-right {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.bottom-chat-bar .chat-icon {
    width: 20px;
    height: 20px;
    background: #DC3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

/* ============================================
   CATALOG PAGE STYLES
   ============================================ */

.catalog-wrapper {
    background: #fff;
    padding: 40px 0;
}
.catalog-sidebar {
    width: 250px;
    float: left;
    background: #f9f9f9;
    padding: 20px;
    margin-right: 30px;
}
.catalog-sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #DC3545;
}
.catalog-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.catalog-sidebar li {
    margin-bottom: 8px;
}
.catalog-sidebar a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.catalog-sidebar a:hover,
.catalog-sidebar a.active {
    background: #DC3545;
    color: #fff;
}
.catalog-content {
    margin-left: 280px;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.catalog-product {
    background: #fff;
    border: 1px solid #ddd;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    min-height: 280px;
}
.catalog-product:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.catalog-product img {
    width: 300px;
    min-width: 300px;
    height: 280px;
    object-fit: contain;
    background: #f9f9f9;
    padding: 15px;
    flex-shrink: 0;
}
.catalog-product-info {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.catalog-product-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.3;
}
.catalog-product-title a {
    color: #000;
    text-decoration: none;
}
.catalog-product-title a:hover {
    color: #DC3545;
}
.catalog-product-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    flex: 1;
}
.catalog-product-link {
    color: #DC3545;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-top: 10px;
}
.catalog-product-link:hover {
    padding-left: 5px;
}
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}
.pagination {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}
.pagination-link {
    padding: 8px 15px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}
.pagination-link:hover:not(.disabled):not(.active) {
    background: #DC3545;
    color: #fff;
    border-color: #DC3545;
}
.pagination-link.active {
    background: #DC3545;
    color: #fff;
    border-color: #DC3545;
    font-weight: 600;
}
.pagination-link.disabled {
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-wrapper {
    background: #fff;
    padding: 50px 0;
}
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.contact-info-box {
    background: #f9f9f9;
    padding: 30px;
    border-left: 4px solid #DC3545;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.contact-info-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}
.contact-info-box p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}
.contact-info-box a {
    color: #DC3545;
    text-decoration: none;
}
.contact-info-box a:hover {
    text-decoration: underline;
}
.map-container {
    margin-top: 50px;
    height: 400px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* ============================================
   PRODUCT DETAIL PAGE STYLES
   ============================================ */

.product-detail-wrapper {
    background: #fff;
    padding: 40px 0;
}
.breadcrumb-nav {
    background: #f5f5f5;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}
.breadcrumb-nav .in {
    font-size: 14px;
    color: #666;
}
.breadcrumb-nav a {
    color: #DC3545;
    text-decoration: none;
}
.breadcrumb-nav a:hover {
    text-decoration: underline;
}
.product-detail-container {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}
.product-images {
    flex: 0 0 500px;
}
.product-main-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}
.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.product-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #f9f9f9;
    padding: 5px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: #DC3545;
}
.product-info {
    flex: 1;
}
.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
    line-height: 1.3;
}
.product-specs {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
}
.product-specs h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #DC3545;
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
}
.spec-table tr {
    border-bottom: 1px solid #ddd;
}
.spec-table tr:last-child {
    border-bottom: none;
}
.spec-table td {
    padding: 12px 0;
    font-size: 14px;
    color: #333;
}
.spec-table td:first-child {
    font-weight: 600;
    width: 200px;
    color: #666;
}
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
.btn-chat {
    background: #DC3545;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}
.btn-chat:hover {
    background: #C41E3A;
    color: #fff;
}
.btn-catalog {
    background: #2b2b2b;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}
.btn-catalog:hover {
    background: #000;
    color: #fff;
}
.product-details-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #ddd;
}
.product-details-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}
.product-details-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
    white-space: pre-line;
}
.product-advantages {
    margin-top: 30px;
}
.product-advantages h3 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}
.product-advantages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-advantages li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}
.product-advantages li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #DC3545;
    font-weight: bold;
    font-size: 16px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1200px) {
    .homeplace .in {
        max-width: 100%;
        padding: 0 20px;
        gap: 30px;
    }
    .homeplace .pd img {
        width: 300px;
        min-width: 300px;
        height: 280px;
        background: transparent;
        padding: 0;
    }
    .homeplace .pd {
        min-height: 280px;
    }
    .homeplace .pd-content {
        padding: 35px 30px 35px 30px;
    }
    .homeplace .pd-number {
        font-size: 54px;
    }
    .homeplace .proname {
        font-size: 20px;
    }
    .catalog-sidebar {
        width: 200px;
        margin-right: 20px;
    }
    .catalog-content {
        margin-left: 220px;
    }
    .catalog-grid {
        gap: 20px;
    }
}

@media (max-width: 968px) {
    .homeplace {
        padding: 50px 0;
    }
    .homeplace .in {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    .homeplace .pd {
        flex-direction: column;
        min-height: auto;
    }
    .homeplace .pd img {
        width: 100%;
        min-width: 100%;
        height: 280px;
        background: transparent;
        padding: 0;
    }
    .homeplace .pd-content {
        padding: 30px;
    }
    .homeplace .pd-number {
        font-size: 48px;
        left: -60px;
    }
    .homeplace .proname {
        font-size: 22px;
        margin: 40px 0 15px 0;
    }
    #banner_tabs {
        height: 500px;
    }
    .banner-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .banner-nav.prev {
        left: 10px;
    }
    .banner-nav.next {
        right: 10px;
    }
    .hero-overlay {
        font-size: 20px;
        padding: 30px 40px;
    }
    .hero-overlay strong {
        font-size: 24px;
    }
    .catalog-sidebar {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 30px;
    }
    .catalog-content {
        margin-left: 0;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .catalog-product {
        flex-direction: column;
        min-height: auto;
    }
    .catalog-product img {
        width: 100%;
        min-width: 100%;
        height: 300px;
    }
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .product-detail-container {
        flex-direction: column;
    }
    .product-images {
        flex: 1;
    }
    .product-main-image {
        height: 400px;
    }
}

@media (max-width: 640px) {
    #banner_tabs {
        height: 400px;
    }
    .banner-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    .hero-overlay {
        font-size: 16px;
        padding: 25px 30px;
    }
    .hero-overlay strong {
        font-size: 20px;
    }
    .homeplace {
        padding: 50px 0;
    }
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    /* Mission & Vision Responsive */
    .mission-vision-container {
        flex-direction: column !important;
    }
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .certifications-grid {
        grid-template-columns: 1fr !important;
    }
}

