@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties (Variables) */
:root {
    --primary-color-light: #53a4fa;
    --primary-color: #007bff;
    --primary-color-dark: #0056b3;
    --primary-color-dark-hover: #023e7e;
    --primary-color-rgb: 0, 123, 255;
    --accent-color: #fff;
    --text-color-black: #000;
    --text-color-dark: black; /* #333*/
    --text-color-medium: #555;
    --text-color-light: #666;
    --light-description-color: rgb(124, 126, 134);
    --background-light: #f4f4f4;
    --background-white: #fff;
    --light-page-text: rgb(179, 179, 189);
    --link-color: #0044cc;
    --product-card-bg: rgb(247, 248, 249);
    --homepage-title: #1a62c8;
    --border-light: #edeff5; 
    --border-color-dark: #e2e5ec;
    --scrolling-nav-desktop: 80px; /* main nav's height desktop */
    --scrolling-nav-mobile: 76px; /* main nav's height mobile */
    --footer-light-text: rgb(130, 129, 138);
    --footer-dark-text: rgb(179, 179, 189);
    --cart-light-text: rgb(149, 152, 162);
    --shadow-light: rgba(0,0,0,0.1);
    --shadow-medium: rgba(0,0,0,0.15);
    --error-color: #dc3545;
    --success-color: #28a745;
    --success-color-dark: #218838;
    --font-family-primary: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family-primary);
}

html {
    scroll-padding-top:var(--scrolling-nav-desktop);
}

@media (max-width: 769px) {
    html {
        scroll-padding-top:var(--scrolling-nav-mobile);
    }
}

/*remove highlight when selecting in mobile */

a, button, label, input, li {
    -webkit-tap-highlight-color: transparent !important;
}
button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
label:focus,
label:focus-visible,
a:focus,
a:focus-visible {
  outline: none;
  box-shadow: none;
}


body {
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--background-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 88%;
    margin: 0 auto;
    padding: 40px 0;
}

/*top header styles*/

/* Header Styles */
.main-header {
    background-color: var(--background-white);
    box-shadow: none;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s ease; /* TO DO: JS TRANSITION */
    border-bottom: 1px solid var(--border-light)
}

/*end of sub(above .container-main)*/
/* TO DO: MAKE RESPONSIVE */
.main-header.sub-container {
    background: var(--primary-color-dark);
    padding: 10px 0;
    height: auto;
    transition-property: padding, height;
    transition-duration: .3s;
    transition-timing-function: ease;
}

.main-header.sub-container ul {
    width: 90%;
    margin: auto;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 20px;
}

.main-header.sub-container ul li {
    color: white;
    font-size: 14px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    display: flex;
    place-items: center;
    gap: 10px
}

@media (max-width: 500px) {
    .main-header.sub-container ul {
        display: flex;
        text-align: center;
        justify-content: center;
        gap: 10px;
        width: 96%;
    }

    .main-header.sub-container {
        padding: 8px 0;
    }

    .main-header.sub-container ul li {
        justify-content: start;
        gap: 5px
    }

    .main-header.sub-container ul li .span-delivery {
        visibility: 'hidden'
    }

    .main-header.sub-container ul li .span-delivery::before {
        visibility: 'visible';
    }
}

@media (max-width: 400px) {
    .main-header.sub-container ul li {
        font-size: 12px;
    }

    .main-header.sub-container {
        padding: 10px 0;
    }
}

.main-header.sub-container ul li svg {
    width: 18px;
    height: 18px;
    stroke: white;
    fill: white
}

/*end of sub(above .container-main)*/

.main-header.container {
    background: white;
    width: 100%;
    /*padding: 15px 0;*/
    padding: 0;
    position: sticky;
    top: 0;
}

.main-header.container > div {
    width: 88%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 24px 0;
    outline: 0;
}

.logo img {
    max-height: 36px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    position: relative;
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
}

.main-nav .nav-links > li {
    margin-left: 35px;
    padding: 27px 0;
    cursor: pointer
}

@media (max-width: 768px) {
    .main-nav .nav-links > li {
        padding: 0;
    }
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color-black);
    transition: color 0.3s ease;
    display: inline-block;
    background-color: transparent;
    border-bottom: none;
    font-weight: 500;
    -webkit-font-smoothing: antialiased
}

.main-nav ul li a.main-nav-link {
    font-size: 14px;
}

.main-nav ul li a.main-nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.main-nav ul li a:hover:not(.active) {
    color: var(--primary-color);
}


.main-nav > ul > li > .nav-multiple {
    display: inline-flex;
    flex-direction: row;
    gap: 10px;
    place-items: center;
}

.main-nav > ul > li > .nav-multiple .dropdown-icon {
    display: inline-flex;
    transition: .2s ease;
}

.dropdown-icon svg {
    width: 18px;
    height: 18px;
}

/* nav drop down links */

.nav-dropdown {
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid var(--border-light);
    box-shadow: 0 15px 10px rgba(90, 90, 90, 0.02);
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0;
    max-height: 0;
    visibility: hidden;
    overflow: scroll;
    transition: .3s ease;
}

.nav-dropdown ul {
    list-style: none;
}

.nav-dropdown > ul {
    width: 88%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    border-radius: 2px;
}

@media (min-width: 769px) {
    .main-nav .nav-links > li:hover .main-nav-link {
        color: var(--primary-color);
    }
    
    .nav-links > li:nth-of-type(2):hover .nav-dropdown {
        max-height: 350px;
        padding: 40px 0;
        visibility: visible;
    }

    .main-nav > ul > li > .nav-multiple .dropdown-icon { 
        transform: rotate(90deg);
    }
    .main-nav .nav-links > li:hover .dropdown-icon svg path {
        stroke:var(--primary-color)
    }

    .main-nav > ul > li > .nav-multiple .main-nav-link:checked ~ .dropdown-icon,
    .main-nav .nav-links > li:hover .dropdown-icon {
        transform: rotate(180deg);
    }
}

.nav-dropdown > ul > li:not(:last-child) {
    border-right: 1px solid var(--border-color-dark)
}


