/* c:/xampp/htdocs/cloth/css/style.css */

/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: var(--light-gray); /* soft sand */
    color: var(--content-text); /* deep charcoal for body text */
}

a {
    color: var(--primary-color); /* primary coral */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Content Sections --- */
.content-section {
    max-width: 1200px;
    margin: 48px auto;
    padding: 0 24px;
}

.content-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 32px;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    /* Mobile-first: 2 columns */
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-card {
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background-color: var(--text-light);
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-card .product-info {
    padding: 16px;
}

.product-card .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.product-card .product-price {
    font-size: 1rem;
    color: var(--text-muted);
}

/* --- Slideshow Section --- */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 65vh; /* Adjust height as needed */
    overflow: hidden;
    background-color: var(--light-gray); /* slideshow soft background */
}

.slide {
    display: none; /* Hidden by default */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: fade 1.5s;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    max-width: 90%;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin: 0 0 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.slide-content .cta-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.2s;
    display: inline-block;
    margin-top: 10px;
}

.slide-content .cta-button:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
}

/* Fade animation */
@keyframes fade {
    from { opacity: .4 }
    to { opacity: 1 }
}

/*
 * FOOTER STYLES
 * Moved from footer.php
 */

/* Add Font Awesome for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

.site-footer {
    background-color: var(--secondary-color); /* deep navy footer */
    color: var(--text-light);
    padding: 40px 24px;
    margin-top: 48px;
}
 
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--text-light);
    border-bottom: 2px solid var(--primary-color); /* coral accent */
    padding-bottom: 8px;
    display: inline-block;
}

.footer-section p {
    margin: 0 0 10px;
    line-height: 1.6;
    color: var(--text-muted); /* Lighter text for paragraphs */
}

.footer-section.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section.links li {
    margin-bottom: 10px;
}

.footer-section.links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section.links a:hover {
    color: #fff;
}

.footer-section .fa {
    margin-right: 10px;
    color: var(--primary-color); /* coral icons */
}

.footer-section.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.footer-section.newsletter .newsletter-form {
    display: flex;
    margin-top: 10px;
}

.footer-section.newsletter input[type="email"] {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    background-color: var(--surface-color);
    color: var(--text-light);
}

.footer-section.newsletter button {
    padding: 8px 12px;
    border: none;
    background-color: var(--primary-color); /* primary coral */
    color: var(--text-light);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.social-icons a {
    display: inline-block;
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Responsive Grid Adjustments --- */
/* Tablet: 3 columns */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}
/* Desktop: 4 columns */
@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}