/* ==================== RESPONSIVE STYLES ==================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {

    /* Who We Are Section - New Structure Support */
    .who-we-are {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 40px;
        padding-top: 40px;
    }

    .who-we-are .container {
        order: 2;
        /* Content in middle */
        width: 100%;
    }

    .who-we-are-wrapper {
        /* No longer controls image layout, just content wrapper */
        min-height: auto;
        padding: 0;
    }

    .who-we-are-img-left,
    .who-we-are-img-right {
        display: block;
        position: static;
        width: 80%;
        height: 350px;
        transform: none;
        margin: 20px 0;
        border-radius: 12px;
    }

    .who-we-are-img-left {
        order: 1;
        /* Top */
    }

    .who-we-are-img-right {
        order: 3;
        /* Bottom */
    }

    .who-we-are-content {
        padding: 0;
    }

    .services-content {
        margin-left: -20px;
        padding: var(--gap-lg);
    }

    /* Product Page Hero - Adjust decorative images */
    .hero-img-1 {
        width: 120px;
        height: 200px;
        left: 20px;
        top: 120px;
    }

    .hero-img-2 {
        width: 110px;
        height: 130px;
        left: 100px;
        top: 220px;
    }

    .hero-img-3 {
        width: 140px;
        height: 180px;
        right: 40px;
        top: 140px;
    }

    .hero-img-4 {
        width: 80px;
        height: 140px;
        right: 20px;
        top: 200px;
    }
}

