/* =========================================================
   SWADHIST BEST QUALITY
   COMPLETE RESPONSIVE style.css
   Mobile: ALWAYS 2 PRODUCTS PER ROW
========================================================= */


/* =========================================================
   RESET & GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: #222222;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
}

/* Colourful animated Swadhist heading */
.brand-name {
    
    text-align: center;
    font-size: clamp(17px, 4vw, 17px);
    font-weight: 950;
    background: linear-gradient(
        90deg,
        #ff0000,
        #ff8c00,
        #ffd700,
        #00c853,
        #008cff,
        #a020f0,
        #ff1493,
        #ff0000
    );
    background-size: 300% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: rainbowText 5s linear infinite,
               textGlow 5s ease-in-out infinite alternate;
    padding: 20px;
    line-height: 1.4;
}

/* Moving rainbow colours */
@keyframes rainbowText {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 300% center;
    }
}

/* Soft glowing effect */
@keyframes textGlow {
    from {
        filter: drop-shadow(0 0 2px #ffd700);
    }
    to {
        filter: drop-shadow(0 0 8px #ff9800);
    }
}

/* Mobile adjustment */
@media (max-width: 480px) {
    .animated-brand {
        font-size: 23px;
        padding: 8px 4px;
    }
}


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

header {
    position: sticky;
    top: 0;
    z-index: 400;

    width: 100%;
    height: 400px;

    padding: 15px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: linear-gradient(
        to bottom,
        #ff9933 0%,
        #ff9933 33%,
        #ffffff 33%,
        #ffffff 66%,
        #138808 66%,
        #138808 100%
    );

    color: #000000;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;

    min-width: 0;
}

.logo {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 70px;
    height: 70px;

    border-radius: 50%;

    object-fit: cover;

    z-index: 5;
}

header h1 {
    font-size: 20px;
    line-height: 1.2;

    max-width: 300px;

    word-break: break-word;
}

header p {
    font-size: 15px;
    margin-top: 3px;
}


/* =========================================================
   CART BUTTON
========================================================= */

#cartBtn {
    position: relative;
    z-index: 10;

    min-height: 60px;

    padding: 10px 18px;

    border: none;
    border-radius: 100px;

    background: #ffffff;
    color: #000000;

    font-size: 24px;
    font-weight: bold;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

    transition: 0.25s ease;
}

#cartBtn:hover {
    background: #f1f1f1;
    transform: scale(1.04);
}

#cartCount {
    display: inline-block;

    min-width: 22px;

    padding: 3px 7px;

    margin-left: 5px;

    border-radius: 50%;

    background: red;
    color: #ffffff;

    font-size: 14px;
    line-height: 1.2;
}


/* =========================================================
   SEARCH
========================================================= */

.search-box {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 20px;
}

#search {
    width: 100%;
    height: 48px;

    padding: 12px 15px;

    border: 2px solid #0b7d16;
    border-radius: 12px;

    background: #ffffff;
    color: #222222;

    font-size: 16px;

    outline: none;
}

#search:focus {
    border-color: #ff9800;

    box-shadow: 0 0 5px rgba(11, 125, 22, 0.25);
}


/* =========================================================
   PRODUCTS CONTAINER
   Supports BOTH:
   #products
   .products

   DESKTOP = 4 PER ROW
========================================================= */

