body {
  margin: 0;
  font-family: "dana", sans-serif;
  background: var(--app-bg-color);
  color: var(--text-color);
}

/* ===== HEADER ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem;
  background: var(--section-bg-color);
  box-shadow: 0 0 .5rem var(--primary-color);
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap; 
}

.logo-box {
  width: 120px;
  height: 120px;
  border-radius: 100%;
  box-shadow: 0px 5px 5px var(--primary-dark);
  overflow: hidden;
  background: #eee; /
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.header-info h1 {
  margin: 0;
  font-size: 2.2rem;
  color: var(--primary-color);
}

.header-info p {
  margin: 0;
  font-size: 1rem;
  color: #444;
  max-width: 450px; /* کمی پهن‌تر */
  line-height: 1.6;
}

.back-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 1rem;
  margin-left: auto; 
  margin-right: auto; 
  font-family: "dana";
}

.back-btn:hover {
  background: #a0132e;
}

/* ===== MAIN CONTENT ===== */
main {
  padding: 2rem 3rem;
  max-width: 1400px; 
  margin: 0 auto;
}

main h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* ===== SECTION FOR EACH MAJOR ====================== */

section{
    background-color: var(--section-bg-color);
    padding: 2rem;
}

.major-section {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary-color); 
  border-radius: 2rem;
}

.major-section h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-right: 0.5rem;
  border-right: 4px solid var(--primary-color);
}

/* ===== HORIZONTAL SCROLL CONTAINER ===== */
.scroll-container {
  position: relative;
  padding: 2rem; 
}

.scroll-container::before,
.scroll-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1rem; 
  z-index: 10;
  pointer-events: none;
}


.scroll-container::after {
  right: 0;
  background: var(--gradient-fade);
}


.scroll-container:has(> .scroll-content:not([data-scrolled="false"]))::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0), var(--card-bg) 50%);
}

.scroll-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0), var(--card-bg) 50%);
}

.scroll-content {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.5rem; 
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--secondary-color); /* رنگ اسکرول‌بار */
  scroll-behavior: smooth; 

  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

h1, h2, h3, h4,h5{
    font-family: "Morabba Bold";
}

.none{
   width: 100%;
   height: 200px;
   display: flex;
   justify-content: center;   
   align-items: center;       
   border-radius: 10px;
}


/* ===== PRODUCT CARD ===== */
.product-card-scroll {
  flex: 0 0 260px; 
  background-color: var(--app-bg-color);
  border-radius: 1.5rem;
  box-shadow: 0 4px 10px var(--primary-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card-scroll:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px var(--primary-dark);
}

.product-img-box-scroll {
  width: 100%;
  height: 160px; 
  overflow: hidden;
  background: #eee;
}

.product-img-box-scroll img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content-scroll {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-grow: 1; 
}

.product-title-scroll {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.4;
}

.product-desc-scroll {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin: 0.2rem 0;
  flex-grow: 1; 
}

.product-meta-scroll, .product-price-scroll {
  font-size: 0.8rem;
  color: #333;
  margin-top: 0.4rem;
}

.product-price-scroll {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.content-section {
    margin-top: 20px;
    display: none; 
}

.content-section.visible {
    display: block; 
}

.link-placeholder{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.major-link{
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

button {
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    background-color: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 2rem;
    font-size: 16px;
    display: flex;
    transition: all 0.5s;
}

button:hover {
    background-color: var(--primary-color);
}


.media-item{
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.vid{
  object-fit: contain;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
  header {
    padding: 2rem;
    flex-direction: column; 
    text-align: center;
  }
  .header-left {
    flex-direction: column;
    gap: 1rem;
  }
  .logo-box {
    width: 100px;
    height: 100px;
  }
  .back-btn {
    width: 80%; 
    max-width: 300px;
  }
  main {
    padding: 1.5rem;
  }
  main h2 {
    font-size: 1.8rem;
  }
  .major-section h3 {
    font-size: 1.6rem;
  }
  .scroll-container::before,
  .scroll-container::after {
    width: 0.7rem; 
  }
  section{
      padding: 2rem 5px;
  }
  .scroll-content {
  display: flex;
  overflow-x: none; 
  flex-wrap: wrap;
}
.product-card-scroll {
flex: content;
}

}
@media (max-width: 400px) {
.major-section {
  margin-bottom: 1rem;
  padding-bottom: .5rem;
}
.scroll-container {
  padding: .5rem;
}
}