/* ===========================================
   CONSOLIDATED RESPONSIVE CSS
   Merged from mobile.css and responsive.css
   Mobile-first approach with standard breakpoints
   ========================================== */

/* ===========================================
   BASE RESPONSIVE STYLES (All screen sizes)
   ========================================== */

body {
    margin: 0 !important;
    padding: 0;
}

#outer-wrapper {
    /* padding-left: 20px;
    padding-right: 15px; */
}

#wrapper {
    width: 100% !important;
    max-width: 962px !important;
}

#footer {
    width: 100% !important;
    max-width: 962px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Form Elements */
.inputBoxText {
    width: 100%;
    height: 30px;
    line-height: 1.2;
    vertical-align: middle;
    margin-bottom: 10px;
}

/* Category Boxes */
.catbox {
    height: 180px;
    width: 140px;
}

.catImage {
    width: 90%;
    background-color: white;
    margin-right: 5px;
    padding: 2px;
    border: 1px solid #cccccc;
}

/* Home Categories */
#homeCats {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Links and Forms */
.ffLink {
    width: 200px;
    margin-top: 15px;
    margin-right: 20px;
}

.ffLink2 {
    width: 200px;
    margin-top: 15px;
    margin-right: 20px;
    padding:15px;
}

.signUp {
    margin-top: 20px;
}

/* View Cart Images */
.viewCartImage {
    display: block;
    width: 65%;
}

.viewCartImageMobile {
    display: none;
    width: 50%;
    max-width: 200px;
    text-align: left;
}

/* Footer Visibility */
#pageFooter {
    display: block;
}

#pageFooterMobile {
    display: none;
}

/* News Navigation */
.hideNewsNav {
    display: none !important;
}

/* Product Category Boxes */
.prodCatBox {
    float: left;
    width: 30%;
    margin-right: 2%;
    border: 0px solid #ccc;
    padding: 1px;
    margin-bottom: 30px;
    height: 250px;
}

/* Subscription Details */
.subDetails {
    width: 80%;
    color: #000000 !important;
    z-index: 10000;
        font-family: "Roboto Slab", serif !important;
    font-weight: normal !important;
    background-color: #aaa !important;
}

/* Typography */
h4 {
    margin: 0 !important;
    padding-top: 5px;
}

/* Utility Classes */
.floatLeft {
    float: left;
}

.floatRight {
    float: right;
}

/* ===========================================
   SMALL MOBILE (max-width: 546px)
   ========================================== */
@media screen and (max-width: 546px) {
    #homeCats {
        margin-top: 30px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 25px;
    }

    .ffLink {
        width: 150px;
        margin-top: 15px;
        margin-right: 20px;
    }

    .signUp {
        width: 130px;
        margin-top: 17px;
    }
}

/* ===========================================
   MOBILE PORTRAIT (max-width: 600px)
   ========================================== */
@media screen and (max-width: 600px) {
    .prodCatBox {
        float: left;
        width: 97%;
        margin-right: 3%;
        padding: 5px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        height: 100% !important;
    }

    .catImage {
        border: 0px !important;
    }

    #footer {
        text-align: center;
    }

    .viewCartImage {
        display: none;
        width: 65%;
    }

    .viewCartImageMobile {
        display: block;
    }
}

/* ===========================================
   SMALL TABLET (max-width: 800px)
   ========================================== */
@media screen and (max-width: 800px) {
    .prodCatBox {
        float: left;
        width: 45%;
        margin-right: 3%;
        padding: 5px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
    }

    .catImage {
        border: 0px !important;
    }
}

/* ===========================================
   TABLET/MOBILE MAIN (max-width: 970px)
   ========================================== */
