/* LiPa Handmade - Sito vetrina artigianale */

:root {
  --max-width: 1200px;
  --accent: #8a5a3a;
  --accent-light: #b8956a;
  --accent-dark: #6b4423;
  --muted: #666;
  --light-bg: #f2eadf;
  --border: #e3d6c5;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 12px rgba(0,0,0,0.15);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f7f2e9;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar */
.navbar {
  background: #f7f2e9;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand .logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-brand .logo:hover {
  color: var(--accent-light);
}

.nav-brand .logo-img {
  display: inline-block;
}

.logo-image {
  height: 54px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-brand .logo:hover .logo-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-social-item {
  display: flex;
  align-items: center;
}

.nav-social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links .nav-social-link {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 7px;
  place-items: center;
  color: var(--accent);
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-social-link svg {
  display: block;
  width: 18px;
  height: 18px;
}

.nav-links .nav-social-link:hover,
.nav-links .nav-social-link:focus-visible {
  color: #fff;
  background: var(--accent);
  transform: translateY(-2px);
}

.nav-admin {
  background: var(--accent) !important;
  color: white !important;
  padding: 6px 12px !important;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav-admin:hover {
  background: var(--accent-dark) !important;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../img/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.7), 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-title {
  width: 300px;
  height: auto;
  margin: 0 auto 1rem auto;
  display: block;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.hero-subtitle {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6), 1px 1px 2px rgba(0,0,0,0.4);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: #f0f0f0;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

.text-center {
  text-align: center;
  margin: 2rem 0;
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
}

/* Intro Section */
.intro {
  padding: 2rem 0;
  text-align: center;
  background: #fff;
}

.intro h2 {
  font-size: 2rem;
  color: var(--accent);
  margin: 0 0 1rem 0;
}

.intro p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Featured / Products Section */
.featured, .products-page {
  padding: 3rem 1rem;
  background: var(--light-bg);
}

.featured h2, .products-page h1 {
  font-size: 2rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 2rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Featured Section - 3 Prodotti Centrati */
.featured .products-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  display: inline-block;
  width: fit-content;
  background: var(--accent-light);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-info h3 {
  margin: 0.5rem 0;
  color: var(--accent-dark);
  font-size: 1.1rem;
}

.product-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Link prodotto (rende tutta la card cliccabile) */
.product-card-link {
  text-decoration: none;
  color: inherit;
}

/* Pagina Dettaglio Prodotto */
.product-detail-page {
  padding: 3rem 1rem;
  background: #fff;
  margin: 2rem 0;
}

.back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--accent-dark);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.product-detail-images {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image {
  background: #f9f7f4;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.secondary-images {
  display: flex;
  gap: 10px;
}

.secondary-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.3s;
}

.secondary-img:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.secondary-img.active {
  border-color: var(--accent);
  border-width: 3px;
}

.product-detail-info {
  padding: 20px;
}

.detail-category {
  display: inline-block;
  background: var(--accent-light);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-detail-info h1 {
  font-size: 2.5rem;
  color: var(--accent-dark);
  margin: 1rem 0;
}

.detail-price {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 2rem 0;
  padding: 20px;
  background: #f9f7f4;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.price-label {
  font-weight: 600;
  color: #333;
}

.detail-price .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.detail-description {
  margin: 2rem 0;
}

.detail-description h2 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.detail-description p {
  line-height: 1.8;
  color: var(--muted);
  font-size: 1.05rem;
}

.detail-contact {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.price-quote {
  font-size: 1rem;
  font-weight: 600;
}

.contact-product-context {
  padding: 0.75rem 1rem;
  background: var(--light-bg);
  border-left: 3px solid var(--accent);
}

/* About Page */
.about-page {
  padding: 3rem 1rem;
}

.about-page h1 {
  font-size: 2rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 2rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  line-height: 1.8;
}

.about-text {
  max-width: 600px;
}

.about-image {
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.about-content h2 {
  color: var(--accent);
  margin-top: 1.5rem;
}

.about-content ul {
  list-style: none;
  padding: 0;
}

.about-content li {
  padding: 0.5rem 0;
  font-size: 1rem;
}

/* Contacts Page */
.contacts-page {
  padding: 3rem 1rem;
}

.contacts-page h1 {
  font-size: 2rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 2rem;
}

.contacts-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info h2 {
  color: var(--accent);
  margin-top: 0;
}

.contact-info p {
  margin: 1rem 0;
  line-height: 1.8;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-social-section {
  margin-top: 1.75rem;
}

.contact-social-section h3 {
  margin: 0 0 0.75rem;
  color: var(--accent-dark);
  font-size: 1rem;
}

.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-info .contact-social-link {
  display: inline-grid;
  width: 5rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-social-link svg {
  display: block;
  width: 30px;
  height: 30px;
}

.contact-info .contact-social-link:hover,
.contact-info .contact-social-link:focus-visible {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form h2 {
  color: var(--accent);
  margin-top: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 90, 58, 0.1);
}

/* Footer */
.site-footer {
  background: #333;
  color: #ccc;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

/* Blog Page */
.blog-page {
  padding: 3rem 1rem;
}

.blog-page h1 {
  font-size: 2rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.blog-header {
  padding: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.blog-header h2 {
  margin: 0 0 0.5rem 0;
  color: var(--accent-dark);
  font-size: 1.3rem;
}

.blog-header h2 a {
  color: var(--accent-dark);
  text-decoration: none;
}

.blog-header h2 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-content {
  padding: 1.5rem;
  flex: 1;
  color: #555;
  line-height: 1.7;
}

.read-more {
  display: inline-block;
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--accent-light);
}

/* Pagina Dettaglio Blog */
.blog-detail-page {
  padding: 3rem 1rem;
  background: #fff;
  margin: 2rem 0;
  min-height: 60vh;
}

.blog-detail {
  max-width: 800px;
  margin: 0 auto;
}

.blog-detail h1 {
  color: var(--accent-dark);
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-meta-detail {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.blog-content-detail {
  color: #555;
  line-height: 1.9;
  font-size: 1rem;
  margin-bottom: 3rem;
  word-wrap: break-word;
}

.blog-footer {
  padding-top: 2rem;
  border-top: 2px solid var(--border);
  display: flex;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent-light);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .featured .products-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 420px;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 15px 1rem;
    gap: 1rem;
    font-size: 0.9rem;
  }

  .nav-social-item {
    padding: 0.65rem 1rem;
  }

  .nav-links .nav-social-link {
    display: inline-grid;
    padding: 7px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-title {
    width: 200px;
    height: auto;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero {
    background-size: 150%;
    background-attachment: scroll;
    min-height: 300px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .featured .products-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image img {
    max-width: 250px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-detail h1 {
    font-size: 1.5rem;
  }

  .blog-meta-detail {
    flex-direction: column;
    gap: 0.5rem;
  }

  .blog-content-detail {
    font-size: 0.95rem;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contacts-content {
    grid-template-columns: 1fr;
  }

  .featured h2, .products-page h1, .about-page h1, .contacts-page h1, .blog-page h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .nav-brand .logo {
    font-size: 1.2rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }
}

/* LiPa 2.0 responsive layout */
.nav-inner { gap: 1.5rem; }
.nav-inner nav { margin-left: auto; }
.nav-products { position: relative; }
.products-toggle span { font-size: 1.1em; }
.category-dropdown { display: none; position: absolute; z-index: 120; top: 100%; left: -1rem; min-width: 220px; max-height: min(70vh, 420px); overflow-y: auto; list-style: none; margin: .7rem 0 0; padding: .5rem; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.nav-products:hover .category-dropdown, .nav-products:focus-within .category-dropdown, .nav-products.is-open .category-dropdown { display: block; }
.category-dropdown a { display: block; padding: .55rem .8rem; border-radius: 6px; }
.category-dropdown a:hover, .category-dropdown a:focus-visible { background: var(--light-bg); }
.nav-social-link { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--light-bg); border: 1px solid var(--border); color: var(--accent) !important; font-size: .78rem !important; font-weight: 700; }
.nav-social-link svg { display: block; width: 18px; height: 18px; }
.hero { background-image: linear-gradient(90deg, rgba(38,29,23,.63), rgba(38,29,23,.12)), url('../img/background.jpg'); background-position: center; }
.hero-content { color: white; max-width: 850px; }
.hero-content h1 { color: white; font-family: Georgia, 'Times New Roman', serif; line-height: 1.12; }
.hero-content .hero-logo-heading { margin: .5rem auto 1rem; }
.hero-logo-heading img { display: block; width: min(100%, 500px); height: auto; max-height: 190px; margin: 0 auto; object-fit: contain; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero-content > p:not(.eyebrow) { max-width: 560px; margin: 1rem auto 1.7rem; font-size: 1.12rem; }
.eyebrow { margin: 0 0 .55rem; color: var(--accent-light); text-transform: uppercase; letter-spacing: .13em; font-size: .76rem; font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.3rem; border: 0; border-radius: 5px; background: var(--accent); color: #fff; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s; }
.button:hover, .button:focus-visible { color: #fff; background: var(--accent-dark); transform: translateY(-1px); }
.section { padding-top: 4.2rem; padding-bottom: 4.2rem; }
.section-soft { background: var(--light-bg); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.7rem; }
.section-heading h2, .about-teaser h2 { margin: 0; color: #392e26; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.text-link { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.category-grid-large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-card { display: flex; min-height: 190px; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 1.35rem; color: #392e26; text-decoration: none; background: #f7f2eb; border: 1px solid var(--border); border-radius: 9px; transition: transform .2s, box-shadow .2s, background .2s; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); background: #f2eadd; }
.category-card h2, .category-card h3 { margin: .25rem 0; font-family: Georgia, 'Times New Roman', serif; }
.category-card p { margin: .25rem 0 .7rem; color: var(--muted); }
.category-card > span:last-child { margin-top: .5rem; color: var(--accent-dark); font-size: .9rem; font-weight: 600; }
.category-card-image { width: 100%; height: 155px; margin: 0 0 .9rem; object-fit: cover; border-radius: 5px; }
.category-heading { display: flex; align-items: center; gap: 2rem; }
.category-heading-image { width: min(34%, 280px); max-height: 220px; object-fit: cover; border-radius: 6px; }
.admin-category-image { display: block; width: min(100%, 340px); max-height: 240px; margin: .5rem 0 1rem; object-fit: contain; }
.admin-category-thumb { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.image-remove-option { display: flex !important; align-items: center; gap: .4rem; margin: 0 0 .8rem; font-weight: 400 !important; }
.image-remove-option input { width: auto; }
.category-mark { color: var(--accent-light); font-size: 1.7rem; }
.page-heading { padding: 4rem 0 3rem; text-align: center; background: var(--light-bg); }
.page-heading h1, .article h1, .product-info h1 { margin: .3rem 0 .7rem; color: #392e26; font: 500 clamp(2rem, 5vw, 3.1rem)/1.15 Georgia, 'Times New Roman', serif; }
.page-heading p { color: var(--muted); }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.product-card { overflow: hidden; background: #fff; border: 0; border-radius: 9px; box-shadow: var(--shadow); }
.product-image { display: block; height: auto; aspect-ratio: 1/1; overflow: hidden; background: transparent; }
.product-image img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.product-card-body { padding: 1rem 1.15rem 1.2rem; }
.product-card h3 { margin: .2rem 0 .45rem; font: 600 1.2rem Georgia, 'Times New Roman', serif; }
.product-card h3 a { color: #392e26; text-decoration: none; }
.product-category { margin: 0; color: var(--accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.product-price { margin: 0; color: var(--accent-dark); font-weight: 600; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 3rem; align-items: start; }
.product-gallery { display: flex; min-width: 0; flex-direction: column; gap: .8rem; }
.product-gallery-main { position: relative; display: grid; min-height: 280px; aspect-ratio: 1/1; place-items: center; overflow: hidden; background: transparent; }
.product-gallery-main img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.product-gallery-thumbnails { display: flex; gap: .65rem; overflow-x: auto; padding: .15rem .1rem .4rem; }
.product-gallery-thumbnail { flex: 0 0 88px; width: 88px; height: 88px; padding: 0; overflow: hidden; background: transparent; border: 0; border-radius: 0; cursor: pointer; opacity: .72; }
.product-gallery-thumbnail:hover { opacity: 1; }
.product-gallery-thumbnail.is-active { box-shadow: inset 0 -3px var(--accent); opacity: 1; }
.product-gallery-thumbnail:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-gallery-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 4px; }
.product-price-large { margin: 1.2rem 0; font-size: 1.2rem; }
.product-categories { margin: 1.5rem 0; color: var(--muted); }
.product-categories a { color: var(--accent-dark); }
.prose { line-height: 1.8; }
.about-teaser { display: grid; grid-template-columns: minmax(200px, .7fr) 1.3fr; gap: 3rem; align-items: center; }
.about-teaser img { width: 100%; max-width: 360px; aspect-ratio: 4/5; object-fit: cover; border-radius: 48% 48% 10px 10px; }
.empty-state { grid-column: 1/-1; padding: 2rem; color: var(--muted); background: var(--light-bg); border-radius: 8px; text-align: center; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.contact-card, .contact-form, .blog-card { padding: 1.6rem; background: #fff; border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow); }
.contact-card { background: var(--light-bg); }
.contact-socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.contact-socials a { padding: .5rem .75rem; color: var(--accent-dark); background: #fff; border: 1px solid var(--border); border-radius: 999px; font-size: .9rem; text-decoration: none; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; margin-bottom: .35rem; font-weight: 600; }
.form-field input, .form-field textarea { width: 100%; padding: .75rem; border: 1px solid #cfc4b5; border-radius: 5px; font: inherit; }
.form-field input:focus, .form-field textarea:focus { outline: 3px solid rgba(138,90,58,.18); border-color: var(--accent); }
.form-field small { display: block; margin-top: .3rem; color: #a02c24; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert-success { padding: .8rem 1rem; color: #185b31; background: #e7f5eb; border-radius: 6px; }
.alert-errors { margin-bottom: 1rem; padding: .8rem 1rem; color: #86251f; background: #fbebea; border: 1px solid #e9c1be; border-radius: 6px; }
.alert-errors p { margin: 0; font-weight: 700; }
.alert-errors ul { margin-bottom: 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.blog-card h2 { font: 500 1.5rem Georgia, 'Times New Roman', serif; }
.blog-card h2 a { color: #392e26; text-decoration: none; }
.article { max-width: 850px; }
.article-lead { color: var(--muted); font-size: 1.2rem; }
.pagination-wrap { margin-top: 2rem; }
.site-footer { padding: 1.5rem 0; color: #fff; background: #392e26; text-align: center; }
.site-footer p { margin: 0; }
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-grid, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { gap: 1.6rem; }
}
@media (max-width: 760px) {
  .nav-inner { position: relative; }
  .hamburger { display: flex; }
  .nav-inner nav#site-nav { display: none; position: absolute; top: calc(100% + .5rem); left: 0; right: 0; margin: 0; padding: .7rem 1rem; background: #f7f2e9; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-hover); }
  .nav-inner nav#site-nav.is-open { display: block !important; visibility: visible; opacity: 1; }
  .nav-links { position: static; max-height: none; overflow: visible; flex-direction: column; align-items: stretch; gap: .25rem; border: 0; background: transparent; }
  .nav-links > li > a { display: block; padding: .55rem .4rem; }
  .category-dropdown { position: static; max-height: 220px; margin: .1rem 0 .5rem; padding-left: .8rem; border: 0; box-shadow: none; background: var(--light-bg); }
  .nav-products:hover .category-dropdown { display: none; }
  .nav-products.is-open .category-dropdown, .nav-products:focus-within .category-dropdown { display: block !important; }
  .nav-links li:has(.nav-social-link) { display: inline-flex; }
  .hero { min-height: 390px; }
  .hero-content > p:not(.eyebrow) { font-size: 1rem; }
  .section { padding-top: 3rem; padding-bottom: 3rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .contact-layout, .product-detail, .about-teaser { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-teaser img { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .category-grid, .category-grid-large, .products-grid, .blog-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 150px; }
  .category-card-image { height: 125px; }
  .category-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .category-heading-image { width: 100%; max-height: 240px; }
  .hero { min-height: 350px; padding: 3rem 1rem; background-position: 57% center; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-logo-heading img { width: min(100%, 350px); max-height: 150px; }
  .product-gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.admin-body { min-height: 100vh; background: #f6f4f0; }
.admin-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 5px rgba(0,0,0,.04); }
.admin-bar { display: flex; min-height: 72px; align-items: center; gap: 1.5rem; }
.admin-bar img { display: block; width: auto; height: 42px; }
.admin-bar nav { display: flex; flex: 1; flex-wrap: wrap; gap: 1rem; }
.admin-bar nav a, .admin-bar a { color: var(--accent-dark); text-decoration: none; }
.admin-bar form { margin-left: auto; }
.text-button { padding: 0; border: 0; color: var(--accent-dark); background: none; font: inherit; font-weight: 600; cursor: pointer; }
.danger { color: #a02c24; }
.admin-main { padding-top: 2.5rem; padding-bottom: 4rem; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-heading h1 { margin: 0; color: #392e26; font: 500 clamp(1.8rem, 4vw, 2.5rem) Georgia, 'Times New Roman', serif; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.admin-stats > div { display: flex; flex-direction: column; gap: .25rem; padding: 1.2rem; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.admin-stats span { color: var(--muted); font-size: .9rem; }
.admin-stats strong { color: var(--accent-dark); font-size: 1.8rem; }
.admin-panel { padding: 1.4rem; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
.admin-panel .section-heading { align-items: center; margin-bottom: 1rem; }
.admin-panel .section-heading h2 { margin: 0; font: 500 1.4rem Georgia, 'Times New Roman', serif; }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th, .admin-table td { padding: .8rem .65rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td.message-preview-cell { min-width: 230px; max-width: 430px; white-space: normal; }
.message-preview-link { display: block; color: inherit !important; font-weight: 400 !important; text-decoration: none; }
.message-preview-text { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; color: #51463d; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.message-open-label { display: inline-block; margin-top: .35rem; color: var(--accent-dark); font-size: .85rem; font-weight: 600; }
.message-detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.5rem; margin: 0 0 1.25rem; }
.message-detail-meta div { min-width: 0; }
.message-detail-meta dt { color: var(--muted); font-size: .85rem; }
.message-detail-meta dd { margin: .15rem 0 0; overflow-wrap: anywhere; font-weight: 600; }
.message-content { padding: 1rem 1.2rem; background: var(--light-bg); border: 1px solid var(--border); border-radius: 8px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-table th { color: #645648; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.admin-table a { color: var(--accent-dark); font-weight: 600; }
.table-actions { display: flex; gap: .8rem; align-items: center; }
.table-actions form { display: inline; }
.admin-form { max-width: 850px; }
.admin-form select, .form-field select { width: 100%; padding: .75rem; border: 1px solid #cfc4b5; border-radius: 5px; background: white; font: inherit; }
.form-field label span { color: var(--muted); font-size: .85rem; font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: center; }
.checkbox-field { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-actions { margin-top: 1.2rem; }
.admin-thumb { display: block; width: 140px; max-height: 140px; margin-top: .8rem; border-radius: 6px; object-fit: cover; }
.admin-image-list { display: flex; flex-wrap: wrap; gap: .75rem; }
.admin-image-item { display: flex; width: min(100%, 160px); flex-direction: column; gap: .35rem; }
.admin-image-item > span { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; }
.field-hint { margin: .35rem 0; color: var(--muted); font-size: .9rem; }
.admin-form select[multiple] { min-height: 8rem; }
.admin-image-list .admin-thumb { margin-top: .4rem; }
.field-label { display: block; font-weight: 600; }
.login-panel { width: min(100% - 2rem, 430px); margin: 8vh auto; padding: 2rem; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-hover); }
.login-panel > img { display: block; width: auto; max-width: 190px; height: 55px; margin: 0 auto 1.5rem; object-fit: contain; }
.login-panel h1 { margin: 0 0 1.5rem; text-align: center; font: 500 1.7rem Georgia, 'Times New Roman', serif; }
.login-panel > p { text-align: center; }
.login-panel > p a { color: var(--accent-dark); }
@media (max-width: 760px) {
  .admin-bar { flex-wrap: wrap; padding-top: .7rem; padding-bottom: .7rem; }
  .admin-bar nav { order: 3; flex-basis: 100%; gap: .7rem 1rem; }
  .admin-bar form { margin-left: auto; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .message-detail-meta { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
