
/* --- CSS Reset & Variables --- */
:root {
    --primary-brown: #7c5e4d;
    --secondary-beige: #f4ece2;
    --accent-blue: #dcedf6;
    --accent-orange: #f49d37; /* Amazon button color */
    --text-dark: #333333;
    --text-light: #ffffff;
    --footer-bg: #8a7668;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-brown);
    color: var(--text-light);
    font-weight: 600;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #5e4639;
}

.btn-amazon {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--accent-orange);
    color: var(--text-light);
    text-align: center;
    font-weight: 600;
    border-radius: 5px;
    margin-top: auto; /* Pushes button to bottom of card */
}
.btn-amazon:hover {
    background-color: #d88a2e;
}

.btn-secondary {
    display: inline-block;
    background-color: #e0e0e0;
    color: #333;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

/* --- Header --- */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.site-logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-brown);
}
.site-logo a {
    color: var(--primary-brown);
}
.site-logo i { margin-right: 10px; }

/* --- Main Navigation --- */
.main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.main-nav > li {
    position: relative;
}

.main-nav > li > a {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--primary-brown);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav > li > a:hover {
    color: var(--accent-orange);
    background-color: var(--secondary-beige);
}

.nav-highlight {
    background-color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--primary-brown) !important;
}

.header-icons {
    display: flex;
    gap: 15px;
    color: var(--primary-brown);
    font-size: 1.1rem;
}

/* --- Mega Menu / Dropdown Navigation --- */
.main-nav > li > a i {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    margin-left: 5px;
}

.main-nav > li:hover > a i {
    transform: rotate(180deg);
}

/* Dropdown Panel (appears on hover) */
.has-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

/* Show dropdown on hover */
.has-dropdown:hover > .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Links */
.dropdown-panel a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--primary-brown);
    transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-panel a:hover {
    color: var(--accent-orange);
    background-color: var(--secondary-beige);
    padding-left: 25px;
}

/* Mega Menu (multi-column dropdown) */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 600px;
    background-color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    padding: 25px 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

.has-dropdown:hover > .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mega Menu Grid (3 columns) */
.mega-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Mega Menu Column */
.mega-dropdown-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-brown);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-blue);
}

.mega-dropdown-col ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-dropdown-col ul li a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--primary-brown);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mega-dropdown-col ul li a:hover {
    color: var(--accent-orange);
    padding-left: 8px;
}

/* Featured Section in Mega Menu */
.mega-dropdown-featured {
    background-color: var(--accent-blue);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.mega-dropdown-featured img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid #fff;
}

.mega-dropdown-featured h4 {
    color: var(--primary-brown);
    margin-bottom: 8px;
    border: none;
    padding: 0;
    text-transform: none;
}

.mega-dropdown-featured .btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-brown);
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle:hover {
    color: var(--accent-orange);
}

/* Hamburger Icon */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 25px;
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: var(--primary-brown);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('/assets/images/products/fabricastle-dog-sweater-3-pack-dog-cat-clothes-ultra-soft-and-warm-pet-jackets-x-yorkie.webp');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: left;
    border-radius: 0;
    margin-bottom: 0;
    color: var(--text-light);
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* --- Shop By Category --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.featured-categories {
    padding: 60px 0;
    background-color: var(--accent-blue);
    margin-bottom: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 0;
}

.category-card {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.category-card:hover {
    transform: none;
    box-shadow: none;
}

.category-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #fff;
    transition: transform 0.3s;
}
.category-card:hover .category-image { transform: scale(1.05); }

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* --- Related Categories --- */
.related-categories {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.related-categories h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-brown);
}

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

.related-card {
  background: var(--accent-blue);
  padding: 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.related-card h3 {
  color: var(--primary-brown);
  margin-bottom: 10px;
  font-size: 1rem;
}

.related-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* --- Featured Products --- */
.featured-products, .category-products {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 0;
}

.featured-products h2, .category-products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
    background: #fff;
    box-shadow: none;
    overflow: visible;
}

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

