/* =====================================================
   MISFITS COFFEE — COMPLETE RESPONSIVE CSS
   Breakpoints: 1920, 1600, 1440, 1366, 1199, 991, 767, 575, 375
   ===================================================== */

/* ---- 1920 wide screens ---- */
@media only screen and (max-width: 1920px) and (min-width: 1500px) {
    .container {
        max-width: 1300px;
    }
}

/* ---- 1600 ---- */
@media only screen and (max-width: 1600px) {
    .main-banner {
        height: 820px;
    }

    .main-content h1 {
        font-size: 7rem;
    }

    .mainHead {
        font-size: 80px;
    }

    .innerBan h2 {
        font-size: 110px;
    }
}

/* ---- 1440 ---- */
@media only screen and (max-width: 1445px) {
    .main-banner {
        height: 780px;
    }

    .main-content h1 {
        font-size: 6.5rem;
    }

    .main-content {
        padding-left: 4rem;
    }

    .mainHead {
        font-size: 72px;
    }

    .cup-content .mainHead {
        font-size: 72px;
    }

    .innerBan h2 {
        font-size: 96px;
    }

    .customer-main {
        padding: 35px 36px 32px;
    }

    .customer-main p {
        font-size: 24px;
    }
}

/* ---- 1366 ---- */
@media only screen and (max-width: 1366px) {
    html {
        font-size: 15px;
    }

    .main-banner {
        height: 740px;
    }

    .main-content h1 img {
        display: none;
    }

    .main-content h1 {
        font-size: 6rem;
    }

    .mainHead {
        font-size: 68px;
    }

    .cup-sec {
        height: 560px;
    }

    .coffee-features-section {
        padding: 8rem 0 14rem;
    }

    .misfitslider {
        padding: 10rem 0 5rem;
    }
}

/* ---- Laptop / Small Desktop ---- */
@media (max-width: 1199.98px) {
    html {
        font-size: 14px;
    }

    /* Nav */
    .navbar-nav {
        gap: 1.25rem;
    }

    .hdr-right {
        gap: 12px;
    }

    .btn-box a.themeBtn {
        padding: 0.8rem 1.6rem;
    }

    /* Banner */
    .main-banner {
        height: 680px;
    }

    .main-content {
        padding-left: 2.5rem;
    }

    .main-content h1 {
        font-size: 5.2rem;
    }

    /* Headings */
    .mainHead {
        font-size: 60px;
    }

    .cup-content .mainHead {
        font-size: 60px;
    }

    .innerBan h2 {
        font-size: 80px;
    }

    /* Brand */
    .brand-img {
        height: 190px;
        width: 190px;
    }

    .brand-flex {
        gap: 0.75rem;
    }

    /* Features */
    .coffee-features-section {
        padding: 7rem 0 12rem;
    }

    .misfitslider {
        padding: 8rem 0 5rem;
        margin-bottom: -14rem;
    }

    /* Customer */
    .customer-sec .mainHead {
        width: 80%;
    }

    .customer-main {
        padding: 28px 28px 24px;
    }

    .customer-main p {
        font-size: 21px;
    }

    /* Cup section */
    .cup-sec {
        height: 520px;
    }

    /* Contact */
    .contact-card {
        padding: 60px 60px;
    }

    .section-title-contact {
        font-size: 52px;
    }

    /* Footer */
    .footer-bottom {
        gap: 8rem;
    }
}

