/* Small Town Keepsakes LLC - Custom Music Boxes E-commerce Website */

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #F4A460;
    --text-color: #333;
    --light-bg: #FFF8DC;
    --dark-bg: #2C1810;
    --white: #ffffff;
    --gray: #6c757d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    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(--light-bg);
}

/* Navigation */
.navbar {
    background-color: var(--dark-bg);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white) !important;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link.active {
    color: var(--accent-color) !important;
}

.cart-badge {
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

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

.btn-secondary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--dark-bg);
    border-color: var(--dark-bg);
    color: var(--white);
}

/* Products Section */
.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: bold;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
    height: 100%;
}

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

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: #f5f5f5;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.product-sale-price {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 1rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

/* Product Detail Page */
.product-detail-container {
    margin-top: 2rem;
}

.main-product-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    background-color: #f5f5f5;
}

.thumbnail-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background-color: #f5f5f5;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--secondary-color);
}

.product-detail-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.variant-selector {
    margin: 1.5rem 0;
}

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

.variant-selector select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.quantity-selector {
    margin: 1.5rem 0;
}

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

.quantity-selector input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
}

/* Cart Page */
.cart-item {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    background-color: #f5f5f5;
}

.cart-item-info {
    padding: 0 1.5rem;
}

.cart-item-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.cart-item-variant {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.cart-item-quantity {
    width: 70px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.cart-summary {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

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

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--primary-color);
    border-bottom: none;
}

/* About Us Page */
.about-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Contact Us Page */
.contact-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

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

.contact-info-item {
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.contact-form .form-control {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Policy Pages */
.policy-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.policy-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.policy-section h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-section p {
    margin-bottom: 1rem;
}

.policy-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

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

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-column {
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-column p {
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.subscriber-form input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.subscriber-form button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.subscriber-form button:hover {
    background-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .main-product-image {
        height: 350px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}
