/* Modern Product Card Styles */
:root {
    --p-green: #2e7d32;
    --card-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --card-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.p-card-modern { 
    min-width: 0; 
    flex: 0 0 auto; 
    background: white; 
    border-radius: 16px; 
    overflow: hidden; 
    border: 1px solid #f1f5f9; 
    position: relative; 
    transition: all 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
}

.p-card-modern:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--card-hover); 
}

.p-img-box { 
    height: 250px; 
    width: 100%; 
    position: relative; 
    background: white; 
    overflow: hidden; 
}

.p-img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    transition: 0.5s; 
    padding: 0; 
}

.p-card-modern:hover .p-img { 
    transform: scale(1.08); 
}

.stock-tag { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: #ef4444; 
    color: white; 
    border-radius: 6px; 
    padding: 4px 8px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    z-index: 2; 
}

.action-overlay { 
    position: absolute; 
    bottom: -50px; 
    left: 0; 
    width: 100%; 
    padding: 10px; 
    display: flex; 
    justify-content: center; 
    transition: 0.3s; 
    background: rgba(255,255,255,0.9); 
    backdrop-filter: blur(4px); 
}

.p-card-modern:hover .action-overlay { 
    bottom: 0; 
}

.p-info { 
    padding: 16px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.p-cat { 
    font-size: 0.8rem; 
    color: #94a3b8; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.p-title { 
    font-size: 1.1rem; 
    margin: 6px 0 10px; 
    font-weight: 700; 
    color: #0f172a; 
    line-height: 1.4; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.p-price-row { 
    display: flex; 
    align-items: baseline; 
    gap: 8px; 
}

.p-price { 
    font-size: 1.25rem; 
    font-weight: 800; 
    color: var(--p-green); 
}

.p-old { 
    font-size: 0.9rem; 
    color: #cbd5e1; 
    text-decoration: line-through; 
}

.btn-add-modern { 
    width: 100%; 
    padding: 12px; 
    border: 2px solid var(--p-green); 
    background: transparent; 
    color: var(--p-green); 
    font-weight: 600; 
    border-radius: 8px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    transition: 0.2s; 
}

.btn-add-modern:hover { 
    background: var(--p-green); 
    color: white; 
}

.btn-add-modern:disabled { 
    border-color: #cbd5e1; 
    background: #cbd5e1; 
    color: white; 
    cursor: not-allowed; 
}

/* Shop Page Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 10px 0;
}

@media (max-width: 1200px) { 
    .products-grid { grid-template-columns: repeat(4, 1fr); } 
}
@media (max-width: 768px) { 
    .products-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    } 
    .p-img-box { height: 180px; }
}

