/* ============================================
   GOALZONE - Responsive Styles
   Mobile & Tablet Adaptations
   ============================================ */

/* ============================================
   Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .nav-menu {
    gap: var(--space-lg);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-title {
    font-size: var(--font-size-5xl);
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-360-viewer {
    width: 420px;
    height: 420px;
  }

  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

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

  .scroll-animation-title {
    font-size: var(--font-size-4xl);
  }

  .customize-banner-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .customize-jersey {
    display: none;
  }

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

  .small-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .trust-icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
  }
}

/* ============================================
   Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .top-bar-text {
    font-size: 10px;
  }

  .top-bar-actions {
    gap: var(--space-md);
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: var(--space-3xl) 0;
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-xl);
  }

  .hero-desc {
    font-size: var(--font-size-base);
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-360-viewer {
    width: 340px;
    height: 340px;
  }

  .trust-bar-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .trust-item {
    justify-content: center;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    aspect-ratio: 16 / 9;
  }

  .scroll-animation-title {
    font-size: var(--font-size-3xl);
  }

  .scroll-animation-subtitle {
    font-size: var(--font-size-base);
  }

  .scroll-animation-text {
    bottom: var(--space-2xl);
  }

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

  .customize-subtitle {
    font-size: var(--font-size-base);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .small-categories-grid {
    grid-template-columns: 1fr;
  }

  .small-cat-card {
    aspect-ratio: auto;
    min-height: 120px;
  }

  .promo-card-content {
    padding: var(--space-xl);
    min-height: auto;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .trust-icons-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .trust-icon-item {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cart-sidebar {
    width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

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

/* ============================================
   Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

  .top-bar {
    height: auto;
    padding: var(--space-sm) 0;
  }

  .top-bar-inner {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }

  .navbar {
    height: auto;
    padding: var(--space-sm) 0;
  }

  .navbar-inner {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .logo-main {
    font-size: var(--font-size-xl);
  }

  .nav-actions {
    gap: var(--space-xs);
  }

  .nav-icon-btn {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: var(--space-2xl) 0;
  }

  .hero-badge {
    margin-bottom: var(--space-md);
  }

  .hero-badge-icon {
    width: 36px;
    height: 36px;
  }

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

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .hero-desc {
    font-size: var(--font-size-sm);
  }

  .hero-360-viewer {
    width: 280px;
    height: 280px;
  }

  .trust-bar {
    padding: var(--space-lg) 0;
  }

  .trust-icon {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-base);
  }

  .trust-text h4 {
    font-size: var(--font-size-xs);
  }

  .trust-text p {
    font-size: 10px;
  }

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

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

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .product-img-wrap {
    padding: var(--space-md);
  }

  .product-info {
    padding: var(--space-md);
  }

  .product-title {
    font-size: 11px;
  }

  .product-price {
    font-size: var(--font-size-base);
  }

  .category-card-title {
    font-size: var(--font-size-lg);
  }

  .category-card-desc {
    font-size: var(--font-size-xs);
  }

  .promo-card-title {
    font-size: var(--font-size-lg);
  }

  .promo-card-desc {
    font-size: var(--font-size-xs);
  }

  .scroll-animation-title {
    font-size: var(--font-size-2xl);
  }

  .scroll-animation-subtitle {
    font-size: var(--font-size-sm);
  }

  .scroll-animation-text {
    bottom: var(--space-xl);
    padding: 0 var(--container-padding);
  }

  .customize-title {
    font-size: var(--font-size-2xl);
  }

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

  .footer-bottom {
    padding-top: var(--space-lg);
  }

  .search-box {
    padding-top: 10vh;
  }

  .search-input {
    font-size: var(--font-size-lg);
    padding: var(--space-md) var(--space-lg);
    padding-left: calc(var(--space-lg) + 24px);
  }

  .mobile-menu {
    padding: var(--space-xl);
    padding-top: calc(var(--header-total-height) + var(--space-lg));
  }

  .mobile-menu-link {
    font-size: var(--font-size-xl);
    padding: var(--space-sm) 0;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: var(--space-md);
    right: var(--space-md);
  }
}

/* ============================================
   Large Desktop (min-width: 1440px)
   ============================================ */
@media (min-width: 1440px) {
  :root {
    --container-max: 1400px;
  }

  .hero-title {
    font-size: 5rem;
  }

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

/* ============================================
   Touch Device Optimizations
   ============================================ */
@media (hover: none) {
  .card:hover,
  .product-card:hover,
  .category-card:hover {
    transform: none;
  }

  .hero-360-viewer {
    cursor: grab;
  }

  .btn-primary:hover {
    transform: none;
  }
}

/* ============================================
   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;
  }
}


/* ============================================
   ============================================
   NEW PAGES RESPONSIVE STYLES
   Shop / Product Detail / Cart
   ============================================
   ============================================ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .shop-main .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .product-gallery {
    position: relative;
    top: auto;
  }

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

  .cart-summary {
    position: relative;
    top: auto;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .shop-sidebar {
    width: 280px;
  }

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

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

  .page-header,
  .page-header-sm {
    padding: var(--space-2xl) 0;
  }

  .product-detail-name {
    font-size: var(--font-size-2xl);
  }

  .current-price {
    font-size: var(--font-size-3xl);
  }

  .product-tabs {
    gap: var(--space-xs);
  }

  .tab-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-xs);
  }

  .reviews-summary {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .printing-input-row {
    grid-template-columns: 1fr;
  }

  .printing-toggle {
    flex-direction: column;
  }

  .cart-table-header {
    display: none;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-lg);
    position: relative;
  }

  .cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border);
  }

  .cart-item-product {
    gap: var(--space-lg);
  }

  .cart-item-img {
    width: 100px;
    height: 100px;
  }

  .cart-item-price {
    display: none;
  }

  .cart-item-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .cart-item-qty::before {
    content: 'Qty:';
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
  }

  .cart-item-total {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: var(--font-size-lg);
  }

  .cart-item-action {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
  }

  .cart-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-actions-row .btn {
    justify-content: center;
  }

  .coupon-form {
    flex-direction: column;
  }

  .summary-total {
    font-size: var(--font-size-lg);
  }

  .summary-total span:last-child {
    font-size: var(--font-size-xl);
  }

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

  .wishlist-btn {
    width: 100%;
    height: 48px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .specs-table th,
  .specs-table td {
    padding: var(--space-sm);
    font-size: var(--font-size-xs);
  }

  .specs-table th {
    width: 45%;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .page-title {
    font-size: var(--font-size-2xl);
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-controls {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select {
    min-width: auto;
  }

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

  .product-detail-name {
    font-size: var(--font-size-xl);
  }

  .current-price {
    font-size: var(--font-size-2xl);
  }

  .tab-btn {
    padding: var(--space-xs) var(--space-sm);
    font-size: 10px;
  }

  .size-option {
    min-width: 44px;
    padding: var(--space-xs) var(--space-sm);
  }

  .cart-item-img {
    width: 70px;
    height: 70px;
  }

  .cart-item-name {
    font-size: var(--font-size-xs);
  }

  .cart-summary {
    padding: var(--space-xl);
  }

  .gallery-main {
    padding: var(--space-lg);
  }

  .gallery-thumb {
    padding: var(--space-xs);
  }

  .rating-bar {
    grid-template-columns: 40px 1fr 30px;
  }
}

