/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #f9fafb;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styles */
.header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    font-size: 1.25rem;
    font-weight: bold;
}

.logo svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #dc2626;
}

/* Navigation styles */
.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 2rem;
    }
    .logo span {
        font-size: 1.5rem;
    }
    .logo svg {
        width: 2rem;
        height: 2rem;
    }
}

.nav-item {
    position: relative;
}

.nav-item button {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
}

.nav-item button:hover {
    color: #dc2626;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    padding: 0.5rem 0;
    min-width: 12rem;
    z-index: 50;
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
}

.dropdown a:hover {
    background-color: #fff1f2;
}

/* Mobile menu styles */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    background-color: white;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-items a {
    color: #4b5563;
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 0.375rem;
}

.mobile-menu-items a:hover {
    background-color: #f3f4f6;
}

.mobile-menu-items a[data-subcategory] {
    padding-left: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 4rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .banner-slider {
        height: 300px;
    }
}

@media (min-width: 1024px) {
    .banner-slider {
        height: 400px;
    }
}

.banner-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.banner-slide.active {
    opacity: 1;
    display: block;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.banner-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .banner-content h2 {
        font-size: 2rem;
    }
}

.banner-content p {
    font-size: 1rem;
    opacity: 0.9;
}

.banner-controls {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.banner-prev,
.banner-next {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.banner-prev:hover,
.banner-next:hover {
    background-color: white;
}

.banner-dots {
    display: flex;
    gap: 0.5rem;
}

.banner-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.banner-dot.active {
    background-color: white;
}

/* Main content styles */
.main-content {
    margin-top: 1rem;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .main-content {
        padding: 2rem 0;
    }
}

/* Filter styles */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .filters {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #f3f4f6;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .filter-btn {
        padding: 0.5rem 1.5rem;
    }
}

.filter-btn:hover {
    background-color: #fff1f2;
}

.filter-btn.active {
    background-color: #dc2626;
    color: white;
}

.subcategory-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.subcategory-filters.hidden {
    display: none;
}

.subfilter-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: none;
    font-size: 0.75rem;
    background-color: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
}

.subfilter-btn:hover {
    background-color: #fff1f2;
}

.subfilter-btn.active {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Product grid styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.product-grid.loading {
    opacity: 0.5;
}

.product-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: scale(1.03);
}

.product-image {
    position: relative;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 0.75rem;
}

@media (min-width: 768px) {
    .product-info {
        padding: 1rem;
    }
}

.product-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .product-name {
        font-size: 1rem;
    }
}

.product-subcategory {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #fee2e2;
    color: #991b1b;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.pagination-prev,
.pagination-next {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-prev:disabled,
.pagination-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-prev:not(:disabled):hover,
.pagination-next:not(:disabled):hover {
    background-color: #f3f4f6;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

.pagination-number {
    min-width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background-color: white;
    color: #4b5563;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-number:hover {
    background-color: #f3f4f6;
}

.pagination-number.active {
    background-color: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* Footer styles */
.footer {
    background-color: #111827;
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .footer {
        padding: 3rem 0 1rem;
        margin-top: 3rem;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.contact-info h2,
.contact-form h2 {
    color: #f87171;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .contact-info h2,
    .contact-form h2 {
        font-size: 1.5rem;
    }
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #f87171;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #4b5563;
    background-color: #1f2937;
    color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f87171;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

.contact-form button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

@media (min-width: 768px) {
    .contact-form button {
        width: auto;
    }
}

.contact-form button:hover {
    background-color: #b91c1c;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
    overflow-y: auto;
}

.lightbox.hidden {
    display: none;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
}

.close-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 768px) {
    .close-btn svg {
        width: 2rem;
        height: 2rem;
    }
}

/* Product Detail Styles */
.product-detail-container {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 768px) {
    .product-detail-container {
        flex-direction: row;
        max-height: 80vh;
    }
}

.product-detail-image {
    width: 100%;
    height: 300px;
}

@media (min-width: 768px) {
    .product-detail-image {
        width: 50%;
        height: auto;
    }
}

.product-detail-info {
    padding: 1.5rem;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .product-detail-info {
        width: 50%;
        max-height: 80vh;
    }
}

.product-detail-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.product-detail-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #fee2e2;
    color: #991b1b;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-detail-description {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-detail-sizes {
    margin-bottom: 1.5rem;
}

.product-detail-sizes h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.size-list {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.size-list li {
    margin-bottom: 0.25rem;
    color: #4b5563;
}

.inquiry-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.inquiry-btn:hover {
    background-color: #b91c1c;
}

/* Image Slider Styles */
.image-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.slider-slide.active {
    opacity: 1;
    display: block;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.slider-prev,
.slider-next {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: white;
}

.slider-prev svg,
.slider-next svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #1f2937;
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.slider-dot.active {
    background-color: white;
}

@media (min-width: 768px) {
    .slider-prev,
    .slider-next {
        width: 3rem;
        height: 3rem;
    }
    
    .slider-prev svg,
    .slider-next svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .slider-dot {
        width: 1rem;
        height: 1rem;
    }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    padding: 1rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    z-index: 40;
}

.whatsapp-button:hover {
    transform: scale(1.05);
}

.whatsapp-button i {
    width: 1.5rem;
    height: 1.5rem;
}

.whatsapp-button span {
    display: none;
}

@media (min-width: 768px) {
    .whatsapp-button {
        padding: 1rem 1.5rem;
    }
    
    .whatsapp-button span {
        display: block;
        font-weight: 500;
    }
}