/* public_html/assets/css/style.css */
/* Custom styles for Warangal.shop */

:root {
    --primary-color: #007bff; /* Bootstrap primary blue */
    --secondary-color: #6c757d; /* Bootstrap secondary grey */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif; /* A common, clean font */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.navbar {
    background-color: var(--dark-color) !important;
}

.navbar .nav-link, .navbar .navbar-brand {
    color: var(--text-light) !important;
}

.navbar .nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 30px 0;
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Product Card Styles */
.card.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.card.product-card .card-body {
    padding: 15px;
}

.card.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    min-height: 50px; /* Ensure consistent height for titles */
}

.card.product-card .card-text.price {
    font-size: 1.25rem;
    color: var(--success-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.card.product-card .btn-add-to-cart {
    width: 100%;
}

/* Cart Specific Styles */
.cart-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    margin: 0 5px;
    height: 30px;
    border-radius: 4px;
}

/* Checkout Page */
.delivery-options .form-check-label {
    font-weight: bold;
}

.delivery-options .form-check-input {
    margin-top: 0.3rem;
}

#map-canvas {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
}

/* Admin Panel - Basic Styles */
.admin-sidebar {
    background-color: var(--dark-color);
    min-height: 100vh;
    padding-top: 20px;
}

.admin-sidebar .nav-link {
    color: var(--text-light);
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-content {
    padding: 20px;
}

.table img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}