@media screen and (max-width: 970px) {
    /* Hide Desktop Elements */
    #homeHeadCatImage {
        display: none !important;
    }

    #homeHead {
        width: 100% !important;
        margin: 0;
    }

    #topNav {
        display: none;
    }

    .myMenu {
        display: none;
    }

    /* Hide desktop basket - mobile basket shown via mobile_stuff_include.php */
    #topBasket {
        display: none !important;
    }

    /* Show mobile basket */
    #mobileBasket {
        display: flex !important;
    }

    #mobileBasket .tdbasket {
        margin-left: 0px !important;
        font-size: 14px;
        color: #333;
    }

    #mobileBasket .tdbasketBOLD {
        font-size: 16px;
        font-weight: bold;
        color: #15837a;
    }

    /* Background Images */
    body, #pageContainerHome {
        background-image: none !important;
    }

    #pageContainerOther {
        background-image: none !important;
    }

    #pageHeadOther {
        background-image: none !important;
        height: 80px !important;
        margin-bottom: 30px;
        text-align: center;
        width: 100%;
    }

    /* Product Category Adjustments */
    .prodCatBox {
        border: 0px solid #ccc;
        padding: 5px;
        margin-right: 1%;
        height: 200px;
    }

    /* Footer Display */
    #pageFooter {
        display: none;
    }

    #pageFooterMobile {
        display: block;
    }

    .hideNewsNav {
        display: none !important;
    }
}

/* ===========================================
   MOBILE ENHANCED UI (max-width: 980px)
   Modern Mobile Interface Elements
   ========================================== */
@media screen and (max-width: 980px) {

    /* Mobile Header */
    #mobileHeader {
        display: block !important;
        height: 120px;
        background-image: url('/images/header-background-pins.jpg');
        background-size: cover;
        background-position: top center;
        background-repeat: no-repeat;
        color: white;
        position: relative;
    }

    #mobileHeaderTop {
        margin-top: 10px;
        height: 120px;
        background-image: url('/images/mobile-logo.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    /* Modern Hamburger Menu Icon */
    #mobileHeaderMenuIcon {
        position: absolute;
        top: -5px;
        right: -5px;
        height: 35px;
        width: 35px;
        cursor: pointer;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    #mobileHeaderMenuIcon:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }

    #mobileHeaderMenuIcon.active {
        background: rgba(21, 131, 122, 0.3);
    }

    /* Mobile Menu Styles */
    #mobileMenu {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 0 0 15px 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        padding: 10px 0;
        margin: 0 10px;
        transition: all 0.3s ease;
        transform-origin: top;
    }

    #mobileMenu.active {
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: scaleY(0);
        }
        to {
            opacity: 1;
            transform: scaleY(1);
        }
    }

    #mobileMenu ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

    #mobileMenu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }

    #mobileMenu li:last-child {
        border-bottom: none;
    }

    #mobileMenu li:hover {
        background: rgba(21, 131, 122, 0.1);
        padding-left: 5px;
    }

    #mobileMenu a {
        color: #333;
        text-decoration: none;
        font-size: 15px;
        display: block;
        padding: 10px 20px;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    #mobileMenu a:hover {
        color: #15837a;
    }

    /* Submenu Styles */
    #mobileMenu ul ul {
        background: rgba(255, 255, 255, 0.5);
        margin-left: 20px;
        border-left: 3px solid #15837a;
        padding-left: 10px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    #mobileMenu ul ul li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    #mobileMenu ul ul a {
        font-size: 14px;
        padding: 8px 15px;
        font-weight: normal;
    }

    /* Mobile Banner */
    #mobileBanner {
        background: #fff;
    }

    #mobileBanner > img {
        max-width: 100%;
    }

    #mobileBanner > #mobileTagline {
        background: #f2f1e9;
        padding-left: 10px;
        color: #9d8a73;
        font-size: 12px;
    }

    /* Contact Section */
    #mobileHeaderContact {
        margin: 10px 10px 10px 10px;
        background: #b2ddb3;
        color: white;
    }

    #mobileHeaderContact > div {
        padding-left: 10px;
        height: 18px;
        font-size: 10px;
    }

    #mobileHeaderContact > div > a {
        color: white;
        text-decoration: none;
    }
}

/* ===========================================
   DESKTOP OVERRIDES (min-width: 981px)
   Hide mobile elements on desktop
   ========================================== */
@media screen and (min-width: 981px) {
    #mobileHeader {
        display: none !important;
    }

    #mobileBasket {
        display: none !important;
    }

    #mobileMenu {
        display: none !important;
    }
}