/* General Styles */
:root {
    --bg-color: #ffffff;
    --text-color: #222;
    --primary-color: #ff4081;
    --secondary-color: #f4f4f4;
}

body.dark-mode {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --primary-color: #ff80ab;
    --secondary-color: #1e1e1e;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
}

.navbar,
.sidebar {
    background-color: var(--secondary-color);
    transition: background 0.3s ease;
}

.nav-links a {
    color: var(--text-color);
}

.theme-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(20deg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--text-color);
    background-color: var(--bg-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1,
h2,
h3 {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    color: var(--text-color);
}

.logo-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    font-weight: 600;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: 20px;
    padding: 0.2rem 0.5rem;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-color);
}

.search-box input {
    border: none;
    outline: none;
    padding: 0.4rem 0.6rem;
    border-radius: 20px;
    font-size: 0.9rem;
    background: transparent;
    color: var(--text-color);
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--text-color);
    margin-right: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1100;
    opacity: 1;
    /* Ensure visibility */
    visibility: visible;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    margin: 4px 0;
    border-radius: 3px;
    transition: all 0.4s ease;
    opacity: 1;
    /* Ensure spans are visible */
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background-color: var(--secondary-color);
    transition: right 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    opacity: 1;
    /* Ensure visibility */
    visibility: visible;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.sidebar-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--text-color);
    background-color: var(--bg-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Sidebar search box on mobile */
.sidebar .search-box {
    display: none;
    width: 80%;
    margin: 20px auto;
}

@media (max-width: 768px) {
    .sidebar .search-box {
        display: flex;
    }
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Sections */
.hero {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 700;
    font-family: 'Dancing Script', cursive;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    margin-top: 20px;
}

.btn:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-color);
    font-family: 'Dancing Script', cursive;
}

.section-desc {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.8;
}

/* About Section */
.about {
    padding: 3rem 1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.about-text {
    text-align: left;
}

.about-img {
    text-align: center;
}

.profile-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* Collection Grid */
.collection {
    padding: 3rem 1rem;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    justify-content: center;
}

@media (min-width: 1600px) {
    .grid {
        grid-template-columns: repeat(4, minmax(300px, 400px));
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .grid {
        grid-template-columns: repeat(4, minmax(300px, 400px));
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .grid {
        grid-template-columns: repeat(3, minmax(300px, 400px));
    }
}

@media (max-width: 899px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.7;
    margin: 2rem 0;
}

.card {
    background: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    max-width: 400px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.card-content p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 1rem;
    line-height: 1.5;
}

.no-items {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.6;
    text-align: center;
    grid-column: 1 / -1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    background: var(--bg-color);
    border-radius: 15px;
    max-width: 95%;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.5s ease;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

.lightbox-body {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    flex: 1;
}

@media (max-width: 768px) {
    .lightbox-body {
        flex-direction: column;
    }
}

.lightbox-img {
    max-width: 60%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .lightbox-img {
        max-width: 100%;
        max-height: 50vh;
    }
}

.lightbox-text {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.lightbox-text h3 {
    margin: 0 0 10px;
    font-size: 2rem;
    color: var(--text-color);
    font-family: 'Dancing Script', cursive;
}

.lightbox-text p {
    margin: 0 0 20px;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

.closeBtn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    z-index: 1;
}

.closeBtn:hover {
    color: var(--primary-color);
}

.interaction {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.like-btn,
.purchase-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.like-btn {
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    color: var(--text-color);
}

.like-btn.liked {
    background: var(--primary-color);
    color: #fff;
}

.like-btn:disabled {
    background: var(--secondary-color);
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
}

.like-btn i {
    transition: color 0.3s ease;
}

.like-btn.liked i {
    color: #fff;
}

.purchase-btn {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    text-align: center;
}

.like-btn:hover:not(:disabled),
.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.comment-section {
    margin-top: 20px;
}

.comment-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    background: var(--secondary-color);
    padding: 10px;
    border-radius: 8px;
}

.like-item,
.comment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
    padding: 8px;
    background: var(--bg-color);
    border-radius: 5px;
    color: var(--text-color);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--text-color);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.comment-list hr {
    border: 0;
    border-top: 1px solid var(--text-color);
    opacity: 0.2;
    margin: 10px 0;
}

.comment-input {
    display: flex;
    gap: 10px;
}

.comment-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
}

.comment-input button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.comment-input button:hover {
    background: #ff6b6b;
}

/* Contact Section */
.contact {
    padding: 3rem 1rem;
    text-align: center;
}

.contact-hero {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.form-column,
.info-column {
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 64, 129, 0.3);
}

.form-group textarea {
    resize: vertical;
}

.form-group.focused label {
    color: var(--primary-color);
}

.form-submit-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-submit-btn:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
}

.form-message {
    margin-top: 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.show {
    opacity: 1;
}

.success-message {
    color: #28a745;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-color);
    border: 1px solid #ccc;
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-btn.whatsapp:hover {
    border-color: #25D366;
}

.social-btn.instagram:hover {
    border-color: #E1306C;
}

.social-btn.email:hover {
    border-color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-color);
    opacity: 0.8;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Auth Modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    background: var(--bg-color);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
}

.auth-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.auth-modal-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.auth-modal-header h3 {
    font-size: 1.8rem;
    margin: 0;
    font-family: 'Dancing Script', cursive;
}

.auth-modal-message {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.auth-btn-secondary {
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    color: var(--text-color);
}

.auth-btn-primary:hover,
.auth-btn-secondary:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: transparent;
}

.auth-btn-primary i,
.auth-btn-secondary i {
    margin-right: 8px;
}

.auth-modal-footer {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.auth-modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-modal-footer a:hover {
    text-decoration: underline;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 3000;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

@media (max-width: 768px) {
    .auth-modal-content {
        padding: 1.5rem;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .toast {
        bottom: 10px;
        right: 10px;
    }
}

/* Ensure visibility for ScrollReveal fallback */
.reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}
