/* ================================================
   Capiatto — Mobile Styles
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --cream:        #FFFFFF;
  --cream-dark:   #F2F2F2;
  --brown:        #1A1A1A;
  --brown-mid:    #5C3D2E;
  --gold:         #C9A84C;
  --gold-light:   #E8D5A3;
  --red:          #8B1A1A;
  --red-hover:    #A52020;
  --text:         #1A1A1A;
  --text-muted:   #7A6355;
  --white:        #FFFFFF;
  --border:       #E0E0E0;
  --radius:       12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  background: var(--white);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

/* ── TOP BAR ─────────────────────────────────── */
.top-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  height: 64px;
  background: var(--brown);
  border-bottom: 2px solid var(--gold);
}

.top-bar .phone-link {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.top-bar-logo {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}
.top-bar-logo img { height: 40px; width: auto; display: block; }

.top-bar-rating {
  display: none;
}

.lang-switcher {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--gold-light);
}
.lang-switcher a {
  color: var(--gold-light);
  text-decoration: none;
}
.lang-switcher a.active { color: var(--gold); }
.lang-switcher span { margin: 0 3px; opacity: 0.5; }

/* ── CONTAINER ───────────────────────────────── */
.container {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  gap: 0;
  margin: 0;
}

.left-column { width: 100%; }
.left-content { display: contents; }

.block-1           { order: 1; }
#success-message,
.success           { order: 2; }
.block-2-top       { order: 3; }
.block-2-bottom    { order: 4; }
.block-3           { order: 5; }
.block-5           { order: 6; }

.right-column { display: contents; }

/* Product image */
.block-1 { width: 100%; }
.block-1 img {
  width: 100%;
  display: block;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

/* Description */
.block-3 {
  padding: 20px 16px 28px;
  margin: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.block-3 h1 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 12px;
  line-height: 1.35;
}

.block-3 p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.75;
}

.block-3 ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}
.block-3 ul li {
  font-size: 15px;
  color: var(--text);
  padding: 7px 0 7px 20px;
  position: relative;
  border-bottom: 1px solid var(--cream-dark);
}
.block-3 ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.block-3 ul li:last-child { border-bottom: none; }

/* Order block */
.block-2-top {
  background: var(--white);
  border-radius: 0;
  padding: 20px 16px 24px;
  box-shadow: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.coffee-name {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.coffee-available {
  font-size: 12px;
  color: #2D7A3A;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.coffee-price {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.coffee-delivery {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-top: 4px;
}

/* Wholesale */
.toggle-wholesale {
  background: transparent;
  color: var(--brown-mid);
  border: 1.5px solid var(--brown-mid);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
}
.toggle-wholesale:hover {
  background: var(--brown-mid);
  color: var(--white);
}

.wholesale-info {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 0 12px;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--brown-mid);
}
.wholesale-info.open {
  max-height: 80px;
  padding: 10px 12px;
}
.close-wholesale {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Phone form */
.phone-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
}
.phone-form input:focus { border-color: var(--gold); }
.phone-form input::placeholder { color: var(--text-muted); font-size: 14px; }

.phone-form button {
  width: 100%;
  padding: 15px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.phone-form button:active { opacity: 0.85; }

/* Success message */
.success {
  padding: 12px 16px;
  background: #EBF7EC;
  color: #1E6B28;
  border-bottom: 1px solid #A8D9AC;
  font-size: 14px;
  text-align: center;
  opacity: 1;
  transition: opacity 1s ease-out;
}
.success.hide { opacity: 0; }

/* Donna image */
.block-2-bottom {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.block-2-bottom img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

/* Club feed */
.block-5 {
  padding: 24px 16px 32px;
  margin: 0 16px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: none;
}
.block-5 h2 { margin-bottom: 14px; }
.block-5 h2 a { display: inline-block; }
.block-5 h2 img { height: 80px; width: auto; display: block; }

.posts-feed { display: flex; flex-direction: column; gap: 0; }

.post-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  background: transparent;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--cream-dark);
}
.post-item:last-child { border-bottom: none; }

.post-image {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
}
.post-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: var(--brown);
  border-top: 2px solid var(--gold);
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}
.site-footer a {
  font-size: 13px;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.site-footer a:hover { color: var(--gold); }

/* ── LAYOUT VISIBILITY ───────────────────────── */
.desktop-layout { display: none !important; }
.mobile-layout  { display: block; }

.block-1, .block-2-top, .block-2-bottom, .block-3, .block-5 { order: unset; }
.left-content, .right-column { display: flex; flex-direction: column; }