:root{
  --bg:#f8f5f1;
  --panel:#ffffff;
  --ink:#5b4636;
  --ink2:#3e2e1d;
  --muted:#7b6046;
  --line:#e8e2db;
  --accent:#a36f4e;
  --accent2:#7b6046;
}
*{box-sizing:border-box;}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink2);
  font:400 1rem/1.6 system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;
  min-height: 100vh;
  display:grid;
  grid-template-rows: auto 1fr auto;
}

a{color:var(--accent);text-decoration:none;}
a:hover{color:var(--accent2);text-decoration:underline;}
.container{
  max-width:1100px;
  margin:auto;
  padding:0 clamp(1rem,4vw,2rem);
}
.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 0;
  border-bottom:1px solid var(--line);
  background:rgba(248,245,241,.9);
  backdrop-filter:blur(6px);
  position:sticky;
  top:0;
  z-index:10;
}
.brand{font-weight:700;color:var(--ink2);}
.nav a{
  margin-left:.7rem;
  color:var(--ink2);
  padding:.3rem .5rem;
  border-radius:8px;
}
.nav a:hover{background:#f2ece5;}
.grid{
  display:grid;
  gap:clamp(1rem,2vw,1.5rem);
  grid-template-columns:repeat(12,1fr);
}
.col-6{grid-column:span 6;}
.col-12{grid-column:span 12;}
@media(max-width:900px){.col-6{grid-column:span 12;}}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
  overflow:hidden;
}
.card .body{padding:1rem;}
input,select,textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  padding:.6rem .7rem;
  font:inherit;
}

.table{width:100%;border-collapse:collapse;}
.table th,.table td{border:1px solid var(--line);padding:.6rem;text-align:left;font-size:.95rem;}
.notice{
  padding:.6rem .9rem;
  border:1px solid var(--line);
  background:#fcfbf9;
  border-radius:8px;
  margin:.6rem 0;
}

.footer{
  border-top:1px solid var(--line);
  padding:1rem 0;
  color:var(--muted);
  font-size:.85rem;
}

.btn{
  display:inline-block;
  border-radius:999px;
  border:none;
  padding:.5rem 1.1rem;
  background:var(--accent);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  font-size:.95rem;
}
.btn.outline{
  background:#fff;
  color:var(--accent2);
  border:1px solid var(--accent2);
}
.btn:hover{opacity:.95;}
.small{font-size:.85rem;color:var(--muted);}
.mt-0{margin-top:0;}
.section{margin:1.2rem 0;}
.pickup-note{
  border:1px dashed var(--line);
  border-radius:20px;
  background:#faf6f1;
  padding:1rem;
  margin-top:.5rem;
  font-size:.9rem;
}

.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:8px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  padding:0;
}

.icon-btn:hover{
  background:#f2ece5;
}

/* Featured testimonials slider on home */
.section-testimonials{
  margin-top:2rem;
}

.testimonial-slider{
  display:flex;
  gap:1rem;
  overflow-x:auto;
  padding:0.5rem 0.25rem 0.75rem;
  scroll-snap-type:x mandatory;
}

.testimonial-slider::-webkit-scrollbar{
  height:6px;
}
.testimonial-slider::-webkit-scrollbar-track{
  background:transparent;
}
.testimonial-slider::-webkit-scrollbar-thumb{
  background:var(--line);
  border-radius:999px;
}

.testimonial-card{
  min-width:260px;
  max-width:320px;
  scroll-snap-align:start;
}

.testimonial-rating{
  color:#b36b00;
  font-size:0.9rem;
  margin-bottom:0.25rem;
}

.testimonial-message{
  font-style:italic;
  margin:0;
}

.testimonial-name{
  margin-top:0.5rem;
  font-weight:600;
  font-size:0.9rem;
  color:var(--muted);
}

@media (max-width:700px){
  .testimonial-card{
    min-width:80%;
  }
}


/* Trash specific — use currentColor */
.trash-btn{
  background:#c94b4b;          /* rustic red */
  border-color:#c94b4b;
  color:#fff;  
}

.trash-btn:hover{
  background:#a93b3b;          /* darker on hover */
  border-color:#a93b3b;
  color:#fff;
}

.trash-btn:active{
  transform: translateY(1px);
}

.trash-icon{
  width:18px;
  height:18px;
  display:block;          /* prevents weird inline spacing */
}

/* ===== Header / Nav layout ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e8e2db;
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.nav-wrap-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem 1rem;
  gap: .75rem;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: #5b4636;
}

.main-nav {
  display: flex;
  gap: .9rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #5b4636;
  font-weight: 500;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* ===== Language toggle ===== */
