/* Your shop's styles. Week 1: make it yours! */
:root {
  --primary:      #9B1B3A;
  --primary-dark: #6E1029;
  --ink:          #2A1A1E;
  --muted:        #6A5459;
  --bg:           #FFF8F1;
  --surface:      #FFFFFF;
  --tint:         #FBE6EA;
  --accent:       #B83F0B;
  --highlight:    #FFC93C;
  --line:         #E8D9DC;
  --footer-bg:    #2A1A1E;
  --footer-text:  #D8CBCE;

  --error:        #B3261E;
  --error-bg:     #FDECEA;
  --error-text:   #7F1712;

  --success:      #1E6B45;
  --success-bg:   #E6F4EC;
  --success-text: #14502F;

  --alert:        #8A5300;
  --alert-bg:     #FFF3D1;
  --alert-text:   #6B4000;

  --loading:      #245A9E;
  --loading-bg:   #E5EEFA;
  --loading-text: #1A4378;
}

@font-face {
  font-family: iranyekan;
  src: url(./font/IRANYekanXVF.ttf);
}

@font-face {
  font-family: vazirmatn;
  src: url(./font/Vazirmatn-VariableFont_wght.ttf);
}

/* Phosphor تعریف کلاس‌های سایز مختلف برای آیکون‌های */
.ph    { font-size: 24px; }
.ph-xs { font-size: 14px; }
.ph-sm { font-size: 16px; }
.ph-md { font-size: 20px; }
.ph-lg { font-size: 32px; }
.ph-xl { font-size: 48px; }


body {
  background: var(--bg);
  margin: 0 auto;
}

main {
  padding: 0 16px;
}

#news-section {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--primary-dark);
  color: var(--surface);
  padding: 12px;
  margin: 0px 0;
  text-align: center;
  font-size: 14px;
  font-family: iranyekan;
  
}

#news{
  align-items: center;
  justify-content: center;
  gap: 0px;
}

#highlight{
  color: var(--highlight);
}

nav {
  background-color: var(--surface);
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

#nav-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: auto auto;
}

#site-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 1440px;
  margin: 0 0;
  color: var(--primary);
}

#site-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#title {
  margin: 0;
  font-family: iranyekan;
  font-size: 16px;
  font-weight: 700;
}

#tagline {
  margin: 0;
  font-family: iranyekan;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

#logo {
  width: 50px;

}

#search-input {
  width: 100%;
  max-width: 700px;
  padding: 12px 12px;
  border-radius: 8px;
  border: 2PX solid var(--line);
  font-family: iranyekan;
  background-color: #FFFFFF;
  outline: var(--line);
}

#search-input:focus{
  border: 2PX solid var(--primary) 
}


#shopping-cart-button {
  color: var(--surface);
  border: 2px solid var(--primary);
  background-color: var(--primary); 
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-family: iranyekan, Vazirmatn, sans-serif;
}

#shopping-cart-button:hover {
  color: var(--surface);
  background-color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}


#header-categories {
  border-bottom: 1px solid var(--line);
  background-color: var(--surface);
}

#btn-categories {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 70px;
  font-family: vazirmatn;
  font-size: 14px;
  list-style: none;
  width: 100%;
  max-width: 1440px;
  margin: 0px auto;
  padding: 8px 0px;
  color: var(--ink);
}

.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 10px 0;
  list-style: none;
  z-index: 999;
  border: 1px solid #eaeaea;
}

/*  استایل آیتم‌های داخل زیرمنو */
.dropdown-menu li {
  display: block;
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  font-size: 13px;
  font-family: iranyekan, sans-serif;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: right;
}

.dropdown-menu li a:hover {
  background-color: var(--tint);
  color: var(--primary);
}

/*  ظاهر شدن منو هنگام هاور ماوس */
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown details[open] .dropdown-menu {
  display: block;
}

#btn-categories>li {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  gap: 6px;
  border-radius: 8px;
}

