/* style.css */

/* General Body and HTML Reset */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #1a202c;
    color: #e2e8f0;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Product Card Styling */
.product-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 288px;
    object-fit: contain;
    border-bottom: 1px solid #e2e8f0;
}

.product-card-content {
    padding: 1.25rem;
}

.product-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.product-card-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-card-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 1.25rem;
}

.whatsapp-button {
    background-color: #28a745;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    display: block;
    width: 100%;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

.whatsapp-button:hover {
    background-color: #218838;
}

/* Admin and Modal Styles */
.admin-container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    color: #343a40;
}

.form-input {
    border: 1px solid #ced4da;
    color: #495057;
}

.btn-primary { background-color: #007bff; }
.btn-primary:hover { background-color: #0056b3; }

.btn-secondary { background-color: #6c757d; }
.btn-secondary:hover { background-color: #5a6268; }

.message-box {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message-box {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal Overlay & Content */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content.dark-bg {
    background-color: #2d3748;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    color: #e2e8f0;
}

.modal-close-btn.dark-text {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #e2e8f0;
    cursor: pointer;
}

.modal-list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #4a5568;
}

.modal-list-item:last-child {
    border-bottom: none;
}

/* Admin Panel Specifics */
body.admin-body { background-color: #1a202c; color: #e2e8f0; }
#user-id-display { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); margin-top: 0.5rem; word-break: break-all; }
.admin-tab-active { background-color: #2a4365; color: #fff; font-weight: 600; }


.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Change this number to 3 if you want more text */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    min-height: 2.5rem; /* Keeps the box height consistent even for short text */
}
.hidden {
    display: none !important;
}