.lang-toggle {
  display: inline-flex;
  border: 1px solid #d8c9b7;
  border-radius: 999px;
  overflow: hidden;
  background: #faf6f1;
}

.lang-btn {
  padding: .25rem .6rem;
  font-size: .85rem;
  text-decoration: none;
  color: #5b4636;
  font-weight: 700;
  border-right: 1px solid #e2d6c8;
}

.lang-btn:last-child { border-right: 0; }

.lang-btn.active {
  background: #5b4636;
  color: #fff;
}

/* ===== Account dropdown ===== */
.account-dd {
  position: relative;
}

.account-btn {
  background: transparent;
  border: 1px solid #d8c9b7;
  color: #5b4636;
  font-weight: 600;
  padding: .35rem .6rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  min-width: 170px;
  background: #fff;
  border: 1px solid #e8e2db;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  padding: .4rem;
  display: none;
}

.account-menu a {
  display: block;
  padding: .45rem .6rem;
  border-radius: 8px;
  text-decoration: none;
  color: #3e2e1d;
  font-size: .95rem;
}

.account-menu a:hover {
  background: #faf6f1;
}

.menu-sep {
  height: 1px;
  background: #eee3d6;
  margin: .25rem .2rem;
}

.account-dd.open .account-menu {
  display: block;
}
/* ===== Cart icon + badge ===== */
.cart-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;height:38px;
  border:1px solid #d8c9b7;
  background:#faf6f1;
  border-radius:10px;
  text-decoration:none;
}
.cart-ico{
  width:20px;height:20px;
  stroke:#5b4636; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
}
.cart-badge{
  position:absolute;
  top:-6px; right:-6px;
  background:#b43a2f; color:#fff;
  font-size:.72rem; font-weight:700;
  padding:2px 6px;
  border-radius:999px;
  border:2px solid #fff;
  line-height:1;
}

/* ===== Language globe dropdown (mobile) ===== */
.lang-dd{ position:relative; display:none; }

.lang-globe-btn{
  width:38px;height:38px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #d8c9b7; background:#faf6f1;
  border-radius:10px; cursor:pointer;
}

.globe-ico{
  width:20px;height:20px;
  stroke:#5b4636; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
}

.lang-menu{
  position:absolute;
  right:0; top:calc(100% + .4rem);
  min-width:150px;
  background:#fff;
  border:1px solid #e8e2db;
  border-radius:12px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  padding:.4rem;
  display:none;
  z-index:60;
}

.lang-menu a{
  display:block;
  padding:.45rem .6rem;
  border-radius:8px;
  text-decoration:none;
  color:#3e2e1d;
  font-size:.95rem;
}
.lang-menu a:hover{ background:#faf6f1; }
.lang-menu a.active{
  background:#5b4636; color:#fff;
}

.lang-dd.open .lang-menu{ display:block; }

/* ===== Mobile behavior ===== */
@media (max-width: 820px){
  .lang-toggle{ display:none; }  /* hide EN/ES pills */
  .lang-dd{ display:inline-block; } /* show globe */
}


/* ===== Mobile behavior ===== */
.mobile-nav-btn {
  display: none;
  background: transparent;
  border: 1px solid #d8c9b7;
  border-radius: 10px;
  padding: .35rem .55rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: #5b4636;
}

/* Collapse nav on small screens */
@media (max-width: 820px) {
  .main-nav {
    display: none; /* show via your existing mobile menu JS if you have it */
  }
  .mobile-nav-btn {
    display: inline-flex;
  }
}
/* Small subtotal hint (desktop only) */
.cart-subtotal-hint{
  display:none;
  position:absolute;
  bottom:-18px;
  left:50%;
  transform:translateX(-50%);
  background:#fff;
  border:1px solid #e8e2db;
  padding:2px 6px;
  font-size:.72rem;
  border-radius:6px;
  color:#5b4636;
  white-space:nowrap;
}
@media (min-width:821px){
  .cart-link:hover .cart-subtotal-hint{ display:block; }
}

/* ===== Mini cart drawer ===== */
.mini-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.35);
  opacity:0; pointer-events:none;
  transition:opacity .2s ease;
  z-index:70;
}
.mini-overlay.open{
  opacity:1; pointer-events:auto;
}

.mini-drawer{
  position:fixed;
  top:0; right:0; bottom:0;
  width:min(360px, 92vw);
  /*--height:100vh;--*/
  background:#fff;
  border-left:1px solid #e8e2db;
  transform:translateX(110%);
  transition:transform .25s ease;
  z-index:71;
  display:flex;
  flex-direction:column;
}
.mini-drawer.open{ transform:translateX(0); }