#btn-categories>li:hover {
  background-color: var(--tint);
  padding: 6px 12px;
  color: var(--primary);
}

#btn-categories>li:focus{
  background-color: var(--primary-dark);
}

.hero-container {
  display: flex;
  gap: 24px;
  max-width: 1440px;
  margin: 24px auto;
  width: 100%;
  align-items: center;
  border-radius: 8px;
}

#hero-right {
  flex: 2;
  background-image: url(./image/hunters-race-hNoSCxPWYII-unsplash.jpg);
  background-color: rgba(110,16,41,.75);
  background-blend-mode: multiply;
  background-size: cover;
  height: 550px;
  margin-left: auto;
  border-radius: 8px;
}

#hero-left {
  flex: 1;
  background-image: url(./image/laurenz-heymann-al6s6JpnZis-unsplash.jpg);
  background-color: rgba(110,16,41,.75);
  background-blend-mode: multiply;
  background-size: cover;
  height: 550px;
  border-radius: 8px;
  background-position: center;
}

#hero-title1 {
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: start;
  margin-top: 130px;
  margin-right: 120px;
}

#hero-title2 {
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: center;
  margin-top: 200px;
  margin-right: 0px;
}

#hero-h1 {
  font-family: iranyekan;
  font-size: 48px;
  color: #FFFFFF;
  font-weight: 800;
}

#hero-h2 {
  font-family: iranyekan;
  font-size: 28px;
  color: #eaeaea;
  font-weight: 800;
}

#hero-p {
  font-family: vazirmatn;
  font-size: 24px;
  color: var(--bg);
}

#hero-p2 {
  font-family: vazirmatn;
  font-size: 18px;
  color: #eaeaea;
}

#cta {
  color: var(--ink);
  background-color: var(--highlight);
  border: 3px solid var(--highlight);
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  font-size: 24px;
  font-weight: 500;
  padding: 20px 18px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-family: iranyekan, Vazirmatn, sans-serif;

  
}

#cta:hover{
  color: #fbfffd;
  background-color: rgba(255, 255, 255, 0.147);
  border: 3px solid var(--primary-dark);

}


.section-title {
  color: var(--ink);
  width: 100%;
  max-width: 1440px;
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
  font-family: vazirmatn;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0;
}

.flex-item-product {
  display: flex;
  justify-content: flex-start;
  gap: 36px;
  max-width: 1440px;
  margin: 0px auto;
  padding-bottom: 16px;
  padding-right: 24px;
  padding-left: 18px;
  overflow-x: auto;
}

.flex-item-categories {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background-color: var(--tint);
  margin-top: 12px;
  border-radius: 8px;
  font-weight: 700;
  padding-bottom: 4px;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: iranyekan;
  gap: 8px;
  padding: 10px 32px;
  margin-top: 12px;
  margin-bottom: 12px;

}

.img-categories {
  width: 100px;
  border-radius: 6px;
  filter: drop-shadow(0px 0px 12px #1c2b3374);
  transition: all 0.2s ease;
}

.img-categories:hover {
  filter: drop-shadow(2px 2px 18px var(--primary));
}


.product-cart {
  flex-shrink: 0;
  width: 200px;
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 6px;;
  margin-top: 12px;
  transition: all 0.2s ease;
}

.product-cart:hover {
  box-shadow: 0 0 12px var(--primary);
}

.img {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--tint);
  border-radius: 8px;
  padding-top: 24px;
  padding-bottom: 24px;
  margin-bottom: 12px;
  text-align: center;
}

.img-product {
  width: 160px;
}

.img-label {
  text-align: left;
  margin: 0 0;
}

.img-label-p {
  background-color: var(--accent);
  color: white;
  margin: 12px;
  border: 1px solid black;
  border-radius: 50px;
  display: inline;
  padding: 6px 12px;
  text-align: left;
  font-size: 10px;
  font-family: iranyekan;
}

