body {
    background: #19171a;
    color: #fff;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
.navbar {
    width: 100%;
    background: rgba(30, 28, 34, 0.18); /* شفاف‌تر */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 16px 0 8px 0;
    position: fixed;
    top: 0;
    z-index: 10;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    scrollbar-color: #b68c2b #19171a;
    position: relative;
    display: flex;
    flex-wrap: nowrap !important;
    gap: 8px;
    overflow-y: hidden; /* اسکرول عمودی غیرفعال */

    margin-left: 24px;
    box-shadow: 0 2px 18px #0006;
    padding-right: 20px;
    padding-left: 20px;
}
.navbar::-webkit-scrollbar {
    display: none;
}
.navbar {
    scrollbar-width: none; /* برای فایرفاکس */
    -ms-overflow-style: none; /* برای IE و Edge */
}
.nav-btn {
    min-width: 110px; /* حداقل عرض برای خوانا بودن متن */
    flex-shrink: 0;   /* جلوگیری از کوچک شدن دکمه‌ها */
    display: inline-block;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(252,182,159,0.18) 100%);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    padding: 10px 18px;
    margin: 4px 0;
    font-size: 1.05rem;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 rgba(255, 126, 95, 0.08);
    transition: 
        background 0.25s,
        color 0.2s,
        box-shadow 0.25s,
        border 0.25s,
        transform 0.18s cubic-bezier(.36,1.7,.45,.85);
    position: relative;
    overflow: hidden;
}
.nav-btn:hover, .nav-btn:focus {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    color: #fff;
    box-shadow: 0 4px 18px 0 rgba(255, 126, 95, 0.18), 0 0 0 3px rgba(255,126,95,0.10);
    border: 1.5px solid #ffb88c;
    transform: scale(1.07);
}
.nav-btn.active {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(255, 126, 95, 0.25), 0 0 0 4px rgba(255,126,95,0.13);
    border: 2px solid #ffb88c;
    transform: scale(1.09);
    z-index: 2;
}
.nav-btn:first-child {
    margin-right: 12px;
}
.nav-btn:last-of-type {
    margin-left: 12px;
}

.menu-scroll-area {
    max-width: 1800px;
    margin: 0 auto;
    height: calc(100vh - 64px - 56px); /* 64px هدر + 56px فوتر */
    text-align: center;
    align-items: center;
    overflow-y: auto; /* اسکرول فعال */
    scrollbar-width: none; /* مخفی کردن اسکرول‌بار در فایرفاکس */
    -ms-overflow-style: none; /* مخفی کردن اسکرول‌بار در IE و Edge */
    padding: 0rem 11px 0rem;
    margin-top: 9rem;
    margin-bottom: 200px; /* فضای کافی برای دکمه نظرسنجی و دفترچه یادداشت */
}
.menu-scroll-area::-webkit-scrollbar {
    display: none; /* مخفی کردن اسکرول‌بار در کروم و سافاری */
}
.menu-container {
    max-width: 100%;
    margin-right: 10px;
    padding: 0;
    display: block;
    margin-top: 20px;
}


.menu-section {
    background: rgba(20, 18, 22, 0.95);
    /* border: 2px solid #b68c2b; */
    border: none;
    border-radius: 18px;
    min-width: 220px;
    max-width: 320px;
    flex: 1 1 260px;
    padding: 12px 12px 8px 12px;
    margin-bottom: 8px;
    box-shadow: 0 0 16px #0008;
    display: none !important;
        background: rgba(255, 255, 255, 0.25); /* پس‌زمینه سفید با شفافیت */
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* سایه ملایم */
        backdrop-filter: blur(8px); /* افکت بلور */
        -webkit-backdrop-filter: blur(8px); /* برای سافاری */
        border-radius: 16px; /* گوشه‌های گرد */
        border: 1px solid rgba(255, 255, 255, 0.3); /* خط دور شفاف */
    
}

.menu-section {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 24px 0 0 0;
    padding: 0;
    transition: none;
}
.menu-section.active {
    display: block !important;
    box-shadow: none !important;
    border: none !important;
}