.nav-dropdown > ul::-webkit-scrollbar {
    display: none;
}

.nav-dropdown [data-filter-type] > div {
    font-size: 14.75px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    margin-bottom: 7px;
   
}

.nav-dropdown [data-filter-type] ul {
    display: flex;
    flex-direction: column;
}

.nav-dropdown a {
    font-size: 13.25px;
    padding-bottom: 5px;
}

/* Header Icons Styling (Search and Cart) */
.header-icons {
    display: flex;
    place-items: center;
}

.header-icons a {
    display: flex;
    color: var(--text-color-dark);
    margin-left: 13px;
    position: relative;
    transition: color 0.3s ease;
}

.header-icons a:first-child {
    margin-left: 0;
}

.header-icons svg {
    color: black;
    width: 21px;
    height: 21px;
}

.header-icons .cart-count {
    background-color: var(--error-color);
    color: var(--accent-color);
    font-size: 0.7em;
    font-weight: 500;
    border-radius: 50%;
    padding: 2px 6px;
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Notification Styles */
#notification-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
    z-index: 2050;
}
.notification {
    background-color: var(--background-white);
    color: var(--text-color-dark);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1em;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInSlideDown 0.4s ease-out forwards;
    pointer-events: all;
    position: relative;
}
.notification .icon {
    font-size: 1.5em;
    line-height: 1;
}
.notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.notification.success .icon {
    color: var(--success-color);
}
.notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.notification.error .icon {
    color: var(--error-color);
}
.notification .close-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    color: var(--text-color-medium);
    cursor: pointer;
    position: absolute;
    top: 8px;
    right: 10px;
    transition: color 0.2s ease;
}
.notification .close-btn:hover {
    color: var(--text-color-dark);
}
@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeOutSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}


/* no content elements*/

.no-content-message {
    width: 88%;
    text-align: center;
    margin: auto;
    padding: 80px 0;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    place-items: center;
    justify-content: center;
    gap: 40px;
}

.loading-circle-container {
    width: 50px;
    height: 50px;
    position: relative
}

.loading-moving-circle, .loading-circle {
    width: 100%;
    height: 100%;
    border: 5px solid rgb(3, 3, 70);
    border-radius: 50%;
}

.loading-circle {
    opacity: 0.2
}

.loading-moving-circle {
    position: absolute;
    border-color: transparent;
    border-top-color: var(--primary-color);
    top: 0;
    left: 0;
    z-index: 1;
    animation: loader 1s linear infinite;
}

@keyframes loader {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

/*end of above */

/* Custom Confirmation Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: var(--background-white);
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: translateY(-50px);
    opacity: 0;
    animation: fadeInModal 0.3s ease-out forwards;
}

.modal-content p {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: var(--text-color-dark);
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.modal-buttons .button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease, transform 0.1s ease;
    flex-grow: 1;
}

.modal-buttons .button-danger {
    background-color: var(--error-color);
    color: var(--accent-color);
}

.modal-buttons .button-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.modal-buttons .button-secondary {
    background-color: var(--text-color-medium);
    color: var(--accent-color);
}

.modal-buttons .button-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content Sections */
main {
    flex: 1 1 auto;
    height: 0;
    overflow: clip;
    opacity: 0;
    transition: opacity .3s
}

main.active {
    flex: 1;
    opacity: 1;
    height: auto;
    padding-bottom: 20px;
}

.hero-section {
    background-color: #023e7f;
    color: var(--accent-color);
    text-align: left;
    height: 60vh;
    margin-bottom: 10px;
    background-size: cover;
    background-repeat: no-repeat;
    background-repeat: none;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    place-items: center;
    justify-content: center;
}

.hero-section.homepage {
    background-image: url('../img/home_hero_dsktp.png');
    background-position: 60%;
    background-attachment: fixed;
}

@media (max-width: 450px) {
    .hero-section {
        height: 50vh;
    }

    .hero-section.homepage {
        background-image: url('../img/home_hero.png');
    }
}

@media (min-height: 850px) {
    .hero-section {
        height: 50vh
    }
}

@media (max-height: 500px) {
    .hero-section {
        height: 80vh
    }
}

.hero-section .background-overlay {
    background: linear-gradient(to right, rgb(0, 0, 0), rgb(0, 0, 0), rgba(0, 0, 0, 0.522),rgba(0, 0, 0, 0.138), transparent,transparent);
    width: 100%;
    height: 100%; 
    position: absolute; 
    top: 0; 
    left: 0;
}


.hero-section .container {
    position: relative;
    z-index: 100;
    text-align: left;
    display: flex;
    flex-direction: column;
    place-items: start;
    width: 100%;
    padding: 0 5em;
}

/* TO DO: HERO RESPONSIVE */
.hero-section h1, .hero-section p {
    width: 50%;
}

.hero-section h1 {
    font-size: 39px;
    margin-bottom: 14px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    color: white;
}

.hero-section p {
    font-size: 15px;
    margin-bottom: 40px;
    font-weight: 400;
    color: white;
    line-height: 1.8;
}

.hero-section a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: start;
    gap: 7px;
    border-bottom: 1px solid white;
    padding-bottom: 5px;
}

.hero-section a svg {
    width: 25px;
    height: 25px;
}

@media (max-width: 1160px) {
    .hero-section .container {
        padding: 0 3em;
    }

    .hero-section h1, .hero-section p {
        width: 70%;
    }

    .hero-section h1 {
        font-size: 35px
    }
}

@media (max-width: 750px) {
    .hero-section h1, .hero-section p {
        width: 90%;
        font-size: 14px
    }

    .hero-section h1 {
        font-size: 35px
    }
}

@media (max-width: 650px) {
    .hero-section h1, .hero-section p {
        width: 100%;
    }

    .hero-section h1 {
        font-size: 33px
    }

    .hero-section .background-overlay {
        background: linear-gradient(to right, rgb(0, 0, 0), rgba(0, 0, 0, .8), rgba(0, 0, 0, 0.522),rgba(0, 0, 0, 0.338), transparent,transparent);
        width: 100%;
    }
}


