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

:root {
    --primary-yellow: #FFD700;
    --secondary-pink: #FF6B6B;
    --tertiary-teal: #4ECDC4;
    --dark-blue: #2C3E50;
    --light-bg: #ECF0F1;
    --white: #FFFFFF;
    --text-main: #333333;
    --border-radius: 20px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(45deg, var(--primary-yellow), var(--secondary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
}

h3 {
    font-size: 2rem;
    color: var(--dark-blue);
}

h4 {
    font-size: 1.5rem;
    color: var(--dark-blue);
}

h5 {
    font-size: 1.25rem;
    color: var(--dark-blue);
}

h6 {
    font-size: 1rem;
    color: var(--dark-blue);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-pink);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-yellow);
    text-decoration: none;
}

ul, ol {
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

code {
    background-color: var(--light-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

pre {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--light-bg);
}

th {
    background-color: var(--dark-blue);
    color: var(--white);
    font-weight: 600;
}

.header {
    background: var(--dark-blue);
    color: var(--white);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: auto;
    overflow: hidden;
}

.header-container,
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    min-height: 50px;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary-yellow);
}

.logo span {
    display: inline-block;
}

.logo .logo-glee {
    color: var(--white);
    font-weight: 700;
}

.logo .logo-ful {
    color: var(--secondary-pink);
    font-style: italic;
}

.logo:hover {
    text-decoration: none;
}

.header-nav,
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.nav-menu,
.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-yellow);
}

.nav-link.active {
    background-color: var(--primary-yellow);
    color: var(--dark-blue);
}

.nav-link i {
    color: var(--primary-yellow);
}

.nav-link:hover i {
    color: var(--primary-yellow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.user-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.user-link:hover {
    color: var(--primary-yellow);
    background-color: rgba(255, 255, 255, 0.1);
}

.user-link i {
    color: var(--primary-yellow);
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-pink);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    z-index: 10;
    animation: badge-pop 0.3s ease-out;
}

.cart-badge.show {
    display: flex;
}

@keyframes badge-pop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.btn i {
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--dark-blue);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    background: #FFC700;
}

.btn-secondary {
    background: var(--secondary-pink);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: #FF5555;
}

.btn-accent {
    background: var(--tertiary-teal);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    background: #3DBDB5;
}

.btn-dark {
    background: var(--dark-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
    background: #1a252f;
}

.btn-light {
    background: var(--light-bg);
    color: var(--dark-blue);
    box-shadow: 0 4px 15px rgba(236, 240, 241, 0.5);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 240, 241, 0.7);
    background: #d5dbdd;
}

.btn-outline {
    background: transparent;
    color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
}

.btn-outline:hover {
    background: var(--primary-yellow);
    color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.card-text {
    flex: 1;
    margin-bottom: 1rem;
    color: #666;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--light-bg);
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-pink);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.card-meta i {
    color: var(--primary-yellow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--light-bg);
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--text-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--tertiary-teal);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.form-control::placeholder {
    color: #999;
}

.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--tertiary-teal);
}

.form-check-label {
    font-weight: 500;
    color: var(--dark-blue);
}

.form-range {
    width: 100%;
    height: 1rem;
    accent-color: var(--tertiary-teal);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.flex {
    display: flex;
}

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

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

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

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    padding: 2rem 0;
}

.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-yellow), var(--secondary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.hero {
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,138.7C672,128,768,128,864,149.3C960,171,1056,213,1152,213.3C1248,213,1344,171,1392,149.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background: none;
    -webkit-text-fill-color: initial;
}

.brand-accent {
    background: linear-gradient(45deg, var(--primary-yellow), var(--secondary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.hero p {
    font-size: 1.5rem;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.features {
    background: var(--white);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.feature-text {
    color: #666;
    line-height: 1.6;
}

.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-pink);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 20px 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.footer i {
    color: var(--primary-yellow);
}

.footer .contact-info,
.footer .footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.footer .contact-info p,
.footer .footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 !important;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: var(--transition);
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.footer .contact-info p:hover,
.footer .footer-contact-info p:hover {
    color: var(--primary-yellow) !important;
}

.footer .contact-info p i,
.footer .footer-contact-info p i {
    width: 20px;
    text-align: center;
    color: var(--primary-yellow) !important;
}

.footer .contact-info p a,
.footer .footer-contact-info p a {
    color: var(--primary-yellow) !important;
    opacity: 0.9;
}

.footer .contact-info p a:hover,
.footer .footer-contact-info p a:hover {
    opacity: 1;
    color: var(--secondary-pink) !important;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-yellow);
    color: var(--dark-blue);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
}

.cart-widget {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--tertiary-teal);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: var(--tertiary-teal);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: var(--primary-yellow);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: var(--secondary-pink);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: var(--tertiary-teal);
}

.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.flash-message {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.flash-success {
    background-color: var(--tertiary-teal);
    color: white;
}

.flash-error {
    background-color: var(--secondary-pink);
    color: white;
}

.flash-info {
    background-color: var(--primary-yellow);
    color: var(--dark-blue);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--dark-blue);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: static;
        background: var(--dark-blue);
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .user-panel {
        order: 2;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        background: none;
        border: none;
        color: var(--white);
        cursor: pointer;
        font-size: 1.5rem;
        order: 1;
    }

    .flash-messages {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}
