*{
    margin: 0;
    padding: 0;
}

body{
    background-color: rgb(209, 209, 209);
    font-family: Stack Sans Headline, sans-serif;
}

nav{
    display: grid;
    grid-template-columns: 1fr 9.5fr 1fr repeat(4, 0.5fr);
    gap: 10px;
    text-wrap: nowrap;
    padding: 15px;
    padding-left: 25px;
    align-items: center;
    background-color: #22b2b4;
    place-items: center;
    align-items: center;
}

.icon{
    text-decoration: none;
    color: #0b3b4f;
    font-size: 20px;
}
.icon:hover{
    color: #6ec2e6;
    transition: color 0.2s ease-in-out;
}

.logo_img{
    width: 150px;
}

.main_box{
    display: flex;
    place-content: center;
    background-color: rgba(255, 255, 255, 0.336);
    width: 75vw;
    height: 60vh;
    place-self: center;
    align-self: center;
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 50px;
}

.main_box_about{
    display: flex;
    place-content: center;
    background-color: rgba(255, 255, 255, 0.336);
    width: 75vw;
    place-self: center;
    align-self: center;
    padding: 10px 50px;
    padding-bottom: 40px;
    max-width: 1250px;
    text-align: center;
    flex-direction: column;
    margin-top: 80px;
    margin-bottom: 60px;
    gap: 20px;
}

.main_box_about h2{
    text-align: left;
}

.main_box_browse{
    display: flex;
    background-color: rgba(255, 255, 255, 0.336);
    width: 75vw;
    height: 65vh;
    place-self: center;
    align-self: center;
    padding: 20px 50px;
    padding-bottom: 40px;
    max-width: 1250px;
    text-align: center;
    flex-direction: column;
    margin-top: 60px;
    margin-bottom: 60px;
    gap: 20px;
}

.main_box_browse h1{
    padding: 25px 25px 0px 25px;
}

.slide-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100%;
    background-color: #f8f9fa; 
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2); 
    z-index: 1000; 
    transition: right 0.3s ease-out; 
    display: flex;
    flex-direction: column;
    overflow-y: auto; 
}


.slide-panel.is-open {
    right: 0;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
}

.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.panel-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.item{
    max-width: 125px;
    min-width: 125px;
    background-color: white;
    display: grid;
    grid-template-rows: 1fr 2fr 1fr 1fr;
    height: 250px;
    padding: 10px;
    border-radius: 8px;
    box-shadow:  0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    place-items: center;
    align-items: center;
}

.item.hidden {
    display: grid;
}

.item img{
    max-width: 110px;
}

.items_browse{
    display: flex;
    flex-direction: row;
    max-width: 75vw;
    flex-wrap: wrap;
    gap: 1em;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden; 
    min-height: 0;
    place-content: flex-start;
    align-items: flex-start;
    justify-content: center;
}

.items_search{
    display: flex;
    flex-direction: row;
    max-width: 75vw;
    flex-wrap: wrap;
    gap: 1em;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden; 
    min-height: 0;
    place-content: flex-start;
    align-items: flex-start;
    justify-content: center;
    display: none;
}

.item button {
    align-self: end;
    margin-top: auto;
    width: 100%;
    padding: 8px 0;
    background-color: #22b2b4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.item button:hover{
    background-color: #209a9c;
}


.search-container{
    width: 100%; 
    max-width: 400px; 
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 25px; 
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    place-self: center;
    display: flex;
    align-items: center;
    gap: 10px;
}


.search-container label {
    font-weight: bold;
    color: #0b3b4f;
    font-size: 1.1em; 
    flex-shrink: 0;
}

#hobbySearch{
    flex-grow: 1;
    padding: 8px 15px;
    border: 1px solid #eee; 
    border-radius: 15px;
    font-size: 1em;
    color: #333;
    background-color: #f9f9f9; 
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); 
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none; 
}

#hobbySearch::placeholder {
    color: #999;
}


#hobbySearch:focus {
    border-color: #22b2b4;
    box-shadow: 0 0 5px rgba(34, 178, 180, 0.5); 
}

#openSearchIconButton {
    color: #0b3b4f; 
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease-in-out;
    display: flex; 
    align-items: center;
    justify-content: center;
    text-decoration: none; 
}

#openSearchIconButton:hover {
    color: #6ec2e6; 
}


#cartTotal{
    padding: 15px;
    border-top: 1px solid #eee;
    font-weight: bold;
    text-align: left;
}

#cartItemsContainer{
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 125px;
}

