/* ===== CSS Variables ===== */
:root {
    --primary-color: #d4a574;
    --secondary-color: #8b6f4e;
    --accent-color: #f4e4c9;
    --dark-color: #2c1810;
    --light-color: #faf7f2;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #c4956a;
    --secondary-color: #9b7f5e;
    --accent-color: #3d3229;
    --dark-color: #f4e4c9;
    --light-color: #1a1a1a;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --white: #2d2d2d;
    --shadow: 0 5px 20px rgba(0,0,0,0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background: linear-gradient(180deg, #fffaf4 0%, #f4ede4 100%);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

/* ===== Theme Toggle ===== */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1001;
}

.theme-toggle button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.theme-toggle button:hover {
    transform: rotate(180deg);
    box-shadow: var(--shadow-hover);
}

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

[data-theme="dark"] .navbar {
    background: rgba(45, 45, 45, 0.95);
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo-icon {
    width: 96px;
    height: 56px;
    border-radius: 14px;
    background: #f6df8f url('assets/logo.jpg') center/contain no-repeat;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon i {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-carousel {
    height: 100%;
    position: relative;
}

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

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

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

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

/* ===== Page Header ===== */
.page-header {
    position: relative;
    margin-top: 70px;
    padding: 140px 20px 90px;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(44, 24, 16, 0.94), rgba(139, 111, 78, 0.84)),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 42%);
}

.page-header::before,
.page-header::after {
    content: '';
    position: absolute;
    inset: auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(8px);
}

.page-header::before {
    width: 180px;
    height: 180px;
    top: 40px;
    left: -40px;
}

.page-header::after {
    width: 260px;
    height: 260px;
    right: -90px;
    bottom: -90px;
}

.page-header h1 {
    position: relative;
    z-index: 1;
    font-family: var(--font-secondary);
    font-size: 3rem;
    margin-bottom: 12px;
}

.page-header p {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.1rem;
}

/* ===== Products Section ===== */
.products-section {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(244, 237, 228, 0.9));
}

.products-filter {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 20px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 111, 78, 0.12);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark-color);
}

.filter-group input,
.filter-group select {
    min-height: 48px;
    min-width: 220px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(139, 111, 78, 0.18);
    background: var(--white);
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

/* ===== Delivery Badge ===== */
.delivery-badge {
    position: absolute;
    top: 120px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 100;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== About Section ===== */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

.about-content h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ===== Section Titles ===== */
.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

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

/* ===== Location Section ===== */
.location-section {
    padding: 100px 0;
    background: var(--light-color);
}

.map-container {
    margin: 40px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-card h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.info-card p {
    color: var(--text-light);
}

/* ===== Products Preview ===== */
.products-preview {
    padding: 100px 0;
    background: var(--white);
}

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

.product-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(139, 111, 78, 0.08);
}

.product-card.theme-carrot {
    background: linear-gradient(180deg, rgba(255, 232, 236, 0.98), rgba(255, 248, 249, 0.98));
}

.product-card.theme-aloe {
    background: linear-gradient(180deg, rgba(225, 244, 255, 0.98), rgba(248, 252, 255, 0.98));
}

.product-card.theme-ocean {
    background: linear-gradient(180deg, rgba(223, 247, 247, 0.98), rgba(250, 253, 253, 0.98));
}

.product-card.theme-glycerin {
    background: linear-gradient(180deg, rgba(250, 242, 222, 0.98), rgba(255, 252, 246, 0.98));
}

.product-card.theme-milking {
    background: linear-gradient(180deg, rgba(245, 241, 235, 0.98), rgba(255, 254, 252, 0.98));
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    display: block;
    position: relative;
    height: 300px;
    overflow: hidden;
    padding: 16px 14px 12px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(255, 255, 255, 0.65));
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

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

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

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36));
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay,
.product-image:focus-visible .product-overlay {
    opacity: 1;
}

.overlay-copy {
    margin-top: auto;
    align-self: flex-start;
    max-width: 180px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark-color);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.overlay-copy strong,
.overlay-copy span {
    display: block;
}

.overlay-copy strong {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.overlay-copy span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-info {
    padding: 22px;
}

.product-description-snippet {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
    min-height: 48px;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-name {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-add-cart {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-color), #c28d56);
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(139, 111, 78, 0.15);
}

.btn-add-cart:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-view {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

/* ===== Why Choose Us ===== */
.why-choose-us {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--light-color) 100%);
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-light);
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-content {
    text-align: center;
    padding: 40px;
}

.stars {
    color: #ffc107;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-color);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.3;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    opacity: 1;
}

/* ===== Newsletter ===== */
.newsletter {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form .btn {
    background: var(--dark-color);
    color: var(--white);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, #2c1810, #1f120c);
    color: var(--white);
    padding: 80px 0 30px;
}

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

.footer h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer ul li a {
    color: #aaa;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #aaa;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
}

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

.footer-bottom i {
    color: #e74c3c;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-hover);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.theme-toggle button {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Loading Spinner ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Utility Classes ===== */
.hidden {
    display: none !important;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}