@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wdth,wght@0,62.5..100,100..900;1,62.5..100,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Edu+QLD+Hand:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

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

body{
    font-family: "Open Sans";
    overflow-y: scroll;
    overflow-x: hidden;

}


.head-container{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    /* background-color: #e1e0e0dc; */
}

.search-container {
    position: relative;
    width: 400px;
  }
  
  #search-bar {
    width: 100%;
    padding: 10px 40px 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 20px;
    box-sizing: border-box;
  }
  
  #search-bar:focus {
    outline: none;
    border-color: #999;
  }
  
  #search-icon {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
  }
  
  #search-btn {
    display: none;
  }
  
  /* Dropdown search results */
  .search-results {
    list-style: none;
    margin-top: 10px; /* overlaps bottom border of input */
    background: white;
    border: 1px solid #ddd;
    /* border-top: none; */
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
    position: absolute;
    z-index: 2000;
    width: 100%;
    display: none;
    border-radius: 8px;
  }
  
  .search-result {
    padding: 10px;
    border-bottom: 1px solid #eee;
  }
  
  .search-result a {
    text-decoration: none;
    color: black;
    display: flex;
    align-items: center;
  }
  
  .search-result:hover {
    background-color: #f0f0f0;
  }
  
  .search-result.no-result {
    color: #888;
    text-align: center;
    font-style: italic;
    pointer-events: none;
  }
  
  
.logo{
    width: 150px;
    height: 150px;
}

.icon-cont {
    position: relative;
    display: flex;
    gap: 10px; 
    padding: 10px;
}

.cart-icon-container {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.icon{
    width: 50px;
    height: auto;
    /* background-color: #F5F0CD; */
    padding: 8px;
    border-radius: 50%;
    color: #F5F0CD;
    cursor: pointer;
}

.icon:hover{
    opacity: 0.8;
    transform: scale(1.2);
}

#login{
    height: 50px;
    width: 50px;
}

.categories{
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-image: url('./home/cat.jpg');
    background-position: center;
    background-size: cover;
}

.items{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url();
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.items:hover{
    transform: scale(1.2);
    opacity: .8;
}

.items img{
    width: 40px;
    height: 40px;
    align-items: center;
}

.banner{
    position: relative;
    height: 60%;
    width: 100%;
}

.banner img{
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.shopNow {
    position: absolute;
    bottom: 5%;
    left: 75%;
    z-index: 10;
}

.shopNow button{
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 30px;
    border: 1px solid gray;
    cursor: pointer;
    background-color: #432818;
    color: #F5F0CD;
    font-family: "Noto Serif";
    transition: all 0.2s ease;
}

.shopNow button:hover{
    background-color: #F5F0CD;
    color: #2D4F2B;
    border: 1px solid #F5F0CD;
}

.shipContainer{
    width: 100%;
    height: 300px;
    background-color: #432818;
    display: flex;
    margin-bottom: 2px;
}

.details-cont{
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
}

.details{
    text-align: center;
    color: white;
}

.details img{
    width: 50px;
}

.productContainer h1{
    font-family: "Edu QLD Hand", cursive;
    font-weight: 200;
    color: #432818;
}

.productGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
  }
  
  .productCard {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 1rem;
    max-width: 280px;
  }
  
  .productCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  }
  
  .image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
  }
  
  .image-slider {
    display: flex;
    width: max-content;
    transition: transform 0.5s ease-in-out;
  }
  
  .slide-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
  }
  
  /* Slide to next image on hover */
  .product-card:hover .image-slider {
    transform: translateX(-100%);
  }
    
.partnerCont{
    width: 100%;
    height: 300px;
    background-color: #432818  ;
    overflow: hidden;
}

.partnerCont h2{
    text-align: center;
    padding-top: 10px;
    font-size: 3em;
    color: white;
}
.partner{
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 100%;
}

.partner img{
    width: auto;
    height: 180px;
}
.feedForm{
    width: 100%;
    height: 400px;
    background-color: #ffffff;
    margin-top: 2px;
}

.feedForm h1{
    font-family: "Roboto";
    text-align: center;
    font-size: 3em;
    color: #432818;
    padding-top: 20px;
}

.footer-cont{
    width: 100%;
    height: 400px;
    background-color: #432818;
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 5px;
}

.about{
    align-items: flex-start;
    width: 40%;
    text-align: center;
}

.social-links{
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 10px;
}

.social-links a:hover{
    transform: scale(1.2);
    transition: transform .3s ease; 
}

.social-links img{
    height: 40px;
    width: 40px;
}

.contact{
    height: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    gap: 40px;
}
.contact img{
    height: 50px;
    width: 50px;
}

.address, .phone-no, .email{
    display: flex;
    height: auto;
    justify-content: flex-start;
    gap: 20px;
    align-items: center;
    color: white;
}

.holder{
    display: flex;
    flex-direction: column;
    width: 30%;
    height: 80%;
    justify-content: flex-start;
    gap: 20px;
    align-items: flex-start;
    padding-left: 30px;
}

.holder a{
    position: relative;
    text-decoration: none;
    font-size: 1.2em;
    color: #F5F0CD;
}

