/* =========================

1. BASE STYLES
   ========================= */

body {
font-family: Arial, sans-serif;
margin: 0;
background: #f9f9f9;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}

/* =========================
2. UTILITIES
========================= */

.card {
padding: 15px;
border: 1px solid #ddd;
border-radius: 8px;
background: #fff;
transition: 0.2s;
}

.card:hover {
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.price {
color: #007bff;
font-weight: bold;
}

.alert {
padding: 10px;
border-radius: 5px;
margin-bottom: 15px;
}

.alert.error {
background: #ffe0e0;
color: #b30000;
}

.alert.success {
background: #e0ffe0;
color: #006600;
}

/* =========================
3. HEADER
========================= */

.site-header {
background: #fff;
border-bottom: 1px solid #ddd;
}

.header-flex {
display: flex;
align-items: center;
justify-content: space-between;
}

.main-menu {
display: flex;
align-items: center;
}

.main-menu a {
margin-right: 20px;
text-decoration: none;
color: #333;
font-weight: 500;
}

.main-menu a:hover {
color: #007bff;
}

.logo img {
height: 70px;
}

/* =========================
4. FOOTER
========================= */

.site-footer {
background: #222;
color: #fff;
padding: 30px 0;
margin-top: 40px;
}

.footer-menu {
text-align: center;
margin-bottom: 15px;
}

.footer-menu a {
margin: 0 10px;
color: #ccc;
text-decoration: none;
}

.footer-menu a:hover {
color: #fff;
}

.footer-bottom {
text-align: center;
font-size: 14px;
}

/* =========================
5. SLIDER
========================= */

.slideshow-container {
max-width: 100%;
position: relative;
}

.slider-slide {
display: none;
}

.slider-slide img {
width: 100%;
height: 400px;
object-fit: cover;
}

.slider-text {
color: #fff;
position: absolute;
bottom: 20px;
left: 20px;
}

.dot {
height: 12px;
width: 12px;
margin: 5px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
}

.dot.active {
background-color: #333;
}

.fade {
animation: fade 1s;
}

@keyframes fade {
from {opacity: 0.4}
to {opacity: 1}
}

/* =========================
6. ABOUT SECTION
========================= */

.about-section {
    padding: 80px 0;
    background: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image,
.about-text {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-subtitle {
    color: #007bff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text h2 {
    font-size: 36px;
    margin: 10px 0 20px;
    line-height: 1.3;
}

.about-description {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-highlights {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.about-highlights li {
    margin-bottom: 10px;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.btn:hover {
    background: #0056b3;
}

/* MOBILE */
@media (max-width: 768px) {

    .about-content {
        flex-direction: column;
    }

    .about-text {
        text-align: center;
    }
}

/* =========================
8. CATEGORIES
========================= */

.categories-section {
padding: 50px 20px;
}

.category-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 20px;
}

.category-card {
text-align: center;
}

.category-card img {
width: 120px;
height: 120px;
object-fit: cover;
border-radius: 6px;
margin-bottom: 10px;
}

.category-card h3 {
font-size: 16px;
}

/* =========================
8A. CTA LAYOUT
========================= */

.cta-section.center {
    text-align: center;
}

.cta-section.left {
    text-align: left;
}

.cta-section.dark {
    color: #fff;
}

.cta-section.light {
    color: #222;
}

.cta-section {
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    position: relative;
    color: #fff;
    text-align: center;
}

.cta-overlay {
    background: rgba(0,0,0,0.6);
    padding: 80px 20px;
}

.cta-subtitle {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00bfff;
    font-weight: bold;
}

.cta-section h2 {
    font-size: 42px;
    margin: 15px 0;
}

.cta-section p {
    max-width: 700px;
    margin: auto;
    line-height: 1.8;
    margin-bottom: 30px;
}

.cta-section .btn {
    display: inline-block;
    padding: 14px 28px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

.cta-section .btn:hover {
    background: #0056b3;
}

/* =========================
9. PAGE LAYOUT
========================= */

.page-section {
padding: 60px 20px;
}

.page-layout {
display: flex;
gap: 30px;
}

.page-image {
flex: 0 0 300px;
}

.page-image img {
width: 100%;
border-radius: 8px;
}

.page-content {
flex: 1;
line-height: 1.7;
}

/* =========================
10. CONTACT FORM
========================= */

.contact-form {
max-width: 500px;
}

.contact-form input,
.contact-form textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 6px;
}

.contact-form button {
background: #007bff;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 6px;
}

/* =========================
10A. PRODUCTS LISTING PAGE
(products.php)
========================= */

.products-page {
    padding: 60px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* PRODUCT CARD */

.product-card {
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: 0.3s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    margin-bottom: 10px;
}

.product-card a {
    text-decoration: none;
    color: #222;
}

.product-card .price {
    color: #007bff;
    font-weight: bold;
    margin-bottom: 10px;
}

/* PAGINATION */

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #eee;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.pagination a.active {
    background: #007bff;
    color: #fff;
}

/* =========================
10B. SINGLE PRODUCT PAGE
(product.php)
========================= */

.product-detail {
    padding: 80px 20px 60px;
}

.product-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* LEFT SIDE */

.product-text {
    flex: 1;
}

.product-text h1 {
    margin-bottom: 15px;
}

.product-text .price {
    font-size: 24px;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-text p {
    line-height: 1.8;
    color: #555;
}

/* RIGHT SIDE */

.product-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.product-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: 0.3s;
}

.product-gallery img:hover {
    transform: scale(1.03);
}

/* =========================
11. RESPONSIVE
========================= */

@media (max-width: 768px) {

	.about-content,
	.product-layout,
	.page-layout {
    flex-direction: column;
    text-align: center;
}

	.product-images {
    grid-template-columns: repeat(2, 1fr);
}

    .product-layout {
        flex-direction: column;
    }


}