.menu-section.active {
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
    border: 1.5px solid rgba(255,255,255,0.5);
}
.menu-section h2 {
    color: #fff2b2;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 8px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 0 8px #b68c2b;
}
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.02rem;
    padding-right: 0;
    padding-left: 0;
}
/* افکت ظاهر شدن برای همه liها */
.menu-list li {
    opacity: 0;
    transform: translateY(30px);
    animation: menuItemFadeIn 0.6s cubic-bezier(.36,1.7,.45,.85) forwards;
}

/* افکت ردیفی برای آیتم‌های فعال */
.menu-section.active .menu-list li,
.menu-section.active .menu-desc {
    animation-name: menuItemFadeIn;
    animation-delay: calc(var(--i) * 0.07s);
}

/* حذف انیمیشن از آیتم‌های غیرفعال */
.menu-section:not(.active) .menu-list li {
    animation: none !important;
    opacity: 0;
    transform: translateY(30px);
}

/* فقط آیتم‌های اصلی (نه توضیحات) flex و خط داشته باشند */
.menu-list li:not(.menu-desc) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid;
    border-image: linear-gradient(90deg, #ffecd2 0%, #feb47b 100%) 1;
    padding: 6px 8px 6px 4px;
}

/* آخرین آیتم اصلی بدون خط */
.menu-list li:not(.menu-desc):last-of-type {
    border-bottom: none;
}
.menu-section.active .menu-list li {
    animation-name: menuItemFadeIn;
    animation-delay: calc(var(--i) * 0.07s);
}
.menu-section:not(.active) .menu-list li {
    animation: none !important;
    opacity: 0;
    transform: translateY(30px);
}
@keyframes menuItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.item-title {
        flex: 1 1 auto;
        text-align: right;
        margin: 0;
        padding-right: 12px;
    
}
.item-price {
    min-width: 80px;
    text-align: left;
    margin: 0 0 0 24px; /* فاصله فقط از سمت چپ */
    color: #ffe6a0;
    font-weight: bold;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 1.05em;
}
.menu-desc {
    font-size: 0.98rem;
    color: #ffe6a0;
    margin-bottom: 8px;
    margin-top: 2px;
    opacity: 0;
    transform: translateY(30px);
}
.menu-section.active .menu-desc {
    animation: menuItemFadeIn 0.6s cubic-bezier(.36,1.7,.45,.85) forwards;
}
.menu-footer {
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    margin: 30px 0 10px 0;
    font-weight: bold;
    text-shadow: 0 0 8px #000, 0 0 12px #b68c2b;
}
.logo-bottom {
    margin: 40px auto 0 auto;
    display: flex;
    justify-content: center;
}
@media (max-width: 1200px) {
    .menu-container {flex-direction: column; align-items: center;}
    .menu-section {max-width: 98vw;}
}
.img-logo{
    margin: 40px auto 0 auto;
    display: flex;
    justify-content: center;
}
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.8;
    animation: explode 0.7s forwards;
}
@keyframes explode {
    to {
        transform: translate(var(--dx), var(--dy)) scale(0.7);
        opacity: 0;
    }
}
.navbar {
    position: relative; /* برای موقعیت‌دهی پارتیکل‌ها */
}
.nav-btn.explode-anim {
    animation: btn-explode 0.35s cubic-bezier(.36,1.7,.45,.85);
}
@keyframes btn-explode {
    0%   { transform: scale(1);}
    20%  { transform: scale(0.85);}
    50%  { transform: scale(1.15);}
    80%  { transform: scale(0.97);}
    100% { transform: scale(1);}
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    border-radius: 2px;
    transition: left 0.35s cubic-bezier(.36,1.7,.45,.85), width 0.35s cubic-bezier(.36,1.7,.45,.85);
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 900px) {
    .navbar {
        flex-wrap: nowrap !important;
        margin-right: 8px;
        margin-left: 8px;
        border-radius: 12px;
        padding: 10px 0 6px 0;
    }
    .nav-btn {
        min-width: 90px;
        font-size: 0.98rem;
        padding: 8px 12px;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-wrap: nowrap !important;
        margin-right: 0;
        margin-left: 0;
        border-radius: 0;
        padding: 6px 0 4px 0;
        width: 100vw;
        left: 0;
        right: 0;
        min-width: 0;
        max-width: 100vw;
    }
    .nav-btn {
        min-width: 80px;
        font-size: 0.92rem;
        padding: 7px 8px;
    }
    .nav-indicator {
        height: 2px;
    }
    .header-content {
        position: relative;
        justify-content: center;
        padding-right: 38px;
    }
    .settings-btn {
        position: static;
        left: unset;
        top: unset;
        transform: none;
        margin: 0 0 0 8px;
        font-size: 19px;
        padding: 4px 9px;
        z-index: 10;
        display: inline-flex;
        vertical-align: middle;
    }
    .header-logo, .header-title {
        margin-left: auto;
        margin-right: auto;
        flex-grow: 0;
        display: block;
        text-align: center;
    }
    .header-title {
        width: 100%;
        display: inline-block;
        vertical-align: middle;
    }
}
#site-loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: #19171a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
  }
  #site-loader.hide {
    opacity: 0;
    pointer-events: none;
  }
  .menu-footer {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    background: #19171a;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 16px 0 12px 0;
    z-index: 100;
    box-shadow: 0 -2px 12px #0006;
    text-shadow: 0 0 8px #000, 0 0 12px #b68c2b;
}
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 64px;
    background: #19171a;
    z-index: 1001;
    box-shadow: 0 2px 12px #0006;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 0 0;
    position: relative;
}
.header-logo {
    margin: 0;
    height: 44px;
    width: 44px;
    border-radius: 12px;
    box-shadow: 0 0 12px #b68c2b;
    object-fit: contain;
}
.header-title {
    flex: unset;
    text-align: center;
    margin: 0;
    color: #ffe6a0;
    font-size: 1.3rem;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 8px #b68c2b;
}
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    /* ارتفاع هدر را مشخص کن */
    height: 64px;
    /* ... سایر استایل‌ها ... */
  }
  
  .navbar {
    position: fixed;
    top: 64px; /* برابر با ارتفاع هدر */
    right: 0;
    left: 0;
    z-index: 999;
    /* ... سایر استایل‌ها ... */
  }
  
  .menu-footer {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    text-align: center;
    padding: 16px 0 10px 0;
    font-size: 1.1rem;
    z-index: 1001;
    /* ارتفاع فوتر را اینجا مشخص کن */
    height: 48px;
    line-height: 32px;
  }
  .menu-footer {
    position: fixed;
    margin-bottom: -14px;
    right: 0;
    left: 0;
    bottom: 0;
    text-align: center;
    padding: 16px 0 10px 0;
    font-size: 1.1rem;
    z-index: 1001;
    height: 56px; /* ارتفاع واقعی فوتر */
    line-height: 32px;
  }
  
  .footer-spacer {
    height: 10rem; /* فضای کافی برای فوتر و دکمه دفترچه یادداشت */
    flex-shrink: 0;
  }
  @media (min-width: 900px) {
    .menu-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: flex-start;
      gap: 32px 24px;
      padding: 0 16px;
    }
    .menu-section {
      max-width: 340px;
      min-width: 240px;
      margin: 16px 8px;
    }
  }
