@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #6c757d;
  --background-color: #f8f9fa;
  --surface-color: #ffffff;
  --accent-color: #FF7A00;
  --danger-color-alt: #e53935;
  --text-color: #212529;
  --border-color: #dee2e6;
  --success-color: #198754;
  --danger-color: #dc3545;
  --info-color: #6c757d;
  --font-family: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.header-content,
.container,
.footer-content {
  max-width: 1030px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.main-header {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
}

.main-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.main-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-header .logo img {
  height: 30px;
}

.main-header .logo h1 {
  font-size: 22px;
  font-weight: 600;
}

.main-header .header-icons {
  display: flex;
  align-items: center;
  gap: 25px;
}

.main-header .header-icons i {
  font-size: 20px;
  cursor: pointer;
  position: relative;
}

.header-icons .fa-shopping-bag::after {
  content: attr(data-count);
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: var(--accent-color);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.header-icons .fa-shopping-bag[data-count]:not([data-count="0"])::after {
  opacity: 1;
  transform: scale(1);
}

.promo-carousel-section {
  width: 100%;
  position: relative;
  background-color: #111;
  overflow: hidden;
}

.promo-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
}

.carousel-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  cursor: grab;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.carousel-slide img {
  width: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.carousel-nav {
  display: none;
}

.carousel-pagination {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-pagination .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-pagination .dot.active {
  background-color: rgb(255, 255, 255);
  transform: scale(1.2);
}

@media (min-width: 768px) {
  .promo-carousel-section {
    height: 300px;
    display: flex;
    align-items: center;
  }

  .promo-carousel {
    height: 230px;
  }

  .carousel-wrapper {
    height: 100%;
  }

  .carousel-slide {
    flex-basis: 60%;
    opacity: 0.4;
    transform: scale(0.85);
    cursor: pointer;
  }

  .carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    cursor: default;
  }

  .carousel-slide img {
    border-radius: 12px;
  }

  .carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }

  .carousel-slide.active::after {
    opacity: 0;
  }

  .carousel-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 20;
  }

  .carousel-nav.prev {
    left: 20px;
  }

  .carousel-nav.next {
    right: 20px;
  }

  .carousel-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }

  .carousel-pagination {
    position: relative;
    bottom: auto;
    margin-top: 20px;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex-basis: 50%;
  }

  .carousel-nav.prev {
    left: 100px;
  }

  .carousel-nav.next {
    right: 100px;
  }
}

@media (min-width: 1200px) {
  .carousel-nav.prev {
    left: 150px;
  }

  .carousel-nav.next {
    right: 150px;
  }
}

.game-selection {
  background-color: #EFEFEF;
  padding-top: 0;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding-bottom: 6px;
}

.game-selection .section-decoration {
  width: 100%;
  height: 27px;
  margin-bottom: -0.3em;
}

.game-selection .section-decoration svg {
  width: 100%;
  height: 100%;
}

.game-selection .container {
  padding-left: 20px;
  padding-right: 20px;
}

.game-selection .section-title {
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 16px;
}

.games-list {
  display: flex;
  gap: 20px;
  margin-left: 0.7rem;
}

.game-item.soon .game-icon-wrapper img {
  filter: grayscale(100%);
  opacity: 0.6;
}

.game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
}

.game-item span {
  font-weight: 600;
  font-size: 13px;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.game-item.active span {
  color: var(--danger-color-alt);
}

.game-icon-wrapper {
  position: relative;
  width: 63px;
  height: 63px;
}

.game-icon-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.game-item.active .game-icon-wrapper img {
  border-color: var(--danger-color-alt);
}

.checkmark-icon {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 24px;
  height: 24px;
  background-color: var(--danger-color-alt);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  border: 2px solid var(--surface-color);
  opacity: 0;
  transform: scale(0.5) rotate(-15deg);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-item.active .checkmark-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.promo-banner-single {
  position: relative;
  color: white;
  overflow: hidden;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
  max-width: 1030px;
  margin: 10px 10px 0 6px;
}

@media (min-width: 1070px) {
  .promo-banner-single {
    margin: 20px auto 0 auto;
  }
}

.promo-card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.promo-card-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.promo-card-content {
  position: relative;
  display: flex;
  align-items: center;
  padding: 15px;
  gap: 15px;
  height: 80px;
  z-index: 3;
}

.promo-card-icon img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin-top: 3px;
}

.promo-card-details h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 1px 0;
}