@media (max-width: 550px) {
    .hero-section .container {
        padding: 0 2em;
    }
}

@media (max-width: 425px), (max-height: 500px) {
    .hero-section h1 {
        font-size: 30px;
    }
    .hero-section a {
        font-size: 14px
    }
    .hero-section p {
        margin-bottom: 30px
    }
}

@media (max-width: 400px) {
    .hero-section .container {
        padding: 0 1.5em;
    }
}

@media (max-width: 370px), (max-height: 500px) {
    .hero-section h1 {
        font-size: 26px;
    }
}

button {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.primary-button {
    background: transparent;
    color: var(--primary-color-dark);
    border: 2px solid var(--accent-color);
}

.hero-section .primary-button {
    color: black;
}

.hero-section .button {
    padding: 10px 20px;
}

.primary-button:hover {
    color: var(--primary-color-dark-hover)
}

.secondary-button {
    background-color: var(--primary-color-dark);
    color: var(--accent-color);
    border: 1px solid var(--primary-color-dark);
}
.secondary-button:hover {
    background-color: var(--primary-color-dark-hover);
    border-color: var(--primary-color-dark-hover);
}

/* Featured Products Section */
.featured-products {
    text-align: center;
}

/* universal*/
.title-with-link {
    display: grid;
    grid-template-columns: 3fr 1fr;
    place-items: center;
    margin-bottom: 30px;
}

.title-with-link h2 {
    font-size: 28px;
    color: var(--homepage-title);
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
}

.title-with-link a {
    color: var(--primary-color-dark);
    font-size: 14px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    text-decoration: none;
    text-align: right;
    width: 100%;
}

/* home sections */

.home-section-heading {
    display: flex;
    flex-direction: column;
    text-align: left;
    place-items: start;
    width: 100%;
}

/* TO DO: RESPONSIVE */
.home-section-heading p.home-section-description {
    color: var(--light-description-color);
    font-size: 14px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    text-align: left;
    margin-top: 12px;
}

@media (max-width: 800px) {
    .title-with-link {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .title-with-link a {
        text-align: left;
        margin-top: 10px;
    }
}

@media (max-width: 450px) {
    .title-with-link h2 {
        font-size: 25px
    }
}

/*homepage group section*/

.category-group-section {
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 20px;
    overflow:scroll
}

.category-group-section > .box-section {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 20px;
    text-align: left;
}

@media (max-width: 768px) {
    .category-group-section {
        display: flex;
    }

    .category-group-section > .box-section {
        display: flex;
    }

    .category-group-section .image-section {
        width: 500px
    }
}

.category-group-section .image-section {
    position: relative; 
    border-radius: 10px; 
    overflow: hidden; 
}

.category-group-section .box-section .image-section {
    aspect-ratio: 4/4; 
}

.category-group-section > .image-section {
    height: 100%;
}

.category-group-section .image-section:nth-of-type(1) {background: #B8CBD9}
.category-group-section .image-section:nth-of-type(2) {background: #D9C3A5}
.category-group-section .image-section:nth-of-type(3) {background: #A9B9A5}
.category-group-section .image-section:nth-of-type(4) {background: #C9B3A3}
.category-group-section .image-section:nth-of-type(5) {background:#B8B0C4}

.category-group-section .image-section img{
    width: 100%; 
    height: 100%; 
    object-fit:cover;
}

.category-group-section .overlay-section {
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    position: absolute;
    display: flex;
    place-items: end;
    color: white;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    font-size: 20px;
    padding: 30px; 
    background: linear-gradient(1deg, black 0%, transparent 20%);
}

.category-group-section .box-section .overlay-section {
    font-size: 16px;
    padding: 20px; 
    background: linear-gradient(1deg, black 0%, transparent 30%);
}

/*product page */

.products-listing {
    width: 100%;
    text-align: left;
}

.products-listing h2 {
    font-size: 30px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
}


.page-listing {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 12px;
    text-wrap: nowrap;
    width: 100%;
}

.page-listing > li:not(:last-child)::after {
    content: " › ";
    margin: 0 5px;
}

.page-listing li a {
    color: black;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    text-decoration: none;
    font-size: 14px;
}

.page-listing li.active {
    text-overflow: ellipsis;
    overflow: hidden;
    text-wrap: nowrap;
}

.page-listing li.active a {
    color: var(--light-page-text);
}


.products-listing .short-paragraph {
    font-size: 14px;
    color: var(--light-description-color);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    margin-top: 12px;
    max-width: 100%;
} 

.short-paragraph {
    display: inline-block;
}

.short-paragraph .overflow-text {
    display: none
}

.overflow-link {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    color: var(--link-color);
    background: transparent;
    border: none;
}

.overflow-link.read-more {
    display: inline
}

.overflow-link.read-less {
    display: none;
}

.short-paragraph.open .overflow-link.read-more {
    display: none
}

/* Page pagination */
/*container*/
.products-wrapper {
    display: block;
    width: 100%;
    margin-left: 45px;
}

#paginationContainer {
    width: 100%;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    place-items: center;
    gap: 30px;
    flex-wrap: wrap
}

#paginationContainer ul {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-button {
    border-radius: 2px;
    width: 35px;
    height: 35px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    place-items: center;
    justify-content: center;
    transition: .3s ease;
    cursor: pointer;
    color: black;
    border: 2px solid var(--border-color-dark);
    -webkit-user-select: none;
    user-select: none;
}

#paginationContainer .product-page-button.pagination-button {
    border: 2px solid var(--border-color-dark);
    color: black;
}

#paginationContainer .product-page-button:hover {
    border-color: var(--primary-color-dark)
}

.move-page-button {
    padding: 0 42px;
    background: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: white;
    display: flex;
    gap: 5px
}

.move-page-button.disabled {
    opacity: .3;
    pointer-events: none;
}

.move-page-button:hover {
    background: var(--primary-color-dark-hover);
    border-color: var(--primary-color-dark-hover);
}

.move-page-button svg {
    width: 14px;
    height: 14px;
    fill: transparent; 
    display: flex;
    place-items: center;
}

.move-page-button svg path {
    stroke: white;
    stroke-width: 2.6;
}


input[name='pagination-input'] {
    display: none;
}

#paginationContainer input[name='pagination-input']:checked ~ label.product-page-button {
    background: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: white;
}

/* Product Grid and Card Styles for Dynamic Display */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 35px;
    align-items: start;
    justify-content: center;
    text-align: left;
    margin-top: -10px
}
/*responsiveness to deal with width of product-card in js*/

@media (max-width: 1000px) {
    .product-grid {
        gap: 25px;
    }
}

.product-card {
    background-color: var(--background-white);
    border-radius: 10px;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 10px; 
}

#productsContainer .product-card {
    display: none;
}