/* Tablets */
@media (max-width: 991px) {

    /* Header */
    .header_main .header_wrap {
        padding: 15px 20px;
    }

    .header_main .logobox img {
        height: 40px;
    }

    /* Show hamburger on tablet */
    .header_main .navbar-brand {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .header_main .navbar-brand .hamburger {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 25px;
        position: relative;
    }

    .header_main .navbar-brand .hamburger a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .header_main .navbar-brand .hamburger span {
        display: block;
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        top: 50%;
        transform: translateY(-50%);
        transition: all 0.3s ease;
    }

    .header_main .navbar-brand .hamburger span::before,
    .header_main .navbar-brand .hamburger span::after {
        content: '';
        display: block;
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        transition: all 0.3s ease;
    }

    .header_main .navbar-brand .hamburger span::before {
        top: -10px;
    }

    .header_main .navbar-brand .hamburger span::after {
        top: 10px;
    }

    .header_main .navbar-brand .hamburger.active span {
        background-color: transparent;
    }

    .header_main .navbar-brand .hamburger.active span::before {
        top: 0;
        transform: rotate(45deg);
    }

    .header_main .navbar-brand .hamburger.active span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .header_main .header_right {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 100;
    }

    .header_main .header_right.active {
        max-height: 500px;
    }

    .header_main .navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .header_main .navigation ul li {
        border-bottom: 1px solid var(--border-color);
    }

    .header_main .navigation ul li:last-child {
        border-bottom: none;
    }

    .header_main .navigation ul li a {
        font-size: 16px;
        padding: 12px 0;
        display: block;
    }

    /* Footer */
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .footer-col-info {
        width: 100%;
    }

    .footer-col-links,
    .footer-col-contact {
        width: 100%;
    }

    .footer-logo {
        height: 50px;
    }

    /* CTA Section */
    .cta-wrapper {
        padding: 40px 30px;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-content p {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .cta-buttons {
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Homepage */
    /* Hero Section */
    .hero-content h1 {
        font-size: 40px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* About Section */
    .about-grid,
    .why-us-content,
    .gallery-header {
        grid-template-columns: 1fr;
    }

    .about-grid .imgbox {
        height: 400px;
    }

    .about-images {
        height: 400px;
        margin-bottom: 40px;
    }

    .about-img-wrapper {
        transform: scale(0.7);
        transform-origin: top left;
    }

    /* Gallery Section - Tablet */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        row-gap: 30px;
    }

    .gallery-header {
        grid-column: 1 / -1;
        grid-row: auto;
        height: auto;
        margin-bottom: 20px;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-4,
    .item-5,
    .item-6 {
        grid-column: auto;
        grid-row: auto;
        margin-top: 0;
        height: 300px;
        align-self: stretch;
    }

    .item-3 {
        grid-column: 1 / -1;
    }

    .nav-menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Sister Company Section */
    .sister-header h2 {
        font-size: 28px;
    }

    .sister-header p {
        font-size: 16px;
    }

    /* FAQ Section */
    .faq-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .faq-question {
        font-size: 18px;
    }

    .faq-answer {
        font-size: 16px;
    }

    /* About Page */
    .about-hero-section .hero-container {
        flex-direction: column;
    }

    .about-hero-section .hero-container .hero-image {
        width: 100%;
        height: 300px;
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .vm-header {
        margin-bottom: 30px;
    }

    .services-layout {
        flex-direction: column;
    }

    .services-image {
        width: 100%;
        height: 400px;
        margin-bottom: 0;
    }

    .services-content {
        width: 100%;
        margin-left: 0;
        margin-top: -60px;
        /* Slight overlap for tablet, or 0 for stack. Let's try stack for cleanliness or slight overlap */
        margin-top: -60px;
        padding: 30px;
    }

    /* Reset width for mobile/tablet to avoid the desktop 66% setting */
    .services-content {
        width: 100%;
        margin-left: 0;
        margin-top: -40px;
    }

    /* Product Page */
    .hero-card {
        height: auto;
        min-height: 280px;
        padding: 40px 20px;
    }

    .hero-card .hero-content h1 {
        font-size: 28px;
    }

    .hero-card .hero-content p {
        font-size: 14px;
    }

    /* Hide decorative images on tablet */
    .hero-deco {
        display: none;
    }

    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 30px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-image-wrapper {
        height: 250px;
    }

    /* Product Detail Page */
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .thumbnail-strip {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-arrow {
        flex-shrink: 0;
    }

    .related-products-section .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .accordion-content {
        padding-right: 20px;
    }

    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 0;
    }

    .input-group {
        margin-bottom: 0;
    }

    .contact-info-bar {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {

    /* Header */
    .about-img-wrapper {
        overflow: visible !important;
    }

    .header_main {
        padding: 10px 0;
    }

    .header_main .header_wrap {
        padding: 10px 15px;
    }

    .header_main .logobox img {
        height: 35px;
        width: auto;
    }

    .header_main .header_right {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 100;
    }

    .header_main .header_right.active {
        max-height: 500px;
    }

    .header_main .navigation {
        width: 100%;
    }

    .header_main .navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 15px;
    }

    .header_main .navigation ul li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .header_main .navigation ul li:last-child {
        border-bottom: none;
    }

    .header_main .navigation ul li a {
        font-size: 14px;
        padding: 12px 0;
        display: block;
    }

    /* Footer */
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .footer-col-info,
    .footer-col-links,
    .footer-col-contact {
        width: 100%;
        max-width: 100%;
    }

    .footer-logo {
        height: 45px;
        margin-bottom: 20px;
    }

    .footer-heading {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .footer-desc {
        font-size: 14px;
    }

    .footer-link,
    .contact-text {
        font-size: 14px;
    }

    .footer-bottom {
        padding: 20px 10px;
    }

    .copyright {
        font-size: 14px;
        text-align: center;
    }

    /* Sister Company Overlay Fix */
    .sister-logo-overlay {
        width: 40%;
        max-width: 400px;
    }

    .sister-company-section::before {
        height: 100%;
    }

    /* Why Us Collage Mobile Fix */
    .why-us-collage .imgbox {
        aspect-ratio: auto;
        height: auto;
    }

    .why-us-collage img {
        height: auto;
    }

    /* CTA Section */
    .cta-wrapper {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .cta-content h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .cta-content p {
        font-size: 14px;
        margin-bottom: 30px;
        line-height: 1.5;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        /* Fix Vertical Alignment */
        align-items: center;
        text-align: center;
    }

    .cta-buttons .primary-btn,
    .cta-buttons .btn-outline {
        width: 100%;
        padding: 12px 18px;
        font-size: 15px;
    }

    /* Homepage */
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
    }

    .hero-section .banner_caption {
        padding-top: 80px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-content .primary-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 20px;
        text-align: center;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* About Section */
    .about-section {
        padding: 60px 0;
    }

    .about-grid .imgbox {
        height: 300px;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .about-content p {
        font-size: 16px;
    }

    /* Why Us Section */
    .why-us-section {
        padding: 60px 0;
    }

    .why-us-header h2 {
        font-size: 28px;
    }

    .why-us-header p {
        font-size: 16px;
    }

    .why-us-list h3 {
        font-size: 22px;
    }

    .feature-text h4 {
        font-size: 18px;
    }

    .feature-text p {
        font-size: 14px;
    }

    /* Why Us - Image First on Mobile */
    .why-us-content {
        display: flex;
        flex-direction: column;
    }

    .why-us-images {
        order: -1;
        margin-bottom: 30px;
    }

    .why-us-list {
        order: 1;
    }

    /* Sister Company Section */
    .sister-company-section {
        padding: 60px 0;
    }

    .sister-header h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .sister-header p {
        font-size: 14px;
    }

    /* FAQ Section */
    .faq-section {
        padding: 60px 0;
    }

    .faq-section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .faq-item {
        padding: 20px 16px;
    }

    .faq-question {
        font-size: 16px;
        padding-right: 30px;
    }

    .faq-answer {
        font-size: 14px;
        line-height: 1.6;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
    }

    /* Gallery Section - Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-section {
        padding: 0;
    }

    .gallery-header h2 {
        font-size: 28px;
    }

    .gallery-header p {
        font-size: 16px;
    }

    .gallery-item {
        height: 250px;
    }

    /* About Page */
    .about-hero-section {
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .about-hero-section .hero-container .hero-content {
        padding: 30px 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-hero-section .hero-container .hero-content h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .about-hero-section .hero-container .hero-content p {
        font-size: 14px;
        text-align: center;
    }

    .about-hero-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    /* Who We Are Section */
    .who-we-are {
        padding: 60px 0;
        /* Ensure edge-to-edge content */
    }

    .who-we-are .container {
        padding: 0 15px;
        /* Restore container padding for text */
    }

    /* Override padding for full width images layout */
    .who-we-are {
        padding-left: 0;
        padding-right: 0;
    }

    .who-we-are-content h2 {
        font-size: 28px;
    }

    .who-we-are-content p {
        font-size: 16px;
    }

    .who-we-are-img-left,
    .who-we-are-img-right {
        width: 100%;
        /* Force full width */
        max-width: 100%;
        height: 250px;
        border-radius: 0;
        /* Remove radius for full bleed */
        margin: 0;
        /* Remove margin for full bleed */
    }



    /* Vision & Mission */
    .vision-mission {
        padding: 0px 0;
        margin-top: 60px;
    }

    .vm-grid {
        justify-items: center;
    }

    .vm-card {
        max-width: 500px;
        width: 100%;
    }

    .vm-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .vm-header h2 {
        font-size: 24px;
    }

    .vm-card {
        padding: 30px 20px;
    }

    .vm-card h3 {
        font-size: 22px;
    }

    .vm-card p {
        font-size: 16px;
    }

    /* Services Section */
    .services-section {
        margin-bottom: 0;
        /* Add spacing between Vision/Mission and Services */
        margin-top: 40px;
    }

    .services-image {
        height: 300px;
    }

    .services-content {
        padding: 24px;
        margin-top: -30px;
    }

    .services-content h2 {
        font-size: 22px;
    }

    .services-content p {
        font-size: 16px;
    }

    .primary-btn,
    .btn-outline {
        width: 100%;
    }

    /* Product Page */
    .hero-section.product-hero {
        margin-top: 20px;
        margin-bottom: 40px;
        /* Adjust top/bottom space as requested */
        /* Reduced top space from 100px */
        padding-top: 0px;
        padding-bottom: 40px;
        min-height: auto;
    }

    .hero-card {
        height: auto;
        min-height: 250px;
        padding: 30px 15px;
    }

    .hero-card .hero-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-card .hero-content h1 {
        font-size: 24px;
        white-space: normal;
    }

    .hero-card .hero-content p {
        font-size: 14px;
    }

    .shop-section {
        margin-bottom: 40px;
    }

    .main-content {
        margin-bottom: 40px;
    }

    .sidebar {
        padding: 15px 20px;
    }

    .sidebar-title {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .filter-heading {
        font-size: 14px;
    }

    .checkbox-label {
        font-size: 12px;
    }

    .reset-btn {
        font-size: 12px;
        height: 36px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        row-gap: 30px;
    }

    .product-image-wrapper {
        height: 280px;
    }

    .product-title,
    .product-price {
        font-size: 16px;
    }

    .pagination {
        gap: 20px;
        margin-top: 40px;
    }

    .pagination-numbers {
        gap: 8px;
    }

    .pagination-arrow img {
        width: 24px;
        height: 24px;
    }

    .pagination-number {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    /* Product Detail Page */
    .product-detail-section {
        padding: 40px 0;
    }

    .product-layout {
        gap: 30px;
    }

    .main-image-wrapper {
        margin-bottom: 30px;
    }

    .thumbnail-strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .gallery-arrow img {
        width: 24px;
        height: 24px;
    }

    .product-title-wrapper h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .current-price {
        font-size: 22px;
    }

    .original-price {
        font-size: 14px;
    }

    .discount-tag {
        font-size: 12px;
    }

    .product-detail-section .product-description {
        font-size: 14px;
    }

    .option-label {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .option-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .contact-dealer-btn {
        padding: 14px 20px;
        font-size: 16px;
    }

    .dealers-info {
        padding: 20px;
    }

    .dealer-text {
        font-size: 13px;
    }

    .accordion-title {
        font-size: 16px;
    }

    .accordion-content {
        font-size: 13px;
        padding-right: 10px;
    }

    .accordion-icon {
        width: 12px;
        height: auto;
    }

    .related-products-section {
        padding: 40px 0;
    }

    .related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }

    .related-title {
        font-size: 24px;
    }

    .browse-btn {
        font-size: 16px;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }

    .related-products-section .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .spec-row {
        grid-template-columns: 1fr;
    }

    .spec-label,
    .spec-value {
        font-size: 14px;
        padding: 12px 16px;
    }

    .spec-label {
        background: var(--bg-light);
        border-bottom: none;
    }

    .spec-value {
        border-bottom: 1px solid var(--border-color);
    }

    .spec-row:last-child .spec-value {
        border-bottom: none;
    }

    /* Contact Page */
    .contact-section {
        padding: 40px 0;
    }

    .contact-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .contact-form-container {
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .form-row {
        gap: 16px;
        margin-bottom: 16px;
    }

    .form-row:nth-last-of-type {
        margin-bottom: o;
    }

    .input-group {
        margin-bottom: 0;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
        font-size: 16px;
    }

    .form-textarea {
        min-height: 120px;
    }

    .submit-btn {
        padding: 14px 20px;
        font-size: 16px;
        width: 100%;
    }

    .form-btn-wrapper {
        margin-top: 20px;
    }

    .map-section {
        margin-bottom: 30px;
        border-radius: 10px;
    }

    .map-section iframe {
        height: 250px;
    }

    .contact-info-bar {
        padding: 20px;
        gap: 20px;
    }

    .info-icon-wrapper {
        width: 36px;
        height: 48px;
    }

    .info-icon {
        width: 18px;
        height: 18px;
    }

    .info-label {
        font-size: 16px;
    }

    .info-value {
        font-size: 14px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {

    /* Extra small adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Homepage */
    .hero-content h1 {
        font-size: 28px;
    }

    .about-content h2,
    .why-us-header h2,
    .sister-header h2,
    .faq-section h2 {
        font-size: 22px;
    }

    .feature-text h4 {
        font-size: 16px;
    }

    /* About Page */
    .about-hero-section .hero-container .hero-content h1 {
        font-size: 20px;
    }

    .who-we-are-content h2,
    .vm-header h2 {
        font-size: 22px;
    }

    .vm-card h3 {
        font-size: 20px;
    }

    .services-content h2 {
        font-size: 20px;
    }

    /* Contact Page */
    .contact-form-container {
        padding: 0 5px;
    }

    .input-group {
        margin-bottom: 12px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
        font-size: 14px;
    }

    /* Product Page */
    .hero-card .hero-content h1 {
        font-size: 20px;
    }

    .hero-card .hero-content p {
        font-size: 12px;
    }

    .product-title-wrapper h1 {
        font-size: 20px;
    }

    .current-price {
        font-size: 20px;
    }

    .related-title {
        font-size: 20px;
    }

    .contact-title {
        font-size: 24px;
    }

    .pagination-numbers {
        gap: 6px;
    }

    .pagination-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}