* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --pink-100: #fce7f3;
    --pink-600: #db2777;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-600: #dc2626;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(to bottom right, var(--emerald-500), var(--emerald-600));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon span {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--emerald-600);
}

.cart-btn {
    position: relative;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
}

.cart-btn:hover {
    background: var(--gray-100);
}

.cart-btn svg {
    color: var(--gray-700);
}

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

.nav-mobile {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    border-top: 1px solid var(--gray-200);
}

.nav-mobile .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    .nav-mobile {
        display: none;
    }
}

/* Main Content */
main {
    padding-top: 80px;
    min-height: 100vh;
}

@media (max-width: 767px) {
    main {
        padding-top: 120px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    background: var(--gray-900);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    color: var(--gray-200);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: var(--emerald-600);
}

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

.btn-white:hover {
    background: var(--gray-100);
}

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

.btn-green:hover {
    background: var(--green-600);
}

/* Section */
.section {
    padding: 4rem 0;
}

.section-white {
    background: white;
}

.section-gray {
    background: var(--gray-50);
}

.section-emerald {
    background: var(--emerald-600);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-emerald .section-header h2 {
    color: white;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.section-emerald .section-header p {
    color: var(--emerald-100);
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Category Card */
.category-card {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.category-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.category-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: white;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    /*background: var(--gray-100);*/
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: auto;
    height: 100%;
    object-fit: cover;
    max-width: 100%;

}

/* Responsive adjustments for small phones */
@media (max-width: 480px) {
    .product-image {
        height: 150px; /* Reduce height for smaller screens */
    }

    .product-image img {
        object-fit: contain; /* Adjust fit for better visibility on smaller screens */
    }
}

/* Responsive adjustements for medium and big phone*/

@media (max-width: 600px) {
    .product-image {
        height: 180px; /* Adjust height for medium screens */
    }

    .product-image img {
        object-fit: cover; /* Maintain cover fit for medium screens */
    }
}

/* Footer */
.site-footer {
    background: var(--gray-900);
    color: white;
    margin-top: 2rem;
}
.site-footer .container {
    padding: 3rem 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.footer-col h4 {
    margin-bottom: 0.75rem;
    color: white;
}
.footer-desc {
    margin-top: 0.5rem;
    color: var(--gray-200);
    max-width: 380px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li a {
    color: var(--gray-200);
    text-decoration: none;
}
.footer-col a:hover {
    color: var(--emerald-100);
}
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.footer-social .social-link svg { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1rem 0;
    text-align: center;
    background: rgba(0,0,0,0.05);
}
.logo-icon.small {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}
.logo-text.small { font-size: 1rem; font-weight:600; }

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr;
        align-items: start;
    }
    .site-footer .container { padding: 4rem 1rem; }
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.product-price {
    color: var(--emerald-600);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.quantity-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gray-600);
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: var(--gray-100);
}

.quantity-value {
    padding: 0.5rem 1rem;
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.add-to-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--emerald-500);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: var(--emerald-600);
}

/* Filter */
.filter-container {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn.active {
    background: var(--emerald-500);
    color: white;
}

.filter-btn:not(.active) {
    background: var(--gray-100);
    color: var(--gray-700);
}

.filter-btn:not(.active):hover {
    background: var(--gray-200);
}

/* About Page */
.about-story {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-story {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.value-card {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.value-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: var(--emerald-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.value-icon svg {
    width: 32px;
    height: 32px;
    color: var(--emerald-600);
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--gray-600);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.gallery-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact Page */
.contact-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.contact-card-content {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon.phone {
    background: var(--emerald-100);
}

.contact-icon.phone svg {
    color: var(--emerald-600);
}

.contact-icon.whatsapp {
    background: #dcfce7;
}

.contact-icon.whatsapp svg {
    color: var(--green-600);
}

.contact-icon.email {
    background: var(--blue-100);
}

.contact-icon.email svg {
    color: var(--blue-600);
}

.contact-icon.location {
    background: var(--red-100);
}

.contact-icon.location svg {
    color: var(--red-600);
}

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

.contact-card p {
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.contact-card a {
    color: var(--emerald-600);
    text-decoration: none;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-link.facebook {
    background: var(--blue-100);
}

.social-link.facebook:hover {
    background: #bfdbfe;
}

.social-link.facebook svg {
    color: var(--blue-600);
}

.social-link.instagram {
    background: var(--pink-100);
}

.social-link.instagram:hover {
    background: #fbcfe8;
}

.social-link.instagram svg {
    color: var(--pink-600);
}

.social-link.twitter {
    background: #e0f2fe;
}

.social-link.twitter:hover {
    background: #bae6fd;
}

.social-link.twitter svg {
    color: #0284c7;
}

.map-container {
    margin-top: 1rem;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-200);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.contact-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
    resize: none;
}

.form-note {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Cart Page */
.empty-cart {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-cart svg {
    width: 96px;
    height: 96px;
    color: var(--gray-300);
    margin: 0 auto 1.5rem;
}

.empty-cart h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

.cart-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cart-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cart-item-content {
    display: flex;
    gap: 1.5rem;
}

.cart-item-image {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-100);
    flex-shrink: 0;
}

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

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--emerald-600);
    font-weight: 600;
    margin-bottom: 1rem;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--red-600);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
}

.remove-btn:hover {
    background: var(--red-50);
}

.cart-item-subtotal {
    text-align: right;
}

.cart-item-subtotal p:first-child {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.cart-item-subtotal p:last-child {
    font-size: 1.25rem;
    font-weight: 600;
}

.cart-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: fit-content;
}

@media (min-width: 1024px) {
    .cart-summary {
        position: sticky;
        top: 6rem;
    }
}

.cart-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-items {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.summary-item-name {
    color: var(--gray-600);
}

.summary-divider {
    border: 0;
    border-top: 1px solid var(--gray-200);
    margin: 1rem 0;
}

.summary-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
}

.summary-total .total-amount {
    color: var(--emerald-600);
}

.order-btn {
    width: 100%;
    margin-top: 1.5rem;
}

.order-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.order-info h3 {
    margin-bottom: 0.75rem;
}

.order-info ul {
    list-style: none;
}

.order-info li {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Utility */
.text-center {
    text-align: center;
}

.icon {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cart-item-content {
        flex-direction: column;
    }
    
    .cart-item-subtotal {
        text-align: left;
    }
}