/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    /* Colors - Light Anime / Pastel Theme */
    --bg-light: #fdfdfd;
    --bg-lighter: #ffffff;
    --primary: #ff758c; /* Soft pink */
    --secondary: #ff7eb3; /* Pastel pink/purple */
    --accent: #ffb199; /* Peachy accent */
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 117, 140, 0.2);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Borders */
    --border-radius: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* =========================================
   RESET & GLOBAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 117, 140, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 126, 179, 0.05) 0%, transparent 40%);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   BACKGROUND EFFECTS (Soft Pastel Blobs)
   ========================================= */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #ffe3e8;
    top: -150px;
    left: -150px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #fff0f3;
    bottom: 5%;
    right: -100px;
}

/* =========================================
   UTILITIES
   ========================================= */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.3);
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 117, 140, 0.5);
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(255, 117, 140, 0.1);
    color: var(--primary);
    border-radius: 20px;
    border: 1px solid rgba(255, 117, 140, 0.2);
}

/* =========================================
   HEADER & NAVBAR
   ========================================= */
.search-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
}

.search-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.search-input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 30px;
    border: 2px solid rgba(255, 117, 140, 0.3);
    background: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(255, 117, 140, 0.2);
}

.main-search-wrapper {
    padding-top: 160px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-left: 5%;
    padding-right: 5%;
    margin-bottom: -10px;
}

.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 5%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.lang-selector {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
}

.lang-selector:hover {
    border-color: var(--primary);
}

.lang-selector option {
    color: #333;
    background: white;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5% 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 45px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-placeholder-img {
    width: 100%;
    max-width: 480px;
    height: 600px;
    object-fit: cover;
    border-radius: 30px;
    position: relative;
    animation: floatSoft 8s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(255, 117, 140, 0.2);
}

@keyframes floatSoft {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   GALLERY SECTION
   ========================================= */
.gallery-section {
    padding: 80px 5%;
}

.section-title h3 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
}

.gallery-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
    max-width: 260px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 20px;
    padding-top: 5px;
    /* Custom scrollbar for Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 117, 140, 0.1);
}

/* Custom scrollbar for Chrome/Safari/Edge */
.category-filters::-webkit-scrollbar {
    width: 6px;
}

.category-filters::-webkit-scrollbar-track {
    background: rgba(255, 117, 140, 0.05);
    border-radius: 10px;
}

.category-filters::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

.filter-btn {
    background: white;
    border: 2px solid rgba(255, 117, 140, 0.2);
    color: var(--text-muted);
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-normal);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 15px rgba(255, 117, 140, 0.3);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    flex: 1;
    width: 100%;
}

/* Papercraft Card */
.model-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.model-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(255, 117, 140, 0.15);
    border-color: rgba(255, 117, 140, 0.3);
}

.card-image {
    height: 320px;
    width: 100%;
    object-fit: cover;
    background-color: #fcfcfc;
    transition: transform 0.6s ease;
}

.model-card:hover .card-image {
    transform: scale(1.08);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* =========================================
   MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    width: 100%;
    max-width: 950px;
    position: relative;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: none;
}

.modal-overlay.hidden .modal-content {
    transform: scale(0.95);
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--text-main);
    font-size: 24px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }
}

.modal-image-container {
    flex: 1;
    background: #fdfdfd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    overflow: hidden;
    min-height: 400px;
}

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

.modal-info {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#modal-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

#modal-category {
    align-self: flex-start;
    margin-bottom: 25px;
}

#modal-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 45px;
    line-height: 1.7;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-content {
    max-width: 800px;
    padding: 40px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-main);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 60px 0 40px;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 80px;
    background: white;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }
    
    .hero-content h2 {
        font-size: 3.5rem;
    }
    
    .modal-image-container {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        min-height: 250px;
    }
    
    .nav-links {
        display: none;
    }
    
    .gallery-layout {
        flex-direction: column;
    }
    
    .category-filters {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        width: 100%;
        max-width: 100%;
        position: relative;
        top: 0;
        padding-bottom: 10px;
        padding-right: 0;
    }
}

/* =========================================
   GUÍA DE MONTAJE / STEPS GUIDE
   ========================================= */
.guide-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.guide-card {
    padding: 35px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glass-shadow-hover);
}

.guide-step-number {
    position: absolute;
    top: -15px;
    left: 25px;
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(255, 126, 179, 0.4);
}

.guide-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: inline-block;
}

.guide-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.guide-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   FAQ SECTION (ACCORDION)
   ========================================= */
