/* Global Styles */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #8fb8de;
    --accent-color: #c4e0f9;
    --light-color: #f0f8ff;
    --dark-color: #2c3e50;
    --text-color: #333333;
    --background-color: #f9fdff;
    --footer-color: #e6f2ff;
    --border-radius: 5px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    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: var(--background-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn.primary:hover {
    background-color: #5a3f48;
    transform: translateY(-2px);
}

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

.btn.secondary:hover {
    background-color: #c19365;
    transform: translateY(-2px);
}

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

.loading {
    text-align: center;
    padding: 2rem;
    font-style: italic;
    color: #666;
}

/* Placeholder for images that don't exist yet */
.placeholder-image {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #666;
    font-style: italic;
}

/* Header */
header {
    background-color: var(--light-color);
    padding: 0.5rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    text-align: center;
    padding: 0.5rem 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.logo p {
    color: var(--secondary-color);
    font-style: italic;
}

nav ul {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
    background-color: rgba(107, 77, 87, 0.1);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero.svg');
    background-size: cover;
    background-position: center;
    background-color: #8fb8de; /* Fallback */
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

/* Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem 2rem;
    background-color: white;
}

.feature {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 1rem;
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Featured Products Section */
.featured-products {
    padding: 4rem 2rem;
    text-align: center;
}

.featured-products h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

#featured-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    justify-items: center;
    justify-content: center;
}

.product {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.product .price {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.product .status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product .status.available {
    background-color: #e9f5db;
    color: #588157;
}

.product .status.sold {
    background-color: #f8edeb;
    color: #e63946;
}

.view-more {
    margin-top: 2rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-color);
    padding: 4rem 2rem;
    text-align: center;
}

.testimonials h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.testimonial {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 350px;
    flex: 1;
    min-width: 280px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial cite {
    font-weight: 600;
    color: var(--primary-color);
}

/* Page Header */
.page-header {
    background-color: var(--light-color);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Shop Page */
.shop-filters, .gallery-filters {
    padding: 1rem 2rem;
    background-color: white;
    margin-bottom: 2rem;
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.filter-container label {
    font-weight: 600;
}

.filter-container select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem 4rem;
    justify-items: center;
    justify-content: center;
}

.custom-order {
    background-color: var(--footer-color);
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.custom-order h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.custom-order p {
    margin-bottom: 1.5rem;
}

/* Gallery Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem 4rem;
    justify-items: center;
    justify-content: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-item h3 {
    margin-bottom: 0.5rem;
}

/* About Page */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 1rem;
}

.cta-button {
    margin-top: 2rem;
}

/* Contact Page */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    min-width: 30px;
}

.contact-method h4 {
    margin-bottom: 0.5rem;
}

.social-contact {
    margin-top: 2rem;
}

.social-contact h4 {
    margin-bottom: 1rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.contact-form {
    flex: 2;
    min-width: 300px;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.form-group textarea {
    resize: vertical;
}

.form-response {
    margin-top: 1.5rem;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

/* Thank You Page */
.thank-you-content {
    padding: 3rem 2rem;
    text-align: center;
}

.thank-you-message {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.thank-you-message i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.thank-you-message h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.thank-you-message p {
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: var(--footer-color);
    color: var(--text-color);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    margin-top: 1rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section .social-icons {
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e0d8c0;
}

/* Sold Out Overlay */
.product-image {
    position: relative;
}

.sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sold-tag {
    background-color: #e63946;
    color: white;
    padding: 0.5rem 2rem;
    font-weight: bold;
    transform: rotate(-15deg);
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature {
        padding: 1rem;
    }
    
    .about-content,
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .products-grid,
    .gallery-grid,
    #featured-container {
        grid-template-columns: 1fr;
    }
}