/* ---- Tablet ---- */
@media (max-width: 991.98px) {
    html {
        font-size: 13px;
    }

    /* ===== MOBILE NAV — hide desktop collapse, show hamburger ===== */
    .navbar-collapse {
        display: none !important;
    }

    .navbar-toggler {
        display: flex !important;
    }

    /* Banner */
    .main-banner {
        height: auto;
        min-height: 580px;
        padding: 7rem 0 4rem;
    }

    .main-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .main-content h1 {
        font-size: 4.5rem;
        width: 100%;
    }

    /* Brand section */
    .brand-flex {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .brand-img {
        height: 160px;
        width: 160px;
    }

    /* Coffee sec */
    .coffee-sec {
        padding: 5rem 0 10rem;
    }

    .coffee-content {
        padding-left: 0;
        margin-top: 2rem;
    }

    .coffee-content .mainHead {
        font-size: 3rem;
    }

    /* Product sec */
    .product-top {
        display: none;
    }

    .product-sub1,
    .product-sub2 {
        display: none;
    }

    /* Headings */
    .mainHead {
        font-size: 52px;
    }

    .subHead {
        font-size: 26px;
    }

    .innerBan h2 {
        font-size: 60px;
    }

    /* Features */
    .coffee-features-section {
        padding: 5rem 0 8rem;
    }

    .feature-box {
        margin-bottom: 2.5rem !important;
    }

    .col-lg-3:last-child .feature-box {
        text-align: left !important;
    }

    .center-image-wrapper {
        max-width: 360px;
        margin: 0 auto;
    }

    .misfitslider {
        padding: 6rem 0 4rem;
        margin-bottom: -10rem;
    }

    /* Customer */
    .customer-sec {
        padding: 5rem 0 10rem;
    }

    .customer-sec .mainHead {
        width: 100%;
    }

    .customer-sub {
        display: none;
    }

    .customer-main {
        padding: 24px 24px 20px;
        border-radius: 32px;
    }

    .customer-main p {
        font-size: 18px;
    }

    /* Cup section */
    .cup-sec {
        height: auto;
        padding: 4rem 0;
    }

    .cup-1,
    .cup-2 {
        display: none;
    }

    .cup-content {
        text-align: center;
    }

    .cup-content .mainHead {
        font-size: 52px;
    }

    .cup-content .btn-box {
        justify-content: center;
    }

    /* Gallery */
    .gallerytop,
    .gallerybottom,
    .gallerysub1,
    .gallerysub2 {
        display: none;
    }

    .coffee-gallery-section {
        padding: 4rem 0 6rem;
    }

    /* Footer */
    footer {
        padding: 5rem 0 2rem;
    }

    .footer-flex {
        gap: 2rem;
    }

    .footer-bottom {
        gap: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 1.5rem;
    }

    .footer-bottom figure {
        position: static;
        margin: 1rem auto;
    }

    .footer-box {
        padding-top: 6rem;
    }

    .footer-bottom p {
        margin: 0.25rem 0;
    }

    .footertop {
        display: none;
    }

    .preLoader .counter {
        font-size: 10rem;
        right: 2rem;
    }

    /* Contact */
    .contact-card {
        padding: 40px 30px;
        border-radius: 28px;
    }

    .section-title-contact {
        font-size: 42px;
    }

    /* Merch / Shop */
    .product-sec.shoppage1 .product-main {
        margin-bottom: 30px;
    }
}

/* ---- Mobile Landscape / Large Mobile ---- */
@media (max-width: 767.98px) {
    html {
        font-size: 12px;
    }

    /* Banner */
    .main-banner {
        min-height: 520px;
        padding: 6rem 0 3rem;
    }

    .main-content h1 {
        font-size: 3.8rem;
        letter-spacing: -1px;
    }

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

    .main-content .btn-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Brand */
    .brand-img {
        height: 130px;
        width: 130px;
        border-radius: 10px;
    }

    .brand-main a {
        font-size: 20px;
        margin: 0.6rem 0;
    }

    .brand-flex {
        gap: 0.6rem;
    }

    /* Headings */
    .mainHead {
        font-size: 42px;
    }

    .coffee-content .mainHead {
        font-size: 2.6rem;
    }

    .cup-content .mainHead {
        font-size: 42px;
    }

    .innerBan h2 {
        font-size: 44px;
    }

    .section-title-contact {
        font-size: 32px;
    }

    /* Product */
    .product-main {
        margin-bottom: 2rem;
    }

    .product-content h4 {
        font-size: 20px;
    }

    .product-content p {
        font-size: 1.25rem;
    }

    /* Features */
    .coffee-features-section {
        padding: 4rem 0 6rem;
    }

    .misfitslider {
        padding: 4rem 0 3rem;
        margin-bottom: 0;
    }

    .misfitslider .swiper-button-next,
    .misfitslider .swiper-button-prev {
        bottom: 20%;
    }

    /* Customer */
    .customer-sec {
        padding: 4rem 0 6rem;
    }

    .customer-main {
        border-radius: 24px;
        padding: 20px;
    }

    .customer-main p {
        font-size: 16px;
        margin: 20px 0 2rem;
    }

    /* Gallery */
    .gallery-card {
        border-radius: 18px;
        margin-bottom: 1rem;
    }

    /* Cup */
    .cup-content .mainHead {
        font-size: 36px;
    }

    /* Footer */
    .footer-flex {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 0 0;
    }

    footer p {
        width: 100%;
    }

    .footer-box {
        padding-top: 4rem;
    }

    .footer-bottom {
        gap: 0;
    }

    .footer-brand {
        font-size: 2rem;
    }

    /* Contact */
    .contact-card {
        padding: 28px 18px;
        border-radius: 20px;
    }

    /* Inner banner */
    .innerBan h2 {
        font-size: 38px;
        line-height: 1;
    }

    /* Preloader */
    .preLoader .counter {
        font-size: 7rem;
        right: 1rem;
    }

    .preLoader .bar {
        height: 15%;
    }

    /* Section padding reduce */
    section {
        padding: 4rem 0;
    }

    .coffee-sec {
        padding: 4rem 0 6rem;
    }

    .customer-sec {
        padding: 4rem 0 5rem;
    }

    .coffee-cup {
        margin-bottom: 0;
    }
}

/* ---- Small Mobile ---- */
@media (max-width: 575.98px) {

    /* Banner */
    .main-banner {
        min-height: 480px;
        padding: 5.5rem 0 3rem;
    }

    .main-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .main-content h1 {
        font-size: 3.2rem;
    }

    /* Brand — 2 columns */
    .brand-flex {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 320px;
        margin: 0 auto;
    }

    .brand-main:last-child {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .brand-img {
        height: 140px;
        width: 140px;
    }

    /* Headings */
    .mainHead {
        font-size: 34px;
    }

    .coffee-content .mainHead {
        font-size: 2.2rem;
    }

    .innerBan h2 {
        font-size: 30px;
    }

    .cup-content .mainHead {
        font-size: 32px;
    }

    /* Features */
    .coffee-features-section {
        padding: 3rem 0 5rem;
    }

    .misfitslider {
        padding: 3rem 0 2.5rem;
    }

    /* Customer */
    .customer-sec {
        padding: 3rem 0 4rem;
    }

    /* Footer */
    .footer-flex {
        flex-direction: column;
    }

    .footer-flex .footer-links {}

    /* Gallery row */
    .coffee-gallery-section .row .col-md-4 {
        margin-bottom: 0.75rem;
    }

    /* Contact */
    .contact-card {
        padding: 20px 14px;
    }

    .section-title-contact {
        font-size: 26px;
    }

    /* Cup */
    .cup-sec {
        padding: 3rem 0;
    }

    /* Nav */
    .navbar-brand img {
        max-height: 44px;
    }
}

/* ---- Very small (375 and below) ---- */
@media (max-width: 375.98px) {
    .main-content h1 {
        font-size: 2.8rem;
    }

    .mainHead {
        font-size: 29px;
    }

    .brand-img {
        height: 120px;
        width: 120px;
    }

    .brand-flex {
        max-width: 265px;
    }

    .coffee-content .mainHead {
        font-size: 2rem;
    }

    .section-title-contact {
        font-size: 22px;
    }
}

/* =====================================================
   MOBILE MENU (Slide-in Drawer)
   ===================================================== */

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 88vw);
    height: 100%;
    background: #2e1a14;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-drawer.open {
    right: 0;
}