#products,
.products {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 20px;

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;

    align-items: stretch;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

#products .card,
.products .card {
    position: relative;

    width: 100%;
    min-width: 0;
    max-width: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border-radius: 15px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#products .card:hover,
.products .card:hover {
    transform: translateY(-4px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

#products .card img,
.products .card img {
    display: block;

    width: 100%;
    height: 190px;

    object-fit: cover;

    background: #f7f7f7;

    cursor: pointer;
}


/* =========================================================
   SALE BADGE
========================================================= */

#products .sale,
.products .sale {
    position: absolute;

    top: 10px;
    left: 10px;

    z-index: 5;

    padding: 5px 11px;

    background: red;
    color: #ffffff;

    border-radius: 20px;

    font-size: 13px;
    font-weight: bold;
}


/* =========================================================
   PRODUCT BODY
========================================================= */

#products .card-body,
.products .card-body {
    width: 100%;
    min-width: 0;

    padding: 14px;

    display: flex;
    flex-direction: column;

    flex: 1;
}

#products .card-body h3,
.products .card-body h3 {
    width: 100%;

    margin: 0 0 10px;

    color: #222222;

    font-size: 19px;
    line-height: 1.3;

    word-break: break-word;
}


/* =========================================================
   PRODUCT IMAGE / NAME CLICK
========================================================= */

.product-card-image,
.product-card-name {
    cursor: pointer;
}


/* =========================================================
   WEIGHT LABEL
========================================================= */

#products .weight-label,
.products .weight-label {
    display: block;

    margin-bottom: 5px;

    color: #333333;

    font-size: 14px;
}


/* =========================================================
   WEIGHT SELECT
========================================================= */

#products .weight-select,
.products .weight-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;

    height: 42px;

    padding: 8px 10px;

    border: 1px solid #bbbbbb;
    border-radius: 8px;

    background: #ffffff;
    color: #222222;

    font-size: 14px;

    outline: none;

    cursor: pointer;
}

#products .weight-select:focus,
.products .weight-select:focus {
    border-color: #218838;

    box-shadow: 0 0 0 2px rgba(33, 136, 56, 0.12);
}


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

.old-price {
    min-height: 20px;

    margin-top: 8px;

    color: #888888;

    font-size: 14px;

    text-decoration: line-through;
}

.new-price {
    margin: 5px 0 8px;

    color: #0b7d16;

    font-size: 24px;
    font-weight: bold;
}


/* =========================================================
   PRODUCT BUTTONS
========================================================= */

#products .card button,
.products .card button {
    width: 100%;
    min-width: 0;

    min-height: 42px;

    margin-top: 7px;

    padding: 9px 8px;

    border: none;
    border-radius: 8px;

    font-size: 14px;
    font-weight: bold;

    white-space: normal;

    transition: 0.25s ease;
}


/* View Product */

.view-product-btn {
    background: #eeeeee;
    color: #222222;
}

.view-product-btn:hover {
    background: #dddddd;
}


/* Add To Cart */

.card-add-btn,
.detail-add-btn {
    background: #218838;
    color: #ffffff;
}

.card-add-btn:hover,
.detail-add-btn:hover {
    background: #176b2b;
}


/* =========================================================
   PRODUCT DETAIL BUTTONS
========================================================= */

.view-product-btn,
.card-add-btn,
.detail-add-btn,
.back-btn {
    border: none;

    border-radius: 8px;

    padding: 12px 16px;

    cursor: pointer;

    font-size: 15px;

    transition: 0.25s ease;
}

.view-product-btn,
.card-add-btn {
    width: 100%;
}

.back-btn {
    background: #333333;
    color: #ffffff;

    margin-bottom: 18px;
}

.back-btn:hover {
    background: #111111;
}


/* =========================================================
   PRODUCT DETAIL
========================================================= */

.product-detail {
    width: calc(100% - 30px);
    max-width: 1100px;

    margin: 20px auto;

    padding: 18px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-detail-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 28px;
}

.product-gallery,
.product-info {
    min-width: 0;
}


/* =========================================================
   MAIN PRODUCT IMAGE
========================================================= */

#detailMainImage {
    width: 100%;
    height: 380px;

    object-fit: contain;

    background: #f7f7f7;

    border-radius: 12px;
}


/* =========================================================
   THUMBNAILS
========================================================= */

.detail-thumbnails {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 12px;
}

.detail-thumbnail {
    width: 70px;
    height: 70px;

    padding: 4px;

    object-fit: contain;

    border: 1px solid #dddddd;

    border-radius: 8px;

    background: #ffffff;

    cursor: pointer;

    transition: 0.2s ease;
}

.detail-thumbnail:hover {
    border-color: #218838;

    transform: scale(1.05);
}


/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-info h2 {
    margin: 0 0 10px;

    color: #205c2b;

    font-size: 28px;
}

.product-info h3 {
    margin-top: 18px;
}

#detailPrice {
    color: #218838;

    font-size: 25px;

    font-weight: bold;
}

.product-info label {
    display: block;

    margin-top: 16px;
    margin-bottom: 6px;

    font-weight: bold;
}


/* =========================================================
   PRODUCT SELECTION
========================================================= */

#detailPack,
#detailQty {
    width: 100%;

    padding: 12px;

    border: 1px solid #cccccc;

    border-radius: 8px;

    background: #ffffff;

    color: #222222;

    font-size: 16px;

    outline: none;
}