.checkout_button{
    padding: 15px; 
    background-color: #0b3b4f;
    color: white;
    border: none;
    width: 100%;
    cursor: pointer;
    font-size: 1.1em;
}

.cart-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    z-index: 10;
}

/* Add these styles to your existing styles.css */

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.cart-item-controls button {
    background-color: #22b2b4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.cart-item-controls button:hover {
    background-color: #209a9c;
}

.cart-item-controls span {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.clear-cart-button {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 15px;
    margin-top: 15px;
    width: 100%;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.clear-cart-button:hover {
    background-color: #c82333;
}

.remove_from_cart_button{
    display: block;
    margin-left: auto;
    width: fit-content; 
}

.remove_from_cart_button:hover {
    color: red;
    
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.search-overlay.is-active {
    visibility: visible;
    opacity: 1;
}

.search-overlay-content {
    background-color: white;
    width: 90%;
    max-width: 800px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.close-search-overlay-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
    transition: color 0.2s;
}

.close-search-overlay-button:hover {
    color: #333;
}

.search-input-wrapper {
    margin-bottom: 20px;
    text-align: center;
    
}

.search-input-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

#overlayHobbySearch {
    width: 90%;
    max-width: 500px;
    padding: 12px 18px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1.1em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#overlayHobbySearch:focus {
    border-color: #22b2b4;
    outline: none;
    box-shadow: 0 0 8px rgba(34, 178, 180, 0.5);
}

.search-results-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1em;
    justify-content: center;
    align-items: flex-start;
}

.search-results-container .item {
    max-width: none; 
    width: 90%;
    height: auto; 
    grid-template-rows: auto auto auto auto;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    text-align: center;
    display: grid; 
    align-items: center;
}

.search-results-container .item img {
    max-width: 100px;
    height: auto;
    justify-self: center;
    margin-bottom: 5px;
}

.search-results-container .item h3 {
    font-size: 1.1em;
    margin-bottom: 3px;
}

.search-results-container .item h4 {
    font-size: 0.9em;
    margin-bottom: 10px;
}

.search-overlay-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.search-overlay-background.is-active {
    visibility: visible;
    opacity: 1;
}

.hero-section {
    background-image: url("../images/1000009183.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    height: 70vh; /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-family: 'Audiowide', sans-serif;
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #22b2b4;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: #209a9c;
    transform: translateY(-3px);
}

.how-it-works-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #ffffff;
}

.how-it-works-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #0b3b4f;
}

.how-it-works-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works-steps .step {
    flex-basis: calc(33.333% - 30px);
    min-width: 250px;
    padding: 20px;
    background-color: rgba(211, 210, 210, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.how-it-works-steps .step img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.how-it-works-steps .step h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #22b2b4;
}

.how-it-works-steps .step p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

/* Add these styles to your existing styles.css */

.product-detail-box {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items at the top */
    padding: 50px;
    max-width: 1200px; /* Max width for the content */
    height: auto;
    margin: 40px auto; /* Center the box */
    background-color: rgba(255, 255, 255, 0.336);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px; /* Space between image and info */
}

.product-image-gallery {
    flex: 1; /* Take up available space */
    min-width: 300px; /* Minimum width for image */
    text-align: center;
}

.main-product-image {
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-info h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #0b3b4f;
}

.product-price {
    font-size: 1.8em;
    font-weight: bold;
    color: #22b2b4;
    margin-bottom: 20px;
}

.add-to-cart-section {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping */
}

.add-to-cart-section label {
    font-size: 1.1em;
    font-weight: bold;
}

.add-to-cart-section input[type="number"] {
    width: 60px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    text-align: center;
}

.product-page-add-to-cart {
    background-color: #22b2b4;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.product-page-add-to-cart:hover {
    background-color: #209a9c;
    transform: translateY(-2px);
}

footer {
    background-color: #2c3e50; 
    color: #ecf0f1;
    padding: 60px 0 0 0;
    font-family: 'Nova Square', sans-serif;
    margin-top: 60px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid #34495e;
}

.footer-section {
    flex: 1;
    min-width: 220px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-section h3 {
    font-family: 'Audiowide', sans-serif;
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    max-width: 120px;
    margin-bottom: 15px;
}

.footer-section p,
.footer-section ul {
    font-size: 0.95em;
    line-height: 1.6;
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f39c12;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #bdc3c7;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #f39c12;
}

.footer-section.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-section.contact-info i {
    font-size: 1.1em;
    width: 20px;
}

.footer-bottom {
    background-color: #1a252f;
    text-align: center;
    padding: 20px;
    font-size: 0.85em;
    color: #95a5a6;
}

.footer-bottom p {
    margin: 0;
}