/* فوتر سایت */
.site-footer {
  text-align: center;
  margin-top: 32px;
  padding: 18px 0 10px 0;
  font-family: Vazirmatn, sans-serif;
  font-size: 14px;
  color: #b68c2b;
  background: none;
}
.site-footer .admin-panel-btn {
    position: static;
    display: inline-block;
    margin: 0 8px 0 0;
    height: auto;
    padding: 4px 14px;
    font-size: 14px;
    border-radius: 7px;
    background: #b68c2b;
    color: #fff;
    box-shadow: 0 2px 8px #0001;
    font-family: Vazirmatn, sans-serif;
    text-decoration: none;
    transition: background 0.2s;
  }
.site-footer .admin-panel-btn:hover {
  background: #a07a23;
}
.copyright-text {
  color: #b68c2b;
}
/* دکمه تنظیمات (پنل مدیریت) کنار عنوان - بدون بک‌گراند و زیباتر */
.settings-btn {
  font-size: 1.5rem;
  margin-right: 8px;
  margin-left: 0;
  color: #b68c2b;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 6px 12px;
  transition: color 0.2s, transform 0.25s, filter 0.25s;
  z-index: 10;
  outline: none;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}
.settings-btn i {
  transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55), color 0.1s, filter 0.15s;
}
.settings-btn:hover {
  color: #ffce4b;
  transform: scale(1.18);
}
.settings-btn:hover i {
  transform: rotate(-25deg) scale(1.18);
  color: #ffce4b;
}
@media (max-width: 600px) {
  .header-content {
    padding: 8px 10px;
  }
  .header-title {
    font-size: 1rem;
  }
  .header-logo {
    height: 36px;
    width: 36px;
  }
  .settings-btn {
    font-size: 1.2rem;
    padding: 4px 9px;
  }
}
#notebook-btn {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1000;
    background: #fff;
    color: #b68c2b;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    box-shadow: 0 2px 16px #0002;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    cursor: pointer;
    transition: box-shadow 0.2s;
  }
  #notebook-btn:hover {
    box-shadow: 0 4px 24px #0003;
  }
  #notebook-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 18px;
    min-height: 18px;
    line-height: 1;
    z-index: 10;
    animation: badgePulse 0.6s ease-out;
    transform-origin: center;
  }
  
  @keyframes badgePulse {
    0% {
      transform: scale(0) rotate(-180deg);
      opacity: 0;
    }
    50% {
      transform: scale(1.2) rotate(0deg);
      opacity: 1;
    }
    100% {
      transform: scale(1) rotate(0deg);
      opacity: 1;
    }
  }
  
  #notebook-count:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
  }
  
  /* Responsive design برای badge */
  @media (max-width: 768px) {
    #notebook-count {
      width: 16px;
      height: 16px;
      font-size: 0.7rem;
      top: -6px;
      right: -6px;
    }
  }
  
  @media (max-width: 480px) {
    #notebook-count {
      width: 14px;
      height: 14px;
      font-size: 0.65rem;
      top: -5px;
      right: -5px;
    }
  }
