/* ============================================
   ORACLE APEX - DAIRY HOMEPAGE CSS
   Upload this as Static Application File
   ============================================ */

* {
    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 Styles */
.dairy-top-header {
    background: linear-gradient(135deg, #2c5f2d 0%, #97bc62 100%);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.dairy-top-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.dairy-contact-info i {
    margin-right: 5px;
}

.dairy-contact-info span {
    margin-right: 20px;
}

/* Main Header */
.dairy-main-header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dairy-main-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.dairy-logo {
    font-size: 28px;
    font-weight: bold;
    color: #2c5f2d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dairy-logo i {
    color: #97bc62;
}

.dairy-search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
    position: relative;
}

.dairy-search-bar input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.dairy-search-bar input:focus {
    outline: none;
    border-color: #2c5f2d;
}

.dairy-search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #2c5f2d;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.dairy-search-bar button:hover {
    background: #1f4420;
}

.dairy-header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.dairy-header-actions a {
    color: #333;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    transition: color 0.3s;
}

.dairy-header-actions a:hover {
    color: #2c5f2d;
}

.dairy-header-actions i {
    font-size: 24px;
    margin-bottom: 5px;
}

.dairy-cart-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Navigation */
.dairy-nav {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

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

.dairy-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.dairy-nav ul li {
    position: relative;
}

.dairy-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #033e20;
    background: #c6d7c7;
    text-decoration: none;
    font-size: 20px; 
    font-weight: bold;
    transition: all 0.3s;
}

.dairy-nav ul li a:hover {
    background: #2c5f2d;
    color: white;
}

/* Hero Slider */
.dairy-hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.dairy-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dairy-slide.active {
    opacity: 1;
}

.dairy-slide-content {
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
}

.dairy-slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.dairy-slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.dairy-btn-primary {
    background: #2c5f2d;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.dairy-btn-primary:hover {
    background: #1f4420;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dairy-slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dairy-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dairy-slider-dot.active {
    background: white;
}

/* Featured Categories */
.dairy-featured-categories {
    padding: 60px 0;
    background: #f8f9fa;
}

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

.dairy-section-title {
    text-align: center;
    font-size: 36px;
    color: #2c5f2d;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.dairy-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #97bc62;
}

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

.dairy-category-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dairy-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.dairy-category-card i {
    font-size: 48px;
    color: #2c5f2d;
    margin-bottom: 15px;
}

.dairy-category-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.dairy-category-card p {
    color: #666;
    font-size: 14px;
}

/* Products Section */
.dairy-products-section {
    padding: 60px 0;
}

.dairy-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.dairy-product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.dairy-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.dairy-product-image {
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #2c5f2d;
}

.dairy-product-info {
    padding: 20px;
}

.dairy-product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.dairy-product-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.dairy-price {
    font-size: 24px;
    color: #2c5f2d;
    font-weight: bold;
    margin-bottom: 15px;
}

.dairy-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-left: 10px;
}

.dairy-btn-add-cart {
    width: 100%;
    background: #2c5f2d;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}

.dairy-btn-add-cart:hover {
    background: #1f4420;
}

/* Why Choose Us */
.dairy-why-choose-us {
    padding: 60px 0;
    background: linear-gradient(135deg, #2c5f2d 0%, #97bc62 100%);
    color: white;
}

.dairy-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.dairy-feature-item {
    text-align: center;
}

.dairy-feature-item i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #fff;
}

.dairy-feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.dairy-feature-item p {
    font-size: 14px;
    line-height: 1.8;
}

/* Footer */
.dairy-footer {
    background: #1f4420;
    color: white;
    padding: 60px 0 20px;
}

.dairy-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.dairy-footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #97bc62;
}

.dairy-footer-section ul {
    list-style: none;
}

.dairy-footer-section ul li {
    margin-bottom: 10px;
}

.dairy-footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.dairy-footer-section ul li a:hover {
    color: #97bc62;
}

.dairy-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.dairy-social-links a {
    width: 40px;
    height: 40px;
    background: #2c5f2d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.dairy-social-links a:hover {
    background: #97bc62;
}

.dairy-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .dairy-main-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .dairy-search-bar {
        max-width: 100%;
        margin: 0;
    }

    .dairy-nav ul {
        flex-direction: column;
    }

    .dairy-nav ul li a {
        padding: 10px 15px;
    }

    .dairy-hero-slider {
        height: 300px;
    }

    .dairy-slide-content h2 {
        font-size: 28px;
    }

    .dairy-slide-content p {
        font-size: 16px;
    }

    .dairy-section-title {
        font-size: 28px;
    }

    .dairy-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* Mobile Menu Toggle */
.dairy-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 34px;
    font-weight: bold;
    color: #2c5f2d;
    cursor: pointer;
}

@media (max-width: 768px) {
    .dairy-mobile-menu-toggle {
        display: block;
    }

    .dairy-nav ul {
        display: none;
    }

    .dairy-nav ul.active {
        display: flex;
    }
}