.promo-card-details p {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(0, 0, 0, .65);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .5);
}

.promo-card-details p svg {
  width: 12px;
  height: 12px;
}

@media (min-width: 768px) {
  .promo-banner-single {
    border-radius: .5rem;
  }

  .promo-card-content {
    height: 110px;
    padding: 20px;
    gap: 20px;
  }

  .promo-card-icon img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }

  .promo-card-details h3 {
    font-size: 20px;
    margin-bottom: 5px;
  }

  .promo-card-details p {
    font-size: 13px;
    padding: 5px 12px;
    gap: 8px;
  }
}

.player-login-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.section-header-login {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header-login .title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header-login .step-icon {
  background-color: var(--danger-color-alt);
  color: white;
  font-weight: 700;
  font-size: 18px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-header-login h2 {
  font-size: 22px;
  font-weight: 600;
}

.logout-btn-header {
  background: none;
  border: none;
  color: var(--danger-color-alt);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.login-form-container {
  background-color: var(--surface-color);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.login-form-container label {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.login-form-container label i,
.login-modal-form label i {
  color: var(--secondary-color);
  cursor: pointer;
}

.input-group {
  display: flex;
  border-radius: 8px;
  border: 1px solid #ced4da;
  overflow: hidden;
  transition: border-color 0.3s;
}

.input-group.error {
  border-color: var(--danger-color-alt);
}

.input-group input {
  flex-grow: 1;
  border: none;
  padding: 12px 15px;
  font-size: 16px;
  outline: none;
}

.input-group button {
  background-color: var(--danger-color-alt);
  color: white;
  border: none;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.input-group button:hover {
  background-color: #c82333;
}

.input-group button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.input-error-message {
  color: var(--danger-color-alt);
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

#player-info-display {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

#player-info-display.player-info-hidden {
  display: none;
}

.player-display-icon img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.player-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: var(--success-color);
  border-radius: 50%;
}

.player-id-text {
  font-size: 14px;
  color: var(--secondary-color);
}

.products-section {
  margin-bottom: 40px;
}

.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.product-card {
  background-color: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.product-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.product-card-image-wrapper {
  cursor: pointer;
}

.product-card .product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f0f0f0;
  padding: 10px;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.product-card .product-info {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  cursor: pointer;
}

.product-card .price-container {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.product-card .current-price,
.product-card .original-price {
  display: flex;
  align-items: baseline;
}

.product-card .price-symbol {
  font-size: 0.7em;
  margin-right: 2px;
}

.product-card .current-price {
  font-size: 1rem;
  font-weight: 700;
}

.product-card .original-price {
  font-size: 0.8rem;
  color: var(--secondary-color);
  text-decoration: line-through;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.product-card-actions .btn-buy {
  background-color: #e9ecef;
  color: var(--text-color);
  border: none;
  padding: 8px;
  font-weight: 600;
  font-size: 13px;
  border-radius: 8px;
  text-align: center;
}

.product-card-actions .btn-cart {
  background-color: var(--accent-color);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 15px;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .product-card .product-info {
    padding: 15px;
  }

  .product-card .price-container {
    margin-bottom: 15px;
  }

  .product-card .current-price {
    font-size: 1.1rem;
  }

  .product-card .original-price {
    font-size: 0.85rem;
  }

  .product-card-actions {
    gap: 10px;
  }

  .product-card-actions .btn-buy {
    padding: 10px;
    font-size: 14px;
  }

  .product-card-actions .btn-cart {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--surface-color);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

#search-overlay {
  z-index: 1100;
  background-color: var(--surface-color);
}

#cart-overlay {
  z-index: 1110;
}

#product-overlay {
  z-index: 1120;
}


.overlay.active {
  transform: translateX(0);
}

.overlay-header {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 70px;
  background-color: var(--surface-color);
  flex-shrink: 0;
}

#search-overlay .overlay-header {
  padding: 0 10px 0 20px;
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
}


.overlay-header .close-overlay {
  font-size: 20px;
  cursor: pointer;
  margin-right: 20px;
}

.overlay-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.overlay-body-container {
  flex-grow: 1;
  overflow-y: auto;
}

#search-overlay .overlay-body-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}


@media (min-width: 992px) {
  .overlay-body {
    padding: 20px;
  }
}

.empty-state {
  text-align: center;
  color: var(--secondary-color);
  margin-top: 50px;
  padding: 20px;
}

.empty-state-icon {
  font-size: 40px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

#search-overlay .overlay-header {
  border-bottom: 1px solid var(--border-color);
}

#search-overlay .overlay-body {
  padding-top: 20px;
}

.search-form {
  display: flex;
  width: 100%;
  align-items: center;
  position: relative;
}

.search-form input {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  outline: none;
  background: var(--surface-color);
  padding: 10px 75px 10px 20px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.search-form input:focus {
  border-color: var(--primary-color);
}

.search-form .input-actions {
  position: absolute;
  right: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-form .clear-input-btn {
  background: none;
  border: none;
  color: var(--secondary-color);
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  display: none;
}

.search-form .clear-input-btn.visible {
  display: block;
}

.search-form .submit-search-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.search-section {
  margin-bottom: 30px;
}

.search-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.search-section-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.clear-searches-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--secondary-color);
  cursor: pointer;
}

.search-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--background-color);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  color: #000;
  max-width: 100%;
  height: auto;
}

.search-tag span {
  white-space: normal;
  word-break: break-all;
  text-align: left;
}

.search-tag:hover {
  border-color: var(--border-color);
  background-color: var(--surface-color);
}

.search-tag .fa-fire {
  color: var(--danger-color);
}

.search-tag .remove-search-btn {
  background: none;
  border: none;
  color: var(--secondary-color);
  font-size: 12px;
  margin-left: 4px;
  cursor: pointer;
}

#search-results-wrapper {
  margin-top: 20px;
}

#live-search-suggestions {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-color);
}