#notebook-modal {
    display: none;
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(30,30,40,0.45);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: none;
}
#notebook-modal.active {
    display: flex;
    animation: fadeInModal 0.4s;
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* استایل جدید و مینیمال دکمه بعلاوه */
.add-to-notebook-btn {
    background: #fff;
    color: #ffb347;
    border: 1.5px solid #ffb347;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 1px 4px 0 rgba(255, 204, 51, 0.08);
    cursor: pointer;
    transition: background 0.16s, color 0.16s, border 0.16s, transform 0.12s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    margin-left: 10px;
    margin-right: 2px;
    position: relative;
    overflow: hidden;
}
.add-to-notebook-btn:hover:not(:disabled), .add-to-notebook-btn:focus:not(:disabled) {
    background: #ffb347;
    color: #fff;
    border-color: #ff9800;
    transform: scale(1.11);
}
.add-to-notebook-btn:disabled {
    background: #f3f3f3;
    color: #bbb;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
}

/* افکت موفقیت افزودن */
.add-to-notebook-btn.added {
    background: #4caf50 !important;
    color: #fff !important;
    border-color: #388e3c !important;
    animation: btnAddedPop 0.45s cubic-bezier(.36,1.7,.45,.85);
}
@keyframes btnAddedPop {
    0% { transform: scale(1); }
    30% { transform: scale(1.25) rotate(-10deg); }
    60% { transform: scale(0.95) rotate(5deg); }
    100% { transform: scale(1); }
}

