:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --light-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-green: #00f2fe;
    --accent-blue: #4facfe;
    --accent-red: #f5576c;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 15px 60px rgba(0,0,0,0.15);
    --border-radius: 15px;
    --border-radius-sm: 8px;
    
    --font-primary: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Space Grotesk', 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Clean Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Fixed Navbar */
.navbar {
    background: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 80px;
    width: 100%;
}

/* Add padding to body to compensate for fixed navbar */
body {
    padding-top: 80px;
}

.navbar-brand {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-nav {
    align-items: center;
    height: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    transition: all 0.2s ease;
    padding: 1rem 1.2rem !important;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(102, 126, 234, 0.08);
}

/* Clean Search Bar */
.input-group {
    min-width: 320px;
    position: relative;
}

.input-group .form-control {
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.95rem;
    background: var(--white);
    transition: all 0.2s ease;
}

.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.input-group.focused {
    transform: scale(1.01);
}

.input-group .btn {
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-left: none;
    border-radius: 0 50px 50px 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    transition: all 0.2s ease;
}

.input-group .btn:hover {
    background: var(--secondary-color);
}

/* Cart Button - Styles moved to Cart Enhancement section */

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    margin-bottom: 4rem;
}

.carousel-item img {
    height: 70vh;
    object-fit: cover;
    border-radius: 0 0 50px 50px;
}

.carousel-caption {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 2rem;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    color: var(--text-color) !important;
}

.carousel-caption h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Modern Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-gradient);
}

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

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success-gradient);
    color: var(--white);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Clean Modern Cards */
.card, .product-card, .category-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.card:hover, .product-card:hover, .category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(102, 126, 234, 0.2);
}

.card-img-top {
    transition: all 0.2s ease;
    object-fit: cover;
    height: 250px;
}

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

.card-body {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.card-title, .card h3, .card h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Clean card styles */

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.5);
}

.categories-section, .featured-products, .products-section {
    padding: 5rem 0;
    position: relative;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    z-index: -1;
}

/* Expert Guidance */
.expert-guidance {
    background: var(--white);
    margin: 4rem 0;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.expert-guidance::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.expert-guidance img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.expert-guidance img:hover {
    transform: scale(1.02);
}

.list-unstyled li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.list-unstyled li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Newsletter */
.newsletter-section {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::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 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(360deg); }
}

.newsletter-section h2 {
    color: var(--white);
    background: none;
    -webkit-text-fill-color: initial;
}

.newsletter-form .form-control {
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 15px 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 700;
}

.newsletter-form .btn:hover {
    background: var(--secondary-gradient);
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--dark-gradient);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--white);
    background: none;
    -webkit-text-fill-color: initial;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--accent-green);
    transform: translateX(5px);
}

/* Badges */
.badge {
    border-radius: 50px;
    padding: 0.5em 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-primary {
    background: var(--primary-gradient) !important;
}

.badge.bg-success {
    background: var(--success-gradient) !important;
}

.badge.bg-info {
    background: var(--light-gradient) !important;
    color: var(--text-color) !important;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
}

.alert-info {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    color: var(--text-color);
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 1rem 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* Product Features */
.product-features {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.product-features h3 {
    margin-bottom: 1.5rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 0.8rem 0;
    position: relative;
    padding-left: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-size: 1.2rem;
}

/* Price Box */
.price-box {
    background: var(--success-gradient);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

.price-box h2, .price-box h3 {
    color: var(--white);
    background: none;
    -webkit-text-fill-color: initial;
    margin: 0;
    font-size: 2.5rem;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption {
        padding: 1.5rem;
        bottom: 1rem;
    }
    
    .input-group {
        min-width: 250px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .categories-section, .featured-products, .products-section {
        padding: 3rem 0;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

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

/* Modern Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    padding: 2rem 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-top: 3px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.cookie-consent.show {
    bottom: 0;
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 3rem;
    color: #f39c12;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h5 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.cookie-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

.cookie-buttons .btn-outline-light:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.cookie-buttons .btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border: none;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.cookie-buttons .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.cookie-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.cookie-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-icon {
        font-size: 2.5rem;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Snipcart Styling */
.snipcart-add-item {
    background: var(--success-gradient) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    color: var(--white) !important;
}

.snipcart-add-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Dropdown styles removed - using flat menu structure */

/* Search Form Enhancements */
.search-form {
    position: relative;
    min-width: 350px;
}

.search-form .input-group {
    box-shadow: var(--shadow-sm);
    border-radius: 50px;
    overflow: hidden;
}

/* Navbar Brand Enhancement */
.navbar-brand {
    font-size: 2rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    background: var(--primary-gradient);
    color: var(--white);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Enhanced Nav Items */
.nav-item .nav-link i {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-item .nav-link:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Cart Enhancement */
.cart-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.cart-button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.snipcart-items-count {
    background: var(--accent-red);
    color: var(--white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    top: -8px;
    right: -8px;
    border: 2px solid var(--white);
}

.snipcart-total-price {
    display: none !important;
}

/* Mobile Responsiveness for Navbar */
@media (max-width: 991px) {
    .search-form {
        min-width: 100%;
        margin: 1rem 0;
    }
    
    .navbar-nav {
        text-align: center;
        gap: 0.5rem;
    }
    
    .cart-button {
        justify-content: center;
        margin: 0.5rem 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Webkit */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

body::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
    background-clip: content-box;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

/* Enhanced Focus States */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus, .btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .snipcart-checkout, .cookie-consent {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card, .product-card, .category-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