#detailPack:focus,
#detailQty:focus {
    border-color: #218838;
}

#detailQty {
    margin-top: 8px;
}

.detail-add-btn {
    width: 100%;

    margin-top: 18px;

    padding: 14px;

    font-weight: bold;
}


/* =========================================================
   CART PANEL
========================================================= */

.cart-panel {
    display: none;

    position: fixed;

    top: 90px;
    right: 15px;

    z-index: 2000;

    width: 360px;
    max-width: calc(100vw - 30px);

    max-height: 80vh;

    overflow-y: auto;

    padding: 20px;

    background: #ffffff;

    border-radius: 15px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.cart-panel h2 {
    margin-bottom: 15px;

    color: #000000;
}

#cartItems p {
    padding: 8px 0;

    border-bottom: 1px solid #dddddd;
}

.cart-panel h3 {
    margin: 20px 0;

    color: #e65100;
}


/* =========================================================
   CART ITEM
========================================================= */

.cart-item {
    width: 100%;

    padding: 10px 0;

    border-bottom: 1px solid #dddddd;
}

.cart-item h4 {
    margin-bottom: 5px;

    font-size: 16px;
}

.cart-item p {
    margin: 3px 0;

    font-size: 14px;
}

.cart-item button {
    margin: 5px 3px 0 0;

    padding: 6px 10px;

    border: none;

    border-radius: 6px;

    background: #eeeeee;

    cursor: pointer;
}

.cart-item button:hover {
    background: #dddddd;
}


/* =========================================================
   CART PAYMENT / ORDER BUTTONS
========================================================= */

.pay-btn,
.order-btn {
    width: 100%;

    padding: 15px;

    margin-top: 15px;

    border: none;

    border-radius: 10px;

    color: #ffffff;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.25s ease;
}

.pay-btn {
    background: #ff9800;
}

.pay-btn:hover {
    background: #e68900;
}

.order-btn {
    background: #25d366;
}

.order-btn:hover {
    background: #1da851;
}


/* =========================================================
   CLEAR / CONTINUE
========================================================= */

.clear-btn,
.continue-btn {
    width: 100%;

    padding: 14px;

    margin-top: 10px;

    border: none;

    border-radius: 10px;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;
}

.clear-btn {
    background: #e53935;
    color: #ffffff;
}

.clear-btn:hover {
    background: #c62828;
}

.continue-btn {
    background: #1565c0;
    color: #ffffff;
}

.continue-btn:hover {
    background: #0d47a1;
}


/* =========================================================
   CUSTOMER DETAILS
========================================================= */

.customer-card {
    width: 100%;

    margin-top: 25px;
}

.customer-card h2 {
    margin-bottom: 20px;

    color: #0b7d16;

    text-align: center;
}

.input-group {
    width: 100%;

    margin-bottom: 15px;
}

.input-group label {
    display: block;

    margin-bottom: 6px;

    font-weight: bold;
}

.input-group input,
.input-group textarea {
    width: 100%;

    padding: 12px;

    border: 2px solid #0b7d16;

    border-radius: 10px;

    background: #ffffff;

    color: #222222;

    font-size: 16px;

    outline: none;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #ff9800;
}

.input-group textarea {
    height: 90px;

    resize: none;
}


/* =========================================================
   DELIVERY
========================================================= */

.delivery {
    margin: 25px;

    padding: 15px;

    background: #0b7d16;
    color: #ffffff;

    text-align: center;

    border-radius: 10px;

    font-size: 20px;
    font-weight: bold;
}


/* =========================================================
   BANNER
========================================================= */

.banner {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 20px;
}