/* استایل مدرن و مینیمال برای آیتم‌های دفترچه یادداشت */
#notebook-content {
    max-height: 340px;
    overflow-y: auto;
    padding: 28px 18px 22px 18px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    background: #fffbe6; /* رنگ جدید و روشن با حس دفترچه */
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(30, 28, 34, 0.10);
    margin: 0 auto;
    color: #23223a;
}
#notebook-content::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* حذف فلش‌های input number در همه مرورگرها */
.notebook-qty input[type=number]::-webkit-inner-spin-button, 
.notebook-qty input[type=number]::-webkit-outer-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}
.notebook-qty input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}
.notebook-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f8f8fa;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(200,200,200,0.08);
  padding: 14px 16px 10px 16px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  border: 1px solid #f0f0f0;
  gap: 6px;
}

.notebook-item-main {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.notebook-item-title {
  flex: 1 1 0;
  font-weight: 500;
  color: #23223a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.75rem;
}

.notebook-item-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.notebook-item-price {
  color: #b68c2b;
  font-size: 0.7rem;
}

.notebook-item-addons {
  margin-top: 2px;
  font-size: 0.7rem;
  color: #b68c2b;
  padding-right: 18px;
}

.notebook-item-total {
  margin-top: 2px;
  font-size: 0.75rem;
  color: #b68c2b;
  font-weight: bold;
  align-self: flex-end;
}

.notebook-item-total-val {
  color: #b68c2b;
  font-weight: bold;
}
.notebook-item:last-child {
    margin-bottom: 0;
}
.notebook-item:hover {
    background: #f3f7ff;
    box-shadow: 0 2px 12px 0 rgba(100, 180, 255, 0.10);
}
.notebook-item > span {
    flex: 1 1 0;
    font-weight: 500;
    color: #23223a;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notebook-qty {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px 0 rgba(200,200,200,0.06);
    padding: 2px 6px;
    margin: 0 8px;
}
.notebook-qty input {
    width: 36px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: #23223a;
    outline: none;
    margin: 0 2px;
}
.qty-btn {
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    color: #888;
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover {
    background: #ffb347;
    color: #fff;
}
.remove-notebook-item {
    background: #fff0f0;
    border: none;
    border-radius: 50%;
    color: #e74c3c;
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-right: 6px;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.remove-notebook-item:hover {
    background: #e74c3c;
    color: #fff;
}
#notebook-content h3 {
    color: #ffb347;
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 18px;
    margin-top: 0;
    text-align: center;
    letter-spacing: 0.5px;
}
#clear-notebook {
    background: linear-gradient(135deg, #f5576c 0%, #667eea 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 1.05rem;
    font-weight: bold;
    margin: 0 auto;
    display: block;
    margin-top: 18px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.13s;
    box-shadow: none;
}
#clear-notebook:hover {
    background: linear-gradient(135deg, #667eea 0%, #f5576c 100%);
    color: #fff;
    transform: scale(1.04);
}
#order-btn {
    background: linear-gradient(135deg, #b68c2b 0%, #ffe6a0 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 2px 8px #ffe6a044;
    margin-top: 18px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.13s;
}
#order-btn:hover {
    background: linear-gradient(135deg, #ffe6a0 0%, #b68c2b 100%);
    color: #b68c2b;
    transform: scale(1.04);
}
#close-notebook {
    position: absolute;
    top: 18px;
    right: 18px;
    left: auto;
    font-size: 1.5rem;
    color: #ffb347;
    background: #fff;
    border: 2px solid #ffb347;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.18s, color 0.18s, border 0.18s, transform 0.15s;
    box-shadow: 0 2px 8px 0 rgba(255, 204, 51, 0.10);
}
#close-notebook:hover, #close-notebook:focus {
    background: #ffb347;
    color: #fff;
    border-color: #ff9800;
    transform: scale(1.13) rotate(-10deg);
}
/* --- استایل مودال افزودنی‌ها --- */
.addon-modal {
  display: none;
  position: fixed;
  z-index: 1002;
  right: 0; left: 0; top: 0; bottom: 0;
  background: rgba(30,28,34,0.55);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
}
.addon-modal.active {
  display: flex;
}
.addon-modal-content {
  background: rgba(255,255,255,0.97);
  color: #19171a;
  border-radius: 18px;
  box-shadow: 0 8px 40px #0007;
  max-width: 370px;
  width: 96vw;
  padding: 28px 18px 18px 18px;
  position: relative;
  animation: fadeInModal 0.3s;
}
#close-addon-modal {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #fff2b2;
  color: #b68c2b;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px #b68c2b33;
}
#close-addon-modal:hover {
  background: #ffe6a0;
}
#addon-groups-list {
  margin: 18px 0 12px 0;
  max-height: 320px;
  overflow-y: auto;
}