#live-search-suggestions li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}

#live-search-suggestions li:hover {
  background-color: var(--background-color);
}

#live-search-suggestions li i {
  color: var(--secondary-color);
}

.empty-state p {
  word-wrap: break-word;
  white-space: normal;
}

.empty-state .suggestion-text {
  margin-top: 15px;
}

.empty-state .suggestion-link {
  color: var(--danger-color-alt);
  text-decoration: underline;
  font-weight: bold;
}

.product-overlay-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media(min-width: 992px) {
  .product-overlay-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
  }
}

.product-gallery {
  background-color: var(--surface-color);
}

.product-gallery-main-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.product-main-info {
  padding: 20px;
  background-color: var(--surface-color);
}

.product-title-large {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
}

.product-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

.product-info-tag {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-info-tag.delivery-tag {
  background-color: #e0e7ff;
  color: #4338ca;
}

.product-info-tag.delivery-tag i {
  color: #4f46e5;
}

.product-info-tag.stock-status-tag {
  color: var(--secondary-color);
  background-color: var(--background-color);
}

.product-badge.recommended {
  background-color: rgba(229, 57, 53, 0.1);
  color: var(--danger-color-alt);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.price-block {
  margin-top: 25px;
  margin-bottom: 20px;
}

.price-block .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.price-block .current-price-large {
  font-weight: 700;
  color: var(--danger-color-alt);
  display: flex;
  align-items: baseline;
}

.current-price-large .price-symbol {
  font-size: 1.5rem;
  margin-right: 4px;
  font-weight: 600;
}

.current-price-large .price-value {
  font-size: 3rem;
  line-height: 1;
}

.current-price-large .price-cents {
  font-size: 1.5rem;
  margin-left: 2px;
  font-weight: 600;
}

.price-block .discount-badge {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 20px;
  white-space: nowrap;
}

.price-block .original-price-large {
  font-size: 1rem;
  color: var(--secondary-color);
  text-decoration: line-through;
  display: flex;
  align-items: baseline;
}

.original-price-large .price-symbol {
  font-size: 0.8em;
  margin-right: 2px;
}

.stock-info {
  font-size: 14px;
  color: var(--success-color);
  font-weight: 500;
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stock-info span {
  font-weight: 700;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 25px;
}

.btn {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--danger-color-alt);
  color: white;
}

.btn-primary:hover {
  background-color: #c82333;
}

.btn-secondary {
  background-color: var(--surface-color);
  color: var(--danger-color-alt);
  border: 2px solid var(--danger-color-alt);
}

.btn-secondary:hover {
  background-color: #fbe9e7;
}

.description-section,
.similar-products-section {
  margin-top: 20px;
  padding: 20px;
}

.description-content {
  position: relative;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  color: #555;
  line-height: 1.8;
}

.description-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.6rem;
}

.description-content h4:first-child {
  margin-top: 0;
}

.description-content p {
  margin-bottom: 1em;
}

.description-content.collapsible {
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.description-content.collapsible.expanded {
  -webkit-mask-image: none;
  mask-image: none;
}

.expand-description-btn {
  background: none;
  border: none;
  color: var(--danger-color-alt);
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.expand-description-btn i {
  transition: transform 0.3s ease;
}

@media (min-width: 992px) {

  .description-section,
  .similar-products-section {
    max-width: 1000px;
    margin: 20px auto;
    background-color: var(--surface-color);
    border-radius: 12px;
  }
}

.description-section h3,
.similar-products-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.description-section p,
.description-section ul li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--secondary-color);
}

.description-section ul {
  padding-left: 20px;
  margin-top: 10px;
}


.cart-items-list {
  max-width: 800px;
  margin: 0 auto;
}

.cart-item {
  display: flex;
  flex-direction: column;
  background-color: var(--surface-color);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

.cart-item:not(:last-child) {
  margin-bottom: 15px;
}

.cart-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cart-item-main {
  display: flex;
  gap: 15px;
  align-items: center;
  cursor: pointer;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background-color: #f0f2f5;
  flex-shrink: 0;
}

.cart-item-details {
  flex-grow: 1;
  min-width: 0;
}

.cart-item-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 45px;
}

.cart-item-price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cart-item-price {
  font-size: 15px;
  font-weight: bold;
  color: var(--danger-color-alt);
}

.cart-item-original-price {
  font-size: 13px;
  color: var(--secondary-color);
  text-decoration: line-through;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.cart-item .btn-buy-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  background-color: var(--surface-color);
  color: var(--danger-color-alt);
  border: 2px solid var(--danger-color-alt);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.cart-item .btn-buy-now:hover {
  background-color: #fbe9e7;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--secondary-color);
  font-size: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.cart-item-remove:hover {
  color: var(--danger-color);
  background-color: #fbe9e7;
}

@media(min-width: 576px) {
  .cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
  }

  .cart-item-main {
    padding: 0;
    border: none;
  }

  .cart-item-title {
    min-height: auto;
  }

  .cart-item-actions {
    flex-direction: row;
    margin: 0;
    padding: 0;
    border: none;
    gap: 10px;
    align-items: center;
  }
}

.empty-cart-container {
  text-align: center;
  padding: 80px 20px;
  color: var(--secondary-color);
}

.empty-cart-icon {
  font-size: 60px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.empty-cart-container h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  visibility: hidden;
  padding: 20px;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
}

#login-required-modal-backdrop {
  align-items: flex-end;
  padding: 0;
}


.modal-backdrop.visible {
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  visibility: visible;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.visible .modal-container {
  transform: scale(1);
  opacity: 1;
}

.modal-container {
  background-color: var(--surface-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 100%;
  max-width: 400px;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-container h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.modal-container p {
  color: var(--secondary-color);
  margin-bottom: 25px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 15px;
}

.btn-modal-primary,
.btn-modal-secondary {
  flex: 1;
  padding: 11px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--danger-color-alt);
}

.btn-modal-primary {
  background-color: var(--danger-color-alt);
  color: white;
}

.btn-modal-secondary {
  background-color: white;
  color: var(--danger-color-alt);
  border-width: 2px;
}

.btn-modal-dark {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--secondary-color);
  background-color: var(--primary-color);
  color: white;
  transition: background-color 0.3s ease;
}

.btn-modal-dark:hover {
  background-color: #333;
}

.remove-item-modal-container {
  max-width: 380px;
}

.remove-modal-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: #fbe9e7;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
}

.remove-modal-icon-wrapper i {
  color: var(--danger-color-alt);
  font-size: 28px;
}

.remove-item-modal-container h3 {
  font-size: 22px;
}

.remove-item-modal-container p {
  font-size: 15px;
  line-height: 1.7;
}


.login-required-modal {
  background: transparent;
  position: relative;
  width: 100%;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  opacity: 1;

  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  z-index: 1;
}

.modal-backdrop.visible .login-required-modal {
  transform: translateY(0);
}

.login-modal-banner img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  display: block;
}

