/* =========================================================
   HOME & FAMILY ESSENTIALS
   LIGHT BLUE / SLATE THEME
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f7;
    color: #2f3437;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {

    background: #5f7f8c;

    border-bottom: 1px solid #4d6974;

    position: sticky;
    top: 0;
    z-index: 1000;

}

.header-inner {
    padding: 28px 20px 22px;
    text-align: center;
    background: #5f7f8c;
}

.brand h1 {
    font-size: 56px;
    color: #e8eef0;

    text-shadow:
        -1px -1px 0 #ffffff,
         1px 1px 0 #263d46,
         2px 2px 2px rgba(0,0,0,0.45),
         0 0 5px rgba(255,255,255,0.25);
}

.brand p {
    margin: 8px 0 0;
    font-size: 15px;
    color: #e3ecef;
}


/* =========================================================
   LOCAL PICKUP BANNER
   ========================================================= */

.pickup-banner {
    padding: 12px 15px;
    text-align: center;
    background: #e5ecef;
    color: #33454c;
    border-top: 1px solid #cbd8dc;
    border-bottom: 1px solid #cbd8dc;
}

.pickup-banner strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #33454c;
}

.pickup-banner span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #53646b;
}


/* =========================================================
   CATEGORY MENU
   ========================================================= */

.category-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #3f5c67;
}

.category-menu a {
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    border-right: 1px solid #5b737c;
}

.category-menu a:hover {
    background: #53717c;
}


/* =========================================================
   MAIN
   ========================================================= */

main {
    width: min(1180px, calc(100% - 30px));
    margin: 0 auto;
}


/* =========================================================
   INTRO
   ========================================================= */

.intro {
    max-width: 760px;
    margin: 28px auto 22px;
    text-align: center;
}

.intro h2 {
    margin: 0 0 8px;
    font-size: 23px;
    color: #4c6670;
}

.intro p {
    margin: 0;
    color: #666f73;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.products {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}


/* =========================================================
   PRODUCT CARDS
   ========================================================= */

.product-card {
    background: #ffffff;
    border: 1px solid #d7dde0;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: relative;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 9px;
    background: #fafcfc;
    border-bottom: 1px solid #e6ebed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-info {
    padding: 11px 11px 7px;
}


/* =========================================================
   CATEGORY LABEL
   ========================================================= */

.category {
    display: block;
    margin-bottom: 5px;
    color: #6f7e84;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}


/* =========================================================
   PRODUCT NAME
   ========================================================= */

.product-info h3 {
    min-height: 34px;
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.05;
    color: #30383c;
}


/* =========================================================
   OZ AND COUNT
   ========================================================= */

.product-details {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 9px;
    padding: 6px 0;
    border-top: 1px solid #edf0f1;
    border-bottom: 1px solid #edf0f1;
    color: #66757b;
    font-size: 12px;
}


/* =========================================================
   OLD SIZE LINE SUPPORT
   ========================================================= */

.product-size {
    margin: 0 0 4px;
    padding: 3px 0;
    border-top: 1px solid #edf0f1;
    border-bottom: 1px solid #edf0f1;
    color: #66757b;
    font-size: 12px;
}


/* =========================================================
   WALMART PRICE
   ========================================================= */

.walmart-price {
    margin: -1px 0 8px;
    color: #7c8589;
    font-size: 12px;
}

.walmart-price span {
    font-size: 15px;
    text-decoration: line-through;
}

/* =========================================================
   OUR PRICE
   ========================================================= */

.our-price {
    margin: 0;
    color: #38474d;
    line-height: -4;
    font-size: 13px;
    font-weight: 600;
}

.our-price strong {
    display: block;
    margin-top: 0;
    line-height: 1;
    font-size: 20px;
    font-weight: 800;
    color: #41636f;
}


/* =========================================================
   LOCAL PICKUP TEXT ON CARD
   ========================================================= */


.product-card .pickup {
    margin: 4px 0 2px;
    padding-top: 3px;
    border-top: 1px solid #edf0f1;
    color: #667980;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* =========================================================
   LOCAL NOTICE
   ========================================================= */

.local-notice {
    max-width: 720px;
    margin: 30px auto;
    padding: 18px;
    text-align: center;
    background: #e9eff1;
    border: 1px solid #cfdadd;
    border-radius: 7px;
}

.local-notice h2 {
    margin: 0 0 6px;
    font-size: 19px;
    color: #49646f;
}

.local-notice p {
    margin: 0;
    color: #5e696e;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    margin-top: 30px;
    padding: 22px 15px;
    text-align: center;
    background: #344c56;
    color: #e8edef;
    font-size: 12px;
}

footer p {
    margin: 4px 0;
}

.watch-link {
    margin-top: 8px;
}

.watch-link a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.watch-link a:hover {
    text-decoration: underline;
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 1050px) {

    .products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}





/* =========================================================
   SMALL PHONE
   ========================================================= */

@media screen and (max-width: 380px) {

    .brand h1 {
        font-size: 22px;
    }

    .category-menu a {
        flex-basis: 50%;
    }

}
.category-menu a {
    display: inline-block;
    padding: 9px 15px;
    margin: 4px;
   background: #dad9d6;
    border: 1px solid #b8b8b8;
    border-radius: 7px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-menu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.22);
}

.category-menu a:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.stock-status {
    color: #c40000;
    font-weight: bold;
    font-size: 16px;
}

.stock-status.show {
    display: block;
}

.stock-status.hide {
    display: block;
    visibility: hidden;
}
.view-details {
    display: inline-block;
    margin-top: 10px;
   padding: 11px 22px;
    background: #56635a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #465149;
    border-radius: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.20);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.view-details:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
}
.how-it-works-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.how-it-works-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #f4f2ed;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
}

