/* Material UI Design - Blue & White Theme */
:root {
    --primary-blue: #1976d2;
    --primary-blue-dark: #1565c0;
    --primary-blue-light: #42a5f5;
    --secondary-blue: #2196f3;
    --accent-blue: #0d47a1;
    --white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border-light: rgba(33, 150, 243, 0.12);
    --border-medium: rgba(33, 150, 243, 0.24);
    --surface: #ffffff;
    --surface-hover: rgba(25, 118, 210, 0.04);
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Transparent Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(25, 118, 210, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 118, 210, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Header - Material Design App Bar */
.header {
    background: var(--white);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    height: 56px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

/* Cart Header */
.cart-header {
    position: relative;
}

.cart-button {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--primary-blue);
    padding: 0.625rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cart-button:hover {
    background: var(--surface-hover);
    border-color: var(--primary-blue);
}

.cart-button:active {
    background: rgba(25, 118, 210, 0.08);
}

.cart-count {
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 0;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Products Container */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Product Card - Material Design Card */
.product-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--border-medium);
    background: var(--surface-hover);
}

.product-image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(25, 118, 210, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 118, 210, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

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

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: 0;
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-blue);
    letter-spacing: 0;
}

.add-to-cart-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 36px;
}

.add-to-cart-btn:hover {
    background: var(--primary-blue-dark);
}

.add-to-cart-btn:active {
    background: var(--accent-blue);
}

.add-to-cart-btn:focus {
    outline: 2px solid var(--primary-blue-light);
    outline-offset: 2px;
}

/* Cart Sidebar - Material Design Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--white);
    border-left: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header-sidebar {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
}

.cart-header-sidebar h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0;
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.close-cart:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-light);
}

.empty-cart-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-size: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--white);
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.cart-item-price {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--primary-blue);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.quantity-btn:hover {
    background: var(--surface-hover);
    border-color: var(--primary-blue);
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
}

.remove-item-btn {
    background: transparent;
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.remove-item-btn:hover {
    background: rgba(244, 67, 54, 0.08);
    border-color: #f44336;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--white);
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: 0;
}

.checkout-btn {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
}

.checkout-btn:hover {
    background: var(--primary-blue-dark);
}

.checkout-btn:active {
    background: var(--accent-blue);
}

.checkout-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    background: var(--text-secondary);
}

.checkout-btn:focus {
    outline: 2px solid var(--primary-blue-light);
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animated Elements */
.hero-section {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.product-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
}

.logo {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.site-title {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.cart-button {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.cart-count {
    animation: pulse 2s ease-in-out infinite;
}

.add-to-cart-btn {
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:active {
    animation: pulse 0.3s ease;
}

.product-image {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.1) rotate(1deg);
}

.product-price {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

/* Footer */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border-light);
    margin-top: 4rem;
    padding: 3rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(25, 118, 210, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 118, 210, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    opacity: 0.5;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.footer-section:nth-child(1) {
    animation-delay: 0.7s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.8s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.9s;
}

.footer-section:nth-child(4) {
    animation-delay: 1s;
}

.footer-section:nth-child(5) {
    animation-delay: 1.1s;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    letter-spacing: 0;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-logo-container {
    margin-bottom: 1rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.footer-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.2s both;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Additional Flashy Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.cart-icon {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.product-card:hover .add-to-cart-btn {
    animation: pulse 0.5s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .products-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .add-to-cart-btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Audio Play Overlay */
.audio-play-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.audio-play-content {
    background: var(--white);
    padding: 2rem 3rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.audio-play-content p {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.audio-play-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 150px;
}

.audio-play-btn:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.05);
}

.audio-play-btn:active {
    background: var(--accent-blue);
    transform: scale(0.98);
}
