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

body
{
    display: flex;
    flex-flow: wrap column;
    min-height: 100vh;
}

/* =========================
   Alert close button – proper centering
   ========================= */
.custom-alert-close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-20%);
}



/* Media Query */
@media screen and (max-width: 1024px)
{
    .mainMenuRow
    {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .upperNavWeb
    {
        display: none !important;
    }
    #upperNavMobile1, #upperNavMobile1-logo, #upperNavMobile2
    {
        display: flex !important;
    }
    #lowerNavMobile
    {
        display: none !important;
    }
    #newsHeadline h5 {
        animation: marquee 15s linear infinite;
    }
    #productDiv
    {
        width: 125px;
    }
    #productDiv img
    {
        height: 120px;
    }
    #productDiv .title p
    {
        font-size: 75%;
    }
    .searchForm
    {
        padding-top: 10px;
    }
    #product-grid
    {
        grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    }
    #gallery-grid
    {
        grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    }
}

/* =========================
   MOBILE UI COMPRESSION
   ========================= */
   
@media screen and (max-width: 600px) {

    /* ---------- Header Row (Hamburger, Logo, Profile) ---------- */
    #upperNavMobile1 {
        padding: 4px 0 !important;
    }

    #upperNavMobile1 .navbar-brand img {
        max-height: 38px !important; /* reduce logo height */
    }

    #upperNavMobile1 .bi-list,
    #upperNavMobile1 .bi-person-circle {
        font-size: 26px !important;
    }

    #upperNavMobile1 .nav-link,
    #upperNavMobile1 button {
        padding: 2px !important;
    }

    /* ---------- Mobile Search Bar ---------- */
    #upperNavMobile2 {
        margin-top: 4px !important;
    }

    #upperNavMobile2 .searchForm {
        padding-top: 0 !important;
    }

    #upperNavMobile2 .form-select,
    #upperNavMobile2 .form-control {
        padding: 4px 8px !important;
        font-size: 13px;
        height: 34px;
    }

    #upperNavMobile2 .btn {
        padding: 4px 10px !important;
        height: 34px;
    }

    /* Camera icon button */
    #upperNavMobile2 .image-search-trigger {
        min-width: 36px !important;
        padding: 0 !important;
    }

    /* ---------- Success / Alert Messages ---------- */
    .custom-alert-close {
        position: absolute;
        top: 50%;
        right: 8px;
        transform: translateY(-0%);
    }
}


@media screen and (max-width: 420px)
{
    .navbar-expand .mainMenu li .nav-link
    {
        padding: 0px;
        padding-right: 0.3rem;
        padding-left: 0.3rem;
    }
    #productDiv
    {
        width: 100px;
    }
    #productDiv img
    {
        height: 90px;
    }
    #productDiv .title p
    {
        font-size: 70%;
    }
}


/* Main Menu Design */
.navbar-expand .mainMenu li .nav-link:hover
{
    color: green;
}