.how-it-works-content h2 {
    margin-top: 0;
    color: #56635a;
}

.how-it-works-content p {
    line-height: 1.6;
}

.how-it-works-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

.pickup-banner {
    position: relative;
}

.how-it-works-btn {
    position: absolute;
   left: calc(50% + 350px); /*---Button Position----*/
    top: 50%;
    transform: translateY(-50%);

    padding: 8px 16px;
    background: #56635a;
    color: #ffffff;
    border: 1px solid #465149;
    border-radius: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
    margin: 0;
}

.how-it-works-btn:hover {
    transform: translateY(-54%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.28);
}
.header-inner {
    position: relative;
}

.essentials-cart {
    position: absolute;
    right: 300px;
    top: 50px;
}


.essentials-cart a {
    display: flex;
    align-items: center;
    gap: -20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
}

.essentials-cart .cart-icon {
    font-size: 45px;
}

.essentials-cart .cart-count {
    min-width: 29px;
    height: 19px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d71920;
    color: #ffffff;
    border-radius: 50%;
    font-size: 15px;
    font-weight: bold;
     margin-left: -20px;
     position: relative;
    top: -18px;
}.shop-button {
    display: inline-block;
    padding: 1px 42px;
    background: #56635a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 20px;
    margin-top: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.shop-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.28);
}
/* =========================================================
   PRODUCT IMAGE ENLARGE POPUP
========================================================= */

.product-image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    background: white;
    border-radius: 8px;
}

.product-image-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}/* =========================================================
   SHOP / VIEW DETAILS BUTTONS
========================================================= */

.shop-button,
.view-details {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    background: #6f786f;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
}

.shop-button:hover,
.view-details:hover {
    background: #596159;
}
.Pamper-number {
    font-size: 12px;
}


/* =========================================================
   MOBILE SITE FIX - WHOLE ESSENTIALS SITE
   Keeps desktop layout unchanged
   ========================================================= */

@media screen and (max-width: 700px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .total-savings {
    width: fit-content;
    margin-left: auto !important;
    margin-right: auto !important;
}

    .site-header,
    .header-inner,
    .pickup-banner,
    .category-menu,
    main,
    footer {
        width: 100%;
        max-width: 100%;
    }

  .header-inner {
    position: relative;
    padding: 10px 10px 8px;
    min-height: 0;
    text-align: center;

}

.brand {
    padding: 0;
    text-align: center;
}

.brand h1 {
    font-size: 24px;
    line-height: 1.1;
    margin: 0;
}

.brand p {
    font-size: 12px;
    line-height: 1.3;
    margin: 5px 0 0;
}

.essentials-cart {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 14px;
    transform: translateX(80px);
}

.essentials-cart a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    gap: 4px;
    font-size: 12px;
}