#productsContainer .product-card.active {
    display: block;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color-dark);
}

.product-card .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex-grow: 1;
}

.product-card .product-image {
    width: 100%;
    height: 225px;
    border-radius: 10px;
    text-align: center;
    background: var(--product-card-bg);
    margin-bottom: 15px;
    display: flex;
    place-items: center;
    justify-content: center;
}

.product-card .product-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.product-card .product-name {
    margin-bottom: 5px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    font-size: 15.5px;
    color: var(--text-color-dark);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-card .product-price {
    font-size: 1.15em;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    color: var(--primary-color-dark);
    font-size: 14px;
    margin-bottom: 10px;
}

.product-card .product-description {
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.product-card .product-category {
    font-size: 0.9em;
    color: var(--text-color-medium);
    margin-bottom: 15px;
    text-transform: capitalize;
}

.product-card .add-to-cart-btn {
    background-color: white;
    color: var(--accent-color);
    border: 2px solid var(--border-color-dark);
    border-radius: 25px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    display: flex;
    justify-content: center;
    place-items: center;
    margin-right: 10px;
}

.product-card button.button.add-to-cart-btn {
    padding: 0;
    color: black;
    font-weight: 500;
}

.product-card .add-to-cart-btn svg {
    width: 23px;
    height: 23px;
}

.product-card .add-to-cart-btn:hover {
    border-color: var(--primary-color-dark);
}

.text-center {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Footer Styles */
.main-footer {
    background-color: black;
    color: var(--accent-color);
    padding: 20px 0;
    text-align: center;
    margin-top: 1em;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}


/* copyright text */
.main-footer p {
    margin: 5px 0;
    color: white;
    font-weight: 500;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    text-align: left
}

.social-links {
    margin: 10px 0;
}

.social-links a {
    margin-right: 15px;
    text-decoration: none;
    color: var(--accent-color);
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.main-footer .footer-admin-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85em;
    margin-top: 10px;
    display: inline-block;
    transition: color 0.3s ease;
}

.main-footer .footer-admin-link:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

/* Hamburger Menu Icon */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Mobile Navigation Specifics */
@media (max-width: 768px) {
    .logo img {
        max-height: 30px; /* Reduced logo size */
    }

    .main-nav {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        position: static;
        width: auto;
        gap: 15px; /* Add gap between header-icons and hamburger-menu */
    }

    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: left;
        background-color: var(--background-white);
        position: absolute;
        top: 100%;
        left: 0;
        border: 1px solid var(--border-light);
        padding: 15px 0;
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }

    .main-nav ul.active {
        display: flex;
        max-height: 400px;
        overflow-y: scroll;
    }

    .main-nav ul li {
        margin: 0;
        width: 100%;
        line-height: 1;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav a.main-nav-link {
        font-size: 13.25px;
        padding: 12px 0;
    }

    .main-nav ul li a {
        display: block;
        color: black;
        font-weight: 500;
        text-decoration: none;
        transition: background-color 0.3s ease, color 0.3s ease;
        border-bottom: none;
    }

    .main-nav ul li a.main-nav-link.active {
        color: var(--primary-color);
        border-bottom: none;
    }

    .main-nav ul li a:hover:not(.active) {
        color: var(--primary-color);
        border-bottom: none;
    }

    .main-nav > ul > li > .nav-multiple {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .main-nav > ul > li > .nav-multiple .main-nav-link {
        pointer-events: none
    }
    

    /* TO DO: Product dropdown */

    .nav-dropdown {
        position: static;
        border: none;
        box-shadow: none;
        padding: 0;
        visibility: visible;
        max-height: none;
        display: none;
    }

    input.nav-dropdown-checkbox:checked ~ .nav-dropdown {
        display: block
    }

    .nav-multiple .dropdown-icon {
        transform: rotate(0);
    }

    input.nav-dropdown-checkbox:checked ~ .nav-multiple .dropdown-icon {
        transform: rotate(90deg)
    }

    .nav-dropdown > ul {
        padding: 0;
        margin: 20px 0;
        margin-left: 20px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-dropdown [data-filter-type] > div {
        font-size: 14px
    }

    .nav-dropdown a {
        font-size: 13px;
        padding: 9px 0;
    }

    .nav-dropdown > ul > li:not(:last-child) {
        border: 0;
    }

    /* end of product dropdown */

    .header-icons {
        display: flex !important; /* Ensure visibility */
        align-items: center;
        margin-right: 0; /* Remove specific margin here */
        order: 1;
        z-index: 1001; /* Ensure they are on top */
        gap: 9px; /* Add gap between search and cart icons */
    }

    .header-icons a {
        margin-left: 0;
        margin-right: 8px;
        line-height: 0;
    }

    .header-icons a:first-child {
        margin-right: 0
    }

    .hamburger-menu {
        display: flex;
        order: 2;
        z-index: 1002; /* Hamburger should be clickable on top */
    }

    .hamburger-menu.open .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger-menu.open .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.open .bar:nth-child(3) {
        transform: translateY(-9.2px) rotate(-45deg);
    }
}

/* Ensure desktop styles don't conflict */
@media (min-width: 769px) {
    .main-nav {
        display: flex !important;
        justify-content: flex-start;
        position: static;
        max-height: none;
        overflow: visible;
        box-shadow: none;
        flex-direction: row;
        width: auto;
    }

    .main-nav .nav-links {
        display: flex !important;
        margin-right: auto;
        position: static;
        max-height: none;
        overflow: visible;
        box-shadow: none;
        flex-direction: row;
        width: auto;
    }
    
    .hamburger-menu {
        display: none !important;
        order: unset;
    }

    .header-icons {
        display: flex;
        align-items: center;
        margin-left: 35px;
        margin-right: 0;
        order: unset;
    }

    .header-icons a {
        margin-left: 13px;
    }
    .header-icons a:first-child {
        margin-left: 0;
    }
}

.product-detail-grid {
    margin-top: 30px;
}

/* Product Detail Page Styles */
.product-detail-section {
    /*padding: 25px 0;*/
    background-color: var(--background-white);
    margin-bottom: 30px;
    border-radius: 8px;
}


/* Product Detail Page Styles for Desktop */
@media (min-width: 769px) {
    .product-detail-grid {
        display: flex;
        flex-direction: row;
        gap: 80px
    }

    h1.productDetailName.mobile-version {
        display: none;
        text-align: left;
    }

    .product-info {
        text-align: left; /* Ensure left-aligned */
    }

    .product-description ul {
        display: block; /* Ensure default block behavior */
        text-align: left; /* Ensure left-aligned */
        margin: 0;
    }
}

.product-image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    width: 100%;
    max-width: 500px;
}

.product-image-gallery .main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: var(--product-card-bg);
    padding: 40px;
    object-fit: contain;
}

.thumbnail-gallery {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail-gallery .thumbnail {
    background: transparent;
    width: 80px;
    height: 80px;
    display: flex;
    place-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    opacity: .7;
    border: 2px solid transparent;
    transition: opacity 0.2s ease, transform 0.2s ease, border 0.2s ease;
}

.thumbnail-gallery img {
    width: 95%;
    height: 95%;
    object-fit: contain;
    object-position: center;
}

.thumbnail-gallery .thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color-dark)
}

.thumbnail-gallery .thumbnail:hover {
    transform: scale(1.05);
}

/* product detail info */
h1.productDetailName {
    font-size: 1.6em;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    color: black;
    white-space: wrap;
    margin-bottom: 5px
}

.product-info .product-price {
    font-size: 1.2em;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    color: var(--primary-color-dark);
    margin-bottom: 25px;
}


/*TODO*/
.product-info .product-category {
    font-size: 1em;
    color: var(--text-color-medium);
    margin-bottom: 20px;
    text-transform: capitalize;
    display: none
}

.product-info .product-description {
    font-size: .93em;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    color: var(--text-color-dark);
    line-height: 1.7;
    margin-bottom: 25px;
    white-space: pre-line;
    margin-left: 20px
}

.product-info .product-description > * {
    list-style-type: square;
}

@media (max-width: 1100px) {
    .product-detail-grid {
        gap: 60px
    }

    h1.productDetailName {
        font-size: 1.5em;
    }

    .product-info .product-price {
        font-size: 1.1em;
    }

    .product-info .product-description {
        font-size: 14px;
    }

}

#addToCartBtn.button.secondary-button {
    font-size: 14px;
    font-weight: 500;
    border-radius: 30px;
    padding: 10px 38px;
}

/* Product Actions (Add to Cart, Buy Now) */
.product-card .product-actions {
    display: flex;
    gap: 0;
    margin-top: 15px;
}

.product-card .product-actions .button {
    padding: 9px 0;
    font-size: 14px;
    text-align: center;
    width: 100%;
}

.product-card .buy-now-btn {
    background-color: var(--primary-color-dark);
    color: var(--accent-color);
    border: none;
    border-radius: 25px;
}

.product-card .buy-now-btn:hover {
    background-color: var(--primary-color-dark-hover);
}



/* Category Filter Styles */

.category-filter-container {
    display: flex;
    margin-top: 30px;
    position: relative;
    z-index: 200;
    margin-bottom: 18px;
    place-items: center;
    justify-content: start;
    gap: 10px;
}

.main-filter-button-arrow {
    display: flex;
    place-items: center;
}

.main-filter-button-arrow svg {
    width: 20px;
    height: 20px;
    margin-left: 5px
}

.toggle-filter-button path {
    fill: white;
}

.category-filter-container .secondary-button {
    border-radius: 25px;
    font-size: 14px;
    padding: 7px 25px;
    font-weight: 500;
    -webkit-font-smoothing: auto;
    display: flex;
    place-items: center;
}

@media (max-width: 769px) {
    .category-filter-container .secondary-button {
        padding: 5px 20px;
    }
}

.category-filter-container .toggle-sort-button .secondary-button {
    border: 2px solid var(--border-color-dark);
    background: white;
    color: black;
}

.toggle-sort-button .secondary-button:hover {
    border: 2px solid var(--primary-color-dark)
}


.category-filter-container ul {
    display: flex;
    list-style: none;
    place-items: start;
}

#filterBy, #sortBy {
    display: flex;
    flex-direction: column;
}

