:root{
  --bg:#f7f7f7;
  --card:#fff;
  --accent:#1f1f1f;
  --muted:#666;
  --radius:12px;
}

html, body {
  height: 100%;
  margin: 0;
}

.page-wrap {
  min-height: calc(100% - 180px); /* ارتفاع محتوا - ارتفاع فوتر */
  display: flex;
  flex-direction: column;
}

.footer {
  margin-top: auto;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:var(--bg);
  color:var(--accent);
  direction:rtl;
  text-align:right;
}

/* HEADER */
/* ساختار کلی هدر */
.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px;
  background:#ffffffff;
  backdrop-filter:blur(6px);
}

/* لوگو */
.logo-box {
  width:55px;
  height:55px;
  flex-shrink:0;
}

.logo-box img {
  width:100%;
  height:100%;
  object-fit:contain;
}

/* متن کنار لوگو */
.brand h1 {
  margin:0;
  font-size:20px;
}
.brand .tag {
  margin:px 0 0;
  font-size:13px;
  color:#666;
  
}

.brand{
  margin-top: 6px;
}

.brand-p{
  margin-top: -2px;
}

.insta-link{
  display:flex;
  align-items:center;
  justify-content:center;
}

.insta-icon{
  width:38px;
  height:38px;
  object-fit:contain;
  cursor:pointer;
  transition:transform .2s;
}

.insta-icon:hover{
  transform:scale(1.12);
}

/* ---------- ریسپانسیو موبایل ---------- */
@media(max-width:600px){

  .site-header{
    flex-direction:row !important;  /* مهم‌ترین بخش */
    justify-content: space-between;
    align-items:center;
    text-align:center;
  }

  .logo-box{
    width:70px;
    height:70px;
  }

  .insta-icon{
    margin-top: 10px;
  }

  .brand h1{
    font-size:18px;
    margin-top: 20px;
  }
}
/* TABS */
.tabs{
  display:flex;
  gap:8px;
  padding:12px;
  overflow:auto;
  justify-content:flex-start;
}

.tab-btn{
  background:var(--card);
  border:1px solid #e6e6e6;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
  font-size:14px;
  transition:all .18s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tab-btn.active{
  background:var(--accent);
  color:#fff;
  transform:translateY(-3px);
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

/* ITEMS */
.content{padding:16px}

.items{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:14px;
}

.card{
  background:var(--card);
  border-radius:var(--radius);
  padding:12px;
  box-shadow:0 6px 18px rgba(18,18,18,0.04);
}

.card h3{margin:0 0 6px;font-size:16px}
.card p{margin:0;color:var(--muted);font-size:13px}

.footer{
  margin-top: 40px;
  background:#121212;
  color:#fff;
  padding: 30px 20px;
  text-align:center;
}

.footer h3{
  margin:0;
  font-size:20px;
  font-weight:600;
}

.footer p{
  margin:6px 0;
  font-size:14px;
  opacity:0.9;
}

.footer-bottom{
  margin-top:18px;
  font-size:12px;
  opacity:0.7;
}

/* MOBILE */
@media (max-width:600px){
  .insta-icon{
    width:48px;
    height:48px;
  }
  .site-header{flex-direction:column;align-items:flex-start}
  .anim-wrap{width:100%;height:140px}
  .brand h1{font-size:18px}
}

/* CLICKABLE CARD */
.card{
  background:var(--card);
  border-radius:var(--radius);
  opacity: 80%;
  padding:12px;
  box-shadow:0 6px 18px rgba(18,18,18,0.04);
  cursor:pointer;
  transition:transform .15s, box-shadow .15s;
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 22px rgba(0,0,0,0.08);
}

/* MODAL */
.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  backdrop-filter:blur(4px);
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.modal-content{
  background:#ffffff;
  padding:22px;
  width:90%;
  max-width:420px;
  border-radius:18px;
  animation:fadeIn .27s ease;
  text-align:center;
}

.modal-content img{
  width:100%;
  border-radius:14px;
  margin-bottom:12px;
  object-fit:cover;
}

.close{
  float:left;
  font-size:28px;
  cursor:pointer;
  margin-top:-8px;
}

.modal-price{
  margin-top:14px;
  font-weight:600;
  font-size:17px;
}

@keyframes fadeIn {
  from { opacity:0; transform:scale(0.9); }
  to   { opacity:1; transform:scale(1); }
}

/* TICKER (MOVING TEXT) */
/* NEW FIXED TICKER */
.marquee {
  margin-bottom: -40px;
  width: 100%;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  border-top: 1px, white;
  padding: 12px 0;
  position: relative;
  direction: ltr; /* خیلی مهم */
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeMove 10s linear infinite;
}

.marquee-text {
  white-space: nowrap;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

/* انیمیشن بی‌نهایت بدون توقف */
@keyframes marqueeMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* ---------------------------------------
   BACKGROUND VIDEO
---------------------------------------- */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -9999 !important;   /* تضمینی پشت همه چیز */
  pointer-events: none;
  filter: brightness(0.6);
}


/* ======================== MODAL ========================= */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 20px;
  text-align: center;
  animation: pop 0.25s ease;
}

@keyframes pop {
  from { transform: scale(0.8); opacity: 0 }
  to   { transform: scale(1); opacity: 1 }
}

.modal-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}

.close-btn {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 26px;
  cursor: pointer;
}

.price-box {
  margin-top: 14px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
/* ======================================================= */