/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header and Navigation */
header {
    background-color: #232f3e;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff9900;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
    margin-top: 4rem;
}

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

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

/* Featured Deals Section */
.featured-deals {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-deals h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #232f3e;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.deal-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: none; /* Hide all cards by default */
}

.deal-card:nth-child(-n+9) {
    display: block; /* Show first 9 cards */
}

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

.deal-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.deal-card h3 {
    padding: 1rem;
    color: #232f3e;
    font-size: 1.2rem;
}

.price {
    padding: 0 1rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: #B12704;
}

.original {
    text-decoration: line-through;
    color: #666;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.discount {
    padding: 0 1rem;
    color: #067D62;
    font-weight: bold;
    font-size: 1.1rem;
}

.cta-button {
    display: block;
    background: #ff9900;
    color: #fff;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    margin: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

.cta-button:hover {
    background: #e88a00;
}

.load-more-btn {
    display: block;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: #232f3e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background: #37475A;
}

/* Categories Section */
.categories {
    background: #f5f5f5;
    padding: 4rem 2rem;
}

.categories h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #232f3e;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: #fff;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.category-card i {
    font-size: 2.5rem;
    color: #ff9900;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    margin-bottom: 1rem;
    color: #232f3e;
}

.about p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.badge {
    text-align: center;
}

.badge i {
    font-size: 2rem;
    color: #ff9900;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: #232f3e;
    color: #fff;
    padding: 4rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #ff9900;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .trust-badges {
        gap: 1.5rem;
    }
}

.error {
    text-align: center;
    color: #B12704;
    padding: 2rem;
    font-size: 1.2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 600px;
}

/* Bernardelli Page - Joint Genesis Modal & Background Styles */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1001;
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: #6b7280;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #1e40af;
}

@media (max-width: 600px) {
  .background-image {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    left: 0;
    top: 0;
    min-width: 100vw;
    min-height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
  }
} 