/*
 * Theme 206620 – Responsive styles for all device sizes.
 * Breakpoints: 320px, 375px, 576px (sm), 768px (md), 992px (lg), 1200px (xl), 1400px (xxl)
 */

/* ========== GLOBAL: prevent overflow & fluid base ========== */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
  min-width: 0;
}
img, video, iframe, object, embed {
  max-width: 100%;
  height: auto;
}

/* ========== GLOBAL: keep everything a little more centered (margin from edges) ========== */
.container {
  max-width: 100%;
  padding-left: max(1rem, 5vw);
  padding-right: max(1rem, 5vw);
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 576px) {
  .container {
    padding-left: max(1.25rem, 6vw);
    padding-right: max(1.25rem, 6vw);
  }
}
@media (min-width: 768px) {
  .container {
    padding-left: max(1.5rem, 7vw);
    padding-right: max(1.5rem, 7vw);
  }
}
@media (min-width: 992px) {
  .container {
    padding-left: max(2rem, 8vw);
    padding-right: max(2rem, 8vw);
  }
}
@media (min-width: 1200px) {
  .container {
    padding-left: max(2.5rem, 10vw);
    padding-right: max(2.5rem, 10vw);
  }
}
.container-fluid {
  max-width: 100%;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

/* Tables: scroll on small screens */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  min-width: 0;
}
@media (max-width: 767.98px) {
  .table-responsive {
    display: block;
    width: 100%;
  }
  table {
    display: block;
  }
}