.category-filters-main {
    position: relative;
    display: flex;
}


.category-filters-main > div {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    padding-top: 10px;
}

.category-filter-container .category-filters-main:hover > div,
.category-filter-container #openSort:hover ~ .category-filters-main > div {
    display: block;
}

/*sort*/
.category-filters-main > div > ul {
    display: flex;
    flex-direction: column;
    place-items: start;
    gap: 10px;
    background: white;
    padding: 20px;
    padding-right: 30px;
    box-shadow: 0 3px 20px rgba(108, 108, 108, 0.2);
    border-radius: 5px;
    width: 250px;
    max-height: 300px;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/*filter*/
.category-filters-main > ul {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    place-items: start;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-filters-main > div > ul::-webkit-scrollbar {
    display: none
}

.category-filters-main .filter-list-item {
    font-size: 14px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    cursor: pointer;
    width: 100%;
    border-bottom: 1px solid var(--border-color-dark);
    padding: 15px 0;
}

.category-filters-main .filter-list-item:first-child {
    padding-top: 0;
}

#sortBy .category-filters-main .filter-list-item {
    border: 0;
    padding: 0;
}

.filter-title {
    display: flex; 
    place-items: center;
    cursor: pointer;
    width: 100%;
    justify-content: space-between;
    font-size: 16px;
}


.category-filters-main .category-arrow {
    display: flex;
    place-items: center;
    transform: rotate(0);
    transition: 0.4s ease;
}

.category-arrow svg {
    width: 20px;
    height: 20px;
}

input[name="main-filter-section"]:checked ~ .filter-title .category-arrow {
    transform: rotate(90deg)
}


.category-filters-main .category-filters {
    display: none;
    margin: 0;
    width: 100%;
}

input[name="main-filter-section"]:checked ~ .category-filters {
    display: block;
    margin-top: 20px;
}

.category-filters-main .category-filters ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    place-items: start;
    width: 100%;
}