.banner img {
    width: 100%;

    border-radius: 15px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   QR PAYMENT
========================================================= */

.qr-payment {
    width: 100%;

    margin: 20px 0;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #dddddd;

    border-radius: 12px;

    text-align: center;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.qr-code {
    width: 250px;
    max-width: 100%;

    margin: 15px auto;

    border-radius: 10px;
}

.payment-btn {
    padding: 12px 25px;

    border: none;

    border-radius: 8px;

    background: #28a745;
    color: #ffffff;

    font-size: 16px;

    cursor: pointer;
}

.payment-btn:hover {
    background: #218838;
}


/* =========================================================
   SEO CONTENT
========================================================= */

.seo-content {
    width: calc(100% - 30px);
    max-width: 700px;

    margin: 30px auto;

    padding: 20px;

    color: darkgreen;

    background: #ffffff;

    border-radius: 12px;
}


/* =========================================================
   TABLET
   769px - 1000px
========================================================= */

@media (max-width: 1000px) {

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

        gap: 15px;

        padding: 15px;
    }

    #products .card img,
    .products .card img {
        height: 175px;
    }
}


/* =========================================================
   MOBILE
   ALWAYS 2 PRODUCTS PER ROW
========================================================= */

@media (max-width: 768px) {

    /* HEADER */

    header {
        height: 75px;

        padding: 10px 15px;
    }

    .logo {
        width: 52px;
        height: 52px;
    }

    header h1 {
        font-size: 17px;
    }

    header p {
        display: none;
    }

    #cartBtn {
        min-height: 48px;

        padding: 8px 12px;

        font-size: 18px;
    }


    /* SEARCH */

    .search-box {
        padding: 15px;
    }

    #search {
        height: 44px;

        padding: 10px 12px;

        font-size: 15px;
    }


    /* =====================================================
       PRODUCTS
       FORCE EXACTLY 2 COLUMNS
    ===================================================== */

    #products,
    .products {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;

        padding: 10px !important;

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 10px !important;

        align-items: stretch !important;
    }


    /* CARD */

    #products .card,
    .products .card {
        width: 100% !important;

        min-width: 0 !important;
        max-width: 100% !important;

        border-radius: 10px;
    }


    /* IMAGE */

    #products .card img,
    .products .card img {
        width: 100% !important;

        height: 150px !important;

        object-fit: cover !important;
    }


    /* BODY */

    #products .card-body,
    .products .card-body {
        padding: 8px !important;
    }


    /* TITLE */

    #products .card-body h3,
    .products .card-body h3 {
        font-size: 14px;

        line-height: 1.25;

        margin-bottom: 7px;
    }


    /* WEIGHT LABEL */

    #products .weight-label,
    .products .weight-label {
        font-size: 11px;

        margin-bottom: 4px;
    }


    /* WEIGHT SELECT */

    #products .weight-select,
    .products .weight-select {
        width: 100% !important;

        height: 36px;

        padding: 5px 6px;

        font-size: 11px;
    }


    /* OLD PRICE */

    #products .old-price,
    .products .old-price {
        min-height: 15px;

        margin-top: 5px;

        font-size: 10px;
    }


    /* NEW PRICE */

    #products .new-price,
    .products .new-price {
        margin: 3px 0 5px;

        font-size: 17px;
    }


    /* BUTTONS */

    #products .card button,
    .products .card button {
        width: 100% !important;

        min-height: 36px;

        padding: 7px 3px;

        margin-top: 5px;

        font-size: 11px;

        border-radius: 6px;
    }


    /* SALE */

    #products .sale,
    .products .sale {
        top: 5px;

        left: 5px;

        padding: 3px 6px;

        font-size: 9px;
    }


    /* CART */

    .cart-panel {
        width: 95%;

        max-width: 95%;

        right: 2.5%;

        top: 75px;

        max-height: 85vh;

        padding: 15px;
    }


    /* PRODUCT DETAIL */

    .product-detail {
        width: calc(100% - 20px);

        margin: 10px;

        padding: 15px;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    #detailMainImage {
        height: 320px;
    }


    /* DELIVERY */

    .delivery {
        margin: 15px;

        padding: 13px;

        font-size: 18px;
    }


    /* BANNER */

    .banner {
        padding: 15px;
    }
}


/* =========================================================
   MOBILE SMALL
   500px AND BELOW
========================================================= */

