﻿/* Global Styles & Typography */



/* Navbar Styles (Common for both pages) */



/* --- Styles for product.php --- */

/* Filters on product.php */
.filters {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #e9ecef;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filters label {
    font-weight: bold;
    color: #495057;
    margin-left: 5px;
}

.filters select, .filters input[type="text"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    font-size: 1em;
	font-family: 'Cairo';
    min-width: 200px;
    flex-grow: 1;
}

/* Products Grid on product.php */
#products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    min-height: 250px;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card h3 {
    font-size: 1.4em;
    margin: 10px 0;
    color: #440000;
}

.product-card p {
    font-size: 0.95em;
    color: #6c757d;
    margin-bottom: 15px;
}

.product-card a.details-btn {
    display: inline-block;
    text-decoration: none;
    background-color: #440000;
    color: white;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.product-card a.details-btn:hover {
    background-color: #dd9907;
}

/* Pagination on product.php */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination-container button, .pagination-container span {
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #440000;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.9em;
}

.pagination-container button:hover, .pagination-container span:not(.ellipsis):hover {
    background-color: #440000;
    color: #fff;
    border-color: #440000;
}

.pagination-container button.active {
    background-color: #440000;
    color: #fff;
    border-color: #440000;
    cursor: default;
}

.pagination-container button:disabled {
    color: #6c757d;
    background-color: #e9ecef;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.pagination-container span.ellipsis {
    border: none;
    background-color: transparent;
    cursor: default;
    color: #6c757d;
    padding: 8px 0; /* Adjust padding for ellipsis */
}

/* Loader and No Products Message (Common for product grid) */
.loader, .no-products {
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
    width: 100%;
    grid-column: 1 / -1;
}

.no-products {
    color: #6c757d;
}

/* --- Styles for show.php --- */

/* Navbar specific for show.php if needed - h1 size override */
.navbar.show-page h1 {
    font-size: 1.8em;
    text-align: left; /* Ensure title is on the left */
}


/* Container specific for show.php */
.container.show-page-container {
    width: 85%;
    max-width: 1000px; /* Max width for product details page */
    padding: 30px;
    box-shadow: 0 0 20px rgba(0,0,0,0.07);
}

/* Product Details Layout on show.php */
.product-layout {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 30px;
    align-items: flex-start;
}

@media (min-width: 768px) { /* For larger screens */
    .product-layout {
        grid-template-columns: 2fr 3fr; /* Image column, details column */
    }
}

.product-image-gallery img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background-color: #fff;
}

.product-info h2 {
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #440000;
    border-bottom: 2px solid #440000;
    padding-bottom: 10px;
}

.product-info .category-badge {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.product-parameters {
    margin-top: 25px;
}

.product-parameters h3 {
    font-size: 1.6em;
    margin-bottom: 12px;
    color: #495057;
}

.product-parameters ul {
    list-style: none;
    padding: 0;
}

.product-parameters li {
    background-color: #e9ecef;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 1em;
    border-left: 4px solid #440000;
}

/* Messages on show.php (loader, error) */
.message { /* General message styling */
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
}
.message.error {
    color: #dc3545;
}

/* Placeholder for any specific content in product-details-content if not product-layout */
#product-details-content {
    /* Styles if needed when product-layout is not directly inside */
}