.upperNavWeb .mainMenu
{
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.upperNavWeb .mainMenu li a
{
    font-size: 15px;
    white-space: nowrap;
}
.upperNavMobile, #upperNavMobile1-logo
{
    display: none !important;
}

/* Mobile Menu Styling */
#mobileMenuOffcanvas
{
    width: 280px;
}

#mobileMenuOffcanvas .offcanvas-header
{
    background-color: #f8f9fa;
}

#mobileMenuOffcanvas .offcanvas-body .navbar-nav .nav-link
{
    font-size: 16px;
    color: #333;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

#mobileMenuOffcanvas .offcanvas-body .navbar-nav .nav-link:hover
{
    background-color: #f8f9fa;
    color: green;
}

#mobileMenuOffcanvas .offcanvas-body .navbar-nav .nav-link i
{
    width: 24px;
}

/* Mobile Header Styling */
#upperNavMobile1
{
    padding: 10px 0;
}



/* OFFCANVAS Design */
.offcanvas-body
{
    max-height: 85vh;
    overflow-y: auto;
}
.offcanvas-body .navbar-nav .nav-link:hover, .offcanvas-body .navbar-nav .nav-link.show
{
    color: green;
}
.offcanvas.offcanvas-start
{
    width: 240px;
}
.dropdown-toggle1
{
    display: inline-block;
    vertical-align: middle;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    background-image: linear-gradient(black, black), linear-gradient(black, black);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 10% 60%, 60% 10%;
    border: 1px solid black;
}

.dropdown-toggle2
{
    display: inline-block;
    vertical-align: middle;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    background-image: linear-gradient(green, green);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60% 10%;
    border: 1px solid green;
}

.subcategoryMenuList a:hover, .subcategoryMenuList a:active, .subcategoryMenuList a:focus
{
    color: black;
    background-color: rgba(212, 212, 212, 0.714);
}



/*  News Headline Design */
.newsHeadline {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.newsHeadline h5 {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}


/* Product Card design */
.product-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 4px;
}
.productDiv
{
    background-color: rgba(212, 212, 212, 0.714);
    box-shadow: 0px 3px 5px #b2b2b2;
    width: 150px;
}
.productDiv img
{
    height: 140px;
    object-fit: cover;
}

.title p {
    font-size: 80%;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Protected Login page Design */
.protected-password-btn-class {
    position: relative;
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    color: black;
    cursor: pointer;
    background-color: #33CCCC;
    transition: all 0.2s ease;
}

.protected-password-btn-class:active
{
    transform: scale(0.96);
}

.protected-password-btn-class:before, .protected-password-btn-class:after
{
    position: absolute;
    content: "";
    width: 150%;
    left: 50%;
    height: 100%;
    transform: translateX(-50%);
    z-index: -1000;
    background-repeat: no-repeat;
}

.protected-password-btn-class:hover:before
{
    top: -70%;
    background-image: radial-gradient(circle, #33CCCC 20%, transparent 20%),
      radial-gradient(circle, transparent 20%, #33CCCC 20%, transparent 30%),
      radial-gradient(circle, #33CCCC 20%, transparent 20%),
      radial-gradient(circle, #33CCCC 20%, transparent 20%),
      radial-gradient(circle, transparent 10%, #33CCCC 15%, transparent 20%),
      radial-gradient(circle, #33CCCC 20%, transparent 20%),
      radial-gradient(circle, #33CCCC 20%, transparent 20%),
      radial-gradient(circle, #33CCCC 20%, transparent 20%),
      radial-gradient(circle, #33CCCC 20%, transparent 20%);
    background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%,
      10% 10%, 18% 18%;
    background-position: 50% 120%;
    animation: greentopBubbles 0.6s ease;
}

@keyframes greentopBubbles
{
    0%
    {
        background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
    }
  
    50% 
    {
        background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
    }
  
    100%
    {
        background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
        background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
}

.protected-password-btn-class:hover::after
{
    bottom: -70%;
    background-image: radial-gradient(circle, #33CCCC 20%, transparent 20%),
      radial-gradient(circle, #33CCCC 20%, transparent 20%),
      radial-gradient(circle, transparent 10%, #33CCCC 15%, transparent 20%),
      radial-gradient(circle, #33CCCC 20%, transparent 20%),
      radial-gradient(circle, #33CCCC 20%, transparent 20%),
      radial-gradient(circle, #33CCCC 20%, transparent 20%),
      radial-gradient(circle, #33CCCC 20%, transparent 20%);
    background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%;
    background-position: 50% 0%;
    animation: greenbottomBubbles 0.6s ease;
}

@keyframes greenbottomBubbles
{
    0%
    {
        background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%;
    }
  
    50%
    {
        background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%;
    }
  
    100%
    {
        background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
        background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
}




/* Prevent Bootstrap from adding padding-right when offcanvas opens */
body.offcanvas-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* Also target the backdrop behavior */
.offcanvas-backdrop {
    width: 100% !important;
}