.essentials-cart .cart-icon {
    font-size: 28px;
}

.essentials-cart .cart-count {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    margin-left: -8px;
    position: relative;
    top: -10px;
    font-size: 11px;
}

    .pickup-banner {
        position: relative;
        padding: 9px 8px 58px;
        text-align: center;
    }

    .pickup-banner strong {
    font-size: 12px;
    line-height: 1.25;
    position: relative;
    top: -8px;
}

    .pickup-banner span {
        font-size: 11px;
        line-height: 1.3;
        margin-top: 3px;
    }

    .how-it-works-btn {
        position: absolute !important;
        left: auto !important;
        right: 81% !important;
        top: auto !important;
        bottom: 0px !important;
        transform: none !important;
        padding: 7px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    .how-it-works-btn:hover {
        transform: none !important;
    }

    .essentials-facebook-btn {
        position: absolute !important;
        left: 55% !important;
        right: auto !important;
        top: auto !important;
        bottom: 0px !important;
        transform: none !important;
        padding: 7px 10px !important;
        font-size: 11px !important;
        white-space: nowrap;
        max-width: 47%;
    }

    .essentials-facebook-btn:hover {
        transform: none !important;
    }

    .pickup-banner .essential-search {
        display: none !important;
    }

    .category-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        padding: 5px;
    }

    .category-menu a {
        display: block;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 9px 4px;
        text-align: center;
        font-size: 11px;
        line-height: 1.15;
        border-right: none;
        border-bottom: none;
    }

    main {
        width: 100%;
        margin: 0;
        padding: 6px;
    }

    .intro {
        width: 100%;
        margin: 14px auto 12px;
        padding: 0 6px;
    }

    .intro h2 {
        font-size: 19px;
    }

    .intro p {
        font-size: 12px;
    }

    .products {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .product-card {
        min-width: 0;
        width: 100%;
    }

    .product-image {
        padding: 6px;
    }

    .product-info {
        padding: 7px 7px 50px;
    }

    .product-size {
        left: 7px;
        right: 7px;
        bottom: 105px;
        padding: 4px 0;
    }

    .walmart-price {
        left: 7px;
        bottom: 82px;
    }

    .our-price {
        left: 7px;
        bottom: 42px;
    }

    .product-card .pickup {
        position: absolute;
        left: 7px;
        right: 7px;
        bottom: 37px;
        margin: 0;
        padding: 0;
        font-size: 8px;
        line-height: 1;
    }

    .add-cart,
    .shop-button,
    .view-details {
        position: absolute;
        left: 7px;
        right: 7px;
        bottom: 7px;
        width: auto;
        max-width: none;
        margin: 0;
    }

    .category {
        font-size: 9px;
        margin-bottom: 4px;
    }

    
.product-info h3 {
        min-height: 31px;
        margin-bottom: 6px;
        font-size: 11px;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .product-details {
        flex-direction: column;
        gap: 2px;
    }

    .product-details,
    .product-size,
    .walmart-price,
    .our-price {
        font-size: 10px;
    }

    .walmart-price span {
        font-size: 11px;
    }

    .our-price strong {
        font-size: 16px;
    }

   
    .add-cart,
    .shop-button,
    .view-details {
        padding: 7px 4px;
        font-size: 10px;
        font-weight: 900;
        white-space: normal;
    }

    .Pamper-number {
        font-size: 9px;
    }

    .stock-status {
        font-size: 12px;
        
    }

    .local-notice {
        width: 100%;
        margin: 18px auto;
        padding: 14px 10px;
    }

    .local-notice h2 {
        font-size: 17px;
    }

    .local-notice p {
        font-size: 12px;
    }

    .how-it-works-content {
        width: calc(100% - 24px);
        max-width: 520px;
        padding: 20px 16px;
    }

    .product-image-modal {
        padding: 10px;
    }

    .product-image-modal img {
        max-width: 96%;
        max-height: 86vh;
    }

    footer {
        margin-top: 18px;
        padding: 18px 10px;
    }
}
@media screen and (max-width: 380px) {

    .brand h1 {
        font-size: 21px;
    }

    .category-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .how-it-works-btn,
    .essentials-facebook-btn {
        font-size: 10px !important;
        padding: 6px 7px !important;
    }

    .products {
        gap: 5px;
    }

    
}
 

}
.local-notice {
    transform: translateY(-15px);
}
/* =========================================================
   PRODUCT IMAGE HOVER MAGNIFIER
   ========================================================= */