/* ========== NAVBAR ========== */
@media (max-width: 991.98px) {
  .hb-navbar[data-component-id="navbar"] .container {
    flex-wrap: wrap;
  }
  .hb-navbar[data-component-id="navbar"] .navbar-brand {
    padding-right: 0.5rem;
  }
  .hb-navbar[data-component-id="navbar"] .navbar-brand img {
    height: 24px;
  }
  .hb-navbar[data-component-id="navbar"] .navbar-collapse {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
  }
  .hb-navbar[data-component-id="navbar"] .navbar-nav {
    gap: 0.5rem;
  }
  .hb-navbar[data-component-id="navbar"] .discord-cta {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}
@media (max-width: 575.98px) {
  .hb-navbar[data-component-id="navbar"] .navbar-brand span {
    font-size: 0.95rem;
  }
  .hb-navbar[data-component-id="navbar"] .nav-link,
  .hb-navbar[data-component-id="navbar"] .nav-ghost {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

/* ========== FOOTER ========== */
@media (max-width: 767.98px) {
  .footer.hyper-footer .row.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .footer.hyper-footer .brand-tagline,
  .footer.hyper-footer .brand-note {
    font-size: 0.85rem;
  }
  .footer.hyper-footer .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer.hyper-footer .btn-social,
  .footer.hyper-footer .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .footer.hyper-footer .footer-secure-checkout,
  .footer.hyper-footer .footer-payment-icons {
    justify-content: center;
  }
  .footer.hyper-footer .copyright {
    font-size: 0.8rem;
    white-space: normal;
    text-align: center;
  }
}
@media (max-width: 575.98px) {
  .footer.hyper-footer .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .footer.hyper-footer .col-title {
    font-size: 0.8rem;
  }
}

/* ========== HERO (hb-hero) – extra small ========== */
@media (max-width: 374px) {
  .hb-hero .hb-wrap {
    padding: 0 12px;
  }
  .hb-hero .hb-title {
    font-size: 28px;
  }
  .hb-hero .hb-btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  .hb-hero .hb-stat .v {
    font-size: 1rem;
  }
  .hb-hero .hb-stat .l {
    font-size: 0.7rem;
  }
}

/* ========== PRODUCT PAGE (hyper-product) ========== */
@media (max-width: 991.98px) {
  .hyper-product .container.px-4.px-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .hyper-product .prod-summary {
    padding: 1rem;
  }
  .hyper-product .price-stock {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .hyper-product .other-payment-buttons {
    flex-direction: column;
  }
  .hyper-product .btn-other-payment {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 767.98px) {
  .hyper-product .prod-title {
    font-size: clamp(22px, 5.5vw, 32px);
  }
  .hyper-product .price-chip .value {
    font-size: 1rem;
  }
  .hyper-product .stock-chip {
    padding: 5px 10px;
    font-size: 0.85rem;
  }
  .hyper-product .thumbnails {
    gap: 6px;
    padding: 6px 2px 2px;
  }
  .hyper-product .thumbnails button {
    flex: 0 0 72px;
  }
  .hyper-product .tab-pills {
    gap: 6px;
  }
  .hyper-product .tab-pills button {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  .hyper-product .form-shell {
    padding: 8px;
  }
  .hyper-product .form-shell label,
  .hyper-product .form-shell .variant,
  .hyper-product .form-shell .option {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px;
  }
  .hyper-product .form-shell .price-right {
    text-align: left;
  }
}
@media (max-width: 575.98px) {
  .hyper-product .product-breadcrumb {
    font-size: 0.8rem;
  }
  .hyper-product .product-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    padding: 0 0.35rem;
  }
  .hyper-product .live-stats .stat {
    font-size: 0.85rem;
  }
  .hyper-product .page-badges .pill {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}

/* ========== PRODUCT CARD (shop-card) ========== */
@media (max-width: 575.98px) {
  .products-page-scope .row.products {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  .shop-card .card-title {
    font-size: 1rem;
  }
  .shop-card .meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .shop-card .badges .pill {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  /* Scale down decorative glow on small viewports */
  .shop-card .card-img-top::before {
    width: 280px;
    height: 280px;
    right: -25%;
    bottom: -25%;
  }
}

/* ========== PRODUCTS PAGE (filters + grid) ========== */
@media (max-width: 991.98px) {
  .products-page-scope .filters-sidebar {
    position: static !important;
  }
  .products-page-scope .filters-sidebar.sticky-top {
    margin-bottom: 1rem;
  }
}
@media (max-width: 575.98px) {
  .products-page-scope .section-title h1 {
    font-size: 1.5rem;
  }
  .products-page-scope .filters-sidebar {
    padding: 1rem !important;
  }
  .products-page-scope .filters-sidebar .btn {
    font-size: 0.9rem;
  }
}

/* ========== CART PAGE ========== */
@media (max-width: 575.98px) {
  .cart .section-title h1 {
    font-size: 1.5rem;
  }
  .cart .cart-item-bg {
    padding: 0.75rem !important;
  }
  .cart .cart-controls {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .cart .cart-quantity-controls {
    max-width: 100%;
    flex: 1;
    min-width: 0;
  }
  .cart .cart-price-text {
    min-width: 0;
    width: 100%;
    text-align: left;
  }
  .cart .cart-checkout-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========== CUSTOMER DASHBOARD ========== */
@media (max-width: 991.98px) {
  .customer-dashboard-sidebar.card {
    margin-bottom: 1rem;
  }
  .customer-dashboard-sidebar .customer-sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .customer-dashboard-sidebar .customer-sidebar-nav .nav-link {
    flex: 1 1 auto;
    min-width: 0;
  }
}
@media (max-width: 575.98px) {
  .customer-dashboard-sidebar .customer-sidebar-nav {
    flex-direction: column;
  }
  .customer-dashboard-sidebar .customer-sidebar-nav .nav-link {
    width: 100%;
  }
}

/* ========== CUSTOMER INVOICES (orders table) – card layout on small devices ========== */
@media (max-width: 767.98px) {
  .customer-invoices-card .table-responsive {
    overflow-x: visible;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .customer-invoices-table {
    display: block;
    min-width: 0;
  }
  .customer-invoices-table thead {
    display: none;
  }
  .customer-invoices-table tbody tr {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
  }
  .customer-invoices-table tbody tr:last-child {
    margin-bottom: 0;
  }
  .customer-invoices-table tbody td {
    display: block;
    padding: 0.4rem 0;
    border: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .customer-invoices-table tbody td[data-label]::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 0.2rem;
  }
  .customer-invoices-table tbody td[data-label="Action"] {
    padding-top: 0.75rem;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .customer-invoices-table tbody td[data-label="Action"] .btn-link {
    padding: 0.5rem 0;
  }
  .customer-invoices-table tbody tr td[colspan="5"] {
    text-align: center;
    padding: 1.5rem;
  }
  .customer-invoices-table tbody tr td[colspan="5"]::before {
    display: none;
  }
}

/* ========== TEXT / TEXT-IMAGE / TEXT-VIDEO BLOCKS ========== */
@media (max-width: 767.98px) {
  .text-block .section-title h1,
  .text-block .section-title h2,
  .text-image-block .section-title h1,
  .text-image-block .section-title h2,
  .text-video-block .section-title h1,
  .text-video-block .section-title h2 {
    font-size: 1.5rem;
  }
  .text-image-block .row,
  .text-video-block .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }
  .cta-text-image .content {
    padding: 2rem 1rem !important;
  }
  .cta-text-image .content .title {
    font-size: 1.75rem;
  }
  .cta-text-center .content .title {
    font-size: 1.5rem;
  }
}
@media (max-width: 575.98px) {
  .text-image-block.component .hb-ticker .hb-group {
    gap: 1rem;
    padding: 8px 1rem;
    font-size: 0.85rem;
  }
}

/* ========== FEATURES ========== */
@media (max-width: 767.98px) {
  .features .list .feature {
    padding: 1rem;
  }
  .features .list .feature .description {
    padding: 0 1rem;
  }
}
@media (max-width: 575.98px) {
  .features .list .feature i,
  .features .list .feature svg {
    font-size: 2.5rem;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
  }
  .features .list .feature .title {
    font-size: 1rem;
  }
}

/* ========== FAQ ========== */
@media (max-width: 575.98px) {
  .faq .accordion-button {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
  .faq .accordion-body {
    padding: 0.75rem 1rem;
  }
}

/* ========== BLOG ========== */
@media (max-width: 767.98px) {
  .blog-posts .section-title h1,
  .blog-posts .section-title h2 {
    font-size: 1.5rem;
  }
  .blog-post-page .section-title h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}
@media (max-width: 575.98px) {
  .blog-post-card .card-title {
    font-size: 1rem;
  }
  .blog-post-page .section-title h1 {
    font-size: 1.25rem;
  }
  .blog-post-page .bg-gray {
    padding: 1rem !important;
  }
}

/* ========== TRUST BADGES ========== */
@media (max-width: 374px) {
  .trust-badges-inner {
    gap: 0.75rem 1rem;
  }
  .trust-badge {
    font-size: 0.8rem;
  }
  .trust-badge-icon {
    font-size: 1rem;
  }
}

/* ========== STATUS PAGE ========== */
@media (max-width: 575.98px) {
  .status-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .status-card h3 {
    font-size: 1.1rem;
  }
  .status-group h2 {
    font-size: 1.2rem;
  }
}

/* ========== POLICIES / TERMS / REFUND / PRIVACY ========== */
@media (max-width: 767.98px) {
  .refund-policy-page .section-title h1,
  .privacy-policy-page .section-title h1,
  .terms-page .section-title h1 {
    font-size: 1.5rem;
  }
  .text-block .content-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
@media (max-width: 575.98px) {
  .editor .e-heading-h1 {
    font-size: 1.75rem;
    line-height: 2rem;
  }
  .editor .e-heading-h2 {
    font-size: 1.5rem;
    line-height: 1.75rem;
  }
  .editor .e-heading-h3 {
    font-size: 1.25rem;
    line-height: 1.5rem;
  }
}

/* ========== FEEDBACK PAGE ========== */
@media (max-width: 767.98px) {
  .testimonial .header,
  .testimonial .content,
  .testimonial .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .testimonial .content .message {
    font-size: 0.85rem;
  }
}
@media (max-width: 575.98px) {
  .testimonial .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .testimonial .footer .items,
  .testimonial .footer .date {
    white-space: normal;
  }
}

/* ========== VIDEO GALLERY & IMAGE GALLERY ========== */
@media (max-width: 767.98px) {
  .image-gallery .row,
  .video-gallery .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
}
.text-video-block iframe {
  max-width: 100%;
}

/* ========== PROMO MARQUEE ========== */
@media (max-width: 575.98px) {
  .promo-marquee-item {
    font-size: 0.8rem;
  }
}

/* ========== ANNOUNCEMENT ========== */
@media (max-width: 575.98px) {
  .announcement {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  .announcement a {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ========== REVIEWS TICKER ========== */
@media (max-width: 575.98px) {
  .reviews-ticker-wrap {
    padding: 1.5rem 0 2rem;
  }
  .reviews-ticker-title {
    font-size: 1rem;
  }
  .reviews-ticker-card {
    width: 260px;
    max-width: 90vw;
  }
  .reviews-ticker-card-inner {
    padding: 0.75rem 1rem;
  }
  .reviews-ticker-message {
    font-size: 0.85rem;
  }
}

/* ========== BACK TO TOP ========== */
@media (max-width: 575.98px) {
  .back-to-top {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
  }
}

/* ========== MODALS ========== */
@media (max-width: 575.98px) {
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  .modal-content {
    border-radius: 0.5rem;
  }
  .modal-body {
    padding: 1rem;
  }
}

/* ========== PAGINATION ========== */
@media (max-width: 575.98px) {
  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
  }
  .pagination .page-link {
    padding: 0.35rem 0.65rem;
    font-size: 0.9rem;
  }
}

/* ========== MONO STAGE (master background) ========== */
@media (max-width: 767.98px) {
  .mono-corner.tl,
  .mono-corner.tr {
    width: 64px;
    height: 64px;
    top: 80px;
  }
}
@media (max-width: 575.98px) {
  .mono-corner.tl,
  .mono-corner.tr {
    width: 48px;
    height: 48px;
    top: 60px;
  }
}

/* ========== SAFE AREA (notched devices) ========== */
@supports (padding: max(0px, env(safe-area-inset-bottom))) {
  .flex-wrapper {
    padding-bottom: env(safe-area-inset-bottom);
  }
}