@media (max-width: 500px) {

    /* HEADER */

    header {
        height: 68px;

        padding: 8px 10px;
    }

    .logo-area {
        gap: 5px;

        min-width: 0;
    }

    .logo {
        width: 48px;
        height: 48px;
    }

    header h1 {
        max-width: 125px;

        font-size: 14px;

        line-height: 1.15;
    }


    /* CART */

    #cartBtn {
        min-height: 42px;

        padding: 7px 10px;

        font-size: 16px;
    }

    #cartCount {
        min-width: 18px;

        padding: 2px 6px;

        font-size: 12px;
    }


    /* SEARCH */

    .search-box {
        padding: 12px 10px;
    }

    #search {
        height: 40px;

        padding: 9px 12px;

        font-size: 14px;
    }


    /* =====================================================
       PRODUCT GRID
       EXACTLY 2 PER ROW
    ===================================================== */

    #products,
    .products {
        width: 100% !important;

        padding: 8px !important;

        gap: 8px !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }


    /* CARD */

    #products .card,
    .products .card {
        border-radius: 9px;
    }


    /* IMAGE */

    #products .card img,
    .products .card img {
        height: 140px !important;
    }


    /* BODY */

    #products .card-body,
    .products .card-body {
        padding: 7px !important;
    }


    /* TITLE */

    #products .card-body h3,
    .products .card-body h3 {
        font-size: 13px;

        margin-bottom: 5px;
    }


    /* WEIGHT LABEL */

    #products .weight-label,
    .products .weight-label {
        font-size: 10px;
    }


    /* SELECT */

    #products .weight-select,
    .products .weight-select {
        height: 34px;

        padding: 4px 5px;

        font-size: 10px;
    }


    /* PRICE */

    #products .old-price,
    .products .old-price {
        font-size: 9px;

        min-height: 13px;
    }

    #products .new-price,
    .products .new-price {
        font-size: 16px;

        margin: 3px 0 4px;
    }


    /* BUTTONS */

    #products .card button,
    .products .card button {
        min-height: 34px;

        padding: 6px 2px;

        font-size: 10px;

        border-radius: 6px;
    }


    /* SALE */

    #products .sale,
    .products .sale {
        top: 4px;

        left: 4px;

        padding: 3px 5px;

        font-size: 8px;
    }


    /* CART */

    .cart-panel {
        width: 96%;

        max-width: 96%;

        right: 2%;

        top: 68px;

        padding: 12px;
    }


    /* DETAIL */

    .product-detail {
        width: calc(100% - 16px);

        margin: 8px;

        padding: 10px;
    }

    #detailMainImage {
        height: 280px;
    }

    .detail-thumbnail {
        width: 60px;
        height: 60px;
    }

    .product-info h2 {
        font-size: 21px;
    }

    #detailPrice {
        font-size: 22px;
    }


    /* DELIVERY */

    .delivery {
        margin: 10px;

        padding: 12px;

        font-size: 16px;
    }


    /* BANNER */

    .banner {
        padding: 10px;
    }


    /* SEO */

    .seo-content {
        width: calc(100% - 20px);

        margin: 15px 10px;

        padding: 15px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   360px AND BELOW
   STILL 2 PRODUCTS PER ROW
========================================================= */

@media (max-width: 360px) {

    /* HEADER */

    header {
        height: 64px;

        padding: 7px 8px;
    }

    .logo {
        width: 44px;
        height: 44px;
    }

    header h1 {
        max-width: 110px;

        font-size: 12px;
    }

    #cartBtn {
        min-height: 38px;

        padding: 5px 7px;

        font-size: 14px;
    }


    /* PRODUCTS */

    #products,
    .products {
        width: 100% !important;

        padding: 6px !important;

        gap: 6px !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }


    /* IMAGE */

    #products .card img,
    .products .card img {
        height: 115px !important;
    }


    /* BODY */

    #products .card-body,
    .products .card-body {
        padding: 5px !important;
    }


    /* TITLE */

    #products .card-body h3,
    .products .card-body h3 {
        font-size: 12px;

        margin-bottom: 4px;
    }


    /* SELECT */

    #products .weight-select,
    .products .weight-select {
        height: 32px;

        font-size: 9px;

        padding: 3px;
    }


    /* PRICE */

    #products .old-price,
    .products .old-price {
        font-size: 8px;

        min-height: 12px;
    }

    #products .new-price,
    .products .new-price {
        font-size: 15px;
    }


    /* BUTTONS */

    #products .card button,
    .products .card button {
        min-height: 32px;

        padding: 5px 2px;

        font-size: 9px;
    }


    /* SALE */

    #products .sale,
    .products .sale {
        top: 3px;

        left: 3px;

        padding: 2px 4px;

        font-size: 7px;
    }


    /* DETAIL */

    #detailMainImage {
        height: 240px;
    }

    .product-info h2 {
        font-size: 19px;
    }

    #detailPrice {
        font-size: 20px;
    }
}