/* استایل جدید برای گروه‌های افزودنی */
.addon-group {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.addon-group:hover {
  background: #f1f3f4;
  border-color: #b68c2b;
  box-shadow: 0 2px 8px rgba(182, 140, 43, 0.1);
}

.addon-group.required {
  background: #fff3cd;
  border-color: #ffc107;
  border-left: 4px solid #ffc107;
}

.addon-group.required .addon-group-title {
  color: #856404;
}

.addon-group-title {
  font-weight: bold;
  color: #b68c2b;
  margin-bottom: 12px;
  display: block;
  font-size: 1.1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

.addon-group.required .addon-group-title {
  border-bottom-color: #ffc107;
}

.addon-options-list {
  margin-bottom: 0;
  padding-right: 0;
}

.addon-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 1.01rem;
  border-bottom: 1px solid #f1f3f4;
  transition: background 0.2s ease;
}

.addon-option-item:last-child {
  border-bottom: none;
}

.addon-option-item:hover {
  background: rgba(182, 140, 43, 0.05);
  border-radius: 8px;
  padding: 8px 8px;
  margin: 0 -8px;
}

/* استایل جدید برای چک‌باکس‌ها */
.addon-option-item input[type="checkbox"],
.addon-option-item input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #b68c2b;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  margin-left: 12px;
}

.addon-option-item input[type="radio"] {
  border-radius: 50%;
}

.addon-option-item input[type="checkbox"]:checked,
.addon-option-item input[type="radio"]:checked {
  background: #b68c2b;
  border-color: #b68c2b;
}

.addon-option-item input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.addon-option-item input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.addon-option-item input[type="checkbox"]:hover,
.addon-option-item input[type="radio"]:hover {
  border-color: #8b6914;
  box-shadow: 0 0 0 3px rgba(182, 140, 43, 0.1);
}

.addon-option-item input[type="checkbox"]:disabled,
.addon-option-item input[type="radio"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8f9fa;
  border-color: #dee2e6;
}

