/* ======================================================
    Responsive CSS — Bigvee
    Breakpoints:
      Tablet : max-width 1024px
      Mobile : max-width 768px
=======================================================*/


/* ======================================================
    Dark Header — toggle icon white
=======================================================*/
header.bg-dark .header-toggle img {
    filter: brightness(0) invert(1);
}


/* ======================================================
    Button
=======================================================*/

@media (max-width: 768px) {
    .btn { padding: 5px 26px; }

    .hero-cta .btn-primary { padding: 6px 26px; }
}


/* ======================================================
    Header Toggle Button — hidden on desktop
=======================================================*/
.header-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    border-radius: 8px;
    transition: background 0.2s;
}

.header-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

.header-toggle img {
    width: 22px;
    height: 22px;
    display: block;
}


/* ======================================================
    Header — Tablet
=======================================================*/
@media (max-width: 1200px) {
    header {
        padding: 20px 0 28px;
    }

    .header-inner {
        padding: 14px 22px;
        gap: 24px;
    }

    .header-left {
        gap: 20px;
    }

    /* Show toggle, hide nav — sidebar handles navigation */
    .header-toggle      { display: flex; }
    .main-navigation    { display: none !important; }
}


/* ======================================================
    Header — Mobile
=======================================================*/
@media (max-width: 768px) {
    header {
        padding: 14px 0 28px;
    }

    .header-inner {
        display: grid;
        grid-template-columns: 40px 1fr 40px;
        align-items: center;
        gap: 8px;
        padding: 12px 14px;
        border-radius: 20px;
    }

    /* Show toggle */
    .header-toggle {
        display: flex;
        grid-column: 1;
        grid-row: 1;
    }

    /* Logo: center column */
    .header-left {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        justify-content: center;
        gap: 0;
    }

    /* Right: third column — hide Shop Now btn */
    .header-right {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        justify-content: flex-end;
    }

    .header-right .btn {
        display: none;
    }

    .logo-wrappper {
        max-width: 120px;
    }

    /* Nav hidden on mobile — sidebar handles navigation */
    .main-navigation {
        display: none !important;
    }

    /* Checkout page: keep no bottom padding on header */
    .page-checkout header {
        padding-bottom: 0;
    }
}


/* ======================================================
    Section Spacing
=======================================================*/
@media (max-width: 1024px) {
    .section-vertical-spacing-top    { padding-top: 72px; }
    .section-vertical-spacing-bottom { padding-bottom: 72px; }
    .section-header--vertical-spacing { margin-bottom: 44px; }
}

@media (max-width: 768px) {
    .section-vertical-spacing-top    { padding-top: 48px; }
    .section-vertical-spacing-bottom { padding-bottom: 48px; }
    .section-header--vertical-spacing { margin-bottom: 32px; }
}


/* ======================================================
    Typography
=======================================================*/
@media (max-width: 1024px) {
    h1, .h1 { font-size: 48px; }
    h2, .h2 { font-size: 36px; }
    h3, .h3 { font-size: 22px; }
    .hero-title { font-size: 46px; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }

    h1, .h1 { font-size: 34px; }
    h2, .h2 { font-size: 26px; }
    h3, .h3 { font-size: 20px; }
    h4, .h4 { font-size: 18px; }
    h5, .h5 { font-size: 16px; }

    .hero-title    { font-size: 32px; letter-spacing: -0.5px; }
    .hero-subtitle { font-size: 16px; margin-bottom: 28px; }

    .section-subtitle { font-size: 13px; }
}


/* ======================================================
    Max-width helpers — full width on mobile
=======================================================*/
@media (max-width: 768px) {
    .max-width-475,
    .max-width-560,
    .max-width-575,
    .max-width-660,
    .max-width-742,
    .max-width-1000 {
        max-width: 100% !important;
    }
}


/* ======================================================
    Gap Utilities — scale down
=======================================================*/
@media (max-width: 768px) {
    .gap-100 { gap: 40px !important; }
    .gap-80  { gap: 32px !important; }
    .gap-60  { gap: 28px !important; }
    .gap-50  { gap: 24px !important; }
    .gap-40  { gap: 20px !important; }
    .gap-30  { gap: 16px !important; }
}


