/*
 * store.css
 * Styles specific to the store.html and product-details.html pages
 * This file should be linked after global.css in your HTML
 */

/* ========================================= */
/* Store Hero Section */
/* ========================================= */
.store-hero-section {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* ========================================= */
/* Product Card Styles */
/* ========================================= */
.product-card {
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

/* ========================================= */
/* Product Details Page */
/* ========================================= */
.product-hero-section {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* Image Gallery */
.thumbnail {
  transition: all 0.2s ease-in-out;
}

.thumbnail:hover {
  border-color: #3b82f6 !important;
}

/* Size and Color Options */
.size-options button,
.color-options button {
  transition: all 0.2s ease-in-out;
}

.size-options button:hover,
.color-options button:hover {
  background-color: #eff6ff;
  border-color: #3b82f6;
}

.size-options button.selected,
.color-options button.selected {
  background-color: #dbeafe;
  border-color: #3b82f6;
}

/* Quantity Selector */
.quantity-selector button {
  transition: background-color 0.2s ease-in-out;
}

.quantity-selector button:hover {
  background-color: #e5e7eb;
}

/* Add to Cart Button */
.add-to-cart {
  transition: background-color 0.2s ease-in-out;
}

.add-to-cart:hover {
  background-color: #2563eb;
}

/* ========================================= */
/* Responsive Adjustments */
/* ========================================= */
@media (max-width: 768px) {
  .store-hero-section h1 {
    font-size: 2.5rem;
  }
  
  .product-hero-section h1 {
    font-size: 2rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}
.hero-cta-button,
.btn-learn-more,
.btn-view-all-services,
.btn-view-all-coaches,
.btn-read-all-reviews,
.btn-member-feature {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ========================================= */
/* Mobile Navigation Dropdown */
/* ========================================= */
.mobile-nav-dropdown {
  border-top: 1px solid #e2e8f0;
}
.mobile-nav-item {
  padding: 0.75rem 1rem;
}

/* ========================================= */
/* Site Header adjustments */
/* ========================================= */
.site-header .logo-container img {
  height: 40px;
  width: auto;
  margin-right: 0.75rem;
}
.site-header .club-name {
  font-size: 1.5rem;
  line-height: 1.2;
}
.site-header .nav-links {
  gap: 1.5rem;
}
.site-header .nav-links .nav-item {
  font-size: 1rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  white-space: nowrap;
}
.site-header .auth-buttons {
  gap: 1rem;
}
.site-header .auth-buttons .btn-login,
.site-header .auth-buttons .btn-signup {
  font-size: 1rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ========================================= */
/* Mobile tweaks for phones */
/* ========================================= */
@media (max-width: 767px) {
  .site-header .logo-container .club-name {
    font-size: 1.25rem;
    margin-left: 0.5rem;
  }
  .site-header .logo-container img {
    height: 32px;
    width: auto;
  }
  .mobile-nav-dropdown .mobile-nav-item {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}

/* ========================================= */
/* Tablet tweaks (iPad, Portrait & Landscape) */
/* ========================================= */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header .main-nav {
    padding-left: 0rem;
    padding-right: 1rem;
  }
  .site-header .logo-container {
    margin-right: 0.25rem;
  }
  .site-header .logo-container img {
    height: 32px;
    width: auto;
    margin-right: 0.25rem;
  }
  .site-header .club-name {
    font-size: 1.25rem;
    line-height: 1.5;
  }
  .site-header .nav-links {
    gap: 0.5rem;
  }
  .site-header .nav-links .nav-item {
    font-size: 0.8125rem;
    padding-left: 0rem;
    padding-right: 0.4rem;
    white-space: nowrap;
  }
  .site-header .auth-buttons {
    gap: 0.4rem;
  }
  .site-header .auth-buttons .btn-login,
  .site-header .auth-buttons .btn-signup {
    font-size: 0.75rem;
    padding-left: 0rem;
    padding-right: 0.6rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }
}

/* ========================================= */
/* NEW: Simplified Two-Breakpoint Navbar Logic */
/* ========================================= */

/* Desktop/Web view: show nav links inline, hide mobile menu toggle */
@media (min-width: 1025px) {
  .site-header .nav-links {
    display: flex !important;
  }
  .site-header .mobile-menu-toggle {
    display: none !important;
  }
  body {
    font-weight: 400;
  }
  @media (min-width: 1440px) {
    body {
      font-weight: 500;
    }
  }
  @media (min-width: 1920px) {
    body {
      font-weight: 600;
    }
  }
}

/* Mobile/Tablet view: hide nav links by default, show hamburger */
@media (max-width: 1024px) {
  .site-header .nav-links {
    display: none !important;
  }
  .site-header .mobile-menu-toggle {
    display: block !important;
    cursor: pointer;
  }
  .site-header .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
    z-index: 999;
  }
}

/* NEW: Simplified Two-Breakpoint Navbar Logic */
@media (min-width: 1025px) {
  .site-header .nav-links {
    display: flex !important;
  }
  .site-header .mobile-menu-toggle {
    display: none !important;
  }
  body {
    font-weight: 400;
  }
  @media (min-width: 1440px) {
    body {
      font-weight: 500;
    }
  }
  @media (min-width: 1920px) {
    body {
      font-weight: 600;
    }
  }
}

@media (max-width: 1024px) {
  .site-header .nav-links {
    display: none !important;
  }
  .site-header .mobile-menu-toggle {
    display: block !important;
    cursor: pointer;
  }
  .site-header .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
    z-index: 999;
  }
}