.category-filters .category-filter-option {
    color: black;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    -webkit-font-smoothing: auto;
    display: flex;
    flex-direction: row;
    place-items: center;
}

.category-filter-option .category-selected-status {
    width: 17px;
    height: 17px;
    border-radius: 2px;
    background: white;
    border: 2px solid var(--border-color-dark);
    margin-right: 10px;
    order: -1;
    color: white;
    display: flex;
    place-items: center;
    justify-content: center;
}

.category-filter-option .category-selected-status svg {
    width: 12px;
    height: 12px;
}

.category-filter-option .category-selected-status svg path {
    stroke: white;
    stroke-width: 3px;
}

.category-filter-option.active-category-filter .category-selected-status {
    background: var(--primary-color-dark);
    border: 2px solid var(--primary-color-dark);
}


.category-filter-design {
    width: 20px; 
    height: 5px;
    border-radius: 2px;
    margin-right: 10px;
    background: var(--primary-color-dark);
    display: none;
}


/* SORT */

#sortBy .category-filters-main li label {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    -webkit-font-smoothing: auto;
}

.sort-tick {
    background-color: var(--border-color-dark);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: transparent;
    font-size: 16px;
    display: flex;
    place-items: center;
    justify-content: center;
    cursor: pointer;
}

input[name="main-sort-section"]:checked ~ .sort-tick {
    background-color: var(--primary-color-dark);
    color: white;
}

/* Homepage Category Section Styling */
.category-section {
    padding: 1rem 0;
}

/* TO DO: RESPONSIVENESS*/
/* Search Overlay Styles */
.floating-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    display: flex;
    justify-content: end;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.floating-overlay.active {
    opacity: 1;
    visibility: visible;
}

.floating-overlay-content {
    background-color: var(--background-white);
    padding: 28px;
    width: 35%;
    box-shadow: 0 10px 60px rgba(255, 255, 255, 0.6);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

@media (max-width: 1100px) {
    .floating-overlay-content {
        width: 50%
    }
}

@media (max-width: 850px) {
    .floating-overlay-content {
        width: 70%
    }
}

@media (max-width: 650px) {
    .floating-overlay-content {
        width: 90%;
        padding: 28px 25px;
    }

    #filterOverlay.mobile .floating-overlay-content {
        width: 70%;
    }
}

@media (max-width: 475px) {
    .floating-overlay-content {
        width: 95%;
    }

    #filterOverlay.mobile .floating-overlay-content {
        width: 70%;
    }
}

.floating-overlay.active .floating-overlay-content {
    transform: translateX(0);
}

.floating-top-content {
    width: 100%;
    line-height: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    place-items: center;
    margin-bottom: 32px;
    flex: 0 0 auto; 
}

.floating-top-content .content-title {
    font-size: 20px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    color: black;
}

.floating-top-content .close-floating-btn {
    color: black;
    cursor: pointer;
    border: none;
    background: transparent;
    line-height: 0;
}

.floating-top-content .close-floating-btn svg {
    width: 20px;
    height: 20px;
}

.floating-main-content {
    flex: 1;
    height: 100%;
    overflow: scroll;
    margin-bottom: 15px;
}

/* filter specific details */
#productsAndFilter {
    display: flex;
    flex-direction: row;
    width: 100%;
    position: relative;
    margin-top: 40px;
}

#productsContainer {
    width: 100%;
}

/* TODO: change classes/references to accomodate mobile version, all below is dsktp
Use: #filterOverlay.mobile/.desktop */
#productsAndFilter #filterOverlay.floating-overlay {
    position: sticky;
    top: 100px; /* because of nav */
    opacity: 1;
    visibility: visible;
    background-color: white;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1;
    width: 400px;
    display: block;
}

#productsAndFilter #filterOverlay.floating-overlay .floating-overlay-content {
    width: 100%;
    transform: translateX(0);
    padding:0;
    margin-right: 28px;
    height: calc(100dvh - var(--scrolling-nav-desktop));
    overflow: scroll;
}

#productsAndFilter #filterOverlay .floating-top-content .close-floating-btn svg {
    transform: rotate(180deg);
    width: 16px; 
    height: 16px;
}

.category-filter-container {
    display: none;
}


#filterOverlay.mobile {
    display: none;
}

@media (max-width: 1000px) {
    #productsAndFilter #filterOverlay.floating-overlay {
        display: none
    }

    .category-filter-container {
        display: flex;
    }

    .products-wrapper {
        margin-left: 0;
    }

    /* filter mobile */

    #filterOverlay.mobile {
        display: block;
    }

    #filterOverlay.mobile.floating-overlay .floating-overlay-content {
        position: absolute;
        top: 0;
        left: 0;
        transform: translateX(-100%);
    }

    #filterOverlay.mobile.floating-overlay.active .floating-overlay-content {
        transform: translateX(0);
    }

    #filterOverlay.mobile .floating-top-content .close-floating-btn svg {
        transform: rotate(180deg);
        width: 16px; 
        height: 16px;
    }
}

/* input filter options */

/* cart specific details */
#cartOverlay .floating-main-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

#cartOverlay .floating-main-content ul.hidden {
    display: none
}

#cartOverlay .floating-main-content ul li.cart-product-item {
    height: 100px;
    width: 100%;
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
}