/* =========================================================
   EXTRA SAFETY AGAINST HORIZONTAL OVERFLOW
========================================================= */

#products *,
.products * {
    max-width: 100%;
}

#products select,
.products select {
    overflow: hidden;
}

#products button,
.products button {
    overflow: hidden;
}
/* =========================================================
   MOBILE STICKY CART BAR
   Swadhist Best Quality
========================================================= */

.mobile-cart-bar {
    display: none;
    
    position: fixed;
    
    left: 50%;
    bottom: 12px;
    
    transform: translateX(-50%);
    
    width: calc(100% - 24px);
    max-width: 600px;
    
    min-height: 70px;
    
    background: #0788b8;
    
    border-radius: 40px;
    
    padding: 7px 8px 7px 10px;
    
    z-index: 9999;
    
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.25);
    
    align-items: center;
    
    color: white;
}


/* Product section */

.mobile-cart-product {
    
    display: flex;
    
    align-items: center;
    
    flex: 1;
    
    min-width: 0;
}


/* Product image */

.mobile-cart-image-wrap {
    
    width: 55px;
    height: 55px;
    
    background: white;
    
    border-radius: 50%;
    
    overflow: hidden;
    
    flex-shrink: 0;
    
    display: flex;
    align-items: center;
    justify-content: center;
}


.mobile-cart-image-wrap img {
    
    width: 100%;
    height: 100%;
    
    object-fit: cover;
}


/* Cart text */

.mobile-cart-info {
    
    display: flex;
    
    flex-direction: column;
    
    margin-left: 10px;
    
    min-width: 0;
}


.mobile-cart-info strong {
    
    font-size: 18px;
    
    line-height: 22px;
    
    white-space: nowrap;
}


.mobile-cart-info span {
    
    font-size: 14px;
    
    opacity: 0.95;
    
    margin-top: 2px;
}


/* Total */

.mobile-cart-total {
    
    margin-left: 8px;
    
    white-space: nowrap;
}


.mobile-cart-total strong {
    
    font-size: 17px;
}


/* Arrow button */

.mobile-cart-arrow {
    
    width: 55px;
    height: 55px;
    
    border: none;
    
    border-radius: 50%;
    
    background: white;
    
    color: #0788b8;
    
    font-size: 42px;
    
    line-height: 45px;
    
    display: flex;
    
    align-items: center;
    justify-content: center;
    
    cursor: pointer;
    
    margin-left: 8px;
    
    padding: 0 0 5px 0;
}


.mobile-cart-arrow:active {
    
    transform: scale(0.94);
}


/* =========================================================
   MOBILE ONLY
========================================================= */

@media (max-width: 768px) {
    
    .mobile-cart-bar {
        
        display: none;
        
    }
    
}


/* =========================================================
   DESKTOP - HIDE STICKY CART
========================================================= 

@media (min-width: 769px) {
    
    .mobile-cart-bar {
        
        display: none !important;
        
    }
    
}*/
/* =========================================
   SWADHIST BEST QUALITY
   RESPONSIVE DESKTOP, TABLET & MOBILE
========================================= */

/* DESKTOP VIEW */
@media screen and (min-width: 1024px) {
    
    body {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Header */
    header {
        height: auto;
        min-height: 100px;
        padding: 15px 30px;
    }
    
    /* Search bar */
    #searchInput {
        width: 96%;
        margin: 20px 2%;
        padding: 12px;
        font-size: 16px;
    }
    
    /* Product grid */
    #productsContainer,
    #products,
    .products-grid,
    .product-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
        padding: 20px;
        width: 100%;
    }
    
    /* Product cards */
    .product-card {
        width: 100%;
        min-width: 0;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .product-card img {
        width: 100%;
        height: 240px;
        object-fit: cover;
    }
    
    .product-card button {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
}

/* TABLET VIEW */
@media screen and (min-width: 600px) and (max-width: 1023px) {
    
    #productsContainer,
    #products,
    .products-grid,
    .product-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        padding: 12px;
    }
}

/* MOBILE VIEW */
@media screen and (max-width: 599px) {
    
    #productsContainer,
    #products,
    .products-grid,
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px;
    }
    
    .product-card {
        width: 100%;
        min-width: 0;
    }
    
    .product-card img {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }
}
/* =========================================================
   END OF style.css
========================================================= */