/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.main-nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    margin-left: 40px;
}

.category-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.user-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.category-menu li {
    position: relative;
}

.category-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 8px 0;
}

.user-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.category-menu li a:hover,
.user-menu li a:hover {
    color: #666;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1001;
    margin-top: 5px;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 8px 20px;
    font-size: 13px;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    height: 600px;
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-image.fabric {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.carousel-image.leather {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.carousel-image.quilting {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: #fff;
    padding: 60px;
    text-align: left;
}

.carousel-caption h2 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: bold;
}

.carousel-caption p {
    font-size: 18px;
    margin-bottom: 0;
    opacity: 0.9;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.3);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-control:hover {
    background-color: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(1.1);
}

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

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

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #fff;
}

.btn {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 16px;
}

.btn:hover {
    background-color: #555;
}



/* Featured Products */
.featured {
    padding: 60px 0;
    background-color: #fff;
}

.featured h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product {
    text-align: center;
    transition: transform 0.3s;
}

.product:hover {
    transform: translateY(-5px);
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.product p {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.add-to-cart {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.add-to-cart:hover {
    background-color: #555;
}

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

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 4px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

#cart-items {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.remove-item {
    background-color: #f44336;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.remove-item:hover {
    background-color: #d32f2f;
}

#cart-total {
    font-weight: bold;
    margin-bottom: 20px;
    text-align: right;
}

/* Why Reuse Section */
.why-reuse {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.why-reuse h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

.why-reuse p {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 60px 0;
    background-color: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #333;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 4px;
    transition: transform 0.3s;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.service p {
    margin-bottom: 20px;
    color: #666;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

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

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 14px;
    color: #ccc;
}

/* Product Details */
.product-details {
    padding: 60px 0;
    background-color: #fff;
}

.product-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 20px;
    min-height: 400px;
}

.product-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 4px;
}

.product-details-content h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.product-description {
    margin-bottom: 30px;
}

.product-description h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.product-description p {
    color: #666;
    line-height: 1.6;
}

.product-options {
    margin-bottom: 30px;
}

.quantity {
    margin-bottom: 20px;
}

.quantity label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.quantity input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-details-content .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

.product-specs {
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.product-specs h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs table th,
.product-specs table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.product-specs table th {
    font-weight: 500;
    width: 30%;
}

.register-link {
    margin-top: 15px;
    text-align: center;
}

.register-link a {
    color: #333;
    font-weight: 500;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-link:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .category-menu {
        gap: 20px;
    }
    
    .main-nav {
        margin-left: 20px;
    }
    
    .product-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }
    
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        width: 100%;
    }
    
    .category-menu {
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .user-menu {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid #eee;
        margin-top: 5px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .product-details {
        padding: 40px 0;
    }
    
    .product-details-content h1 {
        font-size: 24px;
    }
    
    .price {
        font-size: 20px;
    }
}