/* ============================================================
   WATCH WEBSITE
   Responsive CSS
   File: css/responsive.css
   Mobile-first layout
============================================================ */


/* ============================================================
   GLOBAL MOBILE SAFETY
============================================================ */

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}


/* ============================================================
   SMALL MOBILE
   320px - 359px
============================================================ */

@media (max-width: 359px) {

    .mobile-app {
        width: 100%;
    }

    .top-header {
        height: 72px;
        padding: 0 15px;
    }

    .brand-box {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .brand-name {
        font-size: 15px;
        letter-spacing: 2px;
    }

    .brand-tagline {
        font-size: 6px;
    }

    .page-heading {
        padding: 27px 17px 12px;
    }

    .page-heading h1 {
        font-size: 34px;
    }

    .page-heading p {
        font-size: 13px;
    }

    .category-scroll {
        padding-left: 17px;
        padding-right: 17px;
    }

    .search-box {
        margin-left: 17px;
        margin-right: 17px;
    }

    .products-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .products-grid {
        gap: 9px;
    }

    .product-image-wrap {
        height: 165px;
    }

    .product-info {
        padding: 9px;
    }

    .product-name {
        font-size: 15px;
    }

    .product-price {
        font-size: 16px;
    }

    .add-cart-btn {
        height: 38px;
        font-size: 9px;
    }

    .bottom-nav {
        height: 70px;
    }

    .nav-icon {
        font-size: 20px;
    }

    .nav-label {
        font-size: 8px;
    }
}


/* ============================================================
   NORMAL MOBILE
   360px - 389px
============================================================ */

@media (min-width: 360px) and (max-width: 389px) {

    .product-image-wrap {
        height: 185px;
    }

    .page-heading h1 {
        font-size: 37px;
    }

}


/* ============================================================
   LARGE MOBILE
   390px - 430px
============================================================ */

@media (min-width: 390px) and (max-width: 430px) {

    .product-image-wrap {
        height: 215px;
    }

    .product-info {
        padding: 13px;
    }

    .product-name {
        font-size: 18px;
    }

    .product-price {
        font-size: 19px;
    }

}


/* ============================================================
   PHONES IN LANDSCAPE
============================================================ */

@media (max-height: 500px) and (orientation: landscape) {

    .top-header {
        height: 65px;
    }

    .bottom-nav {
        height: 62px;
    }

    .page-heading {
        padding-top: 20px;
    }

    .drawer {
        overflow-y: auto;
    }

}


/* ============================================================
   TABLET
============================================================ */

@media (min-width: 501px) {

    body {
        background: #111;
    }

    .mobile-app {
        width: 500px;
        max-width: 500px;
        margin: 0 auto;
    }

}


/* ============================================================
   DESKTOP
============================================================ */

@media (min-width: 768px) {

    body {
        background: #111;
    }

    .mobile-app {
        width: 500px;
        max-width: 500px;
    }

}


/* ============================================================
   VERY LARGE SCREEN
============================================================ */

@media (min-width: 1200px) {

    .mobile-app {
        box-shadow:
            0 0 50px rgba(0, 0, 0, .35);
    }

}


/* ============================================================
   TOUCH DEVICES
============================================================ */

@media (hover: none) {

    button,
    a {
        -webkit-tap-highlight-color: transparent;
    }

}


/* ============================================================
   PRODUCT IMAGE FIX
============================================================ */

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ============================================================
   PRODUCT GRID SAFETY
============================================================ */

.products-grid {
    width: 100%;
    min-width: 0;
}

.product-card {
    min-width: 0;
    overflow: hidden;
}

.product-name {
    overflow: hidden;
    word-break: break-word;
}


/* ============================================================
   DRAWER MOBILE
============================================================ */

.drawer {
    max-width: 330px;
}

@media (max-width: 359px) {

    .drawer {
        width: 82vw;
    }

}


/* ============================================================
   BOTTOM NAV SAFE AREA
============================================================ */

.bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
}


/* ============================================================
   IOS INPUT FIX
============================================================ */

input,
button,
textarea,
select {
    font-family: inherit;
}

input {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 5px;
}


/* ============================================================
   REMOVE HORIZONTAL SCROLL
============================================================ */

.mobile-app,
.products-section,
.products-grid,
.category-scroll {
    max-width: 100%;
}


