/* style.css - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================ */
/* NAVIGATION */
/* ============================================ */

.navbar {
    background: #000000;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1.5rem 0;
}

.logo-link {
    display: block;
    padding: 0.75rem 0;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.mobile-toggle {
    display: none;

}

.nav-icon {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 1.5rem 1.25rem;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #cc0000;
}

.nav-menu .search-icon-li a {
    padding: 1.5rem 1.25rem;
}


/* Search Icon Styling */
.nav-menu .search-icon-li {
    display: flex;
    align-items: center;
}

.nav-menu .search-icon-li a {
    color: white;
    font-size: 1.25rem; /* Adjust as needed to match icon size */
    padding: 1.5rem 1.25rem; /* Match existing nav link padding */
    display: block;
    transition: color 0.3s ease;
}

.nav-menu .search-icon-li a:hover {
    color: #cc0000;
}

/* Search Field Styling */
.search-field-container {
    visibility: hidden; /* Hidden by default for smooth transition */
    opacity: 0; /* Hidden by default for smooth transition */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;

    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    display: flex; /* Flexbox for aligning input and button */
    gap: 0.5rem; /* Space between input and button */
    align-items: center; /* Vertically align items */
    justify-content: center; /* Horizontally center items */
}

.search-field-container.active {
    visibility: visible;
    opacity: 1;
}

.search-field-container .search-box {
    flex-grow: 1; /* Allow search box to take available space */
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #222;
    color: white;
}

#goSearchButton {
    /* Basic button styling */
    background: #cc0000; /* Red color, similar to .btn-primary */
    color: white;
    padding: 0.75rem 1rem; /* Match input padding height */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevent "GO" from wrapping */
}

#goSearchButton:hover {
    background: #990000; /* Darker red on hover */
}






/* Dropdown menu (Products) */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-toggle::after {
    content: " ▾";
    font-size: 0.8em;
    margin-left: 0.25rem;
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    min-width: 200px;
    border-radius: 6px;
    overflow-y: auto;
    max-height: 90vh; /* 80% of the viewport height */
    display: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    z-index: 200;
}

.nav-menu .dropdown-menu li {
    list-style: none;
}

.nav-menu .dropdown-menu li a {
    padding: 0.75rem 1rem;
    color: #fff;
    display: block;
}

.nav-menu .dropdown-menu li a:hover {
    background: rgba(204,0,0,0.12);
    color: #cc0000;
}

/* mobile: show when parent has .open */
.nav-menu .dropdown.open > .dropdown-menu { display: block; }

/* On mobile make dropdowns flow with the nav stack */
@media (max-width: 768px) {
    .nav-menu {
        max-height: calc(100vh - 74px);
        overflow-y:scroll; 
    }
    .nav-menu .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        padding-left: 2rem;
        width: 100%;
    }
    .nav-menu .dropdown-menu li a {
        color: #fff;
        padding: 0.5rem 1rem;
        margin-left: 0.5rem;
    }
}

/* Desktop: position submenus flow with the nav stack */
@media (min-width: 769px) {
    .nav-menu .dropdown-menu .dropdown > .dropdown-menu {
        position: static;
        padding-left: 1rem;
        top: 0;
    }
}

