/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1a237e;
    --primary-light: #3f51b5;
    --accent-blue: #2196f3;
    --light-blue: #e3f2fd;
    --white: #ffffff;
    --dark-text: #212121;
    --light-text: #757575;
    --success: #4caf50;
    --error: #f44336;
    --shadow: 0 4px 20px rgba(26, 35, 126, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-blue));
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) #f1f1f1;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-light);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cart {
    position: relative;
    color: var(--dark-text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-cart:hover {
    color: var(--primary-light);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-text);
    transition: var(--transition);
}

/* Main Content Padding */
.main-content {
    padding-top: 70px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero .blog-meta {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Blog Hero with Background Image */
.hero.blog-hero {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

.hero.blog-hero .hero-content {
    position: relative;
    z-index: 1;
}

.hero.blog-hero h1 {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 1);
    color: #ffffff;
    font-weight: 700;
}

.hero.blog-hero p {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
    color: #ffffff;
    font-weight: 500;
}

.hero.blog-hero .blog-meta {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
    color: #ffffff;
    font-weight: 500;
}

.blog-navigation-bottom {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h2 {
    color: var(--primary-dark);
    margin: 40px 0 20px;
}

/* About Us Page Styles */
.light-bg {
    background: var(--light-blue);
}

.dark-bg {
    background: var(--primary-dark);
    color: var(--white);
}

.dark-bg .section-title h2 {
    color: var(--white);
}

.dark-bg .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.dark-card {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.dark-card .card-icon {
    color: var(--accent-blue);
}

.contact-info {
    text-align: center;
}

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

.contact-item {
    text-align: center;
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.team-avatar {
    width: 100px;
    height: 100px;
    background: var(--light-blue);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-light);
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-role {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Story Section */
.story-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.story-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.story-item.reverse {
    flex-direction: row-reverse;
}

.story-image {
    flex: 1;
    max-width: 400px;
}

.story-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.story-text {
    flex: 1;
}

.story-text h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--light-text);
}

@media (max-width: 768px) {
    .story-item,
    .story-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .story-image {
        max-width: 100%;
    }
}

/* Products Page Background */
.products-page {
    background: var(--light-blue);
    min-height: 100vh;
}

.products-page .search-filter-section {
    background: var(--light-blue);
    margin-bottom: 0;
}

.products-page .products-section {
    background: var(--light-blue);
}

/* Home Hero with Dynamic Background */
.home-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: background-image 1s ease-in-out;
    animation: zoomInOut 8s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 126, 0.7);
    z-index: 1;
}

.home-hero .hero-content {
    position: relative;
    z-index: 2;
}

@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 80px 0 60px;
        animation: none;
    }
    
    .home-hero .hero-content {
        padding: 0 15px;
    }
    
    .home-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .home-hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .home-hero .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .hero-overlay {
        background: rgba(26, 35, 126, 0.8);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
}

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

/* Sections */
.section {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(26, 35, 126, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.15);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(26, 35, 126, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    background: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-light);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info p {
    flex: 1;
    margin-bottom: 20px;
}

.product-info .btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent-blue);
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 1001;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.3s ease;
}

.cookie-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.cookie-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.cookie-buttons .btn-secondary {
    background: var(--white);
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
}

.cookie-buttons .btn-secondary:hover {
    background: var(--primary-light);
    color: var(--white);
}

/* Go to Top Button */
.go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 999;
}

.go-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.go-top.show {
    display: flex;
}

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-container {
        justify-content: space-between;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cookie-popup {
        left: 10px;
        right: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Notification */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: var(--success);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 1002;
    transform: translateX(100%);
    transition: var(--transition);
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: var(--error);
}

/* Cart Styles */
.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 2rem;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--accent-blue);
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-light);
    background: var(--white);
    color: var(--primary-light);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-light);
    color: var(--white);
}

.remove-btn {
    color: var(--error);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

.remove-btn:hover {
    opacity: 0.7;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1003;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
        border-radius: 10px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 16px;
    }

    #orderSummary {
        font-size: 0.9rem;
    }

    #orderDetails {
        font-size: 0.9rem;
        padding: 15px;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
}

/* Search and Filter */
.search-filter-section {
    background: var(--light-blue);
    padding: 30px 0;
    margin-bottom: 40px;
}

.search-filter-container {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: var(--white);
    min-width: 150px;
}

/* Blog Styles */
.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-meta {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-excerpt {
    color: var(--light-text);
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* FAQ Accordion */
.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    background: var(--light-blue);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

.faq-toggle {
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Blog Navigation */
.blog-navigation {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
    gap: 15px;
}

@media (max-width: 768px) {
    .blog-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .blog-navigation .btn {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 16px;
    }
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 16px;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-btn {
    background: var(--accent-blue);
    white-space: nowrap;
    padding: 12px 20px;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .newsletter-input {
        width: 100%;
        font-size: 16px;
    }
    
    .newsletter-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
}