@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Turret+Road:wght@200;300;400;500;700;800&display=swap');
@import url('indexstyles.css');

* { font-family: 'Poppins', sans-serif; margin: 0; padding: 0; box-sizing: border-box; list-style: none; text-decoration: none; scroll-behavior: smooth; scroll-padding-top: 2rem; }
:root {
    --main-color: #FDA702;
    --second-color: #EBEFF2;
    --text-color: #02171D;
    --bg-color: #FFFFFF;
    --box-shadow: 2px 2px 10px 4px rgb(14 55 54 / 15%);
}
html::-webkit-scrollbar { width: 0.5rem; }
html::-webkit-scrollbar-thumb { background: transparent; }
html::-webkit-scrollbar-track { background: var(--text-color); border-radius: 5rem; }
.btn {
    padding: 0.7rem 1.2rem;
    background: var(--main-color);
    color: var(--bg-color);
    font-weight: 500;
    display: inline-block;
    text-transform: uppercase;
    clip-path: polygon(100% 0, 93% 50%, 86% 99%, 0% 100%, 7% 47%, 13% 0%);
}
    .btn:hover { background: var(--text-color); letter-spacing: 2px; transition: .2s; }
img { width: 100%; }
section { padding: 50px 100px; }

/*Header*/

header { position: fixed; width: 100%; top: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 20px 100px; transition: .5s linear; }
    header.shadow { background: var(--bg-color); box-shadow: 0 0 4px rgb(14 55 54 / 15%); }
.logo { display: flex; align-items: center; font-size: 1rem; font-weight: 600; color: var(--text-color); column-gap: .2rem; }
    .logo .bx { font-size: 24px; color: var(--main-color); }
.navbar { display: flex; column-gap: 2.4rem; }
    .navbar a { font-size: 1rem; font-weight: 500; color: white; }
        .navbar a:hover { color: var(--teal); }
.header-icons { font-size: 22px; cursor: pointer; z-index: 100000; }
#menu-icon { display: none; }
.search-box { position: absolute; top: 110%; right: -100%; }
    .search-box input { padding: 10px; border: none; outline: none; border-radius: .5rem; width: 280px; box-shadow: var(--box-shadow); }
    .search-box.active { right: 1rem; transition: .2s; }
.cart { 
    position: absolute;
    top: 110%; 
    right: -100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    row-gap: .5rem; 
    background: var(--bg-color); 
    padding: 20px; 
    border-radius: .5rem; 
    box-shadow: var(--box-shadow); 
}
    .cart img { width: 100px; }
    .cart .box { display: flex; align-items: center; column-gap: 2rem; }
        .cart .box .text h3 { font-size: 1rem; }
        .cart .box .bx { font-size: 24px; }
            .cart .box .bx:hover { font-size: 1.1rem; font-weight: 600; }
    .cart h2 { font-size: 1,1rem; font-weight: 600; }
    .cart.active { right: 1rem; transition: .2s; }
    .logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
}

/* Logo Styles */
.logo-img {
  height: 100px; 
  width: auto;
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: rotate(-15deg) scale(1.1);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.slogan {
  font-size: 0.8rem;
  color: white;
  font-weight: 400;
  font-family: var(--font-base);
}

.nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  padding: 0;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--teal);
}


.user {
    position: absolute;
    right: -100%;
    top: 110%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: .5rem;
    background: var(--bg-color);
    padding: 20px;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
}
    .user h2 { font-size: 1.2rem; color: var(--text-color); }
    .user .login-btn { background: var(--main-color); color: var(--bg-color); font-size: 1rem; text-transform: uppercase; font-weight: 500; cursor: pointer; }
        .user .login-btn:hover { background: var(--text-color); }
    .user input { border: none; outline: none; background: var(--second-color); padding: 10px; border-radius: .5rem; width: 100%; }
    .user p { font-size: .938rem; }
    .user a { text-decoration: underline; color: var(--main-color); }
    .user.active { right: 1rem; transition: .2s; }

/*Home*/

.home { width: 100%; min-height: 100vh; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); align-items: center; gap: 1.5rem; background: var(--second-color); }
.home-text span { font-weight: 600; text-transform: uppercase; }
.home-text h1 { font-size: 3.4rem; margin-bottom: 1rem; }

/*New*/

.heading { text-align: center; }
    .heading h1 { font-size: 1.7rem; font-weight: 600; text-transform: capitalize; color: var(--text-color); }
    .heading span { 
        padding: .2rem 1.2rem; 
        background: var(--main-color); 
        color: var(--bg-color); 
        font-weight: 500; 
        display: inline-block; 
        text-transform: uppercase;
        clip-path: polygon(100% 0, 93% 50%, 86% 99%, 0% 100%, 7% 47%, 13% 0%);
    }
.new-arrival { margin-top: 2rem; }
    .new-arrival .box { position: relative; overflow: hidden; background: var(--second-color); }
        .new-arrival .box img { background: var(--second-color); width: 100%; height: 100%; object-fit: cover; }
        .new-arrival .box .content { 
            position: absolute; 
            top: -100%; 
            right: 0; 
            width: 100%; 
            height: 100%; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            background: hsl(0%, 0%, 91%, .5); 
            overflow: hidden;
        }
            .new-arrival .box:hover .content { top: 0; transition: .2s; }