.holder a::before{
    position: absolute;
    content: '';
    bottom: -2px;
    left: 0px;
    height: 2px;
    width: 0%;
    background-color: #28a745;
    transition: width 0.5s ease;
}

.holder a:hover::before{
    width: 100%;
}

.address p{
    flex-shrink: 1;
}
.copyright{
    background-color: black;
    color: white;
    text-align: center;
    font-family: sans-serif;
}
.copyright span{
    color: #28a745;
}
/* Overlay styles */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: flex-end;
    z-index: 2000;
    transition: opacity 0.3s ease;
  }
  
  .cart-overlay.hidden {
    display: none;
  }
  
  .cart-panel {
    width: 20%;
    background: #fff;
    height: 100%;
    padding: 1rem;
    overflow-y: auto;
    position: relative;
  }
  
  .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .cart-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
  }
  
  .cart-panel .cart-item {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }
  
  .cart-panel .cart-item img {
    width: 50px;
    height: auto;
    margin-right: 10px;
  }
  
  .cart-panel .cart-item span {
    margin-left: 5px;
  }
  
  /* Notification banner*/
  #cartNotification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 24px;
    z-index: 1001;
    font-weight: bold;
    border-radius: 10px;
    animation: fadeOut 3s forwards;
    overflow: hidden;
  }
  
  /* Progress Bar Shrink Effect */
  #cartNotification::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 10px;
    height: 4px;
    border: 1p solid white;
    border-radius: 10px;
    background: white;
    width: 100%;
    animation: progressShrink 3s linear forwards;
  }
  
  /* Animations */
  @keyframes fadeOut {
    0% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10px); }
  }
  
  @keyframes progressShrink {
    0% { width: 80%; }
    100% { width: 0%; }
  }

#closeCart{
    height: 30px;
    width: 30px;
    font-size: 2em;
    text-align: center;
    background-color: white;
    border: 1px solid white;
    cursor: pointer;
}

.qty-btn{
    font-size: 1.5em;
    margin: 10px;
    padding: 0 10px;
    background-color: white;
    border: 1px solid white;
    cursor: pointer;
}

#increase{
    color: #28a745;
}

#decrease{
    color: red;
}

.add-to-cart{
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: .2px solid white;
    background-color: #432818;
    color: white;
    cursor: pointer;
}

.add-to-cart:hover{
    opacity: .8;
    transform: scale(1.02);
    transform: translateZ(-5px);
}

#checkout{
    padding: 10px 20px;
    font-size: larger;
    border: 1px solid gray;
    border-radius: 5px;
    color: white;
    background-color: #432818;
    cursor: pointer;
}

#checkout:hover{
    transform: scale(1.03);
    opacity: .85;
}

.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner-slider {
  display: flex;
  width: 100%; /* 3 images */
  transition: transform 1.5s ease-in-out;
}

.banner-slider img {
  flex-shrink: 0;
}

.dots {
  text-align: center;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #333;
}

@media screen and (max-width: 768px) {
  .head-container {
    flex-direction: row;
    align-items: center;
    height: auto;
  }

  .logo {
    width: 120px;
    height: auto;
  }

  .search-container {
    width: 100%;
    max-width: 90%;
    margin: 10px auto;
    position: relative;
  }

  #search-icon{
    position: absolute;
    right: 10px;
  }

  .icon-cont {
    justify-content: center;
    align-items: center;
    gap: 0px;
    padding: 0px;
  }

  #cart, #login{
    width: 50px;
    height: 50px;
  }

  .categories {
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
  }

  .items {
    margin: 10px;
  }

  .items img {
    width: 35px;
    height: 35px;
  }

  .banner img {
    max-height: 300px;
    object-fit: cover;
  }

  .shopNow {
    left: 50%;
    transform: translateX(-50%);
    bottom: 10%;
  }

  .shopNow button{
    width: 100%;
    height: 70%;
    padding: 5px 10px;
    font-size: medium;
  }

  .background{
    display: none;
  }

  .productGrid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }

  .productCard {
    max-width: 100%;
  }

  .shipContainer {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
    gap: 20px;
  }

  .details-cont {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .details-cont h2{
    font-size: medium;
  }

  .partnerCont {
    height: auto;
    padding: 20px 0;
  }

  .partnerCont h2{
    font-size: 1.5em;
  }

  .partner {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .partner img {
    height: 100px;
  }

  .footer-cont {
    flex-direction: column;
    height: auto;
    padding: 20px;
    gap: 30px;
    text-align: center;
  }

  .about, .contact, .holder {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 10px;
  }

  .holder {
    padding-left: 0;
  }

  .cart-panel {
    width: 100%;
    padding: 1rem;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-results {
    max-width: 100%;
    font-size: 14px;
  }

  .copyright p {
    font-size: 0.8em;
    padding: 0 10px;
  }
}

.product-grid.active{
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  width: 250px;
  height: 300px;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-card img {
  width: 80%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}
.links{
  text-decoration: none;
  color: red;
}
.productContainer h1{
  margin-left: 20px ;
}