/* ============================================================
   ACCESSIBILITY
============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

}

/* =========================================================
   MW CLUB - MOBILE PRODUCT DETAIL UI
   Add this at the END of responsive.css
========================================================= */

@media (max-width: 768px) {

    /* ---------- GLOBAL ---------- */

    html {
        width: 100%;
        overflow-x: hidden;
    }

    body {
        width: 100%;
        margin: 0;
        overflow-x: hidden;
        padding-bottom: 78px;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }


    /* ---------- HEADER ---------- */

    .site-header {
        height: 64px;
    }

    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

    .logo-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .logo-subtitle {
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-action {
        width: 36px;
        height: 36px;
    }

    .header-action svg {
        width: 19px;
        height: 19px;
    }


    /* ---------- BREADCRUMB ---------- */

    .product-breadcrumb-section {
        padding: 12px 0;
    }

    .breadcrumb {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    /* ---------- PRODUCT SECTION ---------- */

    .product-detail-section {
        padding: 12px 0 25px;
    }

    .product-detail-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }


    /* ---------- PRODUCT IMAGE ---------- */

    .product-gallery {
        width: 100%;
        min-width: 0;
    }

    .product-main-image-wrap {
        width: 100%;
        height: 390px;

        border-radius: 18px;

        display: flex;
        align-items: center;
        justify-content: center;

        overflow: hidden;

        background: #f5f3ee;
        position: relative;
    }

    .product-main-image {
        width: 100%;
        height: 100%;

        object-fit: contain;
        object-position: center;

        display: block;
    }

    .product-detail-badge {
        top: 14px;
        left: 14px;

        font-size: 10px;
        padding: 6px 10px;
    }

    .product-detail-wishlist {
        top: 14px;
        right: 14px;

        width: 40px;
        height: 40px;

        border-radius: 50%;

        font-size: 21px;
    }


    /* ---------- THUMBNAILS ---------- */

    .product-thumbnails {
        margin-top: 10px;

        display: flex;
        gap: 8px;

        overflow-x: auto;
        padding-bottom: 3px;
    }

    .product-thumbnails::-webkit-scrollbar {
        display: none;
    }


    /* ---------- PRODUCT INFORMATION ---------- */

    .product-detail-info {
        width: 100%;
        min-width: 0;
    }

    .product-category {
        font-size: 11px;
        letter-spacing: 1.5px;
        margin-bottom: 7px;
    }

    .product-detail-title {
        font-size: 27px;
        line-height: 1.15;
        margin: 0 0 10px;
    }


    /* ---------- RATING ---------- */

    .product-rating-row {
        display: flex;
        align-items: center;
        gap: 6px;

        font-size: 12px;

        margin-bottom: 15px;
    }

    .product-stars {
        font-size: 14px;
        letter-spacing: 1px;
    }


    /* ---------- PRICE ---------- */

    .product-detail-price-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 9px;

        margin-bottom: 15px;
    }

    .product-detail-price {
        font-size: 25px;
        font-weight: 700;
    }

    .product-detail-old-price {
        font-size: 14px;
    }

    .product-detail-discount {
        font-size: 11px;
        padding: 4px 7px;
    }


    /* ---------- DESCRIPTION ---------- */

    .product-short-description {
        font-size: 14px;
        line-height: 1.6;

        margin: 0 0 13px;
    }


    /* ---------- STOCK ---------- */

    .product-stock {
        font-size: 13px;
        font-weight: 600;

        margin-bottom: 16px;
    }

    .product-divider {
        margin: 16px 0;
    }


    /* ---------- QUANTITY ---------- */

    .quantity-section {
        display: flex;
        align-items: center;
        justify-content: space-between;

        margin-bottom: 18px;
    }

    .quantity-label {
        font-size: 14px;
        font-weight: 600;
    }

    .quantity-control {
        display: flex;
        align-items: center;

        height: 42px;

        border: 1px solid #ddd;
        border-radius: 10px;

        overflow: hidden;
    }

    .quantity-control button {
        width: 42px;
        height: 42px;

        border: 0;
        background: #fff;

        font-size: 20px;
    }

    .quantity-control input {
        width: 45px;
        height: 42px;

        border: 0;

        text-align: center;

        font-size: 15px;
        font-weight: 600;

        outline: none;
    }


    /* ---------- ACTION BUTTONS ---------- */

    .product-actions {
        display: flex;
        flex-direction: column;

        gap: 10px;

        width: 100%;
    }

    .product-actions .btn {
        width: 100%;
        min-height: 50px;

        border-radius: 10px;

        font-size: 14px;
        font-weight: 700;

        letter-spacing: .4px;
    }

    .product-add-cart {
        order: 1;
    }

    .product-buy-now {
        order: 2;
    }


    /* ---------- BENEFITS ---------- */

    .product-benefits {
        display: flex;
        flex-direction: column;

        gap: 12px;

        margin-top: 22px;
    }

    .product-benefit {
        display: flex;
        align-items: center;

        gap: 12px;

        padding: 13px;

        border: 1px solid #eee;
        border-radius: 12px;

        background: #fff;
    }

    .product-benefit-icon {
        flex: 0 0 auto;

        width: 35px;
        height: 35px;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 50%;

        font-size: 15px;
    }

    .product-benefit strong {
        display: block;

        font-size: 13px;

        margin-bottom: 3px;
    }

    .product-benefit p {
        margin: 0;

        font-size: 11px;
        line-height: 1.4;
    }


    /* ---------- DESCRIPTION / SPECIFICATIONS ---------- */

    .product-description-section,
    .product-specifications-section {
        padding: 10px 0 25px;
    }

    .product-description-box {
        width: 100%;

        padding: 18px;

        border-radius: 14px;

        box-sizing: border-box;
    }

    .product-description-heading h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .product-description-content,
    .product-specifications {
        font-size: 13px;
        line-height: 1.65;

        overflow-wrap: anywhere;
    }


    /* ---------- RELATED PRODUCTS ---------- */

    .related-products-section {
        padding: 20px 0 30px;
    }

    .section-heading-row {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;

        gap: 10px;
    }

    .section-eyebrow {
        font-size: 9px;
        letter-spacing: 1.5px;
        margin-bottom: 5px;
    }

    .section-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .section-link {
        font-size: 11px;
        white-space: nowrap;
    }

    .related-products-section .product-grid {
        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px;

        margin-top: 15px;
    }


    /* ---------- FOOTER ---------- */

    .site-footer {
        display: none;
    }


    /* ---------- MOBILE BOTTOM NAV ---------- */

    .bottom-nav {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        width: 100%;
        height: 70px;

        z-index: 9999;

        display: flex;
        align-items: stretch;
        justify-content: space-around;

        background: #fff;

        border-top: 1px solid #e8e8e8;

        box-shadow: 0 -5px 20px rgba(0, 0, 0, .08);

        padding-bottom: env(safe-area-inset-bottom);
    }

    .bottom-nav-item {
        flex: 1;

        min-width: 0;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 4px;

        text-decoration: none;

        font-size: 10px;
        font-weight: 600;

        white-space: nowrap;
    }

    .bottom-nav-icon {
        font-size: 20px;
        line-height: 1;
    }


    /* ---------- DRAWER ---------- */

    .side-drawer {
        width: min(82vw, 330px);
    }

    .drawer-navigation a,
    .drawer-logout {
        padding: 14px 18px;
    }


    /* ---------- LOADING ---------- */

    .product-detail-image-skeleton {
        width: 100%;
        height: 390px;

        border-radius: 18px;
    }

    .product-detail-info-skeleton {
        width: 100%;
    }


    /* ---------- EMPTY / ERROR ---------- */

    .empty-state {
        padding: 45px 20px;
        text-align: center;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .container {
        padding-left: 13px;
        padding-right: 13px;
    }

    .product-main-image-wrap {
        height: 330px;
    }

    .product-detail-title {
        font-size: 24px;
    }

    .product-detail-price {
        font-size: 23px;
    }

    .related-products-section .product-grid {
        gap: 8px;
    }

    .bottom-nav {
        height: 66px;
    }

    .bottom-nav-item {
        font-size: 9px;
    }

    .bottom-nav-icon {
        font-size: 18px;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 340px) {

    .product-main-image-wrap {
        height: 300px;
    }

    .product-detail-title {
        font-size: 22px;
    }

    .product-actions .btn {
        min-height: 47px;
    }

}