.product-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-image {
    height: 180px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
    background-color: transparent;
}

.product-title {
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit title to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 0;
    padding: 0;
    line-height: 1.4;
}

.product-rating {
    padding: 0 0 15px 0;
    color: #f90;
    font-size: 0.8rem;
}

/* --- Why Shop With Us --- */
.why-shop {
    padding: 60px 0;
    background-color: var(--secondary-beige);
}

.why-shop h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature i {
    font-size: 3rem;
    color: var(--primary-brown);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature p {
    font-size: 0.9rem;
    color: #555;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg);
    color: #d8ccc4;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #d8ccc4;
}

.footer-col ul li a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.affiliate-disclosure {
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: #d8ccc4;
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: #d8ccc4;
}

/* --- Product Detail Page --- */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    color: #666;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.product-image-container {
    text-align: center;
}

.product-detail-image {
    max-height: 500px;
    width: auto;
    max-width: 100%;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-rating-large {
    color: #f90;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
    margin-left: 10px;
}

.affiliate-notice {
    background-color: #fff9e6;
    border-left: 4px solid #ff9900;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-description p {
    margin-bottom: 15px;
}

.product-description .description-intro {
    font-size: 1.05rem;
    color: #333;
}

.product-description .product-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px 25px;
}

.product-description .product-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.product-description .product-features li:last-child {
    margin-bottom: 0;
}

.product-description .product-features li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-brown);
}

.product-description .description-closing {
    font-style: italic;
    color: #555;
}

.product-actions {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-large {
    font-size: 1.1rem;
    padding: 15px 30px;
    margin: 0;
}

/* --- Info Pages --- */
.info-page {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 60px;
}

.info-page h1 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: var(--primary-brown);
}

.info-content p {
    margin-bottom: 20px;
}

.info-section {
    margin-bottom: 40px;
}

.info-section h2 {
    margin-bottom: 20px;
    color: var(--primary-brown);
}

.checklist {
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.checklist li:before {

/* Error Page */
.error-page {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.error-page h1 {
  font-size: 3rem;
  color: #2c5aa0;
  margin-bottom: 20px;
}

.error-page ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.error-page ul li {
  margin: 10px 0;
}

/* Features Grid */
.why-shop {
  margin-bottom: 60px;
}

.why-shop h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

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

.feature {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.feature h3 {
  color: #2c5aa0;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Footer */
.site-footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-disclosure {
  background-color: #444;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 30px;
  text-align: center;
}

.affiliate-disclosure {
  color: #f90;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #f90;
}

.copyright {
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  padding-top: 20px;
  border-top: 1px solid #444;
}

/* Responsive Design */
@media (max-width: 992px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
  }

  /* Hide main nav by default on mobile */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .main-nav.active {
    display: flex;
    flex-direction: column;
  }

  .main-nav > li {
    border-bottom: 1px solid #eee;
  }

  .main-nav > li > a {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
  }

  /* Dropdown panels on mobile */
  .dropdown-panel,
  .mega-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    min-width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    padding: 0;
    background-color: var(--secondary-beige);
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .has-dropdown.active > .dropdown-panel,
  .has-dropdown.active > .mega-dropdown {
    max-height: 500px;
    padding: 10px 0;
  }

  .dropdown-panel a {
    padding: 12px 30px;
  }

  .dropdown-panel a:hover {
    padding-left: 35px;
  }

  /* Hide mega grid on mobile, show as list */
  .mega-dropdown-grid {
    display: block;
  }

  .mega-dropdown-col {
    margin-bottom: 15px;
  }

  .header-icons {
    display: none;
  }
}

@media (max-width: 768px) {
  .product-details {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .btn-large {
    display: block;
    margin-bottom: 15px;
  }

  .category-page,
  .info-page {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .site-logo a {
    font-size: 1rem;
  }

  .product-image {
    height: 150px;
  }

  .product-title {
    font-size: 0.85rem;
    padding: 10px;
  }

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

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }
}
