/*
 * THE NOOR JEWELLERY - iPad/tablet responsive overrides
 * Phone styles (<= 576px) are intentionally left unchanged.
 */

@media (min-width: 577px) and (max-width: 1180px) {
    html,
    body {
        width: 100%;
        min-width: 0;
    }

    body {
        padding-bottom: 92px;
    }

    /* Allow layouts that were designed around a 480px phone shell to use iPad width. */
    .app {
        max-width: 100%;
    }

    #header .header-container {
        width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }

    #header .header-nav,
    #header .header-column,
    #header .header-row {
        width: 100%;
    }

    .logo1 {
        height: 100px !important;
        max-width: 100%;
        padding: 0 24px;
        object-fit: contain;
    }

    .icon {
        width: 56px;
        height: 56px;
        position: fixed;
        right: 20px;
        top:20px;
    }

    .icon img {
        width: 34px !important;
        height: auto;
    }

    .headerIcons .icon i,
    .headerIcons .icon .fa {
        font-size: 22px;
    }

    /* Main content should use the tablet width but keep comfortable side spacing. */
    .main {
        width: 100%;
        max-width: 1080px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 24px;
        padding-right: 24px;
    }

    .mainpad1,
    .mainpad3 {
        width: 100%;
        max-width: 1040px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .container.mainpad1 {
        width: 100%;
        max-width: 1040px;
    }

    /* Home hero/banner sizing for tablet proportions. */
    .slide img {
        height: clamp(500px, 52vw, 430px);
        /* width: 90%; */
        object-position: center;
    }

    .offerBanner img,
    .offerBanner2 img {
        width: 100%;
        height: auto;
    }

    .sectionHeader {
        padding-left: 24px;
        padding-right: 24px;
    }

    .sectionHeader h1,
    .categorySection h1 {
        font-size: 2.25rem;
        line-height: 1.25 !important;
    }

    /* Top horizontal category strip. */
    .categorySlider {
        gap: 26px;
        padding: 8px 24px 12px;
    }

    .categoryCard {
        min-width: 118px;
    }

    .categoryImage {
        width: 118px;
    }

    .categoryCard h4 {
        font-size: 15px;
        line-height: 1.3;
        margin-top: 12px;
    }

    /* "All Categories" cards generated by Category_Home_Json.js. */
    .CatCollection {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 42px 20px;
        width: 100%;
        padding: 0 4px;
    }

    .CatCollection > div {
        min-width: 0;
    }

    .CatCollection table.res_mob_font_width {
        width: 100%;
    }

    .CatCollection img.imghei3 {
        width: 100% !important;
        height: 230px !important;
        object-fit: cover !important;
    }

    .CatCollection .timeless-design-list {
        position: relative;
        transform: none;
        width: calc(100% - 24px);
        max-width: 210px;
        height: 40px;
        line-height: 40px;
        margin: -18px auto 0;
        font-size: 15px;
        border-radius: 24px;
    }

    /* Product listing generated by ClickMenuAndShowProduct.js. */
    #gvData .productGrid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
        width: 100%;
    }

    #gvData .productGrid > .col-6 {
        min-width: 0;
        width: auto;
        padding: 0;
    }

    #gvData .productGrid img.imghei3 {
        width: 100% !important;
        height: 230px !important;
        object-fit: cover !important;
    }

    #gvData .productGrid table.res_mob_font_width {
        width: 100%;
        height: 100%;
    }

    /* Product details: larger image/thumbnail area on iPad. */
    .product__slider-wrap {
        width: 100%;
        max-width: 720px;
    }

    .product__image,
    .product__video {
        max-width: 72px;
        max-height: 110px;
    }

    .product__main-image,
    .product__main-video {
        max-width: 100%;
        max-height: 720px;
    }

    /* Forms should not stretch edge-to-edge on iPad. */
    .featured-boxes {
        width: min(78%, 620px) !important;
        max-width: 620px;
        padding: 32px 28px !important;
    }

    .form-control {
        min-height: 44px;
        font-size: 16px;
    }

    /* Cart/table readability on tablets. */
    .shop table.cart {
        font-size: 15px;
    }

    .shop table.cart .product-thumbnail {
        width: 28% !important;
        padding-top: 4% !important;
        padding-bottom: 4% !important;
    }

    /* Full-width iPad bottom navigation instead of the old 480px phone cap. */
    footer nav {
        width: 100%;
        max-width: none;
        height: 82px;
        padding-left: 24px;
        padding-right: 24px;
    }

    footer nav a {
        min-width: 110px;
        font-size: 14px;
    }

    footer nav i {
        font-size: 24px;
        margin-bottom: 6px;
    }

    /* Side menu width feels better on a tablet than the phone's 80%. */
    .mobile-nav {
        width: min(62%, 520px);
    }
}

/* Wider iPads / landscape: make use of the extra horizontal space. */
@media (min-width: 900px) and (max-width: 1180px) {
    #header .header-container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .main {
        padding-left: 32px;
        padding-right: 32px;
    }

    .CatCollection {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 42px 20px;
    }

    .CatCollection img.imghei3 {
        height: 220px !important;
    }

    #gvData .productGrid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }

    #gvData .productGrid img.imghei3 {
        height: 220px !important;
    }

    .categorySlider {
        gap: 30px;
        padding-left: 32px;
        padding-right: 32px;
    }

    footer nav {
        padding-left: 60px;
        padding-right: 60px;
    }
}
