/* ==========================================
   MOBILE RESPONSIVE OPTIMIZATIONS
   Complete responsive styles for all pages
   ========================================== */

/* ==========================================
   BASE MOBILE IMPROVEMENTS
   ========================================== */

@media (max-width: 768px) {
  /* Reduce padding and margins globally */
  body {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Improve tap targets */
  a, button, input, select, textarea {
    min-height: 44px;
  }

  /* Better text readability */
  h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.3;
  }

  h3 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    line-height: 1.3;
  }

  /* Container improvements */
  .container,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================
   HERO SECTION - MOBILE
   ========================================== */

@media (max-width: 768px) {
  /* Generic hero (fallback) */
  .hero {
    padding: 2rem 1rem;
    min-height: auto;
  }

  .hero-content {
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero cards/features */
  .hero-features,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==========================================
   LANDING PAGE - MOBILE
   ========================================== */

@media (max-width: 768px) {
  /* Landing container */
  .landing-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Admin role callout */
  .admin-role-callout {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
    margin: 1rem;
    border-radius: 12px;
  }

  .admin-role-callout__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .admin-role-callout__actions {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .admin-role-callout__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero premium section */
  .hero-premium {
    padding: 4rem 0 3rem;
    min-height: auto;
  }

  .hero-premium__bg {
    opacity: 0.7;
  }

  .gradient-orb {
    opacity: 0.5;
  }

  .gradient-orb--1 {
    width: 350px !important;
    height: 350px !important;
  }

  .gradient-orb--2 {
    width: 300px !important;
    height: 300px !important;
  }

  .gradient-orb--3 {
    width: 250px !important;
    height: 250px !important;
  }

  /* Floating particles - reduce on mobile */
  .floating-particles {
    opacity: 0.4;
  }

  .particle-dot {
    display: none;
  }

  .particle-dot:nth-child(-n+20) {
    display: block;
  }

  /* Hero header */
  .hero-premium__header {
    margin-bottom: 2.5rem;
    text-align: center;
  }

  .hero-badge {
    margin: 0 auto 1.5rem;
    justify-content: center;
  }

  .hero-badge__text {
    font-size: 0.85rem;
  }

  .hero-premium__title {
    font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
    line-height: 1.1;
  }

  .title-line {
    display: block;
    margin-bottom: 0.5rem;
  }

  .title-word {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero-premium__subtitle {
    font-size: 1.125rem;
    margin-top: 1.5rem;
  }

  /* Products grid 3D */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
    padding: 0;
  }

  .product-card-3d {
    min-height: auto;
  }

  .product-card-3d__inner {
    padding: 1.25rem;
  }

  .product-card-3d__image-wrapper {
    height: 180px !important;
    margin-bottom: 1rem;
  }

  .product-card-3d__name {
    font-size: 0.9rem !important;
    line-height: 1.3;
  }

  .product-card-3d__price {
    font-size: 1.125rem !important;
  }

  /* Hero CTA */
  .hero-premium__cta {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .btn-premium {
    padding: 14px 32px !important;
    font-size: 0.95rem !important;
  }

  .btn-premium__text {
    font-size: 0.95rem;
  }

  .btn-premium__arrow {
    width: 18px;
    height: 18px;
  }

  .hero-premium__stats {
    flex-direction: row;
    gap: 2.5rem;
    justify-content: center;
    width: 100%;
  }

  .stat-item {
    flex: 1;
    max-width: 150px;
  }

  .stat-item__value {
    font-size: 2.25rem !important;
  }

  .stat-item__label {
    font-size: 0.95rem;
  }

  /* Scroll indicator */
  .scroll-indicator {
    bottom: 2rem;
  }

  .scroll-indicator__text {
    font-size: 0.8rem;
  }

  /* Benefits section */
  .landing-benefits {
    padding: 3rem 0;
  }

  .section-heading {
    text-align: center;
    margin-bottom: 2rem;
  }

  .section-heading--center {
    text-align: center;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
    margin-bottom: 0.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .benefit-card-premium {
    padding: 2rem !important;
  }

  .benefit-card-premium--featured {
    transform: scale(1) !important;
  }

  .benefit-card-premium:hover {
    transform: translateY(-4px) !important;
  }

  .benefit-card-premium--featured:hover {
    transform: translateY(-4px) !important;
  }

  .benefit-card-premium__icon {
    width: 56px !important;
    height: 56px !important;
  }

  .benefit-card-premium__icon svg {
    width: 28px !important;
    height: 28px !important;
  }

  .benefit-card-premium__badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
  }

  .benefit-card-premium__title {
    font-size: 1.35rem !important;
  }

  .benefit-card-premium__description {
    font-size: 0.95rem;
  }

  .benefit-card-premium__highlight {
    padding: 0.875rem;
    font-size: 0.9rem;
  }

  .benefit-card-premium__icon-check {
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
  }

  /* Benefits CTA */
  .benefits-cta {
    text-align: center;
    margin-top: 2.5rem;
  }

  .benefits-cta__text {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
  }

  .btn-benefits-cta {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .btn-benefits-cta svg {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================
   PRODUCT GRID/CATALOG - MOBILE
   ========================================== */

@media (max-width: 768px) {
  /* Catalog layout */
  .catalog-layout,
  .productos-layout {
    grid-template-columns: 1fr !important;
    gap: 0;
    display: flex;
    flex-direction: column;
  }

  /* Catalog header */
  .catalog-header,
  .productos-header {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }

  .catalog-header__title,
  .productos-header h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
    margin-bottom: 0.75rem;
  }

  .catalog-header__subtitle,
  .productos-header p {
    font-size: 1rem;
  }

  /* Mobile Filter Button */
  .mobile-filter-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accBlue1, #385cff), var(--accBlue2, #62d7ff));
    color: white;
    border: none;
    box-shadow: 0 8px 24px rgba(56, 92, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .mobile-filter-toggle:hover {
    transform: scale(1.05);
  }

  .mobile-filter-toggle svg {
    width: 24px;
    height: 24px;
  }

  /* Filters panel */
  .catalog-filters {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .catalog-filters[data-open="true"] {
    opacity: 1;
    pointer-events: all;
  }

  .filters-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .catalog-filters[data-open="true"] .filters-panel {
    transform: translateY(0);
  }

  .filters-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    flex-shrink: 0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .filters-panel__header .title,
  .filters-panel__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
  }

  .filters-panel__close {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accBlue1, #385cff), var(--accBlue2, #62d7ff));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .filters-panel__close:hover {
    transform: scale(1.05);
  }

  .filters-panel__toggle {
    display: none;
  }

  /* Filter body - scrollable container */
  .filters-panel__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem;
    overscroll-behavior: contain;
  }

  /* Filter groups */
  .filter-group,
  .filter-section {
    margin-bottom: 1.5rem;
  }

  .filter-group label,
  .filter-section label,
  .filter-group__title,
  .filter-section__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
  }

  .filter-option,
  .filter-chip {
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .filter-option.is-active,
  .filter-chip.is-active,
  .filter-option:has(input:checked),
  .filter-chip:has(input:checked) {
    border-color: var(--accBlue2, #62d7ff);
    background: rgba(98, 215, 255, 0.08);
  }

  .filter-option input[type="radio"],
  .filter-option input[type="checkbox"],
  .filter-chip input[type="radio"],
  .filter-chip input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accBlue2, #62d7ff);
  }

  /* Products grid */
  .products-grid,
  .productos-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    padding: 1rem;
  }

  .product-card {
    padding: 0.75rem;
    border-radius: 12px;
  }

  .product-card__image,
  .product-card__img {
    aspect-ratio: 1;
    border-radius: 12px;
    margin-bottom: 0.75rem;
  }

  .product-card__title,
  .product-card__name {
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0.5rem 0 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.5rem 0;
  }

  .product-card__old-price,
  .product-card__compare-price {
    font-size: 0.85rem;
  }

  .product-card__footer,
  .product-card__actions {
    margin-top: 0.75rem;
  }

  .product-card .btn,
  .product-card__btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  /* Sorting and view controls */
  .catalog-controls,
  .productos-controls {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .sort-select,
  .view-toggle {
    font-size: 0.9rem;
  }

  /* Pagination */
  .pagination {
    padding: 1.5rem 1rem;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .pagination__item,
  .pagination a,
  .pagination button {
    min-width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  /* Catalog header */
  .catalog-header__title,
  .productos-header h1 {
    font-size: 1.75rem !important;
  }

  .catalog-header__subtitle,
  .productos-header p {
    font-size: 0.95rem;
  }

  /* Products grid - horizontal cards on small screens */
  .products-grid,
  .productos-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    padding: 1rem 0.75rem;
  }

  .product-card {
    display: grid !important;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 0.875rem;
  }

  .product-card__image,
  .product-card__img {
    width: 120px;
    height: 120px;
    margin-bottom: 0;
  }

  .product-card__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .product-card__title,
  .product-card__name {
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
  }

  .product-card__price {
    font-size: 1.125rem;
    margin: 0.25rem 0;
  }

  .product-card__footer,
  .product-card__actions {
    margin-top: auto;
  }

  .product-card .btn,
  .product-card__btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  /* Mobile filter button */
  .mobile-filter-toggle {
    width: 52px;
    height: 52px;
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .mobile-filter-toggle svg {
    width: 22px;
    height: 22px;
  }

  /* Filters panel */
  .filters-panel {
    max-height: 90vh;
    padding: 1.25rem;
  }

  .filters-panel__header .title,
  .filters-panel__title {
    font-size: 1.35rem;
  }

  .filters-panel__close {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }

  .filter-group,
  .filter-section {
    margin-bottom: 1.25rem;
  }

  .filter-option,
  .filter-chip {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }

  /* Pagination */
  .pagination__item,
  .pagination a,
  .pagination button {
    min-width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  /* Cart improvements for small screens */
  .cart__header {
    padding: 0 0 1rem 0;
    margin-bottom: 1.25rem;
  }

  .cart__title {
    font-size: 1.5rem !important;
  }

  .cart__subtitle {
    font-size: 0.875rem;
  }

  .cart-progress {
    padding: 0.875rem;
  }

  .cart-progress__bullet {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .cart-progress__text strong {
    font-size: 0.8rem;
  }

  .cart-progress__text small {
    font-size: 0.7rem;
  }

  /* Cart item styles removed - now using mobile-first approach in styles.css */

  .cart-summary,
  .summary-card {
    padding: 1.25rem;
  }

  .cart-summary__title,
  .summary-title {
    font-size: 1.15rem !important;
  }

  .summary-row {
    font-size: 0.95rem;
    padding: 0.625rem 0;
  }

  .summary-row.total,
  .cart-summary__row--total {
    font-size: 1.15rem;
  }

  .cart-summary__cta,
  .btn-checkout {
    padding: 1rem;
    font-size: 1rem !important;
  }

  .cart-benefits,
  .benefits-card {
    padding: 1.125rem;
  }

  .cart-benefits__title,
  .benefits-title {
    font-size: 1.05rem !important;
  }

  .benefit-content strong {
    font-size: 0.9rem;
  }

  .benefit-content p {
    font-size: 0.825rem;
  }

  .cart-empty {
    padding: 2.5rem 1.25rem;
  }

  .cart-empty__icon {
    font-size: 3.5rem;
  }

  .cart-empty h2 {
    font-size: 1.35rem;
  }

  .cart-empty p {
    font-size: 0.95rem;
  }

  /* Landing page - 480px */
  .hero-premium {
    padding: 3rem 0 2.5rem;
  }

  .hero-premium__title {
    font-size: clamp(2rem, 9vw, 3rem) !important;
  }

  .title-word {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-premium__subtitle {
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .product-card-3d__image-wrapper {
    height: 220px !important;
  }

  .product-card-3d__name {
    font-size: 1rem !important;
  }

  .product-card-3d__price {
    font-size: 1.25rem !important;
  }

  .hero-premium__stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-item {
    max-width: 100%;
  }

  .stat-item__value {
    font-size: 2.5rem !important;
  }

  .scroll-indicator {
    display: none;
  }

  .benefit-card-premium {
    padding: 1.75rem !important;
  }

  .benefit-card-premium__title {
    font-size: 1.25rem !important;
  }

  .benefit-card-premium__description {
    font-size: 0.9rem;
  }

  /* Product detail page - image centering for small screens */
  .main-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
  }

  .main-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .product-gallery__canvas {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .product-gallery__image,
  .main-image {
    margin: 0 auto;
    display: block;
  }
}

/* ==========================================
   PRODUCT DETAIL PAGE - MOBILE
   ========================================== */

@media (max-width: 768px) {
  .product-layout,
  .product-page-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-gallery-column {
    width: 100%;
    max-width: 100%;
  }

  .product-gallery {
    max-width: 100%;
    width: 100%;
  }

  .product-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .main-image-wrapper,
  .main-image-container {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    max-height: 80vw;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .main-image-container img,
  .product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    margin: 0 auto;
    display: block;
  }

  .product-gallery__canvas {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .product-gallery__main {
    height: auto;
    aspect-ratio: 1;
    max-height: 80vw;
    border-radius: 16px;
  }

  .product-gallery__thumbnails,
  .thumbnails-vertical {
    display: flex;
    flex-direction: row !important;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .product-gallery__thumbnails::-webkit-scrollbar {
    height: 4px;
  }

  .product-gallery__thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }

  .product-gallery__thumbnails::-webkit-scrollbar-thumb {
    background: rgba(98, 215, 255, 0.5);
    border-radius: 4px;
  }

  .product-gallery__thumb {
    width: 70px;
    height: 70px;
    min-width: 70px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
  }

  .product-gallery__thumb.is-active {
    border-color: var(--accBlue2, #62d7ff);
    box-shadow: 0 0 0 2px rgba(98, 215, 255, 0.2);
  }

  .product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-info {
    padding: 1.25rem;
  }

  .product-info__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .product-info__price {
    font-size: 1.75rem;
  }

  .product-variants {
    gap: 0.75rem;
  }

  .variant-option {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .product-actions {
    flex-direction: column;
    gap: 12px;
  }

  .product-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .quantity-selector {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   CART PAGE - MOBILE
   ========================================== */

@media (max-width: 768px) {
  /* Cart container and layout */
  .cart-page,
  .cart-container {
    padding: 1.5rem 1rem;
  }

  .cart-layout,
  .cart-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
  }

  /* Cart header */
  .cart__header {
    padding: 0 0 1.25rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
  }

  .cart__intro {
    text-align: left;
  }

  .cart__eyebrow {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  .cart__title {
    font-size: clamp(1.75rem, 5vw, 2rem) !important;
    margin-bottom: 0.5rem;
  }

  .cart__subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #6b7280;
  }

  .cart__link-back {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }

  /* Cart progress bar */
  .cart-progress {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
  }

  .cart-progress__list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .cart-progress__list::-webkit-scrollbar {
    height: 3px;
  }

  .cart-progress__list::-webkit-scrollbar-thumb {
    background: rgba(196, 124, 53, 0.3);
    border-radius: 3px;
  }

  .cart-progress__item {
    flex-shrink: 0;
    min-width: max-content;
  }

  .cart-progress__bullet {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .cart-progress__text strong {
    font-size: 0.875rem;
  }

  .cart-progress__text small {
    font-size: 0.75rem;
  }

  /* Cart items list */
  .cart__main,
  .cart-items,
  .cart-items-list,
  .cart__list {
    gap: 1rem;
    width: 100%;
  }

  /* Cart item styles removed - now using mobile-first approach in styles.css */

  /* Cart sidebar */
  .cart__sidebar,
  .cart-sidebar {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .cart-summary,
  .summary-card {
    position: static !important;
    width: 100%;
    padding: 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(196, 124, 53, 0.08), rgba(196, 124, 53, 0.05));
    border: 1px solid rgba(196, 124, 53, 0.2);
  }

  .cart-summary__title,
  .summary-title {
    font-size: 1.25rem !important;
    margin-bottom: 1.25rem;
  }

  .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .summary-row.total,
  .cart-summary__row--total {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 2px solid rgba(196, 124, 53, 0.2);
    padding-top: 1rem;
    margin-top: 0.75rem;
  }

  .cart-summary__note,
  .free-shipping-note {
    font-size: 0.85rem;
    text-align: center;
    margin: 1rem 0;
    color: #6b7280;
  }

  .cart-summary__cta,
  .btn-checkout {
    width: 100%;
    padding: 1.125rem;
    font-size: 1.1rem !important;
    border-radius: 14px;
    margin-top: 1rem;
    font-weight: 700;
  }

  /* Benefits card */
  .cart-benefits,
  .benefits-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .cart-benefits__title,
  .benefits-title {
    font-size: 1.125rem !important;
    margin-bottom: 1rem;
  }

  .cart-benefits__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .benefit-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  .cart-benefits__icon,
  .benefit-icon {
    font-size: 1.75rem;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .benefit-content strong {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.25rem;
  }

  .benefit-content p {
    font-size: 0.875rem;
    color: #6b7280;
  }

  /* Empty cart state */
  .cart-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 20px;
  }

  .cart-empty__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
  }

  .cart-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .cart-empty p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #6b7280;
  }
}

/* ==========================================
   CHECKOUT PAGE - MOBILE
   ========================================== */

@media (max-width: 768px) {
  .checkout-flow,
  .checkout-page {
    padding: 1.5rem 1rem;
  }

  .checkout-layout,
  .checkout-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
  }

  .checkout-card,
  .checkout-section {
    padding: 1.5rem;
    border-radius: 20px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .checkout-card__header,
  .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
  }

  .checkout-card__index,
  .step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accBlue1), var(--accBlue2));
    color: white;
  }

  .checkout-card__header h2,
  .section-header h2 {
    font-size: 1.25rem !important;
    margin: 0;
    font-weight: 700;
  }

  .checkout-card__header p,
  .section-header p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0.25rem 0 0;
  }

  .input-grid,
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .form-group,
  .input-group {
    width: 100%;
  }

  .form-group label,
  .input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .input-group input,
  .input-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
  }

  .form-group input:focus,
  .input-group input:focus {
    border-color: var(--accBlue2);
    box-shadow: 0 0 0 3px rgba(98, 215, 255, 0.2);
  }

  .shipping-options,
  .delivery-options {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .shipping-option,
  .delivery-option {
    padding: 1.25rem;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .shipping-option.is-selected,
  .delivery-option.is-selected {
    border-color: var(--accBlue2);
    background: rgba(98, 215, 255, 0.08);
  }

  .payment-methods {
    gap: 12px;
    display: flex;
    flex-direction: column;
  }

  .payment-card,
  .payment-option {
    padding: 1.25rem;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .payment-card.is-selected,
  .payment-option.is-selected {
    border-color: var(--accBlue2);
    background: rgba(98, 215, 255, 0.08);
  }

  .checkout-summary,
  .order-summary {
    position: static !important;
    order: -1;
    margin-bottom: 1.5rem;
    width: 100%;
    padding: 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(56, 92, 255, 0.08), rgba(98, 215, 255, 0.05));
    border: 1px solid rgba(98, 215, 255, 0.2);
  }

  .checkout-summary .summary-hero,
  .order-summary .summary-hero {
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }

  .summary-hero__image {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
  }

  .summary-totals,
  .order-totals {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
  }

  .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    margin-top: 0.5rem;
  }

  .btn-block,
  .checkout-btn,
  .submit-order-btn {
    width: 100% !important;
    padding: 1.125rem;
    font-size: 1.1rem !important;
    border-radius: 14px;
    margin-top: 1.5rem;
    font-weight: 700;
  }

  .checkout-footer {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
  }
}

/* ==========================================
   ACCOUNT/MI-CUENTA PAGE - MOBILE
   ========================================== */

@media (max-width: 768px) {
  /* Account portal */
  .account-portal,
  .account-portal--dashboard {
    padding: 1.5rem 1rem;
  }

  /* Account banner */
  .account-banner {
    padding: 2rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .account-banner__eyebrow {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .account-banner h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
    margin-bottom: 0.75rem;
  }

  .account-banner__copy {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .account-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .account-banner__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }

  .account-logout {
    width: 100%;
  }

  .account-logout__button {
    width: 100%;
  }

  /* Account quicklinks */
  .account-quicklinks {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0.75rem 0.5rem;
    margin-bottom: 1.5rem;
  }

  .account-quicklinks::-webkit-scrollbar {
    height: 3px;
  }

  .account-quicklinks::-webkit-scrollbar-thumb {
    background: rgba(196, 124, 53, 0.3);
    border-radius: 3px;
  }

  .account-quicklinks a {
    flex-shrink: 0;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 12px;
    white-space: nowrap;
  }

  /* Account dashboard */
  .account-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .account-dashboard__card {
    padding: 1.5rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .account-dashboard__header {
    margin-bottom: 1.25rem;
  }

  .account-dashboard__eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
  }

  .account-dashboard__header h2 {
    font-size: 1.35rem !important;
    margin: 0;
  }

  .account-dashboard__copy {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    color: #6b7280;
  }

  /* Dashboard list */
  .account-dashboard__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .account-dashboard__list div {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
  }

  .account-dashboard__list div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .account-dashboard__list dt {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
  }

  .account-dashboard__list dd {
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    margin: 0;
  }

  /* Stack list variant (for addresses) */
  .account-dashboard__list--stack {
    padding: 0;
    list-style: none;
  }

  .account-dashboard__list--stack li {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1rem;
    background: rgba(196, 124, 53, 0.05);
    border-radius: 12px;
    margin-bottom: 0.75rem;
  }

  .account-dashboard__list--stack li:last-child {
    margin-bottom: 0;
  }

  .account-dashboard__list--stack strong {
    font-size: 1rem;
    color: #111827;
  }

  .account-dashboard__list--stack span {
    font-size: 0.95rem;
    color: #374151;
  }

  .account-dashboard__list--stack small {
    font-size: 0.85rem;
    color: #6b7280;
  }

  .account-dashboard__meta {
    background: transparent !important;
    padding: 0.5rem !important;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
  }

  .account-dashboard__cta {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }

  /* Account orders */
  .account-orders {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .order-card {
    padding: 1.25rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .order-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
  }

  .order-card__number {
    font-size: 0.9rem;
    font-weight: 600;
  }

  .order-card__date {
    font-size: 0.85rem;
    color: #6b7280;
  }

  .order-card__status {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
  }

  .order-card__items {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1rem;
  }

  .order-card__item {
    display: flex;
    gap: 0.875rem;
    align-items: center;
  }

  .order-card__item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .order-card__item-info {
    flex: 1;
    min-width: 0;
  }

  .order-card__item-name {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .order-card__item-meta {
    font-size: 0.85rem;
    color: #6b7280;
  }

  .order-card__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 1.125rem;
    font-weight: 700;
  }

  .order-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .order-card__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Account profile form */
  .account-profile-form {
    padding: 1.5rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .auth-field,
  .form-field {
    margin-bottom: 1.25rem;
  }

  .auth-field label,
  .form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
  }

  .auth-field input,
  .auth-field select,
  .form-field input,
  .form-field select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 16px; /* Prevents iOS zoom */
    border-radius: 12px;
    border: 1px solid #e5e7eb;
  }

  .account-timeline {
    position: relative;
    padding-left: 2rem;
    margin: 1.5rem 0;
  }

  .account-timeline__item {
    position: relative;
    padding-bottom: 1.5rem;
  }

  .account-timeline__item:last-child {
    padding-bottom: 0;
  }

  .account-timeline__dot {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff7a00;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff7a00;
  }

  .account-timeline__line {
    position: absolute;
    left: -1.5rem;
    top: 12px;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
  }

  .account-timeline__item:last-child .account-timeline__line {
    display: none;
  }

  .account-timeline__label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }

  .account-timeline__date {
    font-size: 0.85rem;
    color: #6b7280;
  }
}

/* ==========================================
   FOOTER - MOBILE
   ========================================== */

@media (max-width: 768px) {
  .footer {
    padding: 2rem 1rem;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-column h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .footer-column ul {
    gap: 0.75rem;
  }

  .footer-column a {
    font-size: 0.9rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding-top: 1.5rem;
  }

  .footer-social {
    justify-content: center;
    gap: 1rem;
  }
}

/* ==========================================
   FORMS - MOBILE
   ========================================== */

@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem 1rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* ==========================================
   MODALS - MOBILE
   ========================================== */

@media (max-width: 768px) {
  .modal,
  .ui-modal {
    max-width: calc(100% - 2rem);
    margin: 1rem;
    padding: 1.5rem;
  }

  .modal__header h2,
  .ui-modal__title {
    font-size: 1.25rem;
  }

  .modal__body,
  .ui-modal__message {
    font-size: 0.95rem;
  }

  .modal__actions,
  .ui-modal__actions {
    flex-direction: column;
    gap: 12px;
  }

  .modal__actions button,
  .ui-modal__actions button {
    width: 100%;
  }
}

/* ==========================================
   TABLES - MOBILE
   ========================================== */

@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Card-style tables for mobile */
  .table-responsive {
    border: 0;
  }

  .table-responsive thead {
    display: none;
  }

  .table-responsive tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: white;
  }

  .table-responsive td {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border: 0;
    border-bottom: 1px solid #f3f4f6;
  }

  .table-responsive td:last-child {
    border-bottom: 0;
  }

  .table-responsive td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
  }
}

/* ==========================================
   NAVIGATION IMPROVEMENTS
   ========================================== */

@media (max-width: 768px) {
  .breadcrumbs {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    white-space: nowrap;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .pagination a,
  .pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
  }
}

/* ==========================================
   CARDS & CONTAINERS
   ========================================== */

@media (max-width: 768px) {
  .card {
    border-radius: 16px;
    padding: 1.25rem;
  }

  .card-title {
    font-size: 1.15rem;
  }

  .card-body {
    padding: 1rem;
  }

  /* Promo cards */
  .promo-card {
    padding: 1.5rem 1.25rem;
  }

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

  .promo-card__subtitle {
    font-size: 0.9rem;
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }

  .text-center-mobile {
    text-align: center !important;
  }

  .full-width-mobile {
    width: 100% !important;
  }

  /* Spacing utilities */
  .mt-mobile-0 { margin-top: 0 !important; }
  .mt-mobile-1 { margin-top: 0.5rem !important; }
  .mt-mobile-2 { margin-top: 1rem !important; }
  .mt-mobile-3 { margin-top: 1.5rem !important; }

  .mb-mobile-0 { margin-bottom: 0 !important; }
  .mb-mobile-1 { margin-bottom: 0.5rem !important; }
  .mb-mobile-2 { margin-bottom: 1rem !important; }
  .mb-mobile-3 { margin-bottom: 1.5rem !important; }

  .p-mobile-0 { padding: 0 !important; }
  .p-mobile-1 { padding: 0.5rem !important; }
  .p-mobile-2 { padding: 1rem !important; }
  .p-mobile-3 { padding: 1.5rem !important; }
}

/* ==========================================
   SMALL PHONES (< 480px)
   ========================================== */

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  /* Even more compact spacing */
  .card,
  .product-card,
  .cart-item,
  .checkout-card {
    padding: 1rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* ==========================================
   LANDSCAPE ORIENTATION
   ========================================== */

@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 1.5rem 1rem;
  }

  .modal,
  .ui-modal {
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* ==========================================
   TOUCH OPTIMIZATIONS
   ========================================== */

@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .product-card:hover,
  .btn:hover {
    transform: none;
  }

  /* Improve active states */
  .btn:active {
    transform: scale(0.97);
  }

  /* Better touch feedback */
  a, button {
    -webkit-tap-highlight-color: rgba(11, 132, 132, 0.1);
  }

  /* Prevent text selection on buttons */
  .btn,
  button,
  .product-card {
    -webkit-user-select: none;
    user-select: none;
  }
}

/* ==========================================
   SAFE AREA INSETS (for notched devices)
   ========================================== */

@supports (padding: max(0px)) {
  .site-header {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* ==========================================
   EXTRA SMALL PHONES - iPhone SE, 8, etc (< 375px)
   ========================================== */

@media (max-width: 374px) {
  /* Fix: Menu hamburguesa desplegado en carrito */
  .header-nav {
    right: -100% !important;
  }

  .header-nav.is-open {
    right: 0 !important;
  }

  .mobile-nav-overlay {
    display: none;
  }

  .mobile-nav-overlay.is-visible {
    display: block;
  }

  /* Cart page fixes para pantallas muy chicas */
  .cart__header {
    padding: 1rem 0.75rem;
  }

  .cart__title {
    font-size: 1.5rem !important;
  }

  .cart-progress {
    padding: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart-progress__list {
    display: flex;
    gap: 0.5rem;
    min-width: max-content;
  }

  .cart-progress__item {
    flex-shrink: 0;
    min-width: 100px;
  }

  .cart-progress__text strong {
    font-size: 0.8rem;
  }

  .cart-progress__text small {
    font-size: 0.7rem;
  }

  /* Cart item layout fixes */
  /* Cart item styles removed - now using mobile-first approach in styles.css */

  /* Cart sidebar/summary fixes */
  .cart__sidebar,
  .cart-sidebar {
    padding: 1rem 0.75rem !important;
    margin: 0.75rem 0.5rem !important;
    border-radius: 16px;
  }

  .cart-summary__title {
    font-size: 1.1rem !important;
  }

  .summary-row {
    font-size: 0.9rem !important;
    padding: 0.5rem 0;
  }

  .summary-row.total,
  .cart-summary__row--total {
    font-size: 1.1rem !important;
  }

  .summary-label,
  .summary-value {
    display: inline-block;
  }

  .btn-checkout,
  .cart-summary__cta {
    padding: 0.875rem 1rem !important;
    font-size: 1rem !important;
  }

  /* Checkout page fixes */
  .checkout-flow {
    padding: 1rem 0.5rem !important;
  }

  .checkout-hero {
    padding: 1rem 0.75rem;
  }

  .checkout-title {
    font-size: 1.5rem !important;
  }

  .checkout-layout {
    padding: 0 0.5rem;
  }

  .checkout-card {
    padding: 1.25rem 1rem !important;
    margin-bottom: 1rem;
  }

  .checkout-card__header {
    flex-direction: row !important;
    gap: 10px;
  }

  .checkout-card__index {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 0.875rem;
  }

  .checkout-card__header h2 {
    font-size: 1.1rem !important;
  }

  .checkout-card__header p {
    font-size: 0.8rem !important;
  }

  .input-grid {
    grid-template-columns: 1fr !important;
    gap: 0.875rem !important;
  }

  .input-grid label {
    font-size: 0.875rem;
  }

  .input-grid input,
  .input-grid select {
    padding: 0.75rem 0.875rem !important;
    font-size: 0.95rem !important;
  }

  .shipping-options {
    gap: 0.75rem !important;
  }

  .shipping-option {
    padding: 1rem !important;
  }

  .shipping-option__header strong {
    font-size: 0.9rem;
  }

  .shipping-option__price {
    font-size: 0.95rem;
  }

  .option-meta {
    font-size: 0.75rem;
  }

  .payment-methods {
    gap: 0.75rem !important;
  }

  .payment-card {
    padding: 1rem !important;
  }

  .payment-card__title {
    font-size: 0.9rem;
  }

  .payment-card__desc {
    font-size: 0.8rem;
  }

  /* Checkout summary on mobile */
  .checkout-summary {
    padding: 1.25rem 1rem !important;
    margin: 0 0.5rem 1rem !important;
  }

  .summary-header h2 {
    font-size: 1.1rem !important;
  }

  .summary-product-card {
    padding: 0.75rem !important;
    gap: 10px;
  }

  .summary-product-card__image {
    width: 70px !important;
    height: 70px !important;
  }

  .summary-product-card__title {
    font-size: 0.85rem !important;
  }

  .summary-product-card__price {
    font-size: 0.95rem !important;
  }

  .attr-tag {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  .checkout-total {
    font-size: 1rem;
  }

  .checkout-total strong {
    font-size: 1.25rem !important;
  }

  .btn-checkout-final {
    padding: 1rem !important;
    font-size: 1rem !important;
  }

  .btn-checkout-final__text {
    font-size: 1rem;
  }

  .btn-checkout-final svg {
    width: 18px;
    height: 18px;
  }

  /* Security badge */
  .security-badge {
    font-size: 0.75rem;
    padding: 0.75rem;
  }

  .security-badge svg {
    width: 14px;
    height: 14px;
  }
}

/* ==========================================
   LANDSCAPE FIX para pantallas pequeñas
   ========================================== */

@media (max-width: 812px) and (max-height: 375px) and (orientation: landscape) {
  .checkout-summary,
  .cart-summary {
    position: relative !important;
    top: auto !important;
  }

  .checkout-layout {
    display: flex !important;
    flex-direction: column;
  }

  .modal,
  .payment-processing {
    max-height: 85vh;
    overflow-y: auto;
  }
}

/* ==========================================
   PRODUCT CARD - ULTRA RESPONSIVE (200px+)
   Tarjetas 100% responsive para pantallas muy pequeñas
   ========================================== */

@media (max-width: 479px) {
  /* Asegurar que la tarjeta se adapte a pantallas muy pequeñas */
  .product-card {
    width: 100% !important;
    min-width: 180px !important;
    max-width: 100% !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  /* Link debe ocupar todo el espacio disponible */
  .product-card__link,
  .product-card > a {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  /* IMAGEN: Centrada y con tamaño proporcional */
  .product-card__media {
    width: 100% !important;
    height: auto !important;
    min-height: 150px !important;
    max-height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    margin: 0 auto 8px !important;
    overflow: visible !important;
  }

  .product-card__media img {
    width: auto !important;
    max-width: min(140px, 100%) !important;
    height: auto !important;
    max-height: 180px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* BODY: Contenido con espacio flexible */
  .product-card__body {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-height: auto !important;
  }

  /* TÍTULO: Sin truncado, con salto de línea */
  .product-card__body h3 {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
  }

  /* PRECIO: Debajo del título, visible siempre */
  .product-card__price {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin: 4px 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  /* SHIPPING: Info adicional */
  .product-card__shipping {
    font-size: 0.8rem !important;
    margin: 2px 0 !important;
  }

  /* BOTÓN: 100% ancho en móviles, debajo de todo */
  .product-card .btn,
  .product-card .btn-cart,
  .product-card .btn-add-cart,
  .product-card__btn {
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
    margin-top: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  /* Badge ajustado */
  .product-card__badge {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.6rem !important;
    top: 8px !important;
    left: 8px !important;
  }
}

/* Para pantallas EXTRA pequeñas (200px - 320px) */
@media (max-width: 320px) {
  .product-card {
    min-width: 160px !important;
    padding: 10px !important;
  }

  .product-card__media {
    min-height: 120px !important;
    max-height: 160px !important;
  }

  .product-card__media img {
    max-width: min(110px, 100%) !important;
    max-height: 140px !important;
  }

  .product-card__body h3 {
    font-size: 0.85rem !important;
  }

  .product-card__price {
    font-size: 0.95rem !important;
  }

  .product-card .btn,
  .product-card .btn-cart,
  .product-card .btn-add-cart {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
  }
}

/* Layout original para pantallas medianas y grandes */
@media (min-width: 480px) {
  .product-card {
    max-width: 280px;
  }

  .product-card__media {
    height: clamp(220px, 26vw, 240px);
  }

  .product-card__body h3 {
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