.buynow-btn {
  padding: 8px 14px;
  background-color: var(--primary);
  color: #f7faf5;
  border-radius: 6px;
  border: none;
  font-size: 18px;
}

.buynow-btn:hover {
  background-color: var(--primary-dark);
}

.card-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-unit{
  font-family: iranyekan;
  font-size: 14px;
}

.price-label {
  color: var(--ink);
  font-family: iranyekan;
  font-size: 14px;
  font-weight: 700;
}

.product-unit{
  color: var(--muted);
}

.product-details {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

h5, h3 ,p {
  margin: 0;
}

.product-description {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: iranyekan;
}

.feature-left {
  width: 100%;
  height: 250px;
  display: flex;
  background-color: rgb(91, 104, 113);
  gap: 12px;
  border-radius: 8px;
  background-image: url(./image/feature-Banner\ strap\ desktop.webp);
  background-blend-mode: multiply;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;

}

.title-feature-left {
  color: #ffffff;
  font-family: iranyekan;
  font-size: 28px;
  font-weight: 600;
  text-shadow: 2PX 2PX 2PX black;


}

.feature-right {
  width: 100%;
  height: 250px;
  display: flex;
  background-color: rgb(91, 104, 113);
  gap: 12px;
  border-radius: 8px;
  background-image: url(./image/feature-All-straps-desktop.webp);
  background-blend-mode: multiply;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;

}

.title-feature-right {
  color: #ffffff;
  font-family: iranyekan;
  font-size: 28px;
  font-weight: 600;
  text-shadow: 2PX 2PX 2PX black;
}


/* ==================== استایل‌های بخش فوتر ==================== */

footer {
  background-color: var(--footer-bg);
}

#footer-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#main-footer {
  color: #e9ecef;
  padding-top: 50px;
  padding-bottom: 25px;
  margin-top: 60px;
  font-family: iranyekan, Vazirmatn, sans-serif;
  width: 100%;
  max-width: 1440px;
  margin: auto auto;
}

.footer-container {
  max-width: 1440px;
  margin: auto auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

/* استایل سرفصل‌ها */
.footer-col h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--highlight);
  border-radius: 2px;
}

/* استایل متون */
.footer-about .about-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--footer-text);
  margin-bottom: 14px;
}

.footer-info {
  font-size: 13px;
  color: #ced4da;
  margin-bottom: 8px;
}

.footer-phone {
  font-size: 14px;
  font-weight: bold;
  color: var(--highlight);
  text-align: right;
  margin-top: 6px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
  display: block;
}

.footer-links li a {
  color: #adb5bd;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, padding-right 0.2s ease;
  display: inline-block;
}

.footer-links li a:hover {
  color: #ffffff;
  padding-right: 4px;
}

.working-hours p {
  font-size: 13px;
  color: #adb5bd;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
}

.footer-bottom .copyright {
  font-size: 13px;
  color: #868e96;
}

.back-to-top {
  color: #adb5bd;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.back-to-top:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--highlight);
}

.flex-item-product::-webkit-scrollbar {
  height: 5px;
}

.flex-item-product::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.error-state {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: vazirmatn;
}

.loading-state {
  background: var(--loading-bg);
  color: var(--loading-text);
  border: 1px solid var(--loading);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: iranyekan;
}

#discounted-carousel{
  display: flex;  
  align-items: center;

}

/* پس‌زمینه و شکل کلی توست */
.notyf__toast--success {
  border-radius: 12px;
  padding: 14px 20px;
  max-width: none !important;
  width: auto !important;
  min-width: 320px;
  
}

/* متن توست */
.notyf__message {
  font-family: vazirmatn, sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 8px;
}

/* .notyf__icon--success {
} */







/* Responsive layout */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.hero-container,
#nav-section,
#btn-categories,
#search-input,
#hero-title1,
#hero-title2,
.feature-left,
.feature-right {
  box-sizing: border-box;
}

