:root {
    --primary: #e63946;
    --dark: #1d3557;
    --light: #f1faee;
    --text: #333;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    color: var(--text);
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo img {
    max-height: 50px;
    width: auto;
}

.main-header nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-header nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.main-header nav a:hover {
    color: var(--primary);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
}

.dropdown-content a:hover {
    background: #f9f9f9;
    color: var(--primary);
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 50px;
    padding: 5px 15px;
    margin-left: 20px;
}

.search-form input {
    border: none;
    background: transparent;
    outline: none;
    padding: 5px;
    font-family: inherit;
}

.search-form button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--dark);
    transition: color 0.3s;
}

.search-form button:hover {
    color: var(--primary);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.slide .content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.slide h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 20px;
    transition: transform 0.3s;
}

.btn-hero:hover {
    transform: scale(1.05);
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
}

.slider-nav .prev {
    left: 20px;
}

.slider-nav .next {
    right: 20px;
}

/* Products */
.products-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cat-tab {
    display: inline-block;
    padding: 10px 25px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cat-tab:hover,
.cat-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.btn-buy {
    display: inline-block;
    padding: 8px 20px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.btn-submit {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #d62828;
}

.map-wrapper {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-container {
    position: relative;
    padding-bottom: 75%;
    /* 4:3 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 5px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    opacity: 1;
    border: 2px solid var(--primary);
}

.info-column h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.price-large {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 2rem;
}

.description {
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

.btn-buy-large {
    display: inline-block;
    padding: 15px 40px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.3s;
}

.btn-buy-large:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content-large {
    background: white;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 10px;
    position: relative;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    z-index: 10;
}

.modal-body {
    padding: 2rem;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #666;
}

/* Modal Grid */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.modal-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.modal-thumbs img:hover,
.modal-thumbs img.active {
    opacity: 1;
    border: 2px solid var(--primary);
}

.modal-info h2 {
    margin-top: 0;
    font-size: 2rem;
    color: var(--dark);
}

.modal-price {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    margin: 1rem 0;
}

.modal-desc {
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-main-img {
        height: 300px;
    }
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
}

.footer-col h3,
.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after,
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.contact-info i {
    color: var(--primary);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

.btn-share {
    background: white;
    border: 1px solid #ddd;
    color: var(--dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-share:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}