/* ======================================================
    Column Grid — stack on mobile
=======================================================*/
@media (max-width: 1024px) {
    .col-2 { flex: 0 0 calc(50% - 12px) !important; }
    .col-3 { flex: 0 0 calc(50% - 12px) !important; }
    .col-4 { flex: 0 0 calc(50% - 12px) !important; }
    .col-5 { flex: 0 0 calc(50% - 12px) !important; }
    .col-6 { flex: 0 0 calc(50% - 12px) !important; }
    .col-7 { flex: 0 0 calc(60% - 12px) !important; }
    .col-8 { flex: 0 0 calc(60% - 12px) !important; }

    .flex-box { flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .col-1,  .col-2,  .col-3,
    .col-4,  .col-5,  .col-6,
    .col-7,  .col-8,  .col-9,
    .col-10, .col-11, .col-12 {
        flex: 0 0 100% !important;
    }
}


/* ======================================================
    Hero Sections
=======================================================*/
@media (max-width: 1024px) {
    .hero-inner    { gap: 28px; }
    .hero-content  { max-width: 54%; }
}

@media (max-width: 768px) {
    .hero-section { padding-bottom: 0; overflow: hidden; }

    .hero-inner {
        flex-direction: column;
        gap: 28px;
    }

    .hero-content {
        max-width: 100%;
        text-align: left;
    }

    .hero-cta {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-image {
        width: 100%;
        justify-content: center;
    }

    .hero-image img {
        max-width: 100%;
    }
}


/* ======================================================
    Engineered for Strength — mobile reorder
=======================================================*/
@media (max-width: 768px) {
    .strength-grid > .col-6          { order: 1; }
    .strength-grid > .col-3:last-child { order: 2; }
    .strength-grid > .col-3:first-child { order: 3; }

    /* Feature list: left-aligned on mobile */
    .strength-grid .feature-list {
        align-items: flex-start;
    }

    .strength-grid .feature-list li {
        text-align: left;
        justify-content: flex-start;
        flex-direction: row-reverse;
    }
}


/* ======================================================
    Animated Text
=======================================================*/
@media (max-width: 1024px) {
    .large-animated-text { font-size: 44px; }
}

@media (max-width: 768px) {
    .large-animated-text { font-size: 30px; line-height: 1.4; }
}


/* ======================================================
    Marquee
=======================================================*/
@media (max-width: 768px) {
    .marquee-content { gap: 28px; padding-right: 28px; font-size: 14px; }
}


/* ======================================================
    Why Bigvee Section (decorative lines)
=======================================================*/
@media (max-width: 768px) {
    .why-bigvee-content {
        padding-bottom: 48px;
    }
}


/* ======================================================
    Accordion (common)
=======================================================*/
@media (max-width: 768px) {
    .accordian-header { font-size: 18px; }
    .accordian-content { padding-right: 20px; }
    .accordian-item { padding: 22px 16px; }
}


/* ======================================================
    Image Box
=======================================================*/
@media (max-width: 768px) {
    .image-box { padding: 16px; }
}


/* ======================================================
    Testimonial Slider
=======================================================*/
@media (max-width: 1024px) {
    .testimonial-quote p { font-size: 38px; }
}

@media (max-width: 768px) {
    .testimonial-slider {
        overflow: hidden;
        gap: 28px;
    }

    .testimonial-card {
        gap: 24px;
        max-width: 320px;
        margin: auto;
    }

    .testimonial-quote p {
        font-size: 24px;
        line-height: 1.35;
    }

    .testimonial-quote--mark img {
        height: 22px;
    }

    .testimonial-dots { margin-top: 0; }
}


/* ======================================================
    Gallery Slider (index)
=======================================================*/
@media (max-width: 768px) {
    .gallery-slider {
        overflow: hidden;
        width: 100vw;
        margin-left: -20px;
    }

    .gallery-track,
    .gallery-set {
        gap: 10px;
    }

    .gallery-image {
        flex: 0 0 calc(50vw - 10px);
    }

    .gallery-dots { margin-top: 20px; }

    .gallery-slider::before,
    .gallery-slider::after {
        height: 35px;
    }
}


/* ======================================================
    FAQ Section
=======================================================*/
@media (max-width: 768px) {
    .faq-item     { padding: 18px 0; }
    .faq-list     { gap: 0; }
    .faq-number   { display: none; }
    .faq-header   { gap: 16px; }
    .faq-question { font-size: 20px; }
    .faq-body p   { font-size: 18px; padding-left: 0; }
}


/* ======================================================
    Product Detail
=======================================================*/
@media (max-width: 768px) {
    .product-title        { font-size: 35px; }
    .product-qty,
    .product-add-to-cart  { flex: 0 0 calc(50% - 6px); min-width: 0; }
}


/* ======================================================
    Contact Form
=======================================================*/
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
}


/* ======================================================
    Footer
=======================================================*/
@media (max-width: 1024px) {
    .footer-cta-title { font-size: 36px; }

    .footer-columns .flex-box { flex-wrap: wrap; gap: 40px; }
    .footer-columns .col-5    { flex: 0 0 100% !important; }
    .footer-columns .col-2    { flex: 0 0 calc(50% - 20px) !important; }
    .footer-columns .col-3    { flex: 0 0 100% !important; }
}

@media (max-width: 768px) {
    .footer-cta-title { font-size: 28px; }
    .footer-cta-desc  { font-size: 16px; }

    .footer-columns .flex-box { flex-wrap: wrap; gap: 32px; }

    .footer-columns .col-5    { flex: 0 0 100% !important; }
    .footer-columns .col-2    { flex: 0 0 calc(50% - 16px) !important; }
    .footer-columns .col-3    { flex: 0 0 100% !important; }

    .footer-links { gap: 0; }

    .footer-logo-full { padding: 0; }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}


/* ======================================================
    Dealers Policy Section
=======================================================*/
@media (max-width: 1024px) {
    .dealers-policy-grid {
        gap: 20px;
    }

    .dealers-policy-card {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .dealers-policy-grid {
        flex-direction: column;
        gap: 16px;
    }

    .dealers-policy-card {
        padding: 24px 20px;
    }
}


/* ======================================================
    Product Detail Page
=======================================================*/
@media (max-width: 1024px) {
    .product-detail-inner { gap: 40px; }
}

@media (max-width: 768px) {
    .product-detail-inner {
        flex-direction: column;
        gap: 28px;
    }

    .product-gallery,
    .product-info {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .product-thumbnails {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .product-thumbnails::-webkit-scrollbar { display: none; }

    .product-actions {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .product-add-to-cart {
        width: auto;
        max-width: none;
        justify-content: center;
    }

    .packaging-banner {
        gap: 12px;
    }

    .packaging-details {
        flex-wrap: wrap;
        gap: 10px;
    }
}


/* ======================================================
    Installation Videos Slider
=======================================================*/
@media (max-width: 768px) {
    .installation-videos-section { overflow: hidden; margin-bottom: 0; }

    .installation-video-slide {
        min-width: calc(100vw - 40px);
        width: 100%;
    }

    .installation-video-inner {
        flex-direction: column;
        gap: 20px;
    }

    .installation-videos-dots { margin-top: 20px; }

    .installation-video-title {
        font-size: 22px;
        font-weight: 400;
        color: #ffffff;
    }
}


/* ======================================================
    Installation Guide Slider
=======================================================*/
@media (max-width: 1024px) {
    .installation-guide-inner {
        flex-direction: column;
        gap: 40px;
    }

    .installation-guide-left,
    .installation-guide-right {
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    .installation-guide-left{
        gap: 20px;
    }

    .installation-card {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .installation-guide-text { text-align: left; }

    /* Precision Fit: image first in HTML → move to bottom on mobile */
    .precision-fit-section .col-6:first-child { order: 2; }
    .precision-fit-section .col-6:last-child  { order: 1; }
    .precision-fit-section::after { height: 60px; }
    .precision-fit-section { margin-bottom: 50px; }

    .installation-card {
        width: calc((100vw - 40px) / 1.3);
    }

    .tick-list { gap: 12px; }
}


/* ======================================================
    Ratings & Reviews
=======================================================*/
@media (max-width: 768px) {
    .ratings-reviews-inner {
        flex-direction: column;
        gap: 32px;
    }

    .rating-summary,
    .rating-testimonials {
        width: 100%;
        flex: none;
    }

    .rating-summary  { flex-direction: column; max-width: 100%; }
    .rating-bars     { width: 100%; flex: none; }

    .rating-testimonial { padding: 20px; margin: auto; max-width: 100%; }
    .rating-testimonial .testimonial-card { max-width: 320px; }

    .ratings-reviews-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}


/* ======================================================
    Cart Drawer
=======================================================*/
@media (max-width: 768px) {
    .cart-panel {
        top: 0;
        right: 0;
        bottom: 0;
        gap: 0;
    }

    .cart-drawer {
        width: 100vw;
        border-radius: 0;
    }

    .cart-drawer-close {
        position: absolute;
        top: 14px;
        right: 14px;
        margin-top: 0;
        z-index: 10;
    }
}


/* ======================================================
    About Us — Precision Fit / Mission Vision / Why We Exist
=======================================================*/
@media (max-width: 1024px) {
    .why-we-exist-inner {
        flex-direction: column;
        gap: 40px;
    }

    .why-we-exist-image {
        max-width: 480px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mission-vision-intro { padding-top: 0; }

    /* Why We Exist: image first in HTML → move to bottom on mobile */
    .why-we-exist-inner .col-6:first-child { order: 2; }
    .why-we-exist-inner .col-6:last-child  { order: 1; }

    .mission-card,
    .vision-card { border-radius: 20px; min-height: 300px; }

    .mission-vision-cards {
        flex-direction: column;
        gap: 16px;
    }

    .purpose-accordion-header { font-size: 18px; }
}


/* ======================================================
    Team Slider
=======================================================*/
@media (max-width: 768px) {
    .team-slider-wrapper { overflow: hidden; }

    .team-card {
        min-width: calc(100vw - 80px);
    }

    .team-dots { margin-top: 20px; }
}


/* ======================================================
    Gallery Page
=======================================================*/
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .gallery-hero-images { gap: 10px; }
    .gallery-hero-img { height: 200px; }

    .gallery-hero-image-wrap:nth-child(n+3) { display: none; }
}


/* ======================================================
    Checkout Page
=======================================================*/
@media (max-width: 1024px) {
    .checkout-form-col {
        flex: 0 0 56%;
        padding: 40px 36px 40px 24px;
    }

    .checkout-summary-col {
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {
    .checkout-section { padding-bottom: 10px; }

    .checkout-layout {
        flex-direction: column;
        min-height: unset;
    }

    .checkout-form-col {
        flex: none;
        width: 100%;
        padding: 28px 0px;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        gap: 28px;
    }

    .checkout-summary-col {
        flex: none;
        width: 100%;
        padding: 28px 0px;
    }

    .checkout-fields-row,
    .checkout-fields-row--3 {
        flex-direction: column;
        gap: 12px;
    }

    .checkout-express-btns {
        flex-direction: row;
        gap: 10px;
    }

    .checkout-express-btn { width: auto; flex: 1; }

    .checkout-pay-btn {
        width: 100%;
        justify-content: center;
    }

    .checkout-form-divider {
        margin-top: 20px;
    }

    .checkout-summary-item {
        display: grid;
        grid-template-columns: 78px 1fr;
        grid-template-rows: auto auto;
        column-gap: 16px;
        row-gap: 4px;
    }

    .checkout-summary-img-wrap { grid-column: 1; grid-row: 1 / 3; }
    .checkout-summary-item-info { grid-column: 2; grid-row: 1; }
    .checkout-summary-price     { grid-column: 2; grid-row: 2; font-size: 20px; margin-top: 10px; }

    .checkout-summary-heading { display: block; }

    .checkout-summary-name { font-size: 20px; }
    .checkout-summary-desc { font-size: 14px; }

    .checkout-footer-links {
        font-size: 13px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 20px;
    }

    .checkout-payment-option-header {
        flex-wrap: wrap;
        gap: 8px;
    }
}


/* ======================================================
    Policy Pages
=======================================================*/
@media (max-width: 1024px) {
    .policy-layout { gap: 40px; }
    .policy-sidebar { flex: 0 0 180px; }
}

@media (max-width: 768px) {
    .policy-hero       { padding: 40px 0 32px; }
    .policy-hero-title { font-size: 30px; }
    .policy-body       { padding: 36px 0 60px; }

    .policy-layout {
        flex-direction: column;
        gap: 28px;
    }

    .policy-sidebar {
        position: static;
        flex: none;
        width: 100%;
        padding: 20px;
        background: #f8f9fb;
        border-radius: 12px;
    }

    .policy-section-title { font-size: 18px; }

    .policy-contact-card {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }
}


/* ======================================================
    Mobile Nav Sidebar
=======================================================*/
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 4, 19, 0);
    pointer-events: none;
    transition: background 0.35s ease;
}

.mobile-nav-overlay.is-open {
    background: rgba(0, 4, 19, 0.5);
    pointer-events: all;
}

.mobile-nav-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 85vw);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 40px rgba(0, 4, 19, 0.12);
}

.mobile-nav-overlay.is-open .mobile-nav-sidebar {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.mobile-nav-logo img {
    max-width: 120px;
    height: auto;
    display: block;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.mobile-nav-close:hover {
    background: #e5e7eb;
}

.mobile-nav-close img {
    width: 14px;
    height: 14px;
    display: block;
}

.mobile-nav-links {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.mobile-nav-links li a {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 400;
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    letter-spacing: 0.3px;
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav-links li:last-child a {
    border-bottom: none;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li.active-menu-item a {
    color: var(--primary-color);
    background: #f0f4ff;
}

.mobile-nav-cta {
    padding: 20px 20px 20px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.mobile-nav-cta .btn {
    width: 100%;
    max-width: 100%;
    text-align: center;
    display: block;
}
