/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #F4EDE4; /* Soft beige */
    color: #4B2E2E; /* Warm brown */
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* Use flexbox to structure the page */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Header - Fixes the full-width issue */
header {
    background-color: #D8B998;
    color: #fff;
    padding: 20px;
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    text-align: center;
    width: 100%;
    position: relative;
}

/* Hero Section */
.hero {
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 100%;
}

/* Hero Text Box */
.hero-text {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
}

/* Buttons */
.links {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    margin: 10px;
    padding: 12px 20px;
    background-color: #A67C52;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.btn:hover {
    background-color: #8B5A2B;
}

/* Refurbished Listings Section */
.featured {
    text-align: center;
    padding: 30px 10px;
}

.featured h2 {
    font-size: 22px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}

/* Refurbished Gallery - Ensures consistency */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Flexible grid */
    gap: 20px;
    margin: 0 auto;
    max-width: 1100px;
    padding-bottom: 30px;
}

/* Individual Refurbished Item */
.item {
    background: #FFF8F0;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

/* Image Resizing - Prevents Large Images */
.item img {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Item Title */
.item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-top: 10px;
}

/* Item Description */
.item p {
    font-size: 14px;
    color: #5C3D2E;
}

/* Ensures images swap smoothly */
.image-container img {
    transition: opacity 0.3s ease-in-out;
    max-width: 100%;
    border-radius: 8px;
}

/* Footer - Ensures no side scroll */
footer {
    background-color: #D8B998;
    color: #fff;
    font-size: 14px;
    padding: 15px;
    text-align: center;
    width: 100%;
    margin-top: auto;
    position: relative;
}
