@import url("../_shared/base.css");

/* ==========================================================================
   Template 01 — "منوی مدرن"
   Cover hero + sticky category rail + image-left product rows.
   ========================================================================== */

.t1-hero {
  position: relative;
  padding: 2.5rem 0 2rem;
  text-align: center;
  background: linear-gradient(140deg, var(--sb-primary), var(--sb-secondary));
  color: #fff;
  overflow: hidden;
}
.t1-hero.has-cover { padding: 4rem 0 2.5rem; }

.t1-hero-bg { position: absolute; inset: 0; z-index: 0; }
.t1-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.t1-hero.has-cover::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .32));
}

.t1-hero-inner { position: relative; z-index: 2; }

.t1-logo {
  width: 84px; height: 84px;
  margin: 0 auto 1rem;
  border-radius: var(--sb-radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .28);
  border: 3px solid rgba(255, 255, 255, .9);
}
.t1-logo img { width: 100%; height: 100%; object-fit: cover; }

.t1-title {
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  margin-bottom: .35rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}
.t1-tagline {
  font-size: .95rem;
  opacity: .93;
  margin: 0 auto .75rem;
  max-width: 42ch;
}
.t1-hours {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem;
  background: rgba(255, 255, 255, .18);
  padding: .25rem .8rem;
  border-radius: 999px;
  margin: 0 0 1rem;
  backdrop-filter: blur(6px);
}
.t1-hero-actions { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.t1-hero-actions .sb-btn {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.t1-hero-actions .sb-btn:hover { background: rgba(255, 255, 255, .3); }

/* ------------------------------------------------------------ sticky rail */
.t1-rail {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--sb-bg);
  padding: .85rem 0 .5rem;
  transition: box-shadow .25s ease;
}
.t1-rail.is-stuck { box-shadow: 0 6px 18px rgba(0, 0, 0, .1); }

/* ------------------------------------------------------------- item list */
.t1-group { margin-bottom: 2rem; }
.t1-group:last-child { margin-bottom: 0; }

.t1-group-head {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .9rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--sb-border);
}
.t1-group-head h2 {
  font-size: 1.15rem;
  margin: 0;
  position: relative;
  padding-bottom: .5rem;
}
.t1-group-head h2::after {
  content: "";
  position: absolute;
  bottom: -.62rem;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: var(--sb-primary);
}
.t1-group-head p { font-size: .8rem; color: var(--sb-muted); margin: 0; }

.t1-list { display: flex; flex-direction: column; gap: .7rem; }

.t1-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem;
  background: var(--sb-surface);
  border-radius: var(--sb-radius);
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid transparent;
}
.t1-item:hover { transform: translateY(-2px); }

.t1-card-elevated .t1-item { box-shadow: var(--sb-shadow); }
.t1-card-outlined .t1-item { border-color: var(--sb-border); box-shadow: none; }
.t1-card-flat .t1-item { box-shadow: none; background: transparent; border-bottom: 1px solid var(--sb-border); border-radius: 0; }
.t1-card-glass .t1-item {
  background: color-mix(in srgb, var(--sb-surface) 70%, transparent);
  backdrop-filter: blur(10px);
  border-color: var(--sb-border);
}

.t1-item-thumb { width: 72px; height: 72px; }

.t1-item-body { flex: 1; min-width: 0; display: block; }

.t1-item-head {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: .15rem;
}
.t1-item-name { font-weight: 700; font-size: .96rem; }
.t1-item-desc {
  display: block;
  font-size: .8rem;
  color: var(--sb-muted);
  line-height: 1.75;
}

.t1-item-variants { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .3rem; }
.t1-variant {
  font-size: .7rem;
  padding: .08rem .45rem;
  border-radius: 999px;
  background: var(--sb-bg);
  color: var(--sb-muted);
  border: 1px solid var(--sb-border);
}

.t1-item-price { text-align: center; flex-shrink: 0; }

/* --------------------------------------------------------------- detail */
.t1-back {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .85rem; color: var(--sb-muted);
  margin-bottom: 1rem;
}
.t1-back:hover { color: var(--sb-primary); }
.t1-back .sb-icon { width: 16px; height: 16px; transform: scaleX(-1); }

.t1-detail {
  background: var(--sb-surface);
  border-radius: var(--sb-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--sb-shadow);
}
.t1-detail-image {
  border-radius: var(--sb-radius);
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 4 / 3;
}
.t1-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.t1-detail-title { font-size: 1.35rem; margin-bottom: .5rem; }
.t1-detail-price { margin: .9rem 0; font-size: 1.15rem; }
.t1-detail-price .sb-price { font-size: 1.25rem; }
.t1-detail-desc { color: var(--sb-muted); font-size: .92rem; }

.t1-detail-block { margin-top: 1.25rem; }
.t1-detail-block h2 { font-size: 1rem; margin-bottom: .5rem; }
.t1-variant-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid var(--sb-border);
  font-size: .88rem;
}
.t1-variant-list li:last-child { border-bottom: none; }

.t1-detail-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ---------------------------------------------------------------- about */
.t1-about { background: var(--sb-surface); }
.t1-about-body { color: var(--sb-muted); font-size: .92rem; margin: 0; }

/* -------------------------------------------------------------- gallery */
.t1-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem;
}
.t1-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--sb-radius-sm);
}

/* ------------------------------------------------------------------ FAQ */
.t1-faq { border-bottom: 1px solid var(--sb-border); }
.t1-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 0;
  cursor: pointer;
  font-weight: 700;
  font-size: .92rem;
  list-style: none;
}
.t1-faq summary::-webkit-details-marker { display: none; }
.t1-faq summary .sb-icon { color: var(--sb-muted); transition: transform .2s ease; }
.t1-faq[open] summary .sb-icon { transform: rotate(180deg); }
.t1-faq-body { padding-bottom: 1rem; color: var(--sb-muted); font-size: .88rem; }

/* -------------------------------------------------------------- contact */
.t1-contact { background: var(--sb-surface); }
.t1-address {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-top: 1rem;
  padding: .85rem;
  background: var(--sb-bg);
  border-radius: var(--sb-radius);
  font-size: .87rem;
}
.t1-address .sb-icon { color: var(--sb-primary); margin-top: .15rem; }

.t1-map {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1.5rem;
  background: var(--sb-surface);
  border: 2px dashed var(--sb-border);
  border-radius: var(--sb-radius);
  color: var(--sb-primary);
  font-weight: 700;
  font-size: .9rem;
}
.t1-map:hover { border-color: var(--sb-primary); }

/* ----------------------------------------------------------------- page */
.t1-page { background: var(--sb-surface); padding: 1.5rem; border-radius: var(--sb-radius-lg); }
.t1-page h1 { font-size: 1.35rem; }
.t1-page-body { color: var(--sb-muted); font-size: .92rem; line-height: 2; }
.t1-page-body h2, .t1-page-body h3 { color: var(--sb-text); margin-top: 1.25rem; }

.t1-footer-links {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: .75rem;
  font-size: .82rem;
}
.t1-footer-links a:hover { color: var(--sb-primary); }

/* ----------------------------------------------------------- responsive */
@media (max-width: 480px) {
  .t1-item { padding: .6rem; gap: .65rem; }
  .t1-item-thumb { width: 62px; height: 62px; }
  .t1-item-name { font-size: .9rem; }
  .t1-logo { width: 70px; height: 70px; }
  .t1-detail { padding: 1rem; }
}

@media (min-width: 768px) {
  .t1-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .t1-gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
