/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Improve rendering performance */
.clothing-card {
    will-change: transform;
}

.clothing-image {
    will-change: transform, opacity;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.1);
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    padding: 15px 0;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.3);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Profiles Container */
.profiles-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.profile {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile:hover {
    transform: translateY(-5px);
}

.profile-header {
    text-align: center;
    margin-bottom: 25px;
}

.profile-name {
    font-size: 1.8em;
    color: #1e3c72;
    margin-bottom: 10px;
}

.profile-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.bastou .profile-icon {
    color: #1e3c72;
}

.magali .profile-icon {
    color: #e24a90;
}

/* Size Categories */
.size-category {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 10px;
    border-left: 4px solid #1e3c72;
}

.category-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.category-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

/* Badges */
.badges-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.size-badge {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 3px 10px rgba(30, 60, 114, 0.3);
    transition: transform 0.3s ease;
    min-width: 55px;
    text-align: center;
}

.size-badge:hover {
    transform: scale(1.05);
}

.badge-eu {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
}

.badge-us {
    background: linear-gradient(45deg, #dc143c, #b71c1c);
}

.badge-uk {
    background: linear-gradient(45deg, #104d1f, #2bac1c);
}

/* Size Info */
.size-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: white;
    border-radius: 8px;
    margin: 5px 0;
    border: 1px solid #e0e0e0;
}

.size-label {
    font-weight: 500;
    color: #555;
}

.size-value {
    font-weight: bold;
    color: #1e3c72;
    font-size: 1.1em;
}

/* Conversion Tables */
.conversion-table {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}

.conversion-table h2 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.5em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th,
td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #1e3c72;
    color: white;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

.highlight-bastou {
    background-color: #e3f2fd !important;
    font-weight: bold;
}

.highlight-magali {
    background-color: #fce4ec !important;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    opacity: 0.8;
}

/* Catalog Styles (for future use) */
.catalog-container {
    display: none;
    /* Hidden by default, will be shown when catalog is active */
}

.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn:focus,
.filter-btn.active {
    background: white;
    color: #1e3c72;
    outline: 2px solid white;
    outline-offset: 2px;
}

.clothing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.clothing-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.clothing-card:hover,
.clothing-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    outline: 2px solid white;
    outline-offset: 2px;
}

.clothing-image-container {
    position: relative;
    text-align: center;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.clothing-image {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.clothing-image.lazy-load {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    opacity: 0.7;
}

.clothing-card:hover .clothing-image {
    transform: scale(1.05);
}

.clothing-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #999;
    width: 100%;
    height: 100%;
}

.placeholder-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.placeholder-text {
    font-size: 0.9em;
    text-align: center;
}

/* SVG Placeholder Styles */
.svg-placeholder {
    padding: 20px;
}

.svg-placeholder svg {
    width: 100%;
    height: auto;
    max-width: 120px;
    max-height: 120px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.clothing-card:hover .svg-placeholder svg {
    opacity: 1;
}

.clothing-info {
    padding: 20px;
}

.clothing-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 8px;
    line-height: 1.3;
}

.clothing-category {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 5px 10px;
    background: #f8f9ff;
    border-radius: 15px;
    width: fit-content;
}

.category-icon {
    margin-right: 6px;
    font-size: 1.1em;
}

.category-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.clothing-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
}

.clothing-year {
    color: #666;
    font-size: 0.9em;
}

.clothing-price {
    font-weight: bold;
    color: #e24a90;
    font-size: 1.1em;
}

.clothing-description {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clothing-link {
    display: inline-block;
    margin-top: 8px;
    color: #1e3c72;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid #1e3c72;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.clothing-link:hover {
    background: #1e3c72;
    color: white;
    text-decoration: none;
}

.no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

/* Loading indicator */
.loading-indicator {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading indicator styles */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error state styles */
.no-items {
    text-align: center;
    padding: 40px 20px;
    color: #FFF;
    font-size: 16px;
}

.no-items button {
    transition: all 0.3s ease;
}

.no-items button:hover {
    background: #2980b9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}