/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vi-blue: #083673;
    --vi-background: #effcf6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--gray-100);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.header-subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin: 0;
}

.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--gray-600);
    transition: all 0.2s;
    text-decoration: none;
}

.instagram-link:hover {
    color: var(--gray-900);
    transform: scale(1.1);
}

.instagram-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Main */
.main {
    padding: 3rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.75;
}

/* Hero Image */
.hero-image {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.logo-img {
    width: 16rem;
    height: auto;
    object-fit: contain;
}

/* Search Section */
.search-section {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Search Bar */
.search-bar {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gray-400);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 3rem;
    padding-left: 3rem;
    padding-right: 1.5rem;
    font-size: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    background-color: var(--gray-50);
    color: var(--gray-900);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--gray-400);
    background-color: #ffffff;
}

.search-input::placeholder {
    color: var(--gray-400);
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.filter-icon {
    width: 1rem;
    height: 1rem;
    color: var(--gray-400);
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background-color: var(--gray-100);
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-btn:hover {
    background-color: var(--gray-200);
}

.filter-btn.active {
    background-color: var(--gray-900);
    color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.filter-count {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.75;
}

/* Products Section */
.products-section {
    margin-top: 3rem;
}

.products-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.category-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gray-900);
}

.category-count {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.products-grid {
    display: grid;
    gap: 1rem;
}

.perfume-card {
    background-color: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.perfume-card:hover {
    border-color: var(--gray-300);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.perfume-card.no-link {
    cursor: default;
}

.perfume-card.no-link:hover {
    border-color: var(--gray-200);
    box-shadow: none;
}

.perfume-info {
    flex: 1;
    min-width: 0;
}

.perfume-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.perfume-card:hover .perfume-name {
    color: var(--gray-700);
}

.perfume-code {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.perfume-code-label {
    font-weight: 500;
}

.perfume-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.perfume-link-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.perfume-card:hover .perfume-link-icon {
    background-color: var(--gray-200);
}

.perfume-link-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gray-600);
}

/* Loading State */
.loading {
    padding: 2rem 0;
}

.loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-header {
    height: 2rem;
    width: 8rem;
    background-color: var(--gray-200);
    border-radius: 0.5rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-item {
    height: 5rem;
    width: 100%;
    background-color: var(--gray-200);
    border-radius: 0.75rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Error State */
.error {
    text-align: center;
    padding: 5rem 0;
}

.error-text {
    color: #dc2626;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.error-subtext {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Empty State */
.empty {
    text-align: center;
    padding: 5rem 0;
}

.empty-text {
    color: var(--gray-800);
    font-weight: 500;
    font-size: 1.125rem;
}

/* Footer */
.footer {
    margin-top: 6rem;
    border-top: 1px solid var(--gray-100);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--gray-500);
}

