@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0;
    padding: 12px;
    box-shadow: none;
    position: relative;
    z-index: 1;
    border: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Cart Button Styles */
.cart-button {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #10b981, #0d9488);
    color: white;
    padding: 18px 30px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cart-button--compact {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    gap: 0;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.cart-button--inline {
    position: relative;
    top: auto;
    right: auto;
}

.cart-button--compact i {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-button--compact .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ffffff;
    color: #0d9488;
    padding: 2px 6px;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: auto;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    border: 1px solid rgba(13,148,136,0.25);
}

.cart-button:hover {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

.cart-count {
    background: white;
    color: #10b981;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.95em;
    font-weight: 800;
    min-width: 30px;
    text-align: center;
}

/* Floating Header */
.floating-header {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.floating-header nav {
    transition: all 0.3s ease;
}

.floating-header:hover nav {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.floating-header button,
.floating-header a {
    white-space: nowrap;
}

.floating-header #mobileMenu {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product Card Legacy Support */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 280px;
    background: #f1f5f9;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease;
}

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

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.1em;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.product-price {
    font-size: 1.3em;
    color: #10b981;
    margin: 0;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
}

.product-price.original {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.9em;
    margin-right: 8px;
    font-weight: 500;
}

.offer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 10;
}

.price-text {
    color: #64748b;
    font-size: 0.85em;
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981, #0d9488);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.add-to-cart:hover {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.add-to-cart:active {
    transform: translateY(0);
}

/* Categories and Navigation */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.category-card {
    position: relative;
    background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.category-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 70px rgba(16, 185, 129, 0.5);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.category-card p {
    font-size: 1.2em;
    opacity: 0.95;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #10b981, #0d9488);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.back-button:hover {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Cart Page */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    margin-bottom: 15px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

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

.cart-item-name {
    font-size: 1.2em;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1e293b;
}

.cart-item-price {
    color: #10b981;
    font-size: 1.1em;
    margin-bottom: 5px;
    font-weight: 700;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.quantity-btn {
    background: #10b981;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #0d9488;
    transform: scale(1.1);
}

.quantity {
    font-weight: 700;
    font-size: 1.1em;
    min-width: 40px;
    text-align: center;
}

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.remove-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.cart-total {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.5em;
    font-weight: 800;
    color: #1e293b;
}

.quote-button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.3em;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.quote-button:hover {
    background: linear-gradient(135deg, #1da851, #0d7a63);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.quote-button:active {
    transform: translateY(0);
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.product-detail-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-detail-info h2 {
    font-size: 2.5em;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 800;
}

.category-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 1.1em;
    background: white;
    border-radius: 16px;
    margin-top: 20px;
}

.empty-state.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .container {
        padding: 20px 16px;
        border-radius: 0;
    }

    .cart-button {
        top: 15px;
        right: 15px;
        padding: 14px 20px;
        font-size: 0.95em;
    }
    
    .cart-button--compact {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .cart-button--compact .cart-count {
        top: -3px;
        right: -3px;
        font-size: 0.5rem;
        padding: 1px 3px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .category-card {
        padding: 40px 24px;
    }

    .category-card h2 {
        font-size: 2em;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .product-image-wrapper {
        height: 220px;
    }
}