.cart-product-item .cart-product-image {
    height: 100%;
    aspect-ratio: 4/4;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 5px;
    background: var(--product-card-bg);
    display: flex;
    place-items: center;
    justify-content: center;
}

.cart-product-item .cart-product-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}


.cart-product-item .cart-product-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 4px 0;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden
}

.cart-product-item .cart-product-info .cart-product-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden
}

.cart-product-item .cart-product-info .cart-product-name {
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    font-size: 14.5px;
    color: black;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: 1.2
}

.cart-product-item .cart-product-info .cart-product-type {
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    font-size: 13.5px;
    color: var(--primary-color-dark);
}

.cart-product-item .cart-product-info .cart-product-price {
    color: black;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    font-size: 14.5px;
}


.cart-product-item .cart-product-settings {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    place-items: end;
}

.cart-product-item .cart-product-settings .cart-product-delete {
    cursor: pointer;
    background: transparent;
    border: 0;
}

.cart-product-item .cart-product-settings .cart-product-delete svg {
    width: 24px;
    height: 24px;
}

.cart-product-item .cart-product-settings .cart-product-quantity {
    text-align: right;
    color: black;
    font-size: 14px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: row;
    place-items: end;
    gap: 5px
}

.cart-product-item .cart-product-settings .quantity-input {
    font-size: 14px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    border: 0;
    field-sizing: content;
    text-align: right;
    outline: 0;
    border: 2px solid var(--border-color-dark);
    border-radius: 5px;
    padding: 0 5px;
}

.cart-empty-message {
    font-size: 16px;
    font-weight: 500;
    color: black;
    width: 100%;
    text-align: center;
    overflow: hidden;
    height: 0;
    display: flex;
    justify-content: center;
    place-items: center;
    transition: .5s ease;
}

.cart-empty-message.active {
    height: 100%;
}


.cart-checkout-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    place-items: end;
    justify-content: space-between;
    flex: 0 0 auto; 
    margin-top: 25px;
}

.cart-checkout-container .cart-total-price-container {
    display: flex;
    flex-direction: column;
    justify-content: start;
    text-align: left;
}

.cart-checkout-container .cart-total-price-container span {
    font-size: 14px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    color: var(--primary-color-dark);
}

.cart-checkout-container .cart-total-price-container .cart-total-price {
    font-size: 16.5px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    color: black;
}

.cart-checkout-container .cart-proceed-checkout {
    display: flex;
    flex-direction: row;
    place-items: center;
    justify-content: end;
    gap: 5px;
}

.cart-checkout-container .cart-proceed-checkout .cart-checkout-btn {
    font-size: 14px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    padding: 11px 23px;
    background-color: var(--primary-color-dark);
    color: var(--accent-color);
    border: none;
    border-radius: 25px;

    display: flex;
    place-items: center;
    gap: 5px;
}

.cart-checkout-container .cart-proceed-checkout .cart-checkout-btn:hover {
    background-color: #023e7e;
}

.cart-checkout-container .cart-proceed-checkout .cart-checkout-btn span {
    line-height: 0
}

.cart-checkout-container .cart-proceed-checkout .cart-checkout-btn svg {
    width: 18px;
    height: 18px;
}

.cart-checkout-container .cart-proceed-checkout .cart-checkout-btn svg path {
    stroke: white
}

@media (max-width: 450px) {
    #cartOverlay .floating-main-content ul li.cart-product-item {
        height: 90px;
    }

    .cart-product-item .cart-product-image {
        margin-right: 12px;
    }

    .cart-product-item .cart-product-info .cart-product-name,
    .cart-product-item .cart-product-info .cart-product-price {
        font-size: 14px
    }

    .cart-product-item .cart-product-info .cart-product-type {
        font-size: 12.5px
    }


    .cart-product-item .cart-product-settings .cart-product-delete svg {
        width: 22px;
        height: 22px;
    }

    .cart-empty-message {
        font-size: 14px
    }

    .cart-checkout-container .cart-total-price-container span {
        font-size: 14px;
    }

    .cart-checkout-container .cart-total-price-container .cart-total-price {
        font-size: 16px;
    }

    .cart-checkout-container .cart-proceed-checkout .cart-checkout-btn {
        padding: 9px 20px;
        font-size: 12.5px
    }
}


/*search specific details*/
#searchInput {
    width: 100%;
    border: none;
    font-size: 14px;
    margin-bottom: 25px;
    padding-bottom: 8px;
    outline: none;
    border-bottom: 2px solid var(--primary-color);
}

#searchInput::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;

    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cg id="SVGRepo_bgCarrier" stroke-width="0"%3E%3C/g%3E%3Cg id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"%3E%3C/g%3E%3Cg id="SVGRepo_iconCarrier"%3E %3Cpath d="M19 5L4.99998 19M5.00001 5L19 19" stroke="%23000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"%3E%3C/path%3E %3C/g%3E%3C/svg%3E');
    height: 18px;
    width: 18px;
}

#searchInput::-ms-clear {
    height: 70px;
    width: 70px;
    background:red;
}

#searchInput::placeholder {
    color: var(--light-page-text);
}

#searchResultsContainer {
    overflow-y: auto;
    padding-right: 10px;
    height: 90%;
}

.search-initial-message, .search-message {
    text-align: center;
    font-size: 14px;
    color: black;
    margin-top: 30px;
    font-weight: 500;
}

#searchResultsContainer.product-grid {
    row-gap: 40px;
    padding-bottom: 20px;
}

#searchOverlay .product-card .product-name {
    font-size: 14px;
}

@media (max-width: 450px) {
    .floating-top-content .content-title {
        font-size: 19px;
    }

    .floating-top-content .close-floating-btn svg {
        width: 20px;
        height: 20px;
    }

    .floating-top-content {
        margin-bottom: 28px
    }
}
/* Swiper Carousel Styles */
/* --- NEW --- This rule fixes the carousel overflow issue */
.swiper-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.featured-products .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 35px;
    margin-bottom: 25px;
}

.swiper-pagination-bullet {
    background-color: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* Empty Cart Message Styles */
#emptyCartMessage {
    text-align: center;
    padding: 50px 20px;
    font-size: 1.2em;
    color: var(--text-color-medium);
}