.addon-option-label {
  flex: 1;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.addon-option-item:hover .addon-option-label {
  color: #8b6914;
}

.addon-option-price {
  color: #b68c2b;
  font-size: 0.98em;
  font-weight: 500;
  margin-right: 8px;
}

.confirm-addon-btn {
  background: linear-gradient(135deg, #ffb88c 0%, #ff7e5f 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 1.08rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 #ffb88c44;
  transition: all 0.2s ease;
  margin-top: 8px;
  width: 100%;
  font-weight: 600;
}

.confirm-addon-btn:hover {
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  box-shadow: 0 4px 18px 0 #ffb88c66;
  transform: translateY(-1px);
}

.confirm-addon-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* استایل برای افزودنی‌های اجباری */
.addon-group.required .addon-group-title::before {
  content: '⚠️ ';
  margin-left: 8px;
}

/* انیمیشن برای گروه‌های اجباری */
.addon-group.required {
  animation: requiredPulse 2s infinite;
}

@keyframes requiredPulse {
  0%, 100% { 
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
  }
  50% { 
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
  }
}

.notebook-item-qty {
  background: #ffe6a0;
  color: #b68c2b;
  border-radius: 8px;
  padding: 2px 10px;
  font-weight: bold;
  margin-right: 8px;
  font-size: 1.1em;
}

.notebook-item-scoops {
  width: 100%;
  margin-top: 6px;
}

.notebook-scoop-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.notebook-scoop-label {
  color: #888;
  min-width: 90px;
  font-size: 0.8em;
}

.notebook-scoop-addons {
  color: #b68c2b;
  font-size: 0.8em;
}
.porsline-button-wrapper {
  position: static;
  display: inline-block;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.08rem;
  border-radius: 18px;
  box-shadow: 0 2px 12px #9C1FD655;
  animation: survey-pulse 1.5s infinite;
  transition: box-shadow 0.2s;
  width: auto;
  min-width: unset;
  max-width: 90vw;
  padding: 0 18px;
  margin-top: 12px;
}
.survey-pulse-container {
  position: fixed;
  left: 24px;
  bottom: 110px;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
}
.survey-pulse-container .vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: #9C1FD6;
  font-size: 1.08rem;
  font-weight: bold;
  margin-bottom: 8px;
}
.survey-pulse-container .arrow {
  font-size: 2.2rem;
  color: #9C1FD6;
  margin-bottom: 0;
  animation: arrow-bounce 1.2s infinite;
}
@keyframes survey-pulse {
  0% { box-shadow: 0 0 0 0 #9C1FD655, 0 2px 12px #9C1FD655; }
  70% { box-shadow: 0 0 0 16px rgba(156,31,214,0.08), 0 2px 12px #9C1FD655; }
  100% { box-shadow: 0 0 0 0 #9C1FD655, 0 2px 12px #9C1FD655; }
}
.survey-vertical-text {
  position: fixed;
  left: 0;
  bottom: 180px;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: inherit;
  font-size: 1.08rem;
  color: #9C1FD6;
  font-weight: bold;
  letter-spacing: 1px;
  pointer-events: none;
  text-shadow: none;
}
.survey-vertical-text .arrow {
  font-size: 2.2rem;
  color: #9C1FD6;
  margin-bottom: 8px;
  animation: arrow-bounce 1.2s infinite;
  text-shadow: none;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.survey-vertical-text .vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-bottom: 8px;
  color: #9C1FD6;
  font-size: 1.08rem;
  font-weight: bold;
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
#survey-pulse-fixed {
    position: fixed;
    right: 0;
    left: auto;
    bottom: 110px;
    z-index: 1201;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: max-content;
    background: none !important;
    box-shadow: none !important;
}

#survey-pulse-fixed .vertical {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
  color: #ffffff;
  display: inline-block;
  color: #9C1FD6;
  font-size: 1.08rem;
  font-weight: bold;
  
}

#survey-pulse-fixed .arrow {
  font-size: 2.2rem;
  color: #9C1FD6;
  animation: arrow-bounce 1.2s infinite;
  background: none !important;
  box-shadow: none !important;
}

/* --- پیام تأیید اضافه شدن به دفترچه --- */
.confirmation-toast {
    position: fixed;
    top: 120px; /* بالاتر از نوار دسته‌بندی‌ها */
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 8px 16px; /* کوچک‌تر */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    z-index: 10000;
    font-weight: bold;
    font-size: 0.9rem; /* کوچک‌تر */
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 280px; /* کوچک‌تر */
    text-align: right;
}

.confirmation-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.confirmation-toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* انیمیشن ورود از راست */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* انیمیشن خروج به راست */
@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.confirmation-toast.slide-in {
    animation: slideInRight 0.3s ease forwards;
}

.confirmation-toast.slide-out {
    animation: slideOutRight 0.3s ease forwards;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 600px) {
    .confirmation-toast {
        top: 140px; /* بالاتر از نوار دسته‌بندی‌ها در موبایل */
        right: 10px;
        left: 10px;
        max-width: none;
        text-align: center;
        padding: 6px 12px; /* کوچک‌تر در موبایل */
        font-size: 0.85rem; /* کوچک‌تر در موبایل */
    }
}
