/* Header Component Styles for Custom Header */

/* Base styles for the custom-header component */
custom-header {
    display: block;
    width: 100%;
}

/* Navigation styles */
.custom-header-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    width: 100%;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

/* Logo styles */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #ffbf00 0%, #f5af00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    line-height: 1;
}

.logo-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: -0.125rem;
}

/* Desktop navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ffbf00;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffbf00, #f5af00);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Desktop actions */
.desktop-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.action-link {
    color: #6b7280;
    transition: color 0.2s;
}

.action-link:hover {
    color: #ffbf00;
}

.action-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: block;
    color: #6b7280;
    transition: color 0.2s;
}

.mobile-menu-btn:hover {
    color: #1f2937;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #ffbf00 0%, #f5af00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-logo-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.mobile-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: bold;
    color: #1f2937;
}

.mobile-close-btn {
    color: #6b7280;
    transition: color 0.2s;
}

.mobile-close-btn:hover {
    color: #1f2937;
}

.mobile-close-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
    background-color: #f9fafb;
    color: #ffbf00;
}

.mobile-nav-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-nav-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

.mobile-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-actions {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.mobile-action-link {
    color: #6b7280;
    padding: 0.5rem;
    transition: color 0.2s;
}

.mobile-action-link:hover {
    color: #ffbf00;
}

.mobile-action-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-cart-link {
    position: relative;
}

.mobile-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.copyright {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: #6b7280;
}