:root {
    --primary-color: #06D6A0; /* Green */
    --secondary-color: #81F4E1; /* Light turquoise */
    --text-color: #393E41; /* Dark gray */
    --accent-color: #D3C4D1; /* Lavender */
    --text-light: #6b7280;
    --light-bg: #f3f4f6;
    --border-color: #e5e7eb;
    --success-color: #06D6A0; /* Green */
    --error-color: #E94F37; /* Red-orange */
    --card-shadow: 0 4px 6px rgba(57, 62, 65, 0.1); /* Shadow using text color */
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    padding-top: 70px; /* Add padding to account for the fixed navbar */
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(211, 196, 209, 0.65); /* #D3C4D1 with 65% opacity */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo h1 {
    color: #000000;
    font-size: 1.5rem;
}

.logo h1 a {
    color: #000000;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 8px; /* Add space between icon and text */
}

.nav-item-with-badge {
    position: relative;
    padding-right: 10px;
}

/* Badge styling for cart and designs count */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--error-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    height: 18px;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 9px;
    position: absolute;
    top: -8px;
    right: -8px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0 4rem;
    text-align: center;
    color: white;
    overflow: hidden;
    min-height: 400px; /* Ensure hero has some height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: transparent;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: white;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(6, 214, 160, 0.2);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(129, 244, 225, 0.25);
    color: var(--text-color);
}

.cta-button.secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background-color: var(--light-bg);
}

/* Section Styling */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Categories Section */
.categories-section {
    background-color: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    height: 100%;
}

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

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.category-icon {
    font-size: 3rem;
    color: var(--error-color); /* Using the orange/red-orange color E94F37 */
    margin-bottom: 1rem;
    background-color: var(--accent-color);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Products Section */
.products-section {
    background-color: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(57, 62, 65, 0.15);
    border-color: var(--secondary-color);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: auto;
    max-height: none;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    color: var(--text-light);
    font-size: 3rem;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-category {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.product-price {
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-view, .btn-customize {
    padding: 0.5rem 1rem;
    text-align: center;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
    transition: all 0.3s ease;
}

.btn-view {
    background-color: var(--light-bg);
    color: var(--text-color);
}

.btn-customize {
    background-color: var(--primary-color);
    color: white;
}

.btn-view:hover {
    background-color: #e5e7eb;
}

.btn-customize:hover {
    background-color: var(--secondary-color);
}

.btn-add-to-cart, .btn-primary.btn-lg.btn-block {
    background-color: var(--primary-color);
    color: white;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(6, 214, 160, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart::before, .btn-primary.btn-lg.btn-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-add-to-cart:hover::before, .btn-primary.btn-lg.btn-block:hover::before {
    left: 100%;
}

.btn-add-to-cart:hover, .btn-primary.btn-lg.btn-block:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(129, 244, 225, 0.25);
    color: var(--text-color);
}

.btn-add-to-cart i {
    margin-right: 0.5rem;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

.btn-view-all {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background-color: var(--primary-color);
    color: white;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    color: var(--text-light);
}

/* Product Attributes */
.product-attributes {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
}

.product-attributes h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.product-attributes h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.attribute-group {
    margin-bottom: 1.5rem;
}

.attribute-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.size-options, .variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.size-option, .variant-option {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    background-color: white;
}

.size-option:hover, .variant-option:hover {
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.size-option.selected, .variant-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-actions-detail {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
}

.product-actions-detail form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.add-to-cart-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(6, 214, 160, 0.2);
}

.add-to-cart-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(129, 244, 225, 0.25);
    color: var(--text-color);
}

/* How It Works Section */
.how-it-works {
    background-color: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.step-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
    transition: all 0.3s ease;
}

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

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--error-color); /* Using the orange/red-orange color E94F37 */
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--error-color); /* Using the orange/red-orange color E94F37 */
    margin-bottom: 1rem;
}

.step-card h3 {
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-light);
}




/* Footer */
footer {
    background-color: #1f2937;
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #9ca3af;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
}

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

.footer.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--error-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    height: 20px;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 10px;
    margin-left: 5px;
}

.footer-links a:hover {
    color: white;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}


.footer-contact p {
    margin-bottom: 0.75rem;
    color: #9ca3af;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .categories-grid, .products-grid, .steps-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .product-actions {
        flex-direction: column;
    }
}

/* Checkout Page Styles */
.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.order-summary {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.model-preview {
    width: 100%;
    height: 150px;
    background-color: #eee;
    border-radius: 4px;
    position: relative;
}

.item-details h4 {
    margin-top: 0;
    font-size: 18px;
}

/* Checkout Page Styles */
.order-summary {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.product-image {
    width: 100px;
}

.item-price {
    font-weight: 500;
    font-size: 16px;
    text-align: right;
}

.order-summary-totals {
    margin-top: 20px;
}

.customization-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
}

/* Auth Pages Styles (Login/Register) */
.auth-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

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

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

.auth-form .form-row {
    display: flex;
    gap: 20px;
}

.auth-form .form-row .form-group {
    flex: 1;
}

.auth-form .btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-form .btn-submit:hover {
    background-color: #45a049;
}

.auth-form .error {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Thank You Page Styles */
.thank-you-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.thank-you-icon {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.thank-you-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.thank-you-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.order-details-summary {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: left;
}

.order-details-summary h3 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.continue-shopping-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.continue-shopping-btn:hover {
    background-color: #05b385;
}

/* Checkout Page Button */
.btn-order-now {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-order-now:hover {
    background-color: #05b385;
}

/* Cart Page Styles */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Product Page Styles */
/* Quantity Selector */
.quantity-selector {
    margin-bottom: 1.5rem;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.quantity-input-group {
    display: flex;
    align-items: center;
    max-width: 150px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn.minus {
    border-radius: 4px 0 0 4px;
}

.quantity-btn.plus {
    border-radius: 0 4px 4px 0;
}

.quantity-btn:hover {
    background-color: var(--border-color);
}

.quantity-input-group input {
    width: 60px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1rem;
    padding: 0;
}

.quantity-input-group input:focus {
    outline: none;
}

.color-option {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-option.selected {
    border-color: #333;
}

.cart-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.cart-product-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-quantity-input {
    width: 120px;
}

@media (max-width: 768px) {
    .auth-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }
    
    /* Responsive styles for auth forms */
    .auth-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    /* Responsive styles for review order page */
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .categories-grid, .products-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
