/* ========================
   RESET & BASE STYLES
======================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root{
  --bg: #fffaf6;
  --warm: #3d2b1f;
  --accent: #b66a2b;
  --muted: #5c4033;
  --soft: #ffe8d6;
  --cta: #fcbf49;
  --glass: rgba(255,255,255,0.6);
  --nav-panel: rgba(255, 250, 245, 0.98);
}
html,body { height:100%; }
body{
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height:1.5;
  color:var(--warm);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  -webkit-font-feature-settings:"liga" 1;
}

/* ========================
   LAYOUT UTILITIES
======================== */
.container{
  width:90%;
  max-width:1200px;
  margin:0 auto;
}

/* Small utility */
.centered { text-align:center; }

/* ========================
   HEADER / NAV
   - supports both .site-header and .navbar in your HTML
======================== */
.site-header, .navbar {
  background: linear-gradient(180deg, rgba(255,232,214,0.92), rgba(255,232,214,0.6));
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid rgba(189,143,111,0.06);
  width:100%;
}

.header-inner, .navbar .container {
  display:flex;
  align-items:center;
  gap:1rem;
  padding: 0.9rem 0;
}

/* logo */
.logo {
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.6px;
  display:inline-block;
}

/* site nav wrapper */
.site-nav, nav { margin-left:auto; }

/* main nav list (desktop) */
.nav-links{
  display:flex;
  gap: 1.1rem;
  list-style:none;
  align-items:center;
}

/* links themselves */
.nav-links a,
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease, transform .12s ease, box-shadow .12s ease;
  display:inline-block;
}

/* hover / focus states */
.nav-links a:hover,
.nav-link:hover,
.nav-links a:focus {
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(182,106,43,0.06);
  outline: none;
}

/* active/current page */
.nav-links a[aria-current="page"],
.nav-link.active {
  background: rgba(252,191,73,0.10);
  color: var(--accent);
  box-shadow: inset 0 -3px 0 rgba(252,191,73,0.08);
}

/* subtle underline/marker for links (desktop) */
.nav-links a::after {
  content: "";
  display: block;
  height: 3px;
  width: 0%;
  background: var(--cta);
  border-radius: 3px;
  transition: width .25s ease;
  margin-top: 6px;
}
.nav-links a:hover::after { width: 50%; }

/* hamburger toggle button (desktop hidden) */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size:1.45rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
}
.menu-toggle:hover { color: var(--accent); transform: translateY(-2px); }

/* ========================
   HERO
======================== */
.hero {
  padding: 3.2rem 0;
}
.hero-inner {
  display:flex;
  gap:2.5rem;
  align-items:center;
  justify-content:space-between;
  padding:2rem 0;
}
.hero-content {
  flex:1 1 480px;
  max-width:620px;
}
.hero-title {
  font-size:2.6rem;
  line-height:1.05;
  color:var(--accent);
  margin-bottom:0.6rem;
}
.hero-sub {
  color:var(--muted);
  font-size:1.05rem;
  margin-bottom:1.2rem;
}
.hero-media {
  flex: 0 0 480px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(30,20,15,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures nice cropping */
  display: block;
}

/* ========================
   BUTTONS
======================== */
.btn {
  display:inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
}
.btn-primary {
  background: var(--cta);
  color:#fff;
  border:none;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow:0 10px 30px rgba(231,141,31,0.12); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(182,106,43,0.12);
  color: var(--accent);
}

/* ========================
   FEATURES
======================== */
.features {
  padding: 2.75rem 0;
}
.features-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:1.25rem;
}
.feature-card {
  background: #fff;
  border-radius:12px;
  padding:1.25rem;
  box-shadow: 0 8px 20px rgba(15,10,8,0.03);
}
.feature-card h3 { color:var(--accent); margin-bottom:.5rem; }
.feature-card p { color:var(--muted); font-size:0.98rem; }

