/* Reset & Base Styles */
:root {
    --primary: #800000;
    --primary-dark: #660000;
    --secondary: #F5E6D3;
    --text: #333333;
    --bg: #FFFFFF;
    --white: #FFFFFF;
    --gray-light: #f9f9f9;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Offset for sticky header */
section,
footer {
    scroll-margin-top: 80px;
}

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

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Lobster Two', cursive;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary);
    cursor: pointer;
}

.btn,
.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn svg,
.btn-small svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

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

/* Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

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

.brand-text {
    font-family: 'Lobster Two', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    padding: 4rem 0;
    background-color: var(--secondary);
}

.hero .container {
    display: flex;
    align-items: center;
    flex-direction: column-reverse;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    text-align: center;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.1);
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: var(--white);
    text-align: center;
}

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

/* Composition Section */
.composition {
    margin-top: 3rem;
}

.composition-heading {
    text-align: center;
    font-family: 'Lobster Two', cursive;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.composition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.composition-card {
    background: var(--gray-light);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.composition-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(128, 0, 0, 0.1);
}

.composition-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.composition-card h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.composition-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* Products Section */
.products {
    padding: 4rem 0;
    background-color: var(--gray-light);
    text-align: center;
}

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

.product-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

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

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

.weight-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0 1rem;
    display: block;
}

.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    text-decoration: none;
}

/* How to Order */
.how-to {
    padding: 4rem 0;
    text-align: center;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.step-card {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Location Section */
.location {
    padding: 4rem 0;
    background-color: var(--gray-light);
    text-align: center;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #eee;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 1.5rem;
}

.copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero .container {
        flex-direction: row;
        text-align: left;
    }

    .hero-content {
        text-align: left;
    }

    .nav-links {
        display: flex;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Testimonial Section */
.testimonials {
    padding: 4rem 0;
    background-color: var(--white);
    text-align: center;
}

.slider-container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0;
    overflow: hidden;
    padding: 0 1rem;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    padding: 2rem;
    box-sizing: border-box;
    background-color: var(--gray-light);
    border-radius: 15px;
    text-align: center;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.customer-name {
    font-weight: 700;
    color: var(--primary);
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
}

/* Floating Chat Button */
.floating-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.view-detail-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(128, 0, 0, 0.8);
    color: white;
    padding: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: var(--transition);
    text-align: center;
}

.product-card:hover .view-detail-hint {
    transform: translateY(0);
}

.product-card {
    cursor: pointer;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.modal-image {
    flex: 1;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.modal-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    padding: 2rem;
}

.modal-info {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.modal-info h2 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.weight-badge-large {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    align-self: flex-start;
}

#modalDesc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.modal-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.modal-actions .price {
    font-size: 1.75rem;
    margin: 0;
}

.modal-actions .btn {
    flex: 1;
    justify-content: center;
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
    }

    .modal-image {
        min-height: auto;
    }

    .modal-container {
        max-height: 600px;
    }
}

.floating-chat:hover {
    transform: scale(1.1);
}

.floating-chat svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.floating-chat::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}
