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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #333;
}

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

header {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-bottom: 40px;
}

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

header h1 {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0;
    text-align: left;
}

.back-to-catalog {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-to-catalog:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}

.perfume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.perfume-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.perfume-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    padding: 25px;
    color: white;
}

.card-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.brand {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.card-body {
    padding: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-of-type {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: #555;
}

.value {
    color: #333;
    text-transform: capitalize;
}

.accords {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.accord-tag {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stock-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-label {
    font-weight: 600;
    color: #555;
}

.stock-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.stock-value.in-stock {
    color: #28a745;
}

.stock-value.low-stock {
    color: #dc3545;
}

.card-footer {
    padding: 20px 25px;
    background: #f8f9fa;
}

.btn-detail {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.btn-detail:hover {
    opacity: 0.9;
}

.back-link {
    margin-bottom: 30px;
}

.back-link a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: inline-block;
    transition: background 0.3s ease;
}

.back-link a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.detail-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #1e88e5;
}

.detail-title {
    font-size: 2.5rem;
    color: #1565c0;
    margin-bottom: 10px;
}

.detail-brand {
    font-size: 1.5rem;
    color: #666;
    font-weight: 300;
}

.stock-badge {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
}

.stock-badge.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-badge.low-stock {
    background: #f8d7da;
    color: #721c24;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.detail-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-section h3 {
    font-size: 1.5rem;
    color: #1565c0;
    margin-bottom: 20px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.info-label {
    font-weight: 600;
    color: #555;
}

.info-value {
    color: #333;
    text-transform: capitalize;
}

.notes-section {
    margin-bottom: 25px;
}

.notes-section:last-child {
    margin-bottom: 0;
}

.notes-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.top-notes-title {
    color: #ffc107;
}

.middle-notes-title {
    color: #e91e63;
}

.base-notes-title {
    color: #795548;
}

.notes-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.note-tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.top-note {
    background: linear-gradient(135deg, #ffd54f 0%, #ffc107 100%);
}

.middle-note {
    background: linear-gradient(135deg, #f48fb1 0%, #e91e63 100%);
}

.base-note {
    background: linear-gradient(135deg, #a1887f 0%, #795548 100%);
}

.accords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.accord-badge {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.error-message {
    background: white;
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.error-message h2 {
    color: #dc3545;
    font-size: 2rem;
    margin-bottom: 20px;
}

.error-message p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 0;
    text-align: center;
    color: #666;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .perfume-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .detail-card {
        padding: 25px;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .detail-title {
        font-size: 2rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
