body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #faf7f2;
    color: #222;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.main-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0.5em 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: bold;
    color: #7c4a1e;
    text-decoration: none;
}
.logo img {
    height: 48px;
    width: auto;
    display: block;
}

nav {
    float: right;
}

nav a {
    color: #7c4a1e;
    text-decoration: none;
    margin: 0 1em;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #c19a6b;
}

.hero {
    background: url('../image/hero-bg.jpg') center/cover no-repeat;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(124,74,30,0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 0 1em;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.hero-content h1 {
  font-size: 2.4em;
  margin-bottom: 0.4em;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 1em;
}

.hero-content p { font-size: 1.1em; margin-bottom: 1em; }

.btn-primary {
    background: #c19a6b;
    color: #fff;
    padding: 0.8em 2em;
    border: none;
    border-radius: 30px;
    font-size: 1em;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #7c4a1e;
}

.featured-products h2 {
    text-align: center;
    margin: 2em 0 1em 0;
    font-size: 2em;
    color: #7c4a1e;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2em;
    margin-bottom: 2em;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 24px rgba(124,74,30,0.12);
}

.product-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 1em;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.1em;
    color: #7c4a1e;
}

.product-info p {
    flex: 1;
    margin-bottom: 1em;
    color: #555;
    font-size: 0.95em;
}

.btn-secondary {
    background: #7c4a1e;
    color: #fff;
    padding: 0.5em 1.2em;
    border: none;
    border-radius: 20px;
    font-size: 0.95em;
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #c19a6b;
}

.pagination {
    text-align: center;
    margin-bottom: 2em;
}

.pagination button {
    background: #fff;
    border: 1px solid #c19a6b;
    color: #7c4a1e;
    padding: 0.5em 1em;
    margin: 0 0.2em;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.pagination button.active,
.pagination button:hover {
    background: #c19a6b;
    color: #fff;
}

footer {
    background: #7c4a1e;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    margin-top: 2em;
}

/* Contact and gallery specific styles */
.contact-form {
    max-width: 600px;
    margin: 1em auto 3em auto;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

.contact-form label {
    font-weight: 600;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1em;
    margin-bottom: 2em;
}

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Carousel styles */
.carousel {
  overflow: hidden;
  background: #fff;
  padding: 1em 0;
}
.carousel-track {
  display: flex;
  gap: 1em;
  width: max-content;
  animation: scroll 20s linear infinite;
  align-items: center;
}
.slide img {
  height: 160px;
  width: auto;
  border-radius: 8px;
  display: block;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero slideshow styles - single full-width image at a time */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* fallback letterbox color while image loads or for narrow aspect */
    background-color: #111;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(12px);
    transform: scale(1.05);
    z-index: 0;
}
.hero-img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* About page */
.about-hero {
  background: url('../image/product/product3.jpg') center/cover no-repeat;
  min-height: 40vh;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
}
.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(124,74,30,0.5);
}
.about-hero-inner { position: relative; z-index: 1; padding: 4em 0; text-align: center; }
.about-hero h1 { font-size: 2.4em; margin-bottom: 0.2em; }
.about-hero .lead { font-size: 1.1em; opacity: 0.95; }

.about-main { padding: 3em 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; align-items: center; }
.about-image img { width: 100%; border-radius: 12px; height: 360px; object-fit: cover; }
.about-text h2 { color: #7c4a1e; }
.about-text p { color: #444; line-height: 1.6; }

.values-section { margin-top: 2.5em; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2em; margin-top: 1em; }
.value { background: #fff; padding: 1.2em; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); text-align: center; }
.value h3 { color: #7c4a1e; margin-bottom: 0.6em; }

.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2em; margin-top: 1em; }
.team-card { background: #fff; padding: 1em; border-radius: 10px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.team-card img { width: 100%; height: 220px; object-fit: contain; object-position: center; border-radius: 8px; background: #fff; }
.team-card h4 { margin: 0.6em 0 0.2em 0; }
.team-card p { color: #666; font-size: 0.95em; }

.cta-section { margin-top: 2.5em; background: linear-gradient(90deg,#7c4a1e, #c19a6b); padding: 2em; border-radius: 12px; text-align: center; color: #fff; }
.cta-inner h3 { margin: 0 0 0.8em 0; }

/* Responsive */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* Small screens */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.6em; }
    .hero p { font-size: 1em; }
    nav { float: none; text-align: center; margin-top: 0.5em; }
}

/* Modal for product details */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
}
.modal-close {
    position: absolute;
    right: 1rem;
    top: 0.6rem;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
}
.modal-body { display:flex; gap:1rem; align-items:center; padding:1.5rem; }
.modal-img { max-width: 48%; height: auto; border-radius: 8px; object-fit: contain; }
.modal-desc { color: #333; font-size: 1rem; line-height: 1.5; }

@media (max-width: 700px) {
    .modal-body { flex-direction: column; }
    .modal-img { max-width: 100%; }
}