/* ==========================================================================
   GenZdukan — Responsive Styles
   Media queries for all breakpoints: 1200px, 992px, 768px, 576px.
   ========================================================================== */

/* ── Extra Large (≤ 1200px) ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
  :root {
    --text-5xl: 3rem;
    --text-4xl: 2.25rem;
  }

  .hero__inner {
    gap: var(--space-2xl);
  }

  .hero__showcase-img {
    max-width: 440px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
  }
}

/* ── Large (≤ 992px) ──────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }

  /* Header — raise above overlay so the mobile nav sidebar is not covered */
  .header {
    z-index: calc(var(--z-overlay) + 10);
  }

  /* Header — show mobile toggle, hide desktop nav */
  .header__mobile-toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-primary-dark);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    transition: right var(--transition-slow);
    z-index: var(--z-overlay);
    gap: var(--space-xl);
  }

  .header__nav.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    width: 100%;
  }

  .nav__link {
    font-size: var(--text-base);
    padding: var(--space-sm) 0;
    width: 100%;
  }

  .nav__item--has-dropdown {
    width: 100%;
  }

  .nav__link--dropdown {
    width: 100%;
    justify-content: space-between;
  }

  .categories-dropdown {
    position: static;
    transform: none !important;
    min-width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    margin-top: var(--space-xs);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
  }

  .categories-dropdown::before {
    display: none;
  }

  .categories-dropdown.is-open,
  .nav__item--has-dropdown.open .categories-dropdown {
    max-height: 340px;
    opacity: 1;
    visibility: visible;
    padding: 4px;
    margin-bottom: var(--space-xs);
  }

  .categories-dropdown__inner {
    max-height: 300px;
  }

  .header__search {
    width: 100%;
  }

  .header__search-input {
    width: 100%;
  }

  .header__search-input:focus {
    width: 100%;
  }

  /* Hero — stack layout (text content first, showcase image below) */
  .hero {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .hero__inner {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    padding-block: var(--space-xl) !important;
    gap: var(--space-xl) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .hero__badge {
    margin-inline: auto;
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
    max-width: 95%;
  }

  .hero__title {
    font-size: clamp(1.6rem, 5.5vw, 2.35rem) !important;
    line-height: 1.25 !important;
    text-align: center !important;
    margin-inline: auto !important;
    max-width: 100% !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero__subtitle {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    text-align: center !important;
    margin-inline: auto !important;
    max-width: 480px !important;
    margin-bottom: var(--space-xl) !important;
  }

  .hero__cta {
    justify-content: center !important;
    width: 100% !important;
  }

  .hero__stats {
    justify-content: center !important;
    width: 100% !important;
    gap: var(--space-lg) !important;
  }

  .hero__showcase {
    order: 0 !important;
    /* Keep showcase image BELOW text content */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 320px !important;
    margin-inline: auto !important;
    position: relative !important;
    margin-top: var(--space-lg) !important;
    padding-block: 0.5rem !important;
  }

  .hero__showcase-img {
    max-width: 220px !important;
    width: 75% !important;
    height: auto !important;
    margin-inline: auto !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
  }

  /* Make BOTH floating cards (Best Seller & Flash Deal) visible & styled on mobile */
  .hero__floating-card {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    z-index: 10 !important;
    padding: 0.35rem 0.65rem !important;
    border-radius: var(--radius-md) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    min-width: 105px !important;
  }

  .hero__floating-card--top {
    top: 0% !important;
    right: 2% !important;
    left: auto !important;
    transform: scale(0.9) !important;
  }

  .hero__floating-card--bottom {
    bottom: 0% !important;
    left: 2% !important;
    right: auto !important;
    transform: scale(0.9) !important;
  }

  .hero__floating-card-label {
    font-size: 0.6rem !important;
    color: #64748b !important;
    margin-bottom: 1px !important;
    font-weight: 600 !important;
  }

  .hero__floating-card-value {
    font-family: var(--font-heading) !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
  }

  .hero__floating-card-value .text-accent {
    color: var(--color-accent) !important;
  }

  /* Promo Banner */
  .promo-banner__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
  }

  .promo-banner__subtitle {
    margin-inline: auto;
  }

  .promo-banner__image {
    order: -1;
  }

  .promo-banner__image img {
    max-height: 220px;
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* Brand Grid */
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .brand-card {
    padding: 0.85rem 0.5rem;
    gap: 0.35rem;
    aspect-ratio: 16/9;
  }

  .brand-card__logo {
    max-width: 85px;
    max-height: 34px;
  }

  .brand-card__text {
    font-size: 0.75rem;
  }

  /* Trust Bar */
  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer__brand {
    max-width: none;
    grid-column: 1 / -1;
  }

  /* Product Details */
  .product-detail__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .product-gallery {
    position: static;
  }

  .related-products .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Medium (≤ 768px) ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2rem;
    --text-4xl: 1.65rem;
    --text-3xl: 1.35rem;
    --space-4xl: 2.75rem;
    --space-3xl: 2rem;
    --container-padding: 0.85rem;
  }

  .section {
    padding-block: var(--space-2xl);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  /* Header adjustments for mobile */
  .header__inner {
    padding-inline: 0.75rem;
  }

  .header__logo span {
    font-size: 1.15rem;
  }

  .header__logo-img {
    height: 36px;
    max-width: 130px;
    padding: 2px 6px;
  }

  .header__actions {
    gap: 0.4rem;
  }

  .header__cart {
    width: 36px;
    height: 36px;
  }

  /* Hero adjustments */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 0.5rem);
    padding-bottom: var(--space-xl);
  }

  .hero__inner {
    padding-block: var(--space-xl) !important;
    gap: var(--space-lg) !important;
  }

  .hero__title {
    font-size: clamp(1.45rem, 6vw, 2.1rem) !important;
    line-height: 1.2 !important;
    margin-bottom: var(--space-md) !important;
  }

  .hero__subtitle {
    font-size: 0.875rem !important;
    margin-bottom: var(--space-lg) !important;
  }

  .hero__stats {
    gap: var(--space-md) !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .hero__stat-value {
    font-size: 1.25rem;
  }

  .hero__stat-label {
    font-size: 0.7rem;
  }

  .hero__showcase-img {
    max-width: 220px !important;
  }

  /* Promo Banner */
  .promo-banner__title {
    font-size: var(--text-3xl);
  }

  /* Hot selling header */
  .hot-selling .section-title-wrapper {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .hot-selling .section-title-wrapper .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Product Grid — 2 Products Per Row */
  .product-grid,
  .wishlist-grid,
  .related-products .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  /* ── Product Card Badges (Hot, Video, etc.) on Mobile ────────────────────── */
  /* Keep desktop unchanged; on mobile move to corners and slightly smaller so they don't cover photos */
  .badge {
    top: 6px !important;
    left: 6px !important;
    padding: 2.5px 7px !important;
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
  }

  .product-card__video-badge {
    top: 6px !important;
    right: 6px !important;
    padding: 2.5px 7px !important;
    font-size: 0.6rem !important;
    gap: 3px !important;
    line-height: 1.2 !important;
  }

  .product-card__video-badge svg {
    width: 8px !important;
    height: 8px !important;
  }

  /* Brand Grid */
  .brand-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }

  .brand-card {
    padding: 0.75rem 0.4rem !important;
    aspect-ratio: 16/9 !important;
  }

  .brand-card__logo {
    max-width: 75px !important;
    max-height: 30px !important;
  }

  .brand-card__text {
    font-size: 0.7rem !important;
  }

  /* Trust Bar */
  .trust-bar__grid {
    grid-template-columns: 1fr;
  }

  .trust-bar__item {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  /* Footer Mobile Design */
  .footer {
    padding-top: 2.5rem;
    padding-bottom: 1.75rem;
    text-align: center;
  }

  .footer__grid {
    grid-template-columns: 100% !important;
    gap: 2rem !important;
    padding-bottom: 1.75rem;
  }

  .footer__brand {
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__logo-wrap {
    margin-bottom: 1rem;
  }

  .footer__logo-badge {
    max-width: 165px !important;
    height: 44px !important;
    padding: 5px 14px !important;
  }

  .footer__about {
    font-size: 0.84rem;
    line-height: 1.6;
    max-width: 340px;
    margin: 0 auto 1.25rem auto;
    text-align: center;
  }

  .footer__contact {
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    width: 100%;
  }

  .footer__contact-pill {
    padding: 6px 13px;
    font-size: 0.78rem;
  }

  .footer__social-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__social-title {
    margin-bottom: 0.75rem;
  }

  .footer__social {
    justify-content: center;
    gap: 14px;
    margin-top: 0.25rem;
  }

  .social-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .footer__column {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__column h4 {
    font-size: 1.05rem;
    margin-bottom: 1.15rem;
    text-align: center;
  }

  .footer__column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer__links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem 1.5rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
  }

  .footer__link {
    justify-content: center;
    padding: 5px 8px;
    font-size: 0.85rem;
  }

  .footer__link:hover {
    transform: none;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 1.25rem 0 0 0;
  }

  .footer__bottom-links {
    justify-content: center;
    gap: 1.1rem;
  }

  /* Product Details */
  .product-info__name {
    font-size: var(--text-2xl);
  }

  .product-info__price-current {
    font-size: var(--text-3xl);
  }

  .product-info__cart {
    flex-direction: column;
  }

  .product-info__cart .btn--primary,
  .product-info__cart .btn--accent {
    width: 100%;
  }

  .product-info__cart .qty-selector {
    width: 100%;
    justify-content: center;
  }
}

/* ── Small Mobile (≤ 576px) ──────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  :root {
    --text-5xl: 1.65rem;
    --text-4xl: 1.35rem;
    --text-3xl: 1.15rem;
    --space-4xl: 2rem;
    --space-3xl: 1.5rem;
    --container-padding: 0.65rem;
  }

  .hero__showcase-img {
    max-width: 200px !important;
  }

  .hero__cta {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 280px !important;
    margin-inline: auto !important;
  }

  .hero__cta .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Product Grid — 2 Products Per Row on Mobile */
  .product-grid,
  .wishlist-grid,
  .related-products .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  /* Mobile Product Card Optimization */
  .product-card {
    border-radius: var(--radius-md);
  }

  /* Mobile Product Card Badges: slightly smaller & tight to corners, same design/colors */
  .badge {
    top: 5px !important;
    left: 5px !important;
    padding: 2px 6px !important;
    font-size: 0.58rem !important;
  }

  .product-card__video-badge {
    top: 5px !important;
    right: 5px !important;
    padding: 2px 6px !important;
    font-size: 0.56rem !important;
    gap: 2.5px !important;
  }

  .product-card__video-badge svg {
    width: 7.5px !important;
    height: 7.5px !important;
  }

  .product-card__body {
    padding: 0.6rem 0.5rem;
  }

  .product-card__category {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
  }

  .product-card__name {
    font-size: 0.8rem;
    line-height: 1.25;
    margin-bottom: 4px;
    height: 2.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card__description {
    display: none;
    /* Compact cards on mobile */
  }

  .product-card__rating {
    margin-bottom: 4px;
    gap: 2px;
  }

  .product-card__rating .star svg {
    width: 11px;
    height: 11px;
  }

  .rating-count {
    font-size: 0.62rem;
    margin-left: 2px;
  }

  .product-card__price {
    margin-bottom: 6px;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
  }

  .price-current {
    font-size: 0.92rem;
  }

  .price-original {
    font-size: 0.7rem;
  }

  .price-discount {
    font-size: 0.58rem;
    padding: 1px 4px;
  }

  .product-card__footer {
    padding: 0 0.45rem 0.5rem;
    flex-direction: column;
    gap: 0.3rem;
  }

  .product-card__footer .btn {
    width: 100%;
    padding: 0.42rem 0.2rem;
    font-size: 0.7rem;
    gap: 4px;
    border-radius: var(--radius-sm);
  }

  .product-card__footer .btn svg {
    width: 13px;
    height: 13px;
  }

  /* Quick View & Heart Actions Overlay for Mobile Touch */
  .product-card__actions {
    padding: 0.35rem;
    gap: 0.35rem;
    transform: translateY(0);
    /* Always accessible on touch screens */
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.45));
  }

  .product-card__action-btn {
    width: 32px;
    height: 32px;
  }

  .product-card__action-btn svg {
    width: 15px;
    height: 15px;
  }

  /* Brand Grid on Small Mobile */
  .brand-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .brand-card {
    padding: 0.65rem 0.35rem !important;
    aspect-ratio: 16/9 !important;
  }

  .brand-card__logo {
    max-width: 70px !important;
    max-height: 28px !important;
  }

  .brand-card__text {
    font-size: 0.68rem !important;
  }

  /* Promo Banner */
  .promo-banner__inner {
    padding: 1.5rem 0.85rem;
    min-height: auto;
  }

  .promo-banner__title {
    font-size: 1.25rem;
  }

  .promo-banner__subtitle {
    font-size: 0.85rem;
  }

  .promo-banner__image img {
    max-height: 150px;
  }

  /* Product Details Page Mobile Adjustments */
  .product-gallery__thumbs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 6px 2px;
  }

  .product-gallery__thumb {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
  }

  /* Footer */
  .footer__social {
    justify-content: center;
  }

  /* Toast Notifications on Mobile */
  .toast-container {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .toast {
    max-width: 100%;
    font-size: 0.8rem;
    padding: 0.65rem 1rem;
  }
}

/* ── Checkout Page Mobile Responsiveness (≤ 1024px, ≤ 768px, ≤ 480px, ≤ 360px) ── */
@media (max-width: 1024px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: var(--space-xl) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .checkout-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .checkout-form-card {
    position: static !important;
    order: -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .checkout-summary {
    order: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .checkout-page {
    padding-top: calc(var(--header-height) + 1.25rem);
    padding-bottom: 2.5rem;
    overflow-x: hidden;
  }

  .checkout-page .container {
    padding-inline: 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .checkout-page__header {
    margin-bottom: var(--space-md);
  }

  .checkout-page__title {
    font-size: clamp(1.4rem, 5vw, 1.85rem);
    line-height: 1.2;
  }

  .checkout-back {
    font-size: var(--text-xs);
    margin-bottom: var(--space-xs);
  }

  .checkout-steps {
    gap: var(--space-2xs);
    margin-bottom: var(--space-lg);
    width: 100%;
    justify-content: center;
  }

  .checkout-steps__step span:not(.checkout-steps__number) {
    display: none;
  }

  .checkout-steps__number {
    width: 30px;
    height: 30px;
    font-size: var(--text-xs);
  }

  .checkout-steps__divider {
    width: 32px;
  }

  .checkout-form-card {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .checkout-form-card__title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    gap: 0.5rem;
  }

  .checkout-form-card__title svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .checkout-form {
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .checkout-form__group {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .checkout-form__row {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .checkout-form__label {
    font-size: 0.82rem;
  }

  .checkout-form__input,
  .checkout-form__textarea {
    font-size: 16px;
    padding: 0.75rem 0.85rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    border-radius: var(--radius-md);
  }

  .checkout-form__submit {
    white-space: normal !important;
    word-break: break-word;
    text-align: center;
    line-height: 1.35;
    padding: 0.95rem 1rem !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .checkout-form__submit svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
  }

  .checkout-form__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
  }

  .checkout-form__trust-item {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .checkout-summary {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .checkout-summary__title {
    font-size: 1.15rem;
    padding: 1rem 1rem 0.65rem !important;
  }

  .checkout-summary__items {
    padding: 0 1rem !important;
  }

  .checkout-summary__item {
    grid-template-columns: 50px minmax(0, 1fr) auto !important;
    gap: 0.65rem;
    padding: 0.65rem 0;
  }

  .checkout-summary__item-image {
    width: 50px !important;
    height: 50px !important;
    border-radius: var(--radius-sm);
  }

  .checkout-summary__item-info {
    min-width: 0 !important;
  }

  .checkout-summary__item-name {
    font-size: 0.82rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .checkout-summary__item-meta {
    font-size: 0.72rem;
  }

  .checkout-summary__item-total {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .checkout-summary__totals {
    padding: 0.85rem 1rem !important;
    gap: 0.4rem;
  }

  .checkout-summary__total-line {
    font-size: 0.82rem;
  }

  .checkout-summary__total-line--grand {
    font-size: 1.15rem;
    padding-top: 0.65rem;
    margin-top: 0.35rem;
  }

  .checkout-summary__payment,
  .checkout-payment {
    padding: 0.85rem 1rem !important;
  }

  .checkout-summary__payment-header {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .checkout-summary__payment-title {
    font-size: 0.88rem;
  }

  .checkout-summary__payment-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  .payment-method-box {
    padding: 0.85rem !important;
    border-radius: var(--radius-md);
  }

  .payment-method-box__header {
    gap: 0.6rem;
    align-items: flex-start;
  }

  .payment-method-box__radio-wrap {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  .payment-method-box__radio-dot {
    width: 8px;
    height: 8px;
  }

  .payment-method-box__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }

  .payment-method-box__icon svg {
    width: 18px;
    height: 18px;
  }

  .payment-method-box__title-group {
    min-width: 0 !important;
    flex: 1;
  }

  .payment-method-box__title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .payment-method-box__title {
    font-size: 0.85rem;
    line-height: 1.25;
  }

  .payment-method-box__badge {
    font-size: 0.62rem;
    padding: 1px 5px;
  }

  .payment-method-box__desc {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .payment-method-box__features {
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  .payment-feature-tag {
    font-size: 0.7rem;
    padding: 3px 6px;
    gap: 3px;
  }

  .payment-feature-tag svg {
    width: 12px;
    height: 12px;
  }

  .payment-method-box__note {
    font-size: 0.7rem;
    padding: 6px 8px;
    gap: 5px;
    line-height: 1.35;
  }

  .payment-method-box__note svg {
    width: 13px;
    height: 13px;
  }

  .checkout-confirmation {
    padding: 1.5rem 0.5rem;
  }

  .checkout-confirmation__card {
    padding: 1.25rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .checkout-confirmation__title {
    font-size: 1.35rem;
  }

  .checkout-confirmation__subtitle {
    font-size: 0.85rem;
  }

  .checkout-confirmation__actions {
    flex-direction: column;
    width: 100%;
  }

  .checkout-confirmation__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .checkout-confirmation__order-id {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
  }

  .checkout-confirmation__order-id-value {
    font-size: 0.82rem;
    word-break: break-all;
  }

  .checkout-empty__icon {
    width: 80px;
    height: 80px;
  }

  .checkout-empty__icon svg {
    width: 36px;
    height: 36px;
  }

  .checkout-empty__title {
    font-size: 1.2rem;
  }

  .checkout-empty__message {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .checkout-page {
    padding-top: calc(var(--header-height) + 0.85rem);
  }

  .checkout-page .container {
    padding-inline: 0.65rem !important;
  }

  .checkout-page__title {
    font-size: 1.4rem;
  }

  .checkout-steps {
    gap: 4px;
    margin-bottom: var(--space-md);
  }

  .checkout-steps__number {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .checkout-steps__divider {
    width: 22px;
    min-width: 12px;
  }

  .checkout-form-card {
    padding: 1rem 0.8rem !important;
    border-radius: 12px;
  }

  .checkout-form-card__title {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .checkout-form__submit {
    font-size: 0.9rem !important;
    padding: 0.85rem 0.75rem !important;
  }

  .checkout-summary__title {
    padding: 0.85rem 0.8rem 0.5rem !important;
    font-size: 1.05rem;
  }

  .checkout-summary__items {
    padding: 0 0.8rem !important;
  }

  .checkout-summary__totals {
    padding: 0.75rem 0.8rem !important;
  }

  .checkout-summary__payment,
  .checkout-payment {
    padding: 0.75rem 0.8rem !important;
  }

  .payment-method-box {
    padding: 0.75rem 0.65rem !important;
  }

  .payment-feature-tag {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
}

@media (max-width: 360px) {
  .checkout-page .container {
    padding-inline: 0.45rem !important;
  }

  .checkout-page__title {
    font-size: 1.25rem;
  }

  .checkout-steps__number {
    width: 26px;
    height: 26px;
    font-size: 0.68rem;
  }

  .checkout-steps__divider {
    width: 14px;
    min-width: 8px;
  }

  .checkout-form-card {
    padding: 0.85rem 0.65rem !important;
    border-radius: 10px;
  }

  .checkout-form-card__title {
    font-size: 0.98rem;
  }

  .checkout-form__input,
  .checkout-form__textarea {
    padding: 0.65rem 0.7rem;
    font-size: 15px;
  }

  .checkout-form__submit {
    font-size: 0.85rem !important;
    padding: 0.75rem 0.5rem !important;
  }

  .checkout-summary__title {
    padding: 0.75rem 0.65rem 0.4rem !important;
    font-size: 0.98rem;
  }

  .checkout-summary__items {
    padding: 0 0.65rem !important;
  }

  .checkout-summary__item {
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    gap: 0.45rem;
  }

  .checkout-summary__item-image {
    width: 42px !important;
    height: 42px !important;
  }

  .checkout-summary__item-name {
    font-size: 0.76rem;
  }

  .checkout-summary__item-total {
    font-size: 0.82rem;
  }

  .checkout-summary__totals {
    padding: 0.65rem !important;
  }

  .checkout-summary__payment,
  .checkout-payment {
    padding: 0.65rem !important;
  }

  .payment-method-box {
    padding: 0.65rem 0.5rem !important;
  }

  .payment-feature-tag {
    font-size: 0.65rem;
    padding: 2px 5px;
  }

  .payment-method-box__note {
    font-size: 0.66rem;
    padding: 5px 6px;
  }
}

/* ── Reduced Motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}