/* ============================
   PRICES PAGE STYLES
   ============================ */

/* Price Section */
.price-section {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  margin-bottom: 32px;
}

.price-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.price-section__title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1e293b;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.price-section__title i {
  color: #E76700;
  font-size: 20px;
}

.price-section__count {
  background: #f1f5f9;
  color: #64748b;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Price Table Container */
.price-table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.price-table-container::-webkit-scrollbar {
  height: 8px;
}

.price-table-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.price-table-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.price-table-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

.price-table thead {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.price-table th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.price-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.price-table__row:hover {
  background: #f8fafc;
}

.price-table__row:last-child td {
  border-bottom: none;
}

/* Price Item */
.price-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 200px;
}

.price-item__image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.price-item__content {
  flex: 1;
  min-width: 0;
}

.price-item__title {
  display: block;
  color: #1e293b;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  margin-bottom: 4px;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.price-item__title:hover {
  color: #E76700;
  text-decoration: none;
}

.price-item__desc {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Price Location & Duration */
.price-location,
.price-duration {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 13px;
}

.price-location i,
.price-duration i {
  color: #E76700;
  font-size: 12px;
}

/* Price Values */
.price-value {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-current {
  color: #1e293b;
  font-weight: 700;
  font-size: 16px;
}

.price-old {
  color: #94a3b8;
  font-size: 13px;
  text-decoration: line-through;
}

/* Price Actions */
.price-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 120px;
}

.price-actions .btn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.price-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Empty State */
.price-empty {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.price-empty i {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.price-empty h3 {
  color: #374151;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.price-empty p {
  font-size: 14px;
  margin: 0;
}

/* ============================
   RESPONSIVE STYLES
   ============================ */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .price-section {
    padding: 32px;
  }
  
  .price-table th,
  .price-table td {
    padding: 20px 16px;
  }
  
  .price-item__image {
    width: 70px;
    height: 70px;
  }
  
  .price-item__title {
    font-size: 16px;
  }
  
  .price-item__desc {
    font-size: 14px;
  }
  
  .price-current {
    font-size: 18px;
  }
  
  .price-actions {
    min-width: 140px;
  }
  
  .price-actions .btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* Ultra Wide Desktop (1600px+) */
@media (min-width: 1600px) {
  .price-section {
    padding: 40px;
  }
  
  .price-table th,
  .price-table td {
    padding: 24px 20px;
  }
  
  .price-item__image {
    width: 80px;
    height: 80px;
  }
  
  .price-item__title {
    font-size: 17px;
  }
  
  .price-item__desc {
    font-size: 15px;
  }
  
  .price-current {
    font-size: 20px;
  }
  
  .price-actions {
    min-width: 160px;
  }
  
  .price-actions .btn {
    font-size: 15px;
    padding: 10px 20px;
  }
}

/* Desktop (1200px-1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
  .price-table th,
  .price-table td {
    padding: 16px 12px;
  }
  
  .price-item__image {
    width: 60px;
    height: 60px;
  }
  
  .price-actions {
    min-width: 120px;
  }
}

/* Large Tablet (992px-1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .price-section {
    padding: 20px;
  }
  
  .price-table th,
  .price-table td {
    padding: 14px 10px;
    font-size: 14px;
  }
  
  .price-item__image {
    width: 55px;
    height: 55px;
  }
  
  .price-item__title {
    font-size: 15px;
  }
  
  .price-current {
    font-size: 16px;
  }
  
  .price-actions {
    min-width: 110px;
  }
  
  .price-actions .btn {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* Tablet (768px-991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .price-section {
    padding: 18px;
  }
  
  .price-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .price-section__title {
    font-size: 22px;
  }
  
  .price-table th,
  .price-table td {
    padding: 12px 8px;
    font-size: 13px;
  }
  
  .price-item {
    gap: 10px;
  }
  
  .price-item__image {
    width: 50px;
    height: 50px;
  }
  
  .price-item__title {
    font-size: 14px;
  }
  
  .price-item__desc {
    font-size: 12px;
  }
  
  .price-current {
    font-size: 15px;
  }
  
  .price-actions {
    flex-direction: column;
    gap: 6px;
    min-width: 100px;
  }
  
  .price-actions .btn {
    font-size: 11px;
    padding: 5px 8px;
  }
  
  .price-actions .btn i {
    display: none;
  }
}

/* Small Tablet (576px-767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .price-section {
    padding: 16px;
    margin-bottom: 24px;
  }
  
  .price-table-container {
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .price-table {
    min-width: 600px; /* Минимальная ширина для горизонтальной прокрутки */
  }
  
  .price-table th,
  .price-table td {
    padding: 10px 6px;
    font-size: 12px;
  }
  
  .price-item {
    gap: 8px;
    min-width: 200px;
  }
  
  .price-item__image {
    width: 45px;
    height: 45px;
  }
  
  .price-item__title {
    font-size: 13px;
    line-height: 1.3;
  }
  
  .price-item__desc {
    font-size: 11px;
    line-height: 1.3;
  }
  
  .price-current {
    font-size: 14px;
  }
  
  .price-old {
    font-size: 12px;
  }
  
  .price-location,
  .price-duration {
    font-size: 11px;
  }
  
  .price-actions {
    flex-direction: row;
    gap: 4px;
    min-width: 120px;
  }
  
  .price-actions .btn {
    font-size: 10px;
    padding: 4px 6px;
    flex: 1;
  }
  
  .price-actions .btn i {
    display: none;
  }
}

/* Mobile Large (480px-575px) */
@media (max-width: 575px) and (min-width: 480px) {
  .price-section {
    padding: 14px;
    margin-bottom: 20px;
  }
  
  .price-section__title {
    font-size: 20px;
  }
  
  .price-table-container {
    border-radius: 6px;
  }
  
  .price-table th,
  .price-table td {
    padding: 8px 4px;
    font-size: 11px;
  }
  
  .price-item {
    gap: 6px;
    min-width: 180px;
  }
  
  .price-item__image {
    width: 40px;
    height: 40px;
  }
  
  .price-item__title {
    font-size: 12px;
    line-height: 1.2;
  }
  
  .price-item__desc {
    font-size: 10px;
    line-height: 1.2;
  }
  
  .price-current {
    font-size: 13px;
  }
  
  .price-old {
    font-size: 11px;
  }
  
  .price-location,
  .price-duration {
    font-size: 10px;
  }
  
  .price-actions {
    flex-direction: column;
    gap: 4px;
    min-width: 100px;
  }
  
  .price-actions .btn {
    font-size: 11px;
    padding: 5px 8px;
  }
  
  .price-actions .btn i {
    display: inline;
  }
}

/* Mobile Stack Layout (до 479px) */
@media (max-width: 479px) {
  .price-section {
    padding: 12px;
    margin-bottom: 16px;
  }
  
  .price-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .price-section__title {
    font-size: 18px;
  }
  
  .price-section__count {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  /* Переключаемся на карточный вид */
  .price-table,
  .price-table thead,
  .price-table tbody,
  .price-table th,
  .price-table td,
  .price-table tr {
    display: block;
  }
  
  .price-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  .price-table tr {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .price-table td {
    border: none;
    position: relative;
    padding: 8px 0;
    padding-left: 45%;
    font-size: 13px;
  }
  
  .price-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 40%;
    padding-right: 8px;
    white-space: nowrap;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
  }
  
  .price-table td:first-child {
    padding-left: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 12px;
  }
  
  .price-table td:first-child:before {
    display: none;
  }
  
  .price-item {
    flex-direction: row;
    text-align: left;
    gap: 12px;
  }
  
  .price-item__image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }
  
  .price-item__title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .price-item__desc {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .price-current {
    font-size: 16px;
    font-weight: 700;
  }
  
  .price-old {
    font-size: 13px;
  }
  
  .price-location,
  .price-duration {
    font-size: 12px;
  }
  
  .price-actions {
    flex-direction: row;
    gap: 8px;
    margin-top: 8px;
  }
  
  .price-actions .btn {
    font-size: 12px;
    padding: 8px 12px;
    flex: 1;
  }
  
  .price-actions .btn i {
    display: inline;
    margin-right: 4px;
  }
}

/* Extra Small Mobile (до 360px) */
@media (max-width: 360px) {
  .price-section {
    padding: 10px;
  }
  
  .price-section__title {
    font-size: 16px;
  }
  
  .price-table tr {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .price-table td {
    padding: 6px 0;
    padding-left: 50%;
    font-size: 12px;
  }
  
  .price-table td:before {
    font-size: 11px;
    width: 45%;
  }
  
  .price-item {
    gap: 8px;
  }
  
  .price-item__image {
    width: 50px;
    height: 50px;
  }
  
  .price-item__title {
    font-size: 14px;
  }
  
  .price-item__desc {
    font-size: 11px;
  }
  
  .price-current {
    font-size: 15px;
  }
  
  .price-actions .btn {
    font-size: 11px;
    padding: 6px 8px;
  }
  
  .price-actions .btn i {
    margin-right: 2px;
  }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .price-section {
    padding: 12px;
  }
  
  .price-table th,
  .price-table td {
    padding: 8px 6px;
  }
  
  .price-item__image {
    width: 40px;
    height: 40px;
  }
  
  .price-actions .btn {
    padding: 4px 8px;
    font-size: 11px;
  }
}
