/* assets/css/mobile.css */

@media (max-width: 768px) {
  .templates-dropdown,
  .nav__brand {
    display: none;
  }
  .faq-section-content {
    flex-direction: column;
    gap: 15px;
  }

  .faq-section-img {
    width: 100%;
  }

  .history-purchase-content {
    flex-direction: column;
    gap: 15px;
  }

  .history-game-preview {
    width: 100%;
    height: 200px;
  }

  .history-detail-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .history-game-title {
    font-size: 1.1rem;
  }

  .error-code {
    font-size: 4rem;
  }

  .error-title {
    font-size: 1.5rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-home,
  .btn-search {
    width: 200px;
  }

  .error-404-content {
    padding: 2rem;
    margin: 1rem;
  }

  * {
    letter-spacing: 1px;
  }

  nav {
    padding: 0 1rem;
    height: auto;
  }

  .nav-justify {
    position: relative;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .logo {
    display: none;
  }

  .user-info {
    display: none;
  }

  .dropdown-trigger,
  .title-category {
    font-size: 12px;
  }

  .login-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .center-menu {
    justify-content: center;
  }

  .nav-right {
    position: relative;
    top: -10%;
    gap: 5px;
  }

  .language-text {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
  }

  .language-dropdown-trigger {
    width: 120px;
  }

  .language-dropdown-item {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .currency-text {
    font-size: 12px;
    font-weight: 300;
  }

  .slider-container {
    max-width: 360px;
  }

  .main {
    max-width: 360px;
  }

  .currency-name,
  .currency-symbol {
    font-size: 12px;
  }

  .carousel-container {
    height: auto;
    position: relative;
    bottom: 100px;
    width: 100%;
  }

  .template-description {
    font-size: 12px;
    max-width: 100%;
  }

  .template-title {
    font-size: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 100%;
  }

  .title-container {
    width: 100%;
  }

  .carousel-wrapper {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .carousel-cards {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
    left: 0;
  }

  .card {
    flex-shrink: 0;
  }

  .template-actions {
    flex-direction: column;
    gap: 10px;
  }

  .price {
    text-align: center;
    align-items: center;
  }

  .template-info {
    min-width: 100% !important;
  }

  .template-info::after {
    top: calc(200px + 55%);
  }

  .slide::after {
    top: calc(200px + -45%);
  }

  .Templates-card {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    max-width: 100%;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .purchase-content {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .game-preview {
    height: 180px;
  }

  .purchase-card {
    padding: 20px;
  }

  .painel-container {
    display: flex;
    flex-direction: column;
  }

  .profile-card {
    width: 100%;
    top: 40%;
  }

  .profile-actions::after {
    top: calc(90% + 0%);
  }

  body {
    overflow-x: hidden;
    height: 100dvh;
  }

  .carousel-navigation {
    top: 710px !important;
    left: -250px !important;
  }

  .card-actions-buttons {
    flex-direction: column;
  }

  .nav-justify,
  nav,
  .main {
    padding: 0 0.5rem;
  }

  body,
  .carousel-container,
  .slider-container,
  .Templates-container,
  .dropdown-menu,
  .cards-wrapper {
    overflow-x: hidden;
  }

  #templatesDropdownMenu,
  #navSearchMenu {
    min-width: 100%;
    margin-left: -112px;
  }

  #userMenuNotLogged {
    left: 12px !important;
    right: 12px !important;
    width: auto;
  }

  .artist-profile {
    margin-top: 40px;
  }

  .artist-info {
    padding-top: 50px;
  }

  .card-pag {
    width: 185px;
  }

  .login-submit-btn {
    padding: 12px 12px;
  }

  /* --- adicionado do style.css/carrosseul.css --- */

  #templatesDropdown,
  #navSearchGrid {
    flex-direction: column;
  }

  .dropdown-column {
    max-height: 200px;
  }

  .dropdown-menu {
    max-width: 100%;
  }

  #templatesDropdownMenu .dropdown-column,
  #navSearchMenu .dropdown-column {
    max-height: 200px;
  }

  #templatesDropdownMenu,
  #navSearchMenu {
    max-width: 100%;
  }

  .slider-container {
    margin: 0 20px;
  }

  .slide-content {
    padding: 20px 25px;
  }

  .slide-content h2 {
    font-size: 22px;
  }

  .slide-content p {
    font-size: 13px;
  }

  .Templates-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .slider-container {
    margin: 0 20px;
  }

  .slide-content {
    padding: 20px 25px;
  }

  .slide-content h2 {
    font-size: 22px;
  }

  .slide-content p {
    font-size: 13px;
  }

  .bonus-loja-percentage {
    font-size: 36px;
    text-align: center;
  }

  .artist-avatar {
    width: 120px;
    height: 120px;
  }

  .Templates-card .card img {
    height: 180px;
  }

  .program-icon img {
    width: 48px;
    height: 48px;
  }

  .rating-modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 90vh;
  }

  .rating-modal-header {
    padding: 1.5rem 1rem 1rem 1rem;
  }

  .rating-modal-body {
    padding: 1rem;
  }

  .rating-overview {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .rating-summary {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .rating-breakdown {
    width: 100%;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .review-header .review-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  .product-container {
    display: block;
  }

  .product-demo {
    width: 100%;
    padding-top: 20px;
  }

  .product-info {
    margin-left: 0;
    padding-top: 20px;
  }

  .checkout-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .checkout-modal-header {
    padding: 1rem 1.5rem 0.5rem;
  }

  .checkout-modal-body {
    padding: 1rem 1.5rem 1.5rem;
  }

  .product-summary-image {
    width: 100px;
    height: 100px;
    align-self: center;
  }

  .arquivos-incluidos-section {
    padding: 1rem;
    margin-top: 1.5rem;
  }

  .share-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .share-buttons {
    width: 100%;
    justify-content: center;
  }

  .notificacao-share {
    left: 20px;
    right: 20px;
    text-align: center;
  }

  .painel-new-2-container {
    padding: 120px 15px 60px;
  }

  .painel-new-2-nav {
    position: relative;
    flex-direction: column;
    max-height: 52px;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .painel-new-2-nav.open {
    max-height: 250px;
  }

  .painel-new-2-nav-btn {
    justify-content: flex-start;
    padding: 12px 16px;
  }

  .painel-new-2-nav-btn span {
    display: none;
  }

  .painel-new-2-nav.open .painel-new-2-nav-btn span {
    display: inline;
  }

  .painel-new-2-mobile-toggle {
    display: flex;
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--prymary-color);
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
  }

  .painel-new-2-tab {
    padding: 20px;
  }

  .painel-new-2-grid {
    grid-template-columns: 1fr;
  }

  .painel-new-2-purchase-wrapper {
    flex-direction: column;
  }

  .painel-new-2-product-image {
    width: 100%;
    height: 180px;
  }

  .painel-new-2-total-value {
    font-size: 36px;
  }

  .painel-new-2-purchase-item {
    flex-direction: column;
  }

  .painel-new-2-purchase-image {
    width: 100%;
    height: 200px;
  }

  .painel-new-2-purchase-image--card {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .painel-new-2-purchase-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .modal-content-avaliacao {
    padding: 30px 20px;
    max-width: 95%;
  }

  .star-rating-input {
    font-size: 30px;
  }

  .form-actions-avaliacao {
    flex-direction: column;
  }

  .painel-new-2-product-thumb {
    width: 80px;
    height: 60px;
  }

  .painel-new-2-product-actions {
    width: 100%;
  }

  .btn-action-inline {
    flex: 1;
    justify-content: center;
  }

  .nivel-badge-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .nivel-badge-text {
    font-size: 10px;
  }

  .nivel-desconto {
    font-size: 9px;
  }

  .nivel-progress-text {
    font-size: 11px;
  }

  .preco-assinante-preview-buy {
    padding: 10px 15px;
  }

  .preco-assinante-preview-buy .valor-assinante {
    font-size: 18px;
  }

  .nao-assinante-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .badge-action-btn {
    width: 100%;
    justify-content: center;
  }

  .notificacoes-dropdown {
    width: 100vw;
    max-width: 100vw;
    left: 0;
    right: 0;
  }

  .download-alert {
    top: 150px;
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    font-size: 12px;
    padding: 12px 15px;
  }

  .modal-stats-grid {
    grid-template-columns: 1fr;
  }

  .form-grid-2col {
    grid-template-columns: 1fr;
  }

  .form-grid-3col {
    grid-template-columns: 1fr;
  }

  .pref-checklist {
    min-width: 0;
    width: 100%;
  }

  .painel-new-2-grid {
    grid-template-columns: 1fr !important;
  }

  .avatar-container-edit {
    width: 150px;
    height: 150px;
  }

  .phone-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .country-select {
    width: 100%;
  }

  .video-modal-content {
    max-width: 95vw;
    max-height: 85vh;
  }

  .video-modal iframe {
    max-height: 70vh;
  }

  .video-modal-close {
    top: -35px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .carousel-cards .card .buy-button,
  .Templates-card .card::after {
    padding: 10px 20px;
    font-size: 13px;
  }

  .Templates-card .card-price {
    margin-top: 8px !important;
  }

  .Templates-card .card-current-price {
    font-size: 15px;
  }

  .Templates-card .card-old-price {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .history-purchase-item {
    border-radius: 8px;
  }

  .history-purchase-content {
    padding: 15px;
  }

  .history-game-preview {
    height: 180px;
  }

  .carousel-container,
  .slider-container,
  .Templates-container {
    padding: 0 10px;
  }

  .card {
    max-width: 100%;
  }

  .slider-wrapper {
    height: 420px;
  }

  .slide img {
    height: 200px;
    max-height: 200px;
    min-height: 200px;
    margin: 20px 5px 0 5px;
  }

  .slide-content {
    padding: 10px 15px;
  }

  .slide-content h2 {
    font-size: 18px;
  }

  .slide-content p {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .dropdown-menu {
    max-width: 95%;
    padding: 6px;
  }

  .Templates-wrapper {
    padding: 0;
    gap: 15px;
  }

  .profile-image {
    width: 80px;
    height: 80px;
  }

  .profile-title {
    font-size: 22px;
  }

  .game-preview {
    width: 100%;
    max-width: 200px;
    height: 120px;
  }

  /* --- adicionado do style.css/carrosseul.css --- */

  .slide img {
    height: 200px;
    max-height: 200px;
    min-height: 200px;
  }

  .slider-wrapper {
    height: 420px;
  }

  .slide-content {
    padding: 15px 20px;
  }

  .slide-content h2 {
    font-size: 20px;
  }

  .slide-content p {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .slide img {
    height: 200px;
    max-height: 200px;
    min-height: 200px;
  }

  .slider-wrapper {
    height: 420px;
  }

  .slide-content {
    padding: 15px 20px;
  }

  .slide-content h2 {
    font-size: 20px;
  }

  .slide-content p {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .artist-avatar {
    width: 100px;
    height: 100px;
  }

  .Templates-card .card img {
    height: 160px;
  }

  .breadcrumb-nav {
    font-size: 0.8rem;
    gap: 6px;
  }

  .painel-new-2-container {
    padding: 120px 15px 60px;
  }

  .painel-new-2-tab {
    padding: 15px;
  }

  .painel-new-2-total-value {
    font-size: 28px;
  }

  .painel-new-2-section-title {
    font-size: 16px;
  }

  .nivel-badges-wrapper {
    gap: 3px;
  }

  .nivel-badge-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .nivel-badge-text {
    font-size: 9px;
    margin-top: 4px;
  }

  .nivel-desconto {
    font-size: 8px;
  }

  .carousel-cards .card .buy-button,
  .Templates-card .card::after {
    padding: 8px 16px;
    font-size: 12px;
  }

  .Templates-card .card-current-price {
    font-size: 14px;
  }

  .Templates-card .card-old-price {
    font-size: 12px;
  }
}

@media (max-width: 1024px) {
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .related-products-section {
    margin: 40px auto 20px;
  }

  .related-products-header h2 {
    font-size: 22px;
  }

  .related-products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-product-image {
    height: 200px;
  }
}
