:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --brand-green: #59e00a;
    --brand-dark: #083f0c;
    --brand-glow: rgba(89, 224, 10, 0.3);
}

/* Catalog Grid Refinement */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

/* Modern Glass Card */
.product-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    border-color: var(--brand-green);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 20px var(--brand-glow);
}

/* Image Showcase with Hover Overlay */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    border-radius: 20px;
    margin: 12px;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 63, 12, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-icon {
    background: var(--brand-green);
    color: var(--brand-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.product-card:hover .overlay-icon {
    transform: translateY(0);
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    padding: 6px 14px;
    background: var(--brand-green);
    color: var(--brand-dark);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px var(--brand-glow); }
    100% { transform: scale(1); }
}

/* Category Sections */
.catalog-category-section {
    margin-bottom: 60px;
}

.category-heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 5px solid var(--brand-green);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Empty Catalog State */
.empty-catalog {
    text-align: center;
    padding: 80px 20px;
    background: var(--glass-bg);
    border-radius: 24px;
    border: 1px dashed var(--glass-border);
    color: var(--text-muted);
}

.empty-catalog i {
    font-size: 4rem;
    color: var(--brand-green);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-catalog p {
    font-size: 1.2rem;
}

/* Loading State */
.catalog-loading {
    text-align: center;
    padding: 100px 0;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--glass-border);
    border-bottom-color: var(--brand-green);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Content Aesthetics */
.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    color: var(--brand-green);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.product-title {
    font-size: 1.5rem;
    color: var(--brand-dark);
    margin-bottom: 1rem;
    font-weight: 800;
}

.product-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Modern Pricing & Button */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    background: rgba(240, 249, 240, 0.5);
    padding: 1rem 1.5rem;
    margin: 0 -1.5rem -1.5rem;
    border-top: 1px solid var(--glass-border);
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-dark);
    display: flex;
    align-items: baseline;
}

.product-price span {
    font-size: 0.9rem;
    margin-right: 4px;
}

.btn-buy {
    background: var(--brand-dark);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background: var(--brand-green);
    color: var(--brand-dark);
    transform: scale(1.05);
}

/* Dark Mode Context Fix (if body has dark class) */
.dark-mode .product-card {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .product-title {
    color: white;
}

.dark-mode .product-description {
    color: #94a3b8;
}

.dark-mode .product-footer {
    background: rgba(0, 0, 0, 0.2);
}

.dark-mode .product-price {
    color: var(--brand-green);
}