/* ========================
   PRODUCT GRID (centred & consistent)
======================== */
.product-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  justify-items: center;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(20,12,5,0.06);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  transition: transform .18s ease, box-shadow .18s ease;
  width:100%;
  max-width: 340px;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(20,12,5,0.10);
}
.product-card img {
  width:100%;
  height:220px;
  object-fit:cover;
}
.product-info { padding: 1rem 1.1rem 1.4rem; width:100%; }
.product-info h3 { color:var(--accent); font-size:1.15rem; margin-bottom:0.4rem; }
.product-info p { color:var(--muted); font-size:0.95rem; margin-bottom:0.6rem; }
.product-info .price { font-weight:800; color:var(--warm); margin-bottom:0.9rem; }
.add-to-cart.btn { width: 100%; background: var(--cta); color:#fff; border: none; padding:0.6rem; border-radius:999px; }
.add-to-cart.btn:hover { background:#e6ab2a; transform: translateY(-2px); }

/* center product headings on product page */
.page-heading {
  text-align:center;
  font-size:2.1rem;
  margin:2rem 0 1rem;
  color:var(--accent);
  font-weight:800;
}
.page-heading::after{
  content:"";
  display:block;
  height:4px;
  width:70px;
  background:var(--cta);
  margin:0.6rem auto 0;
  border-radius:3px;
}

/* ========================
   CONTACT / FORM
======================== */
.contact-form, form {
  max-width:720px;
  margin: 1rem auto;
  display:flex;
  flex-direction:column;
  gap:0.85rem;
}
input[type="text"], input[type="email"], textarea {
  padding:0.85rem 1rem;
  border-radius:10px;
  border:1px solid rgba(61,43,31,0.07);
  background: rgba(255,255,255,0.9);
  font-size:1rem;
  color: var(--warm);
  width:100%;
  resize:vertical;
}
textarea { min-height:140px; }
form button[type="submit"], .checkout-btn {
  align-self:flex-start;
  padding:0.75rem 1.25rem;
  border-radius:999px;
  background:var(--cta);
  color:#fff;
  border:0;
  font-weight:700;
  cursor:pointer;
}
form button[type="submit"]:hover { background:#e6ab2a; transform: translateY(-2px); }

/* ========================
   CART DRAWER + CHECKOUT
======================== */
.cart-drawer { position:fixed; right:-420px; top:0; width:360px; height:100vh; background:#fffaf6; box-shadow:-12px 0 40px rgba(10,6,4,0.08); transition:right .35s ease; z-index:1400; padding:1rem; overflow:auto; }
.cart-drawer.open { right:0; }
.cart-drawer h3 { margin-top:0; color:var(--accent); }
.cart-item { display:flex; gap:0.6rem; margin-bottom:0.75rem; align-items:center; }
.cart-item img { width:56px; height:56px; object-fit:cover; border-radius:8px; }
.cart-count { margin-left:0.5rem; background:var(--cta); color:#fff; padding:0.25rem 0.6rem; border-radius:999px; font-weight:700; border:0; cursor:pointer; }

/* ========================
   MODAL / LIGHTBOX
======================== */
.vl-modal { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,0.6); z-index:2000; }
.vl-modal.show { display:flex; }
.vl-modal .vl-modal-inner { position:relative; display:flex; align-items:center; gap:12px; max-width:95%; max-height:95%; }
.vl-modal img.vl-modal-img { max-width:100%; max-height:80vh; border-radius:8px; box-shadow:0 12px 30px rgba(0,0,0,0.3); }
.vl-modal button { background:rgba(255,255,255,0.95); border:0; padding:6px 10px; border-radius:8px; cursor:pointer; }

/* ========================
   BACK TO TOP
======================== */
.back-to-top {
  position:fixed;
  right:20px;
  bottom:20px;
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--cta);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  box-shadow: 0 10px 18px rgba(88,49,9,0.12);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .12s ease;
}
.back-to-top.show { opacity:1; pointer-events:auto; transform: translateY(-4px); }

/* ========================
   RESPONSIVE / MOBILE NAV STYLING
   - Hamburger reveals a styled panel
======================== */
@media (max-width: 768px) {
  .menu-toggle { display:inline-flex; }
  /* hide desktop nav list */
  .nav-links { display:none; }

  /* when shown, make it a card panel with nice spacing and animations */
  .nav-links.show {
    display:flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.9rem;
    position: absolute;
    right: 1rem;
    top: 62px;
    width: 220px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,250,248,0.96));
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(25,15,10,0.12);
    border: 1px solid rgba(189,143,111,0.06);
    transform-origin: top right;
    animation: navPop .22s cubic-bezier(.2,.9,.28,1) both;
  }

  /* menu items inside panel */
  .nav-links.show a {
    display:block;
    padding:0.6rem 0.9rem;
    color:var(--warm);
    background: transparent;
    border-radius: 8px;
    font-weight:700;
    text-align:left;
    box-shadow:none;
  }

  .nav-links.show a:hover {
    background: rgba(246,185,124,0.12);
    color: var(--accent);
    transform:none;
  }

  /* bigger tap targets */
  .nav-links.show a { font-size:1rem; }

  /* small-screen product grid tweaks */
  .product-grid, .products-grid { gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0 0.5rem; }
}

/* little pop animation */
@keyframes navPop {
  from { transform: scale(.95) translateY(-6px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* ========================
   SMALL SCREEN TWEAKS
======================== */
@media (max-width: 900px) {
  .hero-title { font-size: 2.1rem; }
  .hero-inner { flex-direction: column-reverse; gap: 1.25rem; }
  .hero-media { width:100%; max-width:640px; }
  .hero-content { text-align:center; }
}

/* visually-hidden utility for accessibility */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ---------- Image Gallery ---------- */
.image-gallery {
  padding: 3rem 1rem;
  background: #fafafa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 4rem 1rem;
  background: #fff;
  text-align: center;
}

.testimonials .section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: #f9f9f9;
  padding: 1.8rem;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
  text-align: left;
  position: relative;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-author img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

.testimonial-author span {
  font-weight: 600;
  color: #444;
}

/* Footer */
.site-footer {
  background: #bb6565; /* dark footer */
  color: #f5f5f5;
  padding: 2rem 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  flex: 1;
}

.footer-right {
  flex: 1;
  text-align: right;
}

.footer-nav a {
  color: #f5f5f5;
  margin-left: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #ff9800; /* accent hover */
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-right {
    text-align: center;
  }
  .footer-nav a {
    margin: 0 0.75rem;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background: #333;
  color: #fff;
  padding: 12px 18px;
  margin-top: 10px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  font-size: 14px;
}

.toast.success {
  background: #28a745; /* Green for success */
}

.toast.error {
  background: #dc3545; /* Red for errors */
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
/* About Page Layout Fixes */
.flex {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.flex .text, 
.flex .image {
  flex: 1 1 300px;
}

.flex img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Founder Section */
.founder-img img {
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.team-member p {
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .flex {
    flex-direction: column;
  }
}
