/* Global Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    padding-top: 70px;
}

/* Header */
header {
    background: #6190c2;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo img {
    width: 120px;
    margin-left: 20px;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    flex: 1;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: white;
    font-size: 18px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-right: 20px;
    z-index: 1100;
}

/* Hero Section */
#hero-wrapper {
    position: relative;
    background: transparent;
}

#hero-background {
    position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url('Pictures/white-towel-bed-decoration-bedroom-interior.jpg') no-repeat center center / cover;
  z-index: -1;
}

#hero-content {
    position: relative;
    color: #000;
    text-align: center;
    padding: 100px 20px;
    z-index: 1;
    background:transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Product Catalog */
#catalog {
    padding: 50px 25px;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
}

.product {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.product h3 {
    margin-top: 15px;
    font-size: 20px;
    color: #333;
}

.product p {
    font-size: 16px;
    color: #555;
    margin: 10px 0;
}

/* Carousel Fixes */
.carousel {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 20px auto;
    overflow: visible;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image.active {
    opacity: 1;
}

/* Navigation buttons */
.carousel .prev, 
.carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(97, 144, 194, 0.9);
    color: white;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    font-size: 18px;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin: 0 !important;
}

.carousel .prev {
    left: -20px;
}

.carousel .next {
    right: -20px;
}

.carousel .prev:hover, 
.carousel .next:hover {
    background: rgba(97, 144, 194, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 15px;
    margin-top: 10px;
    background: #6190c2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

/* Customization Section */
#customize {
    background: #ffffff;
    padding: 30px;
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.customize-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #6190c2;
    color: white;
    cursor: pointer;
    margin: 0 5px;
    border-radius: 5px;
}

.tab-btn.active {
    background: #0056b3;
}

.customize-panel {
    display: none;
    text-align: center;
}

.customize-panel.active {
    display: block;
}

/* Image Preview */
#towelPreviewContainer, #pillowPreviewContainer {
    position: relative;
    display: inline-block;
}

#towelImage, #pillowImage {
    width: 300px;
    max-width: 100%;
}

#towelLogoPreview, #pillowLogoPreview {
    position: absolute;
    width: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.logo-instruction {
    margin-top: 15px;
    font-style: italic;
    color: #666;
}

/* Order Section */
.order-container {
    background: #ffffff;
    padding: 50px 100px;
    margin: 60px auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 95%;
    max-width: 900px;
    border: 1px solid #e0e6ed;
}

#request-quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

#request-quote p {
    color: #555;
    margin: 10px 0 30px 0;
    font-size: 16px;
    line-height: 1.5;
}

#request-quote form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 700px;
}

#request-quote .form-group {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

#request-quote h2 {
    color: #6190c2;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
    max-width: 700px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Form Elements */
input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    min-height: 50px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #6190c2;
    box-shadow: 0 0 0 3px rgba(97, 144, 194, 0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

/* Button Styles */
button {
    background: #6190c2;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 15px 10px;
    font-size: 16px;
    font-weight: 600;
    min-width: 150px;
}

button:hover {
    background: #4f7ba3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(97, 144, 194, 0.3);
}

/* Product List */
#product-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#product-list .product-entry {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 25px;
    padding: 25px;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#product-list .product-entry:hover {
    border-color: #6190c2;
    box-shadow: 0 4px 15px rgba(97, 144, 194, 0.1);
}

#product-list .product-entry h4 {
    color: #6190c2;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.remove-product-btn {
    background-color: #dc3545;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.remove-product-btn:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3);
}

/* Contact Section */
#contact {
    padding: 40px 20px;
    background: #a0c4ec;
    font-size: 18px;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-wrapper {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #6190c2;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-wrapper.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        height: 100%;
    }

    nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    nav ul li a {
        font-size: 20px;
        padding: 10px;
        display: block;
    }

    #hero-wrapper {
        height: 40vh;
    }

    #hero-content {
        padding: 60px 15px;
    }

    #hero-content h2 {
        font-size: 24px;
    }

    .product-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .carousel {
        max-width: 100%;
    }

    .carousel-images {
        height: 180px;
    }

    .carousel .prev, 
    .carousel .next {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        max-width: 35px !important;
        padding: 0;
        font-size: 14px;
    }

    .carousel .prev {
        left: -15px;
    }

    .carousel .next {
        right: -15px;
    }

    #customize {
        width: 95%;
        padding: 20px;
    }

    #towelImage, #pillowImage {
        width: 250px;
    }

    .order-container {
        width: 95%;
        padding: 30px 20px;
    }

    #request-quote form {
        max-width: 100%;
    }

    .form-group {
        max-width: 100%;
    }

    input, select, textarea {
        padding: 12px;
        font-size: 16px;
    }

    button {
        width: 100%;
        margin: 10px 0;
        min-width: auto;
    }

    .remove-product-btn {
        width: auto;
        min-width: 100px;
        padding: 8px 15px;
    }

    .form-group {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    header {
        padding: 10px 0;
    }

    .logo img {
        width: 100px;
        margin-left: 15px;
    }

    .hamburger {
        margin-right: 15px;
        font-size: 24px;
    }

    .nav-wrapper {
        top: 60px;
        height: calc(100vh - 60px);
    }

    #hero-wrapper {
        height: 35vh;
    }

    #hero-content {
        padding: 40px 10px;
    }

    #hero-content h2 {
        font-size: 20px;
    }

    #hero-content p {
        font-size: 14px;
    }

    .carousel-images {
        height: 160px;
    }

    #towelImage, #pillowImage {
        width: 200px;
    }

    .customize-tabs {
        flex-direction: column;
        gap: 10px;
    }

    .tab-btn {
        width: 100%;
        margin: 5px 0;
    }
}
