/* Urban Pet Mart Styles */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  height: 50px;
  width: auto;
  max-width: 50px;
}

.site-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.site-header h1 a {
  color: white;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-menu a:hover {
  opacity: 0.8;
}

/* Main Content */
.site-main {
  min-height: 60vh;
  padding: 2rem 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Product Grid */
.product-grid {
  margin: 3rem 0;
}

.product-grid h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.product-card h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.product-category {
  color: #667eea;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.product-excerpt {
  color: #666;
  margin-bottom: 1rem;
}

.read-more {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

.no-products {
  text-align: center;
  padding: 3rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.no-products code {
  background: #e9ecef;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* Product Detail Page */
.product-detail {
  max-width: 800px;
  margin: 0 auto;
}

.product-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 1.5rem;
}

.product-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.product-header .product-category {
  margin: 0;
  font-size: 0.95rem;
}

.category-badge {
  background: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-transform: capitalize;
}

/* Product Hero Image */
.product-hero {
  width: 100%;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
}

.product-hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.product-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.product-hero-placeholder svg {
  width: 100%;
  height: 100%;
}

/* Product Content & Description */
.product-content {
  line-height: 1.8;
  margin: 2rem 0;
}

.product-description {
  font-size: 1.05rem;
  color: #444;
  margin: 2rem 0;
}

.product-description p {
  margin-bottom: 1.5rem;
  text-align: justify;
  text-align-last: left;
  line-height: 1.8;
}

.product-description p:first-child {
  font-weight: 500;
  font-size: 1.1rem;
  color: #2c3e50;
}

.product-purchase {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.product-purchase h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.affiliate-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.affiliate-button {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid #667eea;
}

.affiliate-button:hover {
  background: #5568d3;
  border-color: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.affiliate-button:active {
  transform: translateY(0);
}

.affiliate-note {
  color: #666;
  font-style: italic;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

.product-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid #ddd;
  gap: 1rem;
}

.product-navigation .nav-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: all 0.3s;
  flex: 1;
  text-align: center;
}

.product-navigation .nav-link:hover {
  background: #f0f0f0;
  color: #5568d3;
}

.affiliate-note {
  color: #666;
  font-style: italic;
}

.product-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.product-navigation a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.product-navigation a:hover {
  text-decoration: underline;
}

/* Categories */
.categories {
  margin: 3rem 0;
  text-align: center;
}

.categories h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.category-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-list a {
  background: #f8f9fa;
  color: #2c3e50;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.category-list a:hover {
  background: #667eea;
  color: white;
}

/* Ad Space */
.ad-space {
  margin: 2rem 0;
}

/* Footer */
.site-footer {
  background-color: #2c3e50;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.affiliate-disclosure {
  margin-top: 1rem;
  opacity: 0.8;
}

/* Products Listing Page */
.products-header {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.products-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.products-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Enhanced Card Design */
.card-image {
  width: 100%;
  height: 250px;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .card-image img {
  transform: scale(1.05);
}

.card-image-placeholder {
  background: #e9ecef;
}

.card-image-placeholder svg {
  width: 100%;
  height: 100%;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card h3 {
  flex-grow: 1;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: white;
  color: #667eea;
  border-color: #667eea;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

/* Call-to-Action Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 2rem;
  border-radius: 8px;
  margin: 3rem 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-section .btn {
  background: white;
  color: #667eea;
  font-weight: 700;
}

.cta-section .btn:hover {
  background: #f0f0f0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Typography & Color Scheme */
body {
  --primary-color: #667eea;
  --primary-dark: #5568d3;
  --secondary-color: #764ba2;
  --text-dark: #2c3e50;
  --text-light: #666;
  --border-color: #ddd;
  --bg-light: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .products-header h1 {
    font-size: 2rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .product-header h1 {
    font-size: 2rem;
  }
  
  .product-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .logo-brand {
    gap: 0.5rem;
  }
  
  .site-logo {
    height: 40px;
  }
  
  .site-header h1 {
    font-size: 1.2rem;
  }
}