/* Product Section */
.product {
    padding: 8rem 2rem 4rem; /* Adjusted for fixed header */
    background-color: var(--second-color);
    min-height: 100vh;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-container .box {
    position: relative;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.product-container .box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-container .box img {
    border-radius: 8px;
    margin-bottom: 1rem;
    height: 200px;
    object-fit: cover;
}

.product-container .box .content {
    padding: 1rem 0;
}

.product-container .box .content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-container .box .content .stars {
    margin: 0.5rem 0;
}

.product-container .box .content .stars .bx {
    color: var(--main-color);
    font-size: 1.2rem;
}

.product-container .box .content span {
    display: block;
    font-weight: 600;
    color: var(--main-color);
    margin: 0.5rem 0;
}

/* Reviews Section */
.reviews {
    padding: 4rem 2rem;
    background-color: var(--bg-color);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reviews-container .box {
    padding: 2rem;
    background: var(--second-color);
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.reviews-container .box img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid var(--main-color);
}

.reviews-container .box .stars .bx {
    color: var(--main-color);
    font-size: 1.2rem;
}

.reviews-container .box p {
    font-style: italic;
    margin: 1rem 0;
    color: var(--text-color);
}

.reviews-container .box h2 {
    font-size: 1.2rem;
    color: var(--text-color);
}

.reviews-container .box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
/* ============================
   Footer
============================ */
.footer {
  background-color: var(--purple);
  color: var(--white);
  padding: 3rem 1rem ;
}

.footer a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--teal-light);
}

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

.footer-logo-column {
  display: flex;
  flex-direction: column;
  align-items: left;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: var(--teal);
}

.footer-logo-img {
  height: 250px;
  width: 250px;
  object-fit: contain;
  margin-bottom: 1rem;
  padding: 1rem;
}

.footer-qr-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-qr-code {
  width: 120px;
  height: 120px;
  background-color: white;
  padding: 0.5rem;
  border-radius: 5px;
}


.footer-nav,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.footer-contact li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a {
  font-size: 1.2rem;
  margin-right: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--teal);
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: white;
}
/*Media Queries*/

@media(max-width: 1058px) {
    header { padding: 18px 4%; }
    section { padding: 50px 4%; }
    .home-text h1 { font-size: 3rem; }
}

@media(max-width: 991px) {
    .home-text h1 { font-size: 2.4rem; }
}

@media(max-width: 768px) {
    header { padding: 12px 4%; }
    #menu-icon { display: initial; }
        header .navbar {
            position: absolute;
            width: 240px;
            height: 100vh;
            top: 100%;
            right: -100%;
            display: flex;
            flex-direction: column;
            background: var(--bg-color);
            row-gap: 1.4rem;
            padding: 20px;
            box-shadow: 4px 4px 0 4px rgb(14 55 54 / 15%);
            transition: .4s linear;
            text-align: left;
        }
            .navbar.active { right: 0; }
}

@media(max-width: 550px) {
    .footer { place-items: center; }
    .footer-box h2 { text-align: center;}
    .footer-box p { text-align: center;}
    .footer-box .social { justify-content: center; }
    .footer-box h3 { text-align: center;}
    .footer-box li { text-align: center;}
}

@media(max-width: 360px) {
    .home-text span { font-size: .8rem; }
    .home-text h1 { font-size: 1.7rem; }
    .heading h1 { font-size: 1.4rem; }

}
/* ============================
   Responsive Adjustments
============================ */

/* Tablets & below (<= 992px) */
@media (max-width: 992px) {
  .header-container {
    flex-wrap: wrap;
    padding: 1rem;
  }
  
  .logo-container {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  /* Base mobile nav hidden */
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background-color: var(--purple);
    padding: 1rem;
    margin-top: 0.5rem;
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 999;
  }
  
  /* Show nav when toggled */
  .nav.show {
    display: flex;
  }
  
  .nav li {
    margin: 0.5rem 0;
  }
  
  .hamburger {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1rem;
  }
  
  /* Ad panel hidden on tablets/mobiles */
  .ad-sidebar-floating,
  .toggle-ad-panel {
    display: none !important;
  }
  
  .product {
        padding: 7rem 1.5rem 3rem;
    }
    
    .product-container,
    .reviews-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
  /* Footer stacking */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Pet sections */
  .pet-grid {
    flex-direction: column;
  }
  
  .animal-bg-section {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Features grid */
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Mobiles (<= 768px) */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 0;
    min-height: 400px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero .lead {
    font-size: 1.1rem;
  }
  
  .cta-buttons .btn {
    display: block;
    margin: 1rem auto;
  }

  .logo-img {
    height: 50px;
  }
  
  .brand-name {
    font-size: 1.2rem;
  }
  
  .qr-code-container {
    bottom: 70px;
    right: 10px;
  }
  .product {
        padding: 6rem 1rem 2rem;
    }
    
    .heading h1 {
        font-size: 1.5rem;
    }
    
    .product-container .box img {
        height: 180px;
    }

  .footer-logo-column,
  .footer-qr-column {
    align-items: center;
    text-align: center;
  }

  .footer-column {
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* Small mobiles (<= 480px) */
@media (max-width: 480px) {
  .hero-overlay h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    font-size: 0.8rem;
  }

  .product {
        padding: 5rem 1rem 2rem;
    }
    
    .heading h1 {
        font-size: 1.3rem;
    }
    
    .product-container,
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .product-container .box img {
        height: 160px;
    }
  .cards {
    padding: 1.5rem;
  }
  
  .service-block {
    padding: 1.5rem;
  }
}