:root {
    --primary-color: #2c3e2d;
    --secondary-color: #8b7355;
    --accent-color: #d4a574;
    --warm-cream: #f4f1e8;
    --deep-orange: #cc5500;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --border-color: #d4a574;
    --shadow: rgba(44, 62, 45, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a4f3c 100%);
    color: var(--warm-cream);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.logo-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.logo-text h1 a {
    color: var(--warm-cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-text h1 a:hover {
    color: var(--accent-color);
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: var(--warm-cream);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: var(--accent-color);
}

.cart-link {
    background: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
}

.cart-count {
    background: var(--primary-color);
    color: var(--warm-cream);
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Banner Section */
.hero-banner {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    height: 400px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 45, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-overlay h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--warm-cream);
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-overlay p {
    font-size: 1.2rem;
    color: var(--warm-cream);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Product Grid */
.products-section {
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 400px));
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(44, 62, 45, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm-cream);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-price {
    font-size: 1.6rem;
    color: var(--deep-orange);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 1.1rem;
}


.btn {
    background: var(--primary-color);
    color: var(--warm-cream);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--warm-cream);
}

/* Product Detail Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-detail-image {
    width: 100%;
    border-radius: 15px;
    overflow: visible;
    background: var(--warm-cream);
}

.main-image-container {
    position: relative;
    margin-bottom: 1rem;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Photo Gallery Styles */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    max-width: 400px;
    margin-top: 1rem;
}

.photo-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: all 0.3s ease;
    background: var(--warm-cream);
}

.photo-thumbnail:hover {
    border-color: var(--border-color);
    transform: scale(1.05);
}

.photo-thumbnail.active {
    border-color: var(--accent-color);
    transform: scale(1);
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-detail-info h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-detail-price {
    font-size: 2rem;
    color: var(--deep-orange);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-detail-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    white-space: pre-line;
}

.add-to-cart-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow);
}

.quantity-selector {
    margin-bottom: 1rem;
}

.quantity-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.quantity-selector input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

/* Cart Page */
.cart-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    background: var(--primary-color);
    color: var(--warm-cream);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--warm-cream);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--warm-cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--secondary-color);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav a {
        padding: 0.5rem 1rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .cart-link {
        margin-top: 0.5rem;
    }
    
    .hero-banner {
        height: 300px;
        margin-bottom: 2rem;
    }
    
    .hero-overlay h2 {
        font-size: 2rem;
    }
    
    .hero-overlay p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detail-info h1 {
        font-size: 2rem;
    }
    
    .product-detail-price {
        font-size: 1.5rem;
    }
    
    .add-to-cart-section {
        padding: 1.5rem;
    }
    
    /* Mobile Photo Gallery Styles */
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 0.4rem;
        max-width: 100%;
        margin-top: 0.75rem;
    }
    
    .main-image-container {
        height: 250px;
        margin-bottom: 0.75rem;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .logo-text h1 {
        font-size: 2rem;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .cart-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .cart-total {
        padding: 1.5rem;
    }
    
    .main {
        padding: 1rem 0;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }
    
    .hero-banner {
        height: 250px;
        border-radius: 10px;
    }
    
    .hero-overlay {
        padding: 1rem;
    }
    
    .hero-overlay h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-overlay p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1.5rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    /* Small Mobile Photo Gallery Styles */
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 0.3rem;
        margin-top: 0.5rem;
    }
    
    .main-image-container {
        height: 200px;
        margin-bottom: 0.5rem;
    }
    
    .product-detail-info h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .nav ul {
        gap: 0.5rem;
    }
    
    .nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .cart-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .product-detail-info h1 {
        font-size: 1.8rem;
    }
    
    .add-to-cart-section {
        padding: 1rem;
    }
    
    .quantity-selector input {
        width: 60px;
        padding: 0.4rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}