/* Responsive styles for the retro theme */

/* Tablets (medium screens) */
@media (max-width: 991px) {
  /* Header */
  .header-main {
    padding: 10px 0;
  }
  
  .header-logo img {
    max-height: 40px;
  }
  
  /* Hide desktop menu, show mobile menu */
  .header-menu.d-none.d-lg-block {
    display: none !important;
  }
  
  .mobile-menu.d-block.d-lg-none {
    display: block !important;
  }
  
  /* Mobile header tools */
  .header-tools {
    display: flex;
    align-items: center;
  }
  
  .header-tools-item {
    margin-left: 10px;
  }
  
  .tool-icon {
    font-size: 1.1rem;
    color: var(--text-light);
  }
  
  /* Mobile categories button */
  .retro-mobile-category-btn {
    display: block;
    width: 100%;
    padding: 12px 15px;
    background-color: var(--secondary-bg);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    border-radius: var(--button-border-radius);
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
  }
  
  .retro-mobile-category-btn:after {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Banner adjustments */
  .home-banner {
    padding: 30px 15px;
  }
  
  .banner-title {
    font-size: 1.5rem;
  }
  
  .banner-subtitle {
    font-size: 1.2rem;
  }
  
  .shop-now-btn {
    font-size: 0.8rem;
    padding: 10px 20px;
  }
  
  /* Products grid - 3 columns on tablet */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Category cards - 3 columns */
  .category-card {
    padding: 10px;
  }
  
  .category-image {
    height: 70px;
  }
  
  .category-title {
    font-size: 0.7rem;
    min-height: 40px;
  }
  
  /* Newsletter section */
  .newsletter-section {
    padding: 30px;
  }
  
  .newsletter-section h2 {
    font-size: 1.2rem;
  }
  
  .newsletter-section p {
    font-size: 1rem;
  }
}

/* Mobile (small screens) */
@media (max-width: 767px) {
  /* Section spacing */
  .section-spacing {
    margin-bottom: 30px;
  }
  
  /* Header */
  .header-logo img {
    max-height: 35px;
  }
  
  /* Banner */
  .home-banner {
    padding: 20px 10px;
  }
  
  .banner-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .banner-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .shop-now-btn {
    font-size: 0.7rem;
    padding: 8px 16px;
  }
  
  /* Logo carousel */
  .logo-slide {
    width: 60px;
    height: 40px;
    margin: 0 10px;
  }
  
  .logo-slide img {
    max-height: 30px;
  }
  
  /* Play retro section */
  .play-retro-section {
    padding: 15px;
  }
  
  .play-retro-section h3 {
    font-size: 0.8rem;
  }
  
  /* Products grid - 2 columns on mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  /* Product cards */
  .product-card {
    margin-bottom: 15px;
  }
  
  .product-thumb {
    height: 120px;
  }
  
  .product-card-body {
    padding: 8px;
  }
  
  .product-name {
    font-size: 0.9rem;
    min-height: 30px;
  }
  
  .price {
    font-size: 0.9rem;
  }
  
  .add-to-cart {
    font-size: 0.5rem;
    padding: 6px 8px;
  }
  
  /* Blog cards */
  .blog-thumb {
    height: 100px;
  }
  
  .blog-category {
    font-size: 0.6rem;
    padding: 2px 6px;
  }
  
  .blog-title {
    font-size: 0.9rem;
    min-height: 30px;
  }
  
  .blog-excerpt {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }
  
  /* Newsletter section */
  .newsletter-section {
    padding: 20px;
    margin: 30px 0;
  }
  
  .newsletter-section h2 {
    font-size: 1rem;
  }
  
  .newsletter-section p {
    font-size: 0.9rem;
  }
  
  .newsletter-form input {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  
  .newsletter-form button {
    padding: 8px 12px;
    font-size: 0.6rem;
  }
  
  /* Footer */
  .site-footer {
    padding: 40px 0 20px;
    margin-top: 40px;
  }
  
  .footer-heading {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }
  
  .footer-links a {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    margin-top: 30px;
    font-size: 0.8rem;
  }
}

/* Very small screens */
@media (max-width: 479px) {
  /* Header */
  .header-logo img {
    max-height: 30px;
  }
  
  /* Banner */
  .banner-title {
    font-size: 1rem;
  }
  
  .banner-subtitle {
    font-size: 0.9rem;
  }
  
  .shop-now-btn {
    font-size: 0.6rem;
    padding: 6px 12px;
  }
  
  /* Products grid - limit height on small screens */
  .product-thumb {
    height: 100px;
  }
  
  .product-name {
    font-size: 0.8rem;
  }
  
  .price {
    font-size: 0.8rem;
  }
  
  .add-to-cart {
    font-size: 0.45rem;
    padding: 5px 6px;
  }
  
  /* Category cards */
  .category-image {
    height: 60px;
  }
  
  .category-title {
    font-size: 0.6rem;
  }
  
  .category-explore-btn {
    font-size: 0.5rem;
    padding: 4px 8px;
  }
  
  /* Blog cards */
  .blog-thumb {
    height: 80px;
  }
  
  .blog-title {
    font-size: 0.8rem;
  }
  
  /* Newsletter section */
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--button-border-radius);
    margin-bottom: 10px;
  }
  
  .newsletter-form button {
    border-radius: var(--button-border-radius);
    width: 100%;
  }
}