*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --primary-color: #a2d2ff;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent-color: #ffafcc;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Flexbox utilities for sticky footer */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-grow-1 { flex-grow: 1; }
.min-vh-100 { min-height: 100vh; }
.mt-auto { margin-top: auto; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.flex-wrap { flex-wrap: wrap; }
.gap-3 { gap: 1rem; }

/* Main container padding for fixed header */
.main-container {
    padding-top: 120px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    z-index: 1000;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand img {
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-btn {
    padding: 8px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    font-weight: 500;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-btn.primary {
    background: var(--primary-color);
    color: #302b63;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #a2d2ff, #ffafcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

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

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

/* Section styling */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Product Specifics */
.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 15px 0;
    color: var(--primary-color);
}

.product-price .currency {
    margin-right: 4px;
}

.product-price small {
    font-size: 0.8em;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Footer */
.glass-footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-top: 60px;
    color: var(--text-muted);
}
/* New additions for component compatibility */

.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.glass-btn.primary {
    background: var(--primary-color);
    color: #1a1a2e; /* Dark text for contrast */
    font-weight: 600;
}

.glass-btn.w-100 {
    width: 100%;
    display: flex;
}

.gradient-text {
    background: linear-gradient(135deg, #a2d2ff 0%, #ffafcc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 100%;
}

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    padding: 30px 20px;
    height: 100%;
    transition: transform 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.category-card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.category-card p {
    margin: 8px 0 0 0;
    font-size: 0.9rem;
    min-height: 2.5em;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.category-icon img {
    max-width: 60px;
    height: auto;
}

.card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
}

.card-img-placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(162, 210, 255, 0.1) 0%, rgba(255, 175, 204, 0.1) 100%);
    border-bottom: 1px solid var(--glass-border);
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.6;
}

.glass-card.product-card {
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
}

.card-actions {
    padding: 0 20px 20px 20px;
    width: 100%;
}

.card-actions .glass-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.product-title {
    margin: 0 0 5px 0;
    font-size: 1.25rem;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Spacing utilities */
.m-0 { margin: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.ms-2 { margin-left: 0.5rem; }
.p-3 { padding: 1rem; }
.p-5 { padding: 3rem; }
.ps-2 { padding-left: 0.5rem; }

/* Display utilities */
.small { font-size: 0.875rem; }
.lead { font-size: 1.25rem; font-weight: 300; }
.display-3 { font-size: 3rem; font-weight: 700; }
.display-4 { font-size: 2.5rem; font-weight: 700; }
.display-5 { font-size: 2rem; font-weight: 700; }
.fw-bold { font-weight: 700; }

/* Opacity utilities */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Row/Col utilities */
.row { display: flex; flex-wrap: wrap; margin-left: -0.75rem; margin-right: -0.75rem; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.spacer-lg { height: 60px; }
.spacer-xl { height: 100px; }

/* Store page specifics */
.category-section {
    margin-bottom: 60px;
}

.category-section:last-child {
    margin-bottom: 40px;
}

/* Footer link styling */
.glass-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.glass-footer a:hover {
    opacity: 0.8;
}
