@media screen and (orientation: landscape) {
  html, body {
    overflow: auto; /* Enable overflow scrolling */
  }
}

/* Reset some default browser styles */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

/* CUSTOM FONTS */
.inter-tight {
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}


/* general classes */
.white-text {
    color: white;
    text-align: center !important;
    text-indent: 0 !important;
    margin: 1.5em auto;
    display: block;
}

/* Apply styles to the paragraph */
p {
    max-width: 600px; /* Reduced from 800px for tighter horizontal squeeze */
    margin: 1.5em auto; /* Center the paragraph horizontally with spacing */
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 28px; /* Set font size */
    color: #fff; /* Set text color */
    line-height: 1.1; /* Set line height for better readability */
    text-align: center; /* Center all text */
}

.wrapper {
  height: 100vh;
  /*This part is important for centering*/
  display: grid;
  place-items: center;
}


/* GLOBAL STYLES */
html, body {
    /* Removed overflow: hidden to enable scrolling */
    height: 100%; /* Set height to 100% of the viewport height */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    justify-content: center; /* Center horizontally */

}

body {
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 125%;
    background-image: url('../images/bg.webp'); /* Relative path */
    background-size: cover;
    background-position: center;
    margin: 0;
    background-color: #fff; /* Fallback background color */
}

/* Add a class for the content wrapper */
.content-wrapper {
    background-color: rgba(223, 223, 223, 0.3); /* Semi-transparent white for glass effect */
    backdrop-filter: blur(10px); /* Blur effect for glass morphism */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    padding: 20px; /* Add padding for spacing */
    margin: 20px auto; /* Center the block horizontally and add margin */
    max-width: 1200px; /* Increased max-width for grid layout */
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.37); /* Enhanced shadow for depth */
    border: 1px solid rgba(255, 255, 255, 0.18); /* Subtle border for glass effect */
    border-radius: 10px; /* Rounded corners */
    position: relative; /* For absolute positioning of child elements */
}

/* Shopify icon link in top left corner */
.shopify-icon-link {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.shopify-icon-link:hover {
    opacity: 1;
}

.shopify-icon-link img {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    padding: 20px 0;
    justify-items: center;
}

/* Ensure Shopify products are responsive */
.products-grid > div {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        font-size: 100%;
    }

    .content-wrapper {
        padding: 15px;
        margin: 10px auto;
        max-width: calc(100% - 20px);
        width: calc(100% - 20px);
        box-sizing: border-box;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 20px;
        padding: 15px 0;
        justify-items: center;
        width: 100%;
    }

    .products-grid > div {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    p {
        font-size: 18px;
        padding: 0 10px;
        text-indent: 0;
    }

    .white-text {
        text-align: center;
        margin: 1.5em auto;
        display: block;
    }

    .logo img {
        max-width: 30%;
        padding-top: 2%;
    }

    .menu li {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .menu li a {
        display: block;
        padding: 5px 0;
    }

    .shopify-icon-link {
        top: 10px;
        left: 10px;
    }

    .shopify-icon-link img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 600px) {
    .content-wrapper {
        padding: 15px;
        margin: 10px auto;
        width: calc(100% - 20px);
        box-sizing: border-box;
    }

    p {
        font-size: 16px;
        padding: 0 5px;
    }

    .white-text {
        text-align: center;
        margin: 1.5em auto;
        display: block;
    }

    .products-grid {
        gap: 20px;
        padding: 10px 0;
    }

    /* Ensure Shopify products fit on mobile and are centered */
    .products-grid [class*="shopify-buy"] {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .products-grid [class*="shopify-buy__product"] {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .products-grid [class*="shopify-buy__product__wrapper"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

/* Shopify Product Title Styling */
.products-grid [class*="shopify-buy__product__title"],
.products-grid [class*="shopify-buy__product__title"] a {
    color: #ffffff !important;
}

/* Shopify Product Price Styling */
.products-grid [class*="shopify-buy__product__price"],
.products-grid [class*="shopify-buy__product__price"] span {
    color: #ffffff !important;
}

/* Center Shopify product components */
.products-grid [class*="shopify-buy__layout"] {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .products-grid [class*="shopify-buy__layout"] {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

/* Apply styles to the paragraph */
p {
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 28px; /* Set font size */
    color: #000; /* Set text color */
    line-height: 1.2; /* Set line height for better readability */
    text-indent: 10%;
}

.highlight {
    color: #C87270; /* Or any other color you desire */
}

/* Adjust container width */
.container {
    max-width: 90%; /* Adjusted maximum width of the container */
    margin: 20px auto; /* Add margin for spacing */
}


/* HEADER */

.logo {
    text-align: center;
    margin-bottom: 5px; /* Add margin at the bottom of the logo */

}

.logo img {
    max-width: 15%; /* Adjusted maximum width of the logo */
    height: auto; /* Maintain the aspect ratio of the image */
    display: block; /* Ensure the image behaves as a block element */
    margin: 0 auto; /* Center the image horizontally */
    padding-top: 3%;
}

/* MENU */
nav {
    text-align: center;
}

.menu {
    list-style-type: none;
    margin-bottom: 20px; /* Add margin at the bottom of the logo */

}

.menu li {
    display: inline-block;
    margin-right: 20px; /* Adjust spacing between menu items */
}

.menu li:last-child {
    margin-right: 0; /* Remove margin from last item */
}

.menu li a {
    text-decoration: none;
    color: #fff;
}

.menu li a:hover {
    color: #ccc;
}

/* About page specific styles */
.about-text {
    text-align: justify; /* Justify the text */
    color: #C87270; /* Set text color */
}

/* Modal Popup Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 8% auto;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.close-modal {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: #2c3e50;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    line-height: 32px;
    text-align: center;
    border: none;
}

.close-modal:hover,
.close-modal:focus {
    background-color: #1a252f;
}