.faq-section {
    padding: 80px 5%;
    max-width: 900px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.faq-item {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-question {
    width: 100%;
    padding: 22px 25px;
    background: transparent;
    border: none;
    outline: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.3rem;
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease;
    padding: 0 25px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 22px;
}

/* =========================================
   FOOTER ENHANCED
   ========================================= */
.footer-enhanced {
    background: white;
    border-top: 1px solid var(--glass-border);
    padding: 70px 5% 30px;
    margin-top: 100px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    text-align: left;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 15px;
    max-width: 320px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   COOKIE CONSENT BANNER (GDPR / ADSENSE)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 850px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 22px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    z-index: 10000;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-banner.hidden {
    opacity: 0;
    transform: translate(-50%, 30px);
    pointer-events: none;
}

.cookie-text {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.6;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition-fast);
}

.btn-cookie-accept:hover {
    box-shadow: 0 6px 15px rgba(255, 126, 179, 0.4);
    transform: translateY(-2px);
}

.btn-cookie-decline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition-fast);
}

.btn-cookie-decline:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
}

/* =========================================
   LEGAL PAGES & CONTACT STYLING
   ========================================= */
.legal-page-container {
    max-width: 950px;
    margin: 120px auto 60px;
    padding: 0 5%;
}

.legal-card {
    padding: 50px 45px;
    border-radius: 24px;
}

.legal-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 25px;
    margin-bottom: 35px;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--text-main);
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.legal-body {
    line-height: 1.8;
    color: var(--text-main);
}

.legal-body h2 {
    font-size: 1.4rem;
    margin: 30px 0 12px;
    color: var(--text-main);
}

.legal-body p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.legal-body ul, .legal-body ol {
    margin: 15px 0 20px 25px;
    color: var(--text-muted);
}

.legal-body li {
    margin-bottom: 8px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
}

.legal-table th, .legal-table td {
    padding: 14px 18px;
    border: 1px solid var(--glass-border);
    text-align: left;
}

.legal-table th {
    background: rgba(255, 126, 179, 0.08);
    color: var(--text-main);
    font-weight: 700;
}

.legal-footer-nav {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-start;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    padding: 18px 20px;
    border-radius: 16px;
    margin-top: 18px;
}

.contact-icon {
    font-size: 1.8rem;
}

.contact-method-card h4 {
    margin-bottom: 4px;
    color: var(--text-main);
}

.contact-method-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form-panel {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 126, 179, 0.2);
}

/* Ad Container */
.ad-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed var(--glass-border);
    border-radius: 16px;
}

.ad-label {
    font-size: 0.75rem;
    color: #bbb;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   RECENT / FEATURED 4 MODELS SECTION
   ========================================= */
.recent-section {
    padding: 40px 5% 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.recent-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 35px;
}

.view-all-wrapper {
    text-align: center;
    margin-top: 45px;
}

.view-all-btn {
    font-size: 1.1rem;
    padding: 16px 36px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
   PAGE VIEWS & TABS SWITCHING
   ========================================= */
.page-view {
    transition: opacity 0.3s ease;
}

.page-view.hidden-view {
    display: none !important;
}

.page-view.active-view {
    display: block !important;
    animation: fadeInView 0.4s ease forwards;
}

@keyframes fadeInView {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   GALLERY TOP CONTROLS (DROPDOWN + SEARCH)
   ========================================= */
.gallery-top-controls {
    max-width: 1000px;
    margin: 30px auto 40px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-radius: 20px;
}

.gallery-search-box {
    flex: 1;
    position: relative;
}

.gallery-search-box .search-input {
    width: 100%;
    margin: 0;
}

.category-dropdown-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.dropdown-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    white-space: nowrap;
}

.category-dropdown-select {
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.category-dropdown-select:hover, .category-dropdown-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 126, 179, 0.2);
}

@media (max-width: 768px) {
    .gallery-top-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    
    .category-dropdown-wrapper {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .category-dropdown-select {
        width: 100%;
    }
}

/* =========================================
   PERFORMANCE & SKELETON SHIMMER OPTIMIZATIONS
   ========================================= */
.card-image-wrapper {
    position: relative;
    height: 320px;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #f2f3f5 25%, #fafbfc 50%, #f2f3f5 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.6s ease;
    will-change: transform, opacity;
}

.card-image.loaded {
    opacity: 1;
}

.load-more-wrapper {
    grid-column: 1 / -1;
    text-align: center;
    margin: 40px auto 20px;
    width: 100%;
}

.btn-load-more {
    font-size: 1.1rem;
    padding: 16px 40px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 126, 179, 0.35);
}
