body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevents horizontal scrollbar */
}

header {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
}

nav {
    display: flex;
    justify-content: center;
    padding: 10px;
    background-color: #f4f4f4;
}

nav button {
    margin: 0 10px;
    padding: 8px 16px;
    border: none;
    background: #444;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

nav button:hover {
    background: #666;
}

/* Main Container for all pages */
.container {
    display: flex;
    width: 100%; /* This is now dynamically set by JS */
    transition: transform 0.5s ease-in-out;
        /* Prevent any scrolling or swiping */
    touch-action: none;
    -webkit-overflow-scrolling: auto;
    /* Additional webkit specific properties */
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
    pointer-events: auto;
}

/* Individual Page Sections */
section {
    flex-shrink: 0;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
    /* Allow only vertical scrolling within each section */
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scrolling on the main viewport */
body::-webkit-scrollbar:horizontal {
    display: none;
}

/*background color */

	#store { background: #f4f4f4; }
        #product-detail { background: #e8e8e8; }
        #custom-order { background: #ddd; }
        #contact { background: #bbb; }

/* Gallery and Filters */
#filters {
    text-align: center;
    margin: 20px 0;
}

#filters button {
    margin: 5px;
    padding: 10px 15px;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#filters button:hover {
    background: #555;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.gallery-item {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.hidden {
    display: none;
}

/* Store Section */
#store .store {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 800px;
}

.product {
    text-align: center;
}

/* New CSS for forms and product options */
.options-and-price {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    text-align: left;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
}

.price {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
    color: #333;
}

.place_order {
    background: #1e1e1e;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* Updated CSS for Product Detail Page
  - Added a margin to create space below the "Back to Store" button.
  - Changed flex-direction to 'row' to put the image and details side-by-side.
  - Added 'gap' for space between the elements.
*/
.back-button {
    margin-bottom: 20px;
}

#product-detail .image-and-details {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 50px; /* Adjust this value for more or less space */
    text-align: left;
    flex-wrap: wrap;
    justify-content: center;
}

#product-detail .product-details {
    text-align: left;
    max-width: 400px;
}

@media (max-width: 768px) {
    #product-detail .image-and-details {
        flex-direction: column;
        align-items: center;
    }
}
/* custom order css */
/* Custom Order Form Styles */
#custom-order .order-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;

}

#custom-order .order-form form {
    display: flex;
    flex-direction: column;
}

#custom-order .order-form label {
    font-weight: bold;
    margin-top: 15px;
    text-align: left;
}

#custom-order .order-form input[type="text"],
#custom-order .order-form input[type="email"],
#custom-order .order-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
}

#custom-order .order-form button[type="submit"] {
    background: #1e1e1e;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    align-self: flex-start;
}


/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.caption {
    text-align: center;
    color: #ccc;
    margin-top: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-size: 30px;
    font-weight: bold;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 15px;
}