.mini-header{
  padding:14px 16px;
  border-bottom:1px solid #eee3d6;
  display:flex; align-items:center; justify-content:space-between;
}
.mini-title{ font-weight:700; color:#5b4636; }
.mini-count{ font-weight:600; opacity:.7; margin-left:4px; }
.mini-close{
  background:transparent; border:0; font-size:1.6rem;
  line-height:1; cursor:pointer; color:#5b4636;
}

.mini-body{
  padding:12px 16px;
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
  flex:1 1 auto;
}
.mini-empty{ color:#6a523e; font-size:.95rem; }

.mini-item{
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px 10px;
  padding:8px 0;
  border-bottom:1px dashed #f0e6da;
}
.mini-item:last-child{ border-bottom:0; }
.mini-item .name{ font-weight:600; color:#3e2e1d; }
.mini-item .meta{ font-size:.9rem; color:#6a523e; }
.mini-item .line-total{ font-weight:700; color:#3e2e1d; }

.mini-footer{
  border-top:1px solid #eee3d6;
  padding:12px 16px;
  background:#faf6f1;
}
.mini-subtotal{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:10px; color:#3e2e1d;
}
.mini-actions{
  display:flex; gap:8px;
}
.mini-actions .btn{ flex:1; text-align:center; }

.mini-remove-form{
  margin:0;
}

/* Cart dropdown wrapper */
.cart-dd{
  position:relative;
}

.cart-menu{
  position:absolute;
  right:0;
  top:calc(100% + .4rem);
  min-width:220px;
  background:#fff;
  border:1px solid #e8e2db;
  border-radius:12px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  padding:.5rem .6rem .6rem;
  display:none;
  z-index:70;
}

.cart-dd.open .cart-menu{
  display:block;
}

.cart-empty{
  margin:0;
  font-size:.9rem;
  color:#6a523e;
}

.cart-items{
  margin-bottom:.3rem;
}

.cart-line{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.9rem;
  padding:.15rem 0;
}

.cart-line-name{
  flex:1;
  margin-right:.4rem;
}

.cart-line-qty{
  opacity:.7;
}

.cart-more{
  font-size:.8rem;
  color:#8c6c4e;
  margin-top:.1rem;
}

.cart-summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:.2rem 0 .4rem;
  border-top:1px solid #eee3d6;
  margin-top:.2rem;
  font-size:.92rem;
  font-weight:600;
}

.cart-sub-label{
  color:#5b4636;
}

.cart-sub-total{
  color:#5b4636;
}

.cart-view-btn{
  display:block;
  text-align:center;
  margin-top:.2rem;
  width:100%;
  padding:.4rem .6rem;
  font-size:.9rem;
}
/* ===== Footer aligned + bordered like header ===== */
.site-footer{
  background: transparent;      /* so the border "card" is visible */
  border-top: none;             /* remove full-width top border */
  min-height:50px;
}

/* Top footer section gets the upper border + rounding */
.footer-wrap{
  max-width:1100px;             /* SAME as .nav-wrap */
  margin:0 auto;
  margin-left:15px;
  padding:1.5rem 1rem;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1.2rem;

}

/* Bottom footer section completes the border box */
.footer-bottom{
  max-width:1100px;             /* SAME as .nav-wrap */
  margin:0 auto 1.2rem;         /* little breathing room under card */
  padding:0 1rem 1.2rem;
  display:grid;
  gap:.4rem;

}

/* Optional: tighter alignment on very large screens */
@media (min-width: 1200px){
  .footer-wrap,
  .footer-bottom{
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ===== Mobile gutters so footer doesn't touch screen edges ===== */
@media (max-width: 640px){
  .footer-wrap,
  .footer-bottom{
    margin-left: .75rem;   /* space from left edge */
    margin-right: .75rem;  /* space from right edge */
    padding-left: .9rem;   /* inner padding */
    padding-right: .9rem;
    border-radius: 12px;  /* keep soft corners on mobile */
  }

  /* make sure the two halves still look like one card */
  .footer-wrap{ border-bottom-left-radius:0; border-bottom-right-radius:0; }
  .footer-bottom{ border-top-left-radius:0; border-top-right-radius:0; }
}
/* ===== Login/Register layout ===== */
.auth-wrap{
  max-width:1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  display:flex;
  justify-content:center;
}

.auth-card{
  width:100%;
  max-width:420px;
  background:#fff;
  border:1px solid #e8e2db;
  border-radius:14px;
  padding:1.2rem 1.2rem 1rem;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.auth-title{
  margin:0 0 .35rem;
  color:#5b4636;
  font-size:1.6rem;
}

.auth-sub{
  margin:0 0 1rem;
  font-size:.95rem;
  color:#6a523e;
  line-height:1.4;
}

.auth-form{
  display:grid;
  gap:.7rem;
}

.auth-form label{
  font-size:.95rem;
  color:#5b4636;
  font-weight:600;
  display:grid;
  gap:.35rem;
}

.auth-form input{
  width:100%;
  padding:.55rem .65rem;
  border:1px solid #d8c9b7;
  border-radius:10px;
  font-size:1rem;
  background:#faf6f1;
}

.auth-form input:focus{
  outline:none;
  border-color:#5b4636;
  box-shadow:0 0 0 3px rgba(91,70,54,.12);
}

.auth-btn{
  width:100%;
  margin-top:.4rem;
}

.auth-links{
  margin-top:.9rem;
  display:flex;
  gap:.5rem;
  justify-content:center;
  font-size:.9rem;
}

.auth-links a{
  color:#5b4636;
  text-decoration:none;
}
.auth-links a:hover{ text-decoration:underline; }
.dot{ opacity:.6; }

@media (max-width: 640px){
  .auth-wrap{ margin:1.2rem auto; }
  .auth-card{ padding:1rem; border-radius:12px; }
}

/* ===== Show/Hide password toggle ===== */
.pw-wrap{
  position: relative;
  display: flex;
  align-items: center;
}

.pw-wrap input{
  width: 100%;
  padding-right: 2.6rem; /* room for eye button */
}

.pw-toggle{
  position: absolute;
  right: .45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid #d8c9b7;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pw-ico{
  width: 18px;
  height: 18px;
  stroke: #5b4636;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* icon swap */
.pw-ico.off{ display:none; }
.pw-toggle.shown .pw-ico.on{ display:none; }
.pw-toggle.shown .pw-ico.off{ display:block; }

.pw-toggle.shown{
  background:#faf6f1;
}
/*admin report*/
.admin-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.admin-filter-form > div {
  margin-bottom: 4px;
}

@media (max-width: 700px) {
  .admin-filter-form {
    display: block;
  }
  .admin-filter-form > div {
    margin-bottom: 8px;
  }
}

/* Admin tables: nicer layout + zebra stripes */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  background: #f5f5f5;
  border-bottom: 1px solid #ccc;
  padding: 6px 8px;
  text-align: left;
}

.admin-table td {
  border-bottom: 1px solid #eee;
  padding: 6px 8px;
}

/* Zebra striping for rows */
.admin-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* Hover effect */
.admin-table tbody tr:hover {
  background: #f0f4ff;
}

/* gallery */


/* Gallery grid: uses CSS grid */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:1rem;
}

.gallery-item .gallery-media{
  display:block;
  width:100%;
  max-height:320px;      /* adjust to taste: 240–360px works well */
  object-fit:cover;      /* crop rather than stretch */
  border-radius:14px;
}

.gallery-item--small .gallery-media{
  max-height:200px;
}

.gallery-item--medium .gallery-media{
  max-height:260px;
}

.gallery-item--large .gallery-media{
  max-height:340px;
}

.gallery-media{
  width:100%;
  border-radius:14px;
  display:block;
}

/* Placeholder block when there's no actual image file */
.gallery-media--placeholder{
  width:100%;
  background:#f0e3d2;          /* a bit darker than the page background */
  border-radius:14px;
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:1rem;
  color:#5b4a3a;
  font-size:0.9rem;
  border:1px dashed #d0c2ad;   /* subtle border so it looks intentional */
}

.gallery-media-label{
  max-width:80%;
}


/* IG / external link badge */
.gallery-link{
  position:relative;
  display:block;
  text-decoration:none;
  color:inherit;
}

.gallery-link-badge{
  position:absolute;
  right:10px;
  bottom:10px;
  padding:4px 8px;
  font-size:0.75rem;
  border-radius:999px;
  background:rgba(0,0,0,0.6);
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:4px;
}

.gallery-link-badge::before{
  content:'▶';
  font-size:0.7rem;
}

/* On wider screens, let "large" items span 2 columns */
@media (min-width:900px){
  .gallery-grid .gallery-item--large{
    grid-column:span 2;
  }
}

/* On narrow screens, everything is just 1 column anyway */
@media (max-width:700px){
  .gallery-grid{
    grid-template-columns:1fr;
    .grid-template-rows:1fr;
  }
}