.login-modal-content {
  padding: 20px;
  background-color: var(--surface-color);
  position: relative;
}

.close-modal-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  z-index: 3;
}

.login-modal-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.login-modal-game-icon {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.login-modal-game-icon img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 4px solid var(--background-color);
}

.login-modal-game-info {
  padding-top: 40px;
}

.login-modal-game-info h3 {
  font-size: 18px;
  font-weight: 600;
}

.login-modal-game-info p {
  font-size: 14px;
  color: var(--secondary-color);
}

.login-modal-form .input-group button {
  padding: 0 20px;
}


@media (min-width: 768px) {
  #login-required-modal-backdrop {
    align-items: center;
    padding: 20px;
  }

  .login-required-modal {
    position: relative;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);


    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-backdrop.visible .login-required-modal {
    transform: scale(1);
    opacity: 1;
  }
}

.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}

.image-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
  background-color: rgba(0, 0, 0, 0.8);
}

.image-modal-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.image-modal-overlay.visible img {
  transform: scale(1);
}

#notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s ease-in-out;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  background-color: var(--success-color);
}

.toast.info {
  background-color: var(--info-color);
}

.toast.error {
  background-color: var(--danger-color);
}

.footer {
  background-color: var(--surface-color);
  color: var(--secondary-color);
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-column h3 {
  color: var(--text-color);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-column p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-column ul li a {
  display: block;
  line-height: 2.2;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.footer .legal-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  line-height: 1.6;
}

.footer .legal-info p {
  margin-bottom: 5px;
}

.footer .legal-info strong {
  color: var(--text-color);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  font-size: 18px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  margin: 40px 20px 0 20px;
}

.terms-agreement-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-top: 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.terms-agreement-box.error {
  border-color: var(--danger-color);
  background-color: #fbe9e7;
}

.terms-agreement-box.terms-highlight {
  border-color: var(--danger-color-alt);
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}


.terms-agreement-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.terms-agreement-box label {
  font-size: 14px;
  color: var(--secondary-color);
}

.terms-agreement-box label a {
  color: var(--danger-color-alt);
  text-decoration: underline;
  font-weight: 600;
}

.terms-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1500;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s, visibility 0s 0.4s;
}

.terms-overlay.visible {
  background-color: rgba(0, 0, 0, 0.6);
  visibility: visible;
  transition: background-color 0.4s, visibility 0s;
}

.terms-modal-container {
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media(min-width: 768px) {
  .terms-modal-container {
    height: 90vh;
    max-height: 700px;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
  }
}

.terms-overlay.visible .terms-modal-container {
  transform: translateY(0);
}

@media(min-width: 768px) {
  .terms-overlay.visible .terms-modal-container {
    transform: scale(1);
    opacity: 1;
  }
}

.terms-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px 0 20px;
  height: 60px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  background-color: var(--surface-color);
  z-index: 10;
}

@media(min-width: 768px) {
  .terms-modal-header {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
}

.terms-modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.terms-modal-header .icon-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-color);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.terms-modal-header .icon-btn:hover {
  background-color: var(--background-color);
}


.terms-modal-body {
  padding: 20px 20px 120px 20px;
  overflow-y: auto;
  flex-grow: 1;
  background-color: var(--surface-color);
}

.terms-text-block {
  font-size: 16px;
  line-height: 1.4;
  color: #666;
  text-align: justify;
}

.terms-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  background-color: #f8f9fa;
  position: absolute;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 5;
}

@media(min-width: 768px) {
  .terms-modal-footer {
    position: relative;
    background: var(--surface-color);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }
}

.terms-modal-agreement {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background-color: var(--surface-color);
  border-radius: 8px;
}

.terms-modal-agreement input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}

.terms-modal-agreement label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
}