#header-categories {
  position: relative;
  z-index: 20;
  overflow: visible;
}


.flex-item-product {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

@media (max-width: 1200px) {
  #nav-section {
    gap: 16px;
    padding-inline: 20px;
  }

  #search-input {
    min-width: 0;
  }

  #btn-categories {
    gap: clamp(16px, 4vw, 48px);
    padding-inline: 20px;
  }

  .hero-container {
    gap: 16px;
    padding-inline: 20px;
  }

  #hero-right,
  #hero-left {
    display: flex;
    align-items: center;
    height: clamp(280px, 42vw, 420px);
  }

  #hero-title1,
  #hero-title2 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: clamp(16px, 3vw, 40px);
  }

  #hero-h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.4;
  }

  #hero-h2 {
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.4;
  }

  #hero-p {
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.7;
  }

  #hero-p2 {
    font-size: clamp(14px, 1.7vw, 18px);
    line-height: 1.7;
  }

  #cta {
    margin-top: clamp(16px, 3vw, 28px);
    padding: 12px 16px;
    font-size: clamp(16px, 2.2vw, 20px);
  }

  .feature-left,
  .feature-right {
    flex: 1 1 0;
    min-width: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 768px) {
  main {
    padding-inline: 12px;
  }

  nav {
    height: auto;
    padding-block: 12px;
  }

  #nav-section {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  #site-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  #search-input {
    order: 1;
    flex: 1 0 100%;
    width: 100%;
  }

  #shopping-cart-button {
    flex: 0 0 auto;
  }

  #btn-categories {
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
    gap: 12px 20px;
    padding: 10px 16px;
    white-space: normal;
  }

  .hero-container {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  #hero-right,
  #hero-left {
    flex: none;
    width: 100%;
    height: clamp(220px, 62vw, 360px);
    margin: 0;
  }

  #hero-title1,
  #hero-title2 {
    padding: clamp(16px, 5vw, 32px);
  }

  #hero-h1 {
    font-size: clamp(24px, 6vw, 36px);
  }

  #hero-h2 {
    font-size: clamp(20px, 5vw, 30px);
  }

  #hero-p {
    font-size: clamp(14px, 3.8vw, 18px);
  }

  #hero-p2 {
    font-size: clamp(13px, 3.4vw, 16px);
  }

  #cta {
    margin-top: 16px;
    padding: 10px 14px;
    font-size: clamp(14px, 3.8vw, 18px);
  }

  .item {
    padding-inline: clamp(12px, 4vw, 24px);
  }

  .feature-left,
  .feature-right {
    flex: none;
    width: 100%;
    height: clamp(180px, 42vw, 230px);
    padding: 16px;
    text-align: center;
  }

  .title-feature-left,
  .title-feature-right {
    max-width: 100%;
    font-size: clamp(18px, 4vw, 24px);
    line-height: 1.5;
  }

  .footer-container {
    padding-inline: 20px;
  }

  .footer-bottom {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  #news {
    font-size: 12px;
  }

  nav{
    padding: 12px 16px;
  }

  #nav-section{
    padding: 0;
  }

  #logo {
    width: 42px;
  }

  #title {
    font-size: 14px;
  }

  #tagline {
    font-size: 11px;
  }

  main{
    padding: 0 16px;
  }

  #shopping-cart-button {
    padding: 8px;
    font-size: 12px;
  }

  .hero-container{
    padding: 0 16px;
  }

  #btn-categories{
    gap: clamp(0px, 2vw, 0px);
    font-size: 12px;
  }

  .flex-item-product {
    gap: 12px;
    scroll-snap-type: x mandatory;
    padding: 12px 16px;
    margin: 0;
  }

  .product-cart {
    scroll-snap-align: start;
    padding-right: 16px;
  }


  .flex-item-categories {
    justify-content: center;
  }

  .img-categories {
    width: 80px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 28px;
  }

  .footer-container {
    padding-inline: 16px;
  }
}