/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f5f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Barn Theme Color Palette */
:root {
    --barn-red: #8B2635;
    --barn-brown: #5D4037;
    --barn-cream: #F5F5DC;
    --barn-gold: #DAA520;
    --barn-green: #228B22;
    --wood-brown: #8B4513;
    --text-dark: #2C1810;
    --text-light: #F5F5DC;
    --accent-orange: #FF6B35;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--barn-red), #A0303E);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 38, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 38, 53, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--barn-brown), #6D4C41);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #6D4C41, var(--barn-brown));
}

.btn-outline {
    background: transparent;
    color: var(--barn-red);
    border: 2px solid var(--barn-red);
}

.btn-outline:hover {
    background: var(--barn-red);
    color: white;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--barn-cream), #FFFFFF);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--barn-red);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--barn-red);
    margin-right: 15px;
}

.logo-text .logo-main {
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
}

.logo-text .logo-sub {
    font-size: 0.9rem;
    color: var(--barn-brown);
    font-style: italic;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: var(--barn-red);
    color: white;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #eee;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: var(--barn-cream);
    color: var(--barn-red);
}

/* Verification Notice */
.verification-notice a {
    background: #fff3cd !important;
    border-left: 3px solid #ffc107 !important;
    font-weight: 600;
}

.verification-notice a:hover {
    background: #ffeeba !important;
    color: #856404 !important;
}

.dropdown-divider {
    height: 1px;
    background: #dee2e6;
    margin: 0;
    padding: 0;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-bar form {
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-bar button {
    padding: 12px 20px;
    background: var(--barn-red);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: #A0303E;
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-link {
    position: relative;
    color: var(--barn-red);
    font-size: 1.5rem;
    text-decoration: none;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-link:hover {
    background: var(--barn-red);
    color: white;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-orange);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.user-trigger:hover {
    background: var(--barn-cream);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--barn-cream), #FFF8DC);
    padding: 4rem 0;
    display: flex;
    align-items: center;
    min-height: 60vh;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.barn-logo {
    font-size: 4rem;
    color: var(--barn-red);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--barn-brown);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Barn Illustration */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.barn-illustration {
    position: relative;
    width: 300px;
    height: 200px;
}

.barn-roof {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 80px solid var(--barn-red);
}

.barn-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 120px;
    background: var(--wood-brown);
    border-radius: 0 0 10px 10px;
}

.barn-door {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 80px;
    background: var(--barn-brown);
    border-radius: 30px 30px 0 0;
    border: 3px solid var(--text-dark);
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background: white;
}

.categories h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--barn-cream);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--barn-red);
    box-shadow: 0 10px 30px rgba(139, 38, 53, 0.2);
}

.category-icon {
    font-size: 3rem;
    color: var(--barn-red);
    margin-bottom: 1rem;
}

/* Products Section */
.featured-products {
    padding: 4rem 0;
    background: linear-gradient(135deg, #F8F5F0, var(--barn-cream));
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--barn-red);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--barn-red);
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--barn-brown);
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.features-list i {
    color: var(--barn-green);
    margin-right: 1rem;
}

/* About Scene Illustration */
.barn-scene {
    position: relative;
    height: 300px;
}

.haystack {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 60px;
    background: var(--barn-gold);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.fence {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: repeating-linear-gradient(
        90deg,
        var(--wood-brown) 0px,
        var(--wood-brown) 20px,
        var(--barn-brown) 20px,
        var(--barn-brown) 25px
    );
}

.windmill {
    position: absolute;
    right: 30px;
    bottom: 40px;
    width: 80px;
    height: 120px;
}

.windmill::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 100px;
    background: var(--wood-brown);
}

.windmill-blades {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: 
        linear-gradient(45deg, transparent 40%, var(--barn-brown) 40%, var(--barn-brown) 60%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, var(--barn-brown) 40%, var(--barn-brown) 60%, transparent 60%);
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--text-dark), var(--barn-brown));
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--barn-gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--barn-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--barn-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--barn-gold);
    transform: translateY(-3px);
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    color: var(--barn-gold);
    margin-top: 2px;
}

.newsletter form {
    display: flex;
    margin-top: 1rem;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.newsletter button {
    padding: 10px 15px;
    background: var(--barn-red);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter button:hover {
    background: var(--barn-gold);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    flex-wrap: wrap;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.badge i {
    font-size: 2rem;
    color: var(--barn-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-methods i {
    font-size: 1.5rem;
    color: var(--barn-gold);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--barn-red);
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.mobile-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav li {
    border-bottom: 1px solid #eee;
}

.mobile-nav a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s ease;
}

.mobile-nav a:hover {
    background: var(--barn-cream);
    color: var(--barn-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        margin: 1rem 0 0 0;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .trust-badges {
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