/* ============================================ */
/* BANNER IMAGE */
/* ============================================ */
.tag-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ============================================ */
/* BREADCRUMB */
/* ============================================ */
.breadcrumb-section {
    background: #eee;
    padding: 8px 15px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
    align-items: center;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb .current-page {
    color: #cc0000;
    font-weight: 600;
}

/* ============================================ */
/* SORT */
/* ============================================ */
.sort-section {
    padding: 8px 15px;
}

.sort-select {
    padding: 0.5rem 0.5rem;
    border: none;
    font-size: 1rem;
    background: white;
    border-bottom: 1px solid #aaa;
}


/* ============================================ */
/* CAROUSEL */
/* ============================================ */

.carousel-section {
    //padding: 4rem 0;
    background: #f8f8f8;
}

.carousel-description {
    background: #ffffff;
    padding: 2rem 0;
    text-align: center;
}

.carousel-description p {
    font-size: 1rem;
    color: #333333;
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.carousel {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 2000/890;
    object-fit: contain;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.slide-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.15s ease;
}

.carousel-button:hover {
    background: rgba(204,0,0,0.8);
    transform: translateY(-50%) scale(1.03);
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;
}

.dot.active {
    background: #cc0000;
    transform: scale(1.15);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .carousel-section { padding: 2rem 0; }
    .carousel-slide img { aspect-ratio: 4/3; max-height: 300px; }
    .slide-content { padding: 1rem; }
    .carousel-button { width: 36px; height: 36px; font-size: 1rem; }

    /* Adjust search field for mobile to ensure input and button stay on one line */
    .search-field-container {
        padding: 0.5rem; /* Reduce padding for more horizontal space */
    }

    .search-field-container .search-box {
        min-width: 0; /* Allow the search box to shrink as much as needed */
        max-width: 100%; /* Allow the search box to grow to full width on mobile */
    }

    #goSearchButton {
        flex-shrink: 0; /* Prevent the GO button from shrinking */
        white-space: nowrap; /* Prevent the GO text from wrapping */
    }
}

@media (min-width: 1200px) {
    .carousel-slide img { max-height: 600px; }
}

/* HOME AD SECTION (id="homead") */
/* Large left ad + two stacked right ads */
.homead {
    padding: 2rem 0 3rem;
    background: #ffffff;
}

.homead-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.homead-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.homead-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4; /* taller aspect ratio */
    min-height: 320px;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.homead-item:hover img {
    transform: scale(1.15);
}

.homead-column {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.ad-text {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.homead-large .ad-text h3 { font-size: 1.5rem; margin: 0 0 0.25rem; }
.homead-small .ad-text h4 { font-size: 1.1rem; margin: 0; }

@media (max-width: 1100px) {
    .homead-grid { grid-template-columns: repeat(2, 1fr); }
    .homead-item img { min-height: 280px; }
}

@media (max-width: 700px) {
    .homead-grid { grid-template-columns: repeat(2, 1fr); }
    .homead { padding: 1rem 0; }
    .homead-item img { min-height: 360px; }
}


/* HERO SECTION */
/* ============================================ */

.hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 8rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-primary {
    background: #0c0000ff;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #990000;
    box-shadow: 0 4px 12px rgba(204,0,0,0.2);
}

/* Video section: minimal centering styles */
.video-container {
    position: relative;
    aspect-ratio: 16 / 9; /* Use modern aspect-ratio property */
    overflow: hidden;
    max-width: 630px; /* To maintain the original max-width */
    margin: 0 auto; /* To center the container */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.video-caption {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
}

.video-caption p {
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0;
    width: 100%;
    max-width: 630px;
    text-align: center;
    color: rgba(0,0,0,0.5);
}

/* ============================================ */
/* FEATURES SECTION */
/* ============================================ */

.features {
    padding: 5rem 2rem;
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* ============================================ */
/* PAGE HEADER */
/* ============================================ */

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.product-controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.search-box,
.filter-select,
.sort-select {
    padding: 0.5rem 0.5rem;
    border: none;
    font-size: 1rem;
    background: white;
    border-bottom: 1px solid #aaa;
}

.search-box {
    min-width: 300px;
    flex: 1;
    max-width: 400px;
}

/* ============================================ */
/* CONTENT SECTIONS */
/* ============================================ */

.content-section {
    padding: 1rem 1rem;
    min-height: 60vh;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-content h2 {
    color: #667eea;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #444;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.values-list li:last-child {
    border-bottom: none;
}

/* ============================================ */
/* NEWS SECTION */
/* ============================================ */
.news-title {

}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.news-date {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.news-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: #764ba2;
}

/* ============================================ */
/* PRODUCTS GRID */
/* ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* New styles for related products grid */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Smaller minmax to allow more items */
    gap: 1rem; /* Adjust gap as needed */
}

@media (min-width: 1200px) {
    .related-products-grid {
        grid-template-columns: repeat(6, 1fr); /* 6 items in a row on large screens */
    }
}

@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr); /* Display 2 items per row on mobile */
        gap: 0.5rem;
    }
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 100%;
    max-height: 280px;
    object-fit: contain;
    background: #ffffff;
}

.product-info {
    padding: 0.5rem;
}

.product-category {
    font-size: 0.85rem;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    font-size: 1.1rem;
}

.product-image-container {
    position: relative;
}

.new-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #db0000;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

/* ============================================ */
/* PRODUCT MODAL */
/* ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.9);
}

.modal-images {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    background: #f0f0f0;
    scrollbar-width: none;
}

.modal-images::-webkit-scrollbar {
    display: none;
}

.modal-image {
    min-width: 100%;
    height: 500px;
    object-fit: contain;
    scroll-snap-align: center;
}

.image-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f0f0f0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active,
.dot:hover {
    background: #667eea;
}

.modal-info {
    padding: 2rem;
}

.modal-category {
    font-size: 0.9rem;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.modal-description {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
}

/* ============================================ */
/* DOWNLOAD SECTION */
/* ============================================ */

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.download-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.download-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.download-card p {
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.file-size {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1.5rem;
}

.btn-download {
    background: #667eea;
    color: white;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    transition: background 0.3s, transform 0.3s;
}

.btn-download:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

/* ============================================ */
/* PARTNER SHOP SECTION */
/* ============================================ */

.partner-search {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.location-search {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.partner-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.partner-address,
.partner-phone,
.partner-hours {
    margin-bottom: 0.75rem;
    color: #666;
}

.btn-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: color 0.3s;
}

.btn-link:hover {
    color: #764ba2;
}

/* ============================================ */
/* CONTACT SECTION */
/* ============================================ */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info,
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: #666;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */

.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.footer-brand-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* Adjust gap as needed */
}

.footer-logo img {
    height: auto;
    width: 150px;
    display: block;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #cc0000;
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
    background-color: #990000;
    transform: scale(1.1);
}

.footer-copyright {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* fontawesome social media icons */
.footer-socials .fa {
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  vertical-align: middle;
  text-decoration: none;
  border-radius: 50%;
}

.fa:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.fa-facebook {
  background: #3B5998;
  color: white;
}

.fa-youtube-play {
  background: #bb0000;
  color: white;
}

.fa-instagram {
  background: #125688;
  color: white;
}

.fa-flickr {
  background: #f40083;
  color: white;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Adjust as needed for spacing */
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a1a;
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    /* Hide desktop search icon in mobile view */
    .nav-menu .search-icon-li {
        display: none;
    }

    .nav-menu a {
        padding: 1rem 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .product-controls {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Ensure 2 items per row on mobile */
        gap: 1.5rem;
    }

    .modal-image {
        height: 300px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .partner-search {
        flex-direction: column;
    }
}

.section-title {
    text-align: center;
    padding-bottom: 1.5rem;
    font-size: 1.75rem;
    color: #1a1a1a;
}

/* ============================================ */
/* RECOMMEND SECTION */
/* ============================================ */

.recommend-section {
    padding: 3rem 2rem;
    background: #f9f9f9;
}
.recommend-section h2 {
    margin-bottom: 1.5rem;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: start;
}

.product-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background-color: #ffffff;
    padding: 0.5rem; /* small padding so contained images don't touch card edge */
}

.product-card h3 {
    padding: 0.5rem 1rem 0.5rem;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

/* Ensure product titles don't look like links */
.product-card a {
    color: inherit;
    text-decoration: none;
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack children vertically */
    height: 100%; /* Ensure it takes full height of product-card */
}

/* Adjust image height for related products grid */
.related-products-grid .product-image {
    max-height: 180px; /* Smaller max-height for related product images */
}

.product-card a:hover,
.product-card a:focus {
    text-decoration: none;
}

.product-card a h3 {
    color: #333333;
    text-decoration: none;
}

.product-card a:hover h3 {
    color: #333333;
}

@media (max-width: 900px) {
    .recommend-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .recommend-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Product Detail Page Styles */
.main-container {
  padding-bottom: 2rem;
}

#product-detail-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.product-detail-description {
    color: rgba(0,0,0,.5)!important;
}

.tag-detail-image {
    width: 90vw; /* 90% of viewport width */
    max-width: 100%; /* Ensure it doesn't exceed its parent container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
    margin: 0 auto; /* Center the image */
}

.product-images {
    display: flex;
    flex-direction: row; /* Main image and thumbnails side-by-side */
    flex: 0 0 calc(50% - 1rem); /* Take up 50% width minus half the gap */
    min-width: 300px; /* Minimum width before wrapping */
    position: relative;
    gap: 1rem;
}

.main-image-display {
    flex: 1; /* Take up remaining space */
    width: 100%;
    aspect-ratio: 1/1; /* Square aspect ratio for main image */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    position: relative; /* For positioning nav buttons */
}

#mainProductImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-nav {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
}

.nav-button {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
}

.image-index {
    font-size: 16px;
    margin: 0 10px;
}


.nav-button:hover {
    background-color: rgba(204, 0, 0, 0.7);
}

.thumbnail-container {
    display: flex;
    flex-direction: column; /* Stack thumbnails vertically */
    gap: 0.5rem;
    overflow-y: hidden; /* Hide vertical scrolling initially */
    max-height: 500px; /* Limit height and enable scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari, Opera */
.thumbnail-container::-webkit-scrollbar {
    display: none;
    width: 0px; /* Fully hide scrollbar */
    height: 0px;
}


.thumbnail {
    flex-shrink: 0; /* Prevent thumbnails from shrinking */
    width: 80px; /* Fixed width for thumbnails */
    height: 80px; /* Fixed height for thumbnails */
    object-fit: cover;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.thumbnail:hover {
    border-color: #aaa;
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.thumbnail.active {
    border-color: #7a7a7a; /* Highlight active thumbnail */
    
}

.product-details-content {
    flex: 0 0 calc(50% - 1rem); /* Take up 50% width minus half the gap */
    min-width: 300px; /* Minimum width before wrapping */
}

.related-items-section {
    padding-top: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid #dee2e6;
}

.tag-details-section {
    padding-top: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    #product-detail-container {
        flex-direction: column; /* Stack image and details vertically */
    }

    .product-images {
        flex-direction: column-reverse; /* Stack main image on top of thumbnails */
    }

    .thumbnail-container {
        flex-direction: row; /* Revert to horizontal for mobile */
        overflow-x: auto;
        overflow-y: hidden;
        max-height: unset; /* Unset max-height for horizontal scroll */
        padding-right: 0;
        padding-bottom: 0.5rem;
    }

    .main-image-display {
        margin-bottom: 0; /* Remove bottom margin for mobile */
    }

    .product-images,
    .product-details-content {
        min-width: unset; /* Remove min-width to allow full flexibility */
        width: 100%;
    }
}

/* ============================================ */
/* PAGINATION */
/* ============================================ */

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.pagination-container a {
    color: #333;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 0.25rem;
    transition: background-color 0.3s;
}

.pagination-container a.active {
    background-color: #cc0000;
    color: white;
    border-color: #cc0000;
}

.pagination-container a:hover:not(.active) {
    background-color: #f4f4f4;
}


@media (max-width: 768px) {
    .pagination-container {
        flex-wrap: wrap;
    }
    .pagination-container a {
        padding: 0.25rem 0.5rem;
        margin: 0.1rem;
    }
}




/* ============================================ */
/* INNER BANNER */
/* ============================================ */

.inner-banner {
    width: 100vw; /* Occupy full viewport width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
}


/* ============================================ */
/* ABOUT PAGE SPECIFIC STYLES */
/* ============================================ */

.content-section p {
    padding-bottom: 1rem; /* Add some space below paragraphs */
}



/* ============================================ */
/* NEWS DETAIL PAGE */
/* ============================================ */

.news-detail-container {
    margin: 0 auto;
    padding: 2rem 0;
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.news-date {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.news-image {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.news-content p {
    padding-bottom: 1rem;
}


/* ============================================ */
/* DOWNLOAD PAGE SPECIFIC STYLES */
/* ============================================ */

.download-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.download-card .card-body {
    display: block;
    padding: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.dw_icon {
    width: 60px;
    height: 30px; /* Made shorter */
    border-radius: 8px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #555;
}

.dw_icon.PDF {
    background-color: #ff5555ff; /* Light blue for PDF */
    color: #ffffffff; /* Darker blue text */
}

.filename_ex {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.dw_btn {
    background-color: #0288d1; /* Blue download button */
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: background-color 0.3s ease;
    /* Using a pseudo-element for an arrow icon, for example */
}

.dw_btn::before {
    content: '?'; /* Downwards arrow */
}

.dw_btn:hover {
    background-color: #01579b;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.dw_info {
    font-size: 0.85rem;
    color: #777;
    margin-top: 1rem;
}

._info_date, ._info_size {
    /* Specific styling if needed, otherwise inherit from .dw_info */
}

/* Flex utilities (basic implementations if not using a framework like Bootstrap) */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}


.dw_icon.PDF {
    margin-left: 10px; /* Add space between icon and PDF text */
}

