:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
    --danger: #dc2626;
    --success: #16a34a;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Shop Header */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.shop-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark);
}

.product-count {
    color: var(--gray);
    font-size: 14px;
}

.shop-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

.product-card {
    /* Increase padding and overall dimensions */
    padding: 20px; /* Increased from 15px */
    min-height: 400px; /* Set a minimum height */
    width: 290px; /* Ensure it takes full grid width */
    
    /* Optional: Add fixed height if needed */
    /* height: 450px; */
    
    /* Enhance visual appearance */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--dark);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.product-image-container {
    height: 200px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--light-gray);
}

.product-image {
    height: 250px; /* Increased from 200px */
    width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
}

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

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 18px; /* Increased from 16px */
    margin-bottom: 12px; /* Increased spacing */
    min-height: 60px; /* Ensure consistent height */
}
.product-price {
    font-size: 20px; /* Larger price text */
    margin: 15px 0;
}

.current-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.original-price {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.stock-status {
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 4px;
}

.in-stock {
    background-color: rgba(22, 163, 74, 0.1);
    color: var(--success);
}

.out-of-stock {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.product-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid var(--light-gray);
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}



/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link:hover, .page-link.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-title {
        font-size: 14px;
        height: 36px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-colorful {
        width: 100%;
    }
}