#product-hover-zoom {
    display: none;
    position: fixed;
    width: 320px;
    height: 320px;
    background-color: #ffffff;
    background-repeat: no-repeat;
    border: 1px solid #b8b8b8;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    pointer-events: none;
}

.product-image img {
    cursor: zoom-in;
}
/* =========================
   SEARCH BOX - DESKTOP
   ========================= */

.pickup-banner {
    position: relative;
}

.pickup-banner .essential-search {
    position: absolute;
    left: 195px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    gap: 8px;

    width: 390px;
    margin: 0;
    z-index: 1000;
}

.pickup-banner .essential-search label {
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
}

.pickup-banner #essential-product-search {
    width: 315px;
    height: 34px;
    padding: 6px 10px;
    font-size: 15px;
}
/* =========================
   SEARCH RESULTS DROPDOWN
   ========================= */

#essential-search-results {
    display: none;
    position: absolute;
    top: 40px;
    left: 70px;
    width: 315px;
    max-height: 350px;
    overflow-y: auto;

    background: #ffffff;
    border: 1px solid #bbb;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,.20);

    z-index: 99999;
}

.essential-search-result {
    display: block;
    padding: 9px 12px;
    background: #ffffff;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.essential-search-result strong {
    display: block;
    font-size: 14px;
    color: #333;
}

.essential-search-result span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #666;
}

.essential-search-result:hover {
    background: #f2f2f2;
}

.search-no-results {
    padding: 10px 12px;
    background: #ffffff;
    color: #333;
    text-align: left;
}
/*===============================click image to enlarge===================*/
.product-image {
    position: relative;
}

.product-image::after {
    content: "Click photo to enlarge";
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.product-image:hover::after {
    opacity: 1;
}
body.pampers-page .product-image {
    min-height: 0;
    height: auto;
    padding-bottom: 8px;
}

.essentials-logo {
    width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* E-NECKLACE DESKTOP - TWO BUTTONS SIDE BY SIDE */

.e-necklace-page .product .view-details,
.e-necklace-page .product .add-cart {
    display: inline-block;
    width: calc(50% - 6px);
    vertical-align: top;
}
/* =========================================================
   REDUCE HEADER HEIGHT - ALL ESSENTIALS PAGES
   ========================================================= */

.site-header .header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-header .brand h1 {
    margin-top: 0;
    margin-bottom: 4px;
}

.site-header .brand p {
    margin-top: 0;
    margin-bottom: 0;
}
/* =========================================================
   E-PRODUCT DETAIL PAGE
   BODY LAYOUT FROM WORKING STYLE.CSS
   ========================================================= */

.essentials-detail-page .product-details {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    padding: 0 50px 50px;
}

.essentials-detail-page .big-product {
    width: 95%;
    margin-left: 0;
    text-align: center;
}

.essentials-detail-page .big-product img,
.essentials-detail-page .big-watch img {
    width: 450px;
    height: 450px;
    object-fit: contain;
    border-radius: 15px;
}

.essentials-detail-page #mainProduct {
    width: 376px !important;
    height: 376px !important;
    object-fit: contain !important;
}

.essentials-detail-page .description-box {
    width: 50%;
    padding: 35px;
    border-radius: 15px;
}

.essentials-detail-page .description-box p {
    font-size: 18px;
    line-height: 1.6;
}

.essentials-detail-page .gallery {
    display: flex;
    gap: 15px;
}

.essentials-detail-page .thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.essentials-detail-page .thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
}

.essentials-detail-page .enlarge-note {
    display: block;
    width: fit-content;
    margin: 12px auto 0;
}

.essentials-detail-page .buy-button,
.essentials-detail-page .enlarge-note {
    display: inline-block;
    min-width: 145px;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}