/* 
    Meli Accesorios - Global Styles
    Modern, Elegant, Feminine, Premium Design
*/

:root {
    --primary: #d4af37; /* Gold */
    --primary-light: #e6c96e;
    --secondary: #f8d7da; /* Soft Pink */
    --accent: #fdf6f3; /* Soft Beige */
    --dark: #333333;
    --light: #ffffff;
    --gray: #777777;
    --gray-light: #f4f4f4;
    --whatsapp: #25d366;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-medium: 0 15px 40px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title span {
    color: var(--primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}

.logo span {
    color: var(--primary);
    font-weight: 400;
    font-style: italic;
    font-size: 1.5rem;
}

#nav-menu ul {
    display: flex;
    gap: 30px;
}

#nav-menu a {
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#nav-menu a:hover {
    color: var(--primary);
}

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

#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

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

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

.btn-whatsapp-header {
    background-color: var(--whatsapp);
    color: var(--light);
    padding: 10px 20px;
}

.btn-whatsapp-header:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
}

.btn-whatsapp-large {
    background-color: var(--whatsapp);
    color: var(--light);
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-whatsapp-large:hover {
    background-color: #128c7e;
    transform: scale(1.05);
}

.btn-whatsapp-full {
    background-color: var(--whatsapp);
    color: var(--light);
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.8), transparent);
}

.hero-content {
    width: 100%;
}

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

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text h1 span {
    color: var(--primary);
    display: block;
    font-size: 3.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #444;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Categories Section */
.categories {
    padding: 100px 0;
    background-color: var(--accent);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    height: 300px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: var(--transition);
}

.category-overlay h3 {
    color: var(--light);
    font-size: 1.3rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

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

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(212, 175, 55, 0.7), transparent);
}

/* Catalog Section */
.catalog {
    padding: 100px 0;
}

.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border-radius: 50px;
    border: 1px solid #ddd;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.filter-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: var(--light);
    border-color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

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

.product-img {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--light);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

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

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-details {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    color: var(--dark);
    font-size: 1.1rem;
}

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

.btn-consult {
    flex-grow: 1;
    justify-content: center;
    font-size: 0.8rem;
    padding: 10px;
}

.no-results {
    text-align: center;
    padding: 50px 0;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Featured Banner */
.featured-banner {
    padding: 80px 0;
    background: #000;
    color: var(--light);
    position: relative;
}

.featured-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.featured-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
}

.featured-content {
    flex: 1;
}

.badge {
    background: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.featured-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.featured-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.about-features {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

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

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

.feature span {
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
}

.about-img {
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: var(--accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-details {
    margin: 30px 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--primary);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-cta {
    flex: 1;
}

.cta-box {
    background: var(--gray-light);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    border: 2px dashed var(--primary);
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-box p {
    margin-bottom: 30px;
    color: #666;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 80px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--light);
}

.footer-logo span {
    color: var(--primary);
}

.footer-logo p {
    margin-top: 15px;
    color: #999;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--primary);
}

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

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

.footer-copy {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-content {
    background: var(--light);
    margin: auto;
    max-width: 900px;
    width: 100%;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    color: var(--dark);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-img {
    flex: 1;
    min-width: 350px;
    height: 500px;
}

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

.modal-info {
    flex: 1;
    min-width: 350px;
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.product-category-tag {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.modal-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.product-details-content {
    margin: 25px 0;
}

.product-details-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--primary);
}

.product-details-content p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1rem;
}

/* Admin Styles */
.btn-admin-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
}

.admin-modal-content {
    max-width: 1000px;
    padding: 40px;
}

.modal-body-admin {
    width: 100%;
}

.admin-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.admin-table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
}

#admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

#admin-table th, #admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#admin-table th {
    background-color: var(--gray-light);
    font-weight: 600;
}

.admin-img-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.admin-btn-actions {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-delete {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-delete {
    background-color: #ff4d4d;
    color: var(--light);
}

.btn-edit:hover, .btn-delete:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Form Styles */
.product-form-container {
    background: var(--gray-light);
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
    border: 1px dashed var(--primary);
}

.product-form-container h3 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Admin Login Styles */
.admin-login-section {
    max-width: 300px;
    margin: 40px auto;
    text-align: center;
}

.admin-login-section p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.error-msg {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}
