* {
  box-sizing: border-box;
  font-family: "Vazirmatn", sans-serif;
}

body {
  padding: 20px;
  background: #f8f9fa;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

.title {
  text-align: center;
  color: #4b7a2a;
  margin-bottom: 35px;
}

.title span {
  color: red;
  font-weight: bold;
}

/* آکاردئون */
.accordion {
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.accordion-header {
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background-color 0.18s;
}

.accordion-header:hover {
  background-color: #f0f4f8;
}

.accordion-header.active {
  background-color: #e8f0fb;
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.juz-badge {
  width: 100%;
  height: 54px;
  background: #3a6ea5;
  padding: 15px;
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
}

.cream .juz-badge {
  background: #e4b88a;
  color: #1f2d3d;
}

.accordion-toggle {
  font-size: 1.6rem;
  font-weight: bold;
  color: #555;
  transition: transform 0.25s;
}

.accordion-header.active .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.28s ease-out,
    padding 0.28s ease-out;
  padding: 0 20px;
}

.accordion-content.open {
  padding: 20px;
}

/* محتوای داخل آکاردئون */
.section-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.select-all {
  width: 130px;
  min-height: 100px;
  border: 3px solid;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8f9fa;
}

.pages {
  flex: 1;
  min-width: 300px;
}

.grid {
  display: grid;
  direction: ltr !important;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px 14px;
}

.qps-page-label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  user-select: none !important;
  flex-direction: row-reverse !important;
  direction: rtl !important;
  justify-content: flex-end !important;
  line-height: normal !important;
  vertical-align: middle !important;
}

.qps-page-label span.number {
  background: #eee;
  padding: 5px 9px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
}

input[type="checkbox"] {
  display: none;
}

.checkmark {
  height: 26px;
  width: 26px;
  border: 3px solid;
  border-radius: 5px;
  position: relative;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 15px;
  border: solid white;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

input[type="checkbox"]:checked ~ .checkmark:after {
  display: block;
}

/* BLUE */
.blue .accordion-header {
  background: #e8f0fb;
  color: #1e3a5f;
}

.blue .juz-badge {
  background: #3a6ea5;
}

.blue .select-all {
  border-color: #3a6ea5;
  color: #3a6ea5;
}

.blue .select-all:hover {
  background: #3a6ea5;
  color: white;
}

.blue .checkmark {
  border-color: #3a6ea5;
  background: white;
}

.blue input:checked ~ .checkmark {
  background: #3a6ea5;
}

.blue span.number {
  background: #e8f0fb;
  color: #d32f2f;
}

/* CREAM */
.cream .accordion-header {
  background: #fff3e6;
  color: #5d4037;
}

.cream .juz-badge {
  background: #e4b88a;
}

.cream .select-all {
  border-color: #e4b88a;
  color: #b38250;
}

.cream .select-all:hover {
  background: #e4b88a;
  color: white;
}

.cream .checkmark {
  border-color: #e4b88a;
  background: white;
}

.cream input:checked ~ .checkmark {
  background: #e4b88a;
}

.cream span.number {
  background: #fff8f0;
  color: #1f4e79;
  border: 1px solid #e4b88a;
}

/* دکمه نهایی */
#add-to-cart-custom {
  display: block;
  margin: 35px auto 20px;
  padding: 14px 40px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

#add-to-cart-custom:hover {
  background: #43a047;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (max-width: 768px) {
  .section-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .select-all {
    width: 100%;
    min-height: 70px;
  }

  .grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px 10px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .juz-badge {
    width: 48px;
    height: 48px;
    font-size: 0.95rem;
  }
}

.container-btn-test {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.btn-cart-test {
  background-color: #00b2ab !important;
  color: white !important;
  border: none !important;
  font-size: 17px;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}