/* 
  Note: This file contains styles specifically for the dog supplies page content.
  The main header and footer styles are located in style.css.
*/

/* Dog Page Specific Styles */

/* Header content layout (page-specific override) */
.main-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.main-header .logo h1 {
  margin: 0;
  font-size: 1.6rem;
}

.main-header .tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--secondary);
}

/* Dog Hero */
.dog-hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #FFE8F0 0%, #FFF9E6 100%);
  position: relative;
  overflow: hidden;
}

.dog-hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.dog-hero-text {
  flex: 1;
}

.dog-hero-text h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.dog-highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.dog-highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--accent);
  opacity: 0.4;
  z-index: -1;
}

.dog-hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.dog-hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--heading-font);
}

.stat-text {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 600;
  margin-top: 5px;
}

.dog-hero-image {
  flex: 1;
  position: relative;
}

.dog-paw-prints {
  position: absolute;
  top: -20px;
  left: -20px;
  z-index: 1;
}

.dog-paw-prints i {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.3;
  margin-right: 15px;
  animation: float 4s ease-in-out infinite;
}

.dog-paw-prints i:nth-child(2) {
  animation-delay: 0.5s;
  color: var(--secondary);
}

.dog-paw-prints i:nth-child(3) {
  animation-delay: 1s;
  color: var(--accent);
}

.hero-dog-img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transform: rotate(3deg);
  transition: transform 0.5s ease;
}

.hero-dog-img:hover {
  transform: rotate(0deg);
}

/* Dog Categories Tabs */
.dog-categories {
  padding: 2rem 0;
  background-color: white;
  border-bottom: 1px solid #eee;
}

.dog-category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.tab-btn {
  padding: 12px 24px;
  background-color: var(--light);
  border: 2px solid #eee;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--heading-font);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--dark);
}

.tab-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.tab-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(255, 107, 139, 0.2);
}

/* Dog Products */
.dog-products {
  padding: 4rem 0;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

#category-title {
  margin-bottom: 0;
}

.sort-filter select {
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid #eee;
  font-family: var(--body-font);
  font-weight: 600;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-filter select:focus {
  outline: none;
  border-color: var(--secondary);
}

.dog-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.dog-product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

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

.product-badge-top {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
}

.product-badge-top span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

.best-value {
  background-color: var(--accent2);
}

.bestseller {
  background-color: var(--primary);
}

.new {
  background-color: var(--secondary);
}

.dog-product-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.dog-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.quick-view {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 10px;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.dog-product-card:hover .quick-view {
  transform: translateY(0);
}

.dog-product-info {
  padding: 1.5rem;
}

.dog-product-info h3 {
  margin-bottom: 5px;
  font-size: 1.3rem;
}

.product-brand {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.product-desc {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.stars {
  color: #FFC107;
  margin-right: 8px;
}

.rating-count {
  color: #888;
  font-size: 0.9rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.price-container {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.original-price {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
  margin-top: 2px;
}

.save-badge {
  background-color: var(--accent);
  color: var(--dark);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 5px;
  align-self: flex-start;
}

.add-to-cart-dog {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-to-cart-dog:hover {
  background-color: #3db8af;
  transform: scale(1.05);
}

.product-sizes,
.product-sizes,
.product-colors,
.product-flavors {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.size-label,
.color-label,
.flavor-label {
  font-weight: 600;
  margin-right: 10px;
  font-size: 0.9rem;
}

.size-btn,
.flavor-btn {
  padding: 5px 12px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-right: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-btn:hover,
.flavor-btn:hover {
  background-color: #eee;
}

.size-btn.active,
.flavor-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.color-option {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.active {
  border-color: var(--dark);
  transform: scale(1.1);
}

.color-option.blue {
  background-color: #4A90E2;
}

.color-option.red {
  background-color: #FF6B6B;
}

.color-option.green {
  background-color: #7AE582;
}

.color-option.purple {
  background-color: #9B59B6;
}

.color-option.teal {
  background-color: var(--secondary);
}

.color-option.orange {
  background-color: #FFA726;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  background-color: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 107, 139, 0.2);
}

/* Dog Food Guide */
.dog-food-guide {
  padding: 5rem 0;
  background-color: #F9FAFD;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.guide-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

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

.guide-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.guide-card h3 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.guide-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Cart controls moved to global style.css to ensure consistency across pages */

/* Quick View Modal */
.quick-view-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background-color: white;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark);
  transition: color 0.3s ease;
  z-index: 10;
}

.close-modal:hover {
  color: var(--primary);
}

.modal-product-details {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.modal-product-image {
  flex: 1;
  min-width: 300px;
}

.modal-product-image img {
  width: 100%;
  border-radius: 15px;
}

.modal-product-info {
  flex: 1;
  min-width: 300px;
}

.modal-brand {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 10px;
}

.modal-rating {
  margin-bottom: 1.5rem;
}

.modal-desc {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.modal-add-to-cart {
  margin-bottom: 2rem;
}

.modal-features h4 {
  margin-bottom: 1rem;
}

.modal-features ul {
  list-style: none;
}

.modal-features li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.modal-features li i {
  color: var(--accent2);
  margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .dog-hero-content {
    flex-direction: column;
    text-align: center;
  }

  .dog-hero-stats {
    justify-content: center;
  }

  .dog-hero-text p {
    margin: 0 auto 2rem;
  }

  .modal-product-details {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .dog-hero-text h1 {
    font-size: 2.5rem;
  }

  .dog-hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sort-filter {
    align-self: flex-end;
  }
}

@media (max-width: 576px) {
  .dog-hero-text h1 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .dog-category-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .tab-btn {
    flex-shrink: 0;
  }

  .dog-products-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .modal-product-image,
  .modal-product-info {
    min-width: 100%;
  }
}