/* Drawer top bar */
.mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-head .drawer-logo img {
    height: 42px;
    filter: brightness(0) invert(1);
}

.mobile-drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.mobile-drawer-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Nav links */
.mobile-drawer-nav {
    padding: 1.5rem 1.5rem 1rem;
    flex: 1;
}

.mobile-drawer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-drawer-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-drawer-nav ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 400;
    text-decoration: none !important;
    text-transform: capitalize;
    transition: color 0.2s;
    letter-spacing: 0.2px;
}

.mobile-drawer-nav ul li a:hover,
.mobile-drawer-nav ul li a.active {
    color: #febd02;
}

.mobile-drawer-nav ul li a .nav-arrow {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: transform 0.2s;
}

.mobile-drawer-nav ul li a:hover .nav-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Drawer footer actions */
.mobile-drawer-actions {
    padding: 1.25rem 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-drawer-actions .themeBtn {
    text-align: center;
    width: 100%;
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
}

.mobile-drawer-actions .drawer-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 0.875rem;
    text-decoration: none !important;
    transition: background 0.2s;
}

.mobile-drawer-actions .drawer-account:hover {
    background: rgba(255, 255, 255, 0.08);
}
.mobile-drawer-actions .drawer-cart-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  color: #fff;
  font-size: 0.875rem;
  text-decoration: none !important;
  transition: background 0.2s;
  position: relative;
}
.mobile-drawer-actions .drawer-cart-link:hover {
  background: rgba(255,255,255,0.08);
}
.mobile-cart-badge {
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Hamburger button styling */
.navbar-toggler {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Cart icon in nav — keep visible on mobile */
.hdr-right-mobile {
    display: none;
    align-items: center;
    gap: 12px;
}

@media (max-width: 991.98px) {
    .hdr-right-mobile {
        display: flex;
    }
}

/* Prevent body scroll when drawer open */
body.drawer-open {
    overflow: hidden;
}

/* =====================================================
   ADDITIONAL FIXES — Inner pages & misc
   ===================================================== */

/* Inner banner responsive */
@media (max-width: 991.98px) {
    .innerBan img.w-100 {
        min-height: 220px;
        object-fit: cover;
    }

    .innerBan .overlay {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .innerBan img.w-100 {
        min-height: 180px;
    }
}

@media (max-width: 575.98px) {
    .innerBan img.w-100 {
        min-height: 150px;
    }
}

/* About page extra */
@media (max-width: 991.98px) {
    .coffee-sec .row.flex-row-reverse {
        flex-direction: column !important;
    }

    .coffee-sec .coffee-imag {
        text-align: center;
    }
}

/* Merch / Shop page */
@media (max-width: 767.98px) {
    section.product-sec.shoppage1 .product-main {
        margin-bottom: 20px;
    }
}

/* Menu page (coffee-menu-section) */
@media (max-width: 575.98px) {
    .coffee-card {
        flex-direction: column !important;
    }

    .card-img-wrapper {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .item-desc {
        max-width: 100%;
    }

    .card-content {
        min-height: auto;
        align-items: center;
    }

    .card-content>.d-flex {
        flex-direction: column;
        gap: .5rem;
    }
}

/* Preloader hide on extra small */
@media (max-width: 375.98px) {
    .preLoader .counter {
        font-size: 5rem;
    }
}

/* Swiper bullet overlap fix on mobile */
@media (max-width: 767.98px) {
    .misfitslider .swiper-pagination {
        bottom: 0;
    }

    .misfitslider .swiper-button-next,
    .misfitslider .swiper-button-prev {
        display: none;
    }

    .footer-links li:last-child {
        margin-bottom: 0;
    }

    figure.footer-logo img {
        display: block;
        margin: 0 auto 2rem;
    }
}

/* Fix hdr-right hiding on desktop (ensure it stays flex) */
@media (min-width: 992px) {
    .hdr-right-mobile {
        display: none !important;
    }

    .navbar-toggler {
        display: none !important;
    }

    .navbar-collapse {
        display: flex !important;
    }
}

/* Prevent brand images overflow on very small screens */
@media (max-width: 360px) {
    .brand-flex {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .brand-img {
        width: 100%;
        height: 120px;
    }
}
