/* 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;
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: #e53e3e;
    margin: 0 auto;
}

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

.btn-primary {
    background-color: #e53e3e;
    color: white;
}

.btn-primary:hover {
    background-color: #c53030;
}

.btn-secondary {
    background-color: #e53e3e;
    color: white;
}

.btn-secondary:hover {
    background-color: #c53030;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: #e53e3e;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e53e3e;
}

.nav-desktop > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-desktop > ul > li {
    margin-left: 30px;
    position: relative;
}

.nav-desktop > ul > li > a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
    display: block;
    padding: 10px 0;
}

.nav-desktop > ul > li > a:hover {
    color: #e53e3e;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 5px 0;
    display: none;
    z-index: 1000;
    list-style: none;
    margin: 5px 0 0 0;
    white-space: nowrap;
    overflow: visible;
    /* Ensure proper stacking */
    flex-direction: column;
}

/* Reset any flex display that might affect the dropdown */
.nav-desktop .dropdown-menu {
    display: none;
    flex-direction: column;
}

.nav-desktop .dropdown-menu.active {
    display: flex;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
    float: none;
    clear: both;
    /* Prevent any inline or flex display */
    display: block !important;
    flex: 0 0 auto !important;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    float: none;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    background-color: #f8f8f8;
    color: #e53e3e;
}

/* Mobile Dropdown Menu */
.mobile-dropdown-menu {
    display: none;
    padding: 5px 0;
    margin: 5px 0 0 15px;
    list-style: none;
    width: 100%;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.mobile-dropdown-menu li {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}

.mobile-dropdown-menu li a {
    display: block;
    padding: 10px 25px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.mobile-dropdown-menu li a:hover,
.mobile-dropdown-menu li a.active {
    color: #e53e3e;
    background-color: #f0f0f0;
}

/* Active state for current page */
.nav-desktop ul li a.active,
.nav-mobile ul li a.active {
    color: #e53e3e;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-mobile {
    display: none;
    padding: 0 0 20px;
}

.nav-mobile ul li {
    margin-bottom: 15px;
}

.mobile-dropdown-menu {
    display: none;
    padding-left: 20px;
    margin-top: 10px;
}

.mobile-dropdown-menu li {
    margin-bottom: 10px;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #e53e3e, #c53030);
    color: white;
    text-align: center;
    padding: 80px 0;
}

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

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background-color: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-content {
    padding: 20px;
}

.category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.category-content p {
    color: #666;
    margin-bottom: 20px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.contact-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.contact-icon {
    font-size: 2rem;
    color: #e53e3e;
    margin-bottom: 20px;
}

.contact-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.contact-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-links a {
    color: #e53e3e;
    font-weight: 500;
}

.contact-links a:hover {
    text-decoration: underline;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-link:hover {
    background-color: #e53e3e;
    color: white;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.2);
}

.form-submit {
    text-align: center;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #e53e3e;
}

.footer-col p {
    margin-bottom: 20px;
    color: #ccc;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #e53e3e;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #e53e3e;
}

.footer-contact .contact-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.footer-contact .contact-item i {
    margin-right: 15px;
    margin-top: 5px;
}

.footer-contact .contact-item a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-contact .contact-item a:hover {
    color: #e53e3e;
}

.whatsapp-icon {
    color: white;
    margin-left: 10px;
}

.whatsapp-icon:hover {
    color: #25D366;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: #999;
}

.footer-bottom a {
    color: #e53e3e;
}

/* Product Page Styles */
.product-header {
    text-align: center;
    padding: 60px 0;
    background-color: #f8f8f8;
}

.product-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0 80px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 20px;
}

.product-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.product-content p {
    color: #666;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e53e3e;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 8px 16px;
    transition: background-color 0.3s ease;
}

.whatsapp-btn i {
    margin-left: 8px;
    font-size: 1.2rem;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

/* Privacy Policy & Terms Page */
.policy-page {
    padding: 60px 0;
}

.policy-page h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.policy-section p {
    margin-bottom: 15px;
    color: #555;
}

.policy-section ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.policy-section ul li {
    margin-bottom: 8px;
    color: #555;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 20px;
    }
}