#emptyCartMessage p {
    margin-bottom: 20px;
}

/* NEW STYLES for Related Products Section */
.related-products-section {
    padding: 40px 0 60px 0;
    background-color: #fff;
    border-top: 1px solid var(--border-light);
}

.related-products-section h2 {
    text-align: center;
    font-size: 1.6em;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    margin-bottom: 45px;
    color: black;
}

/* Breadcrumb Styles */
.breadcrumb {
    font-family: var(--font-family-primary);
    margin-bottom: 20px; /* Spacing from product title */
    font-size: 0.95em;
}

.breadcrumb a {
    color: var(--text-color-light); /* Dark Gray for links */
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.breadcrumb a:hover {
    text-decoration: underline; /* Subtle underline on hover */
}

.breadcrumb span { /* For the current product name (last item) */
    color: var(--text-color-dark); /* Black for current product name */
    font-weight: bold;
}

/* Homepage Shop by Category Section */
.shop-by-category {
    margin-top: 25px;
    background-color: var(--background-white);
    text-align: center;
}

.shop-by-category .container {
    padding-top: 30px;
    padding-bottom: 20px;
}

.shop-by-category h1, .shop-by-category h2 {
    color: black;
}

.shop-by-category h1 {
    font-size: 24px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
}

.category-cards-container {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: scroll;
    padding: 7px 0;
}

.category-cards-container::-webkit-scrollbar {
    display: none
}

.category-card {
    display: flex;
    width: 250px;
    place-items: center;
    background-color: transparent;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    text-decoration: none;
    padding: 5px;
    padding-right: 30px;
    text-align: left;
    color: var(--text-color-dark);
    transition: transform 0.4s ease, 
    background-color 0.4s ease,
    border-color 0.4s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color-dark);
    color: white;
    border-color: var(--primary-color-dark)
}

.category-card h3 {
    font-size: 15.25px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

.category-card .card-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px
}

.category-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

@media (max-width: 980px) {
    .shop-by-category .container {
        padding-bottom: 10px;
    }

    .category-cards-container {
        display: flex;
        width: 100%;
        justify-content: start;
    }

    .category-card {
        min-width: 250px;
        padding-right: 40px;
    }

    .category-card .card-image {
        width: 40px;
        height: 40px;
    }

    .category-card h3 {
        font-size: 14px;
    }
}

@media (max-width: 450px) {

    .shop-by-category h1 {
        font-size: 20px;
    }

    .shop-by-category h2 {
        font-size: 14px;
    }
}

/* Floating Buttons */

.floating-button-container {
    position: fixed;
    bottom: 40px;
    z-index: 1000;
    display: grid;
    gap: 15px
}

.floating-button-container.left-section {
    left: 40px;
}

.floating-button-container.right-section {
    right: 40px;
}

.floating-button {
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.floating-button:hover {
    transform: scale(1.05);
}

/*translate floating button*/

.floating-button.translate-float {
    background-color: transparent;
    box-shadow: none;
    color: #FFF;
    position: relative;
}

.floating-button .language-button {
    border: 3px solid white;
    border-radius: 50%;
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    top:0;
    left:0;
    transition: .3s ease-in-out; /* ensure main opacity's animation same as this timing */
}

.floating-button .language-button img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.floating-button .language-button.front-button {
    z-index: 1;
    transform: translate(0, 0)
}

.floating-button .language-button.back-button {
    z-index: 0;
    transform: translate(20px, 15px)
}

/*whatsapp floating button*/

.floating-button.whatsapp-float {
    background-color: #25d366;
    color: #FFF;
}

/*filter floating button*/

.floating-button.filter-float {
    background-color: var(--primary-color-dark);
    color: #FFF;
    display: none
}

@media (max-width: 1000px) {
    .floating-button.filter-float {
        display: flex
    }
}

.floating-button.filter-float svg {
    width: 30px;
    height: 30px;
}

@media (max-width: 768px) {
    .floating-button-container {
        bottom: 20px;
    }

    .floating-button-container.right-section {
        right: 20px;
    }

    .floating-button-container.left-section {
        left: 20px;
    }

    .floating-button {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* TO DO: MAKE FOOTER RESPONSIVE */

/* New Footer Styles */
.main-footer .container {
    margin: 0 auto;
    padding: 40px 20px;
    width: 90%;
    display: flex;
    flex-direction: column;
}

/* footer's main section */
.main-footer .top-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 60px;
    gap: 100px;
}

@media (max-width: 1000px) {
    .main-footer .top-section {
        gap: 50px;
        flex-direction: column;
    }
}

@media (max-width: 1130px) {
    .main-footer .top-section {
        gap: 60px;
    }
}

.main-footer .top-section h1 {
    font-size: 35px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    color: white;
}

.main-footer .top-section .left-section {
    width: 100%;
}

.main-footer .top-section .left-section img {
    max-height: 60px;
    width: auto;
}

.main-footer .top-section .left-section p {
    font-size: 14px;
    color: var(--footer-dark-text);
    font-weight: 500;
    line-height: 1.8;
    margin-top: 12px;
    margin-bottom: 30px;
}

/* right section of main */
.footer-columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
    text-align: left;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
}

.footer-column {
    display: flex;
    flex-direction: column;
    place-items: start;
    justify-content: start;
    width: auto;
}

@media (max-width: 1000px) {
    .footer-columns {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        text-align: left
    }

    .footer-column {
        text-align: left
    }
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column {
    width: 100%;
}

.footer-column ul li {
    margin-bottom: 10px;
    display: block;
}

.footer-column ul li div {
    color: white;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-column ul li a {
    color: var(--footer-dark-text);
    text-decoration: none;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-column .social-links {
    display: flex;
    margin-top: 0;
    width: 100%;
    text-align: left;
}

.footer-column .social-links a {
    font-size: 20px;
    color: white
}

.footer-bottom {
    border-top: 1px solid var(--border-color-dark);
    padding-top: 20px;
    text-align: center;
    width: 100%;
}

.footer-bottom p {
    margin: 0;
}