/* CSS by Araceli Valles */
/* ---- Skip Link Styles ---- */
#skip{
    position: absolute;
    left: -100000px;    
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#skip:focus{
    position: static;
    width: auto;
    height: auto;
}

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

header, footer {
    background-color: #fd5588;
}

/* Logo */
.logo{
    width: 250px;
    height: auto;
}

/* Nav Styles */
.navigation-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 30px;
}
.navigation-bar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.navigation-bar a{
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.navigation-bar a:hover{
    color: #000;
}

/* Hero Banner Styles */
#hero-banner{
    border-top: 6px solid #69a286;
    border-bottom: 10px dotted #fd5588;
    width: 100vw;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff; /* or whatever background you want */
}

#hero-banner img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#visually-hidden{
    display: none;
}
      

h1{
    margin-top: 40px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-decoration: solid;
}

h2{
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3{
    font-size: clamp(1.2rem, 2vw, 1.8rem);
}

h1,h2,h3 {
    font-family: 'Shrikhand', cursive, sans-serif;
    color: #ff004c;
    text-align: center;
}

.hero-text p{
    margin: 20px;
    padding: 10px;
    font-weight: 450;
    font-size: 16px;
}

body, nav, p{
    font-family: 'Raleway', sans-serif;
}

.visually-hidden{
    display: none;
}
/* Products */
#featured-products, .dulceProducts{
    padding: 20px 5px;
    text-align: center;
}

.product-grid, .dulceProducts{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center; 
    gap: 2rem;
}

.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background-color: #fff;
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#featured-products h2, #products h2{
    padding: 15px;
}

.product p{
   padding-top: 15px;
}

.product-grid img, .dulceProducts img {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    margin: 0 auto 0.5rem;
    display: block;
}

.product-grid h3, .dulceProducts h3 {
    font-size: 23px;
    text-align: center;
    color: #ff004c;
}

.product-grid p, .dulceProducts p {
    text-align: center;
    margin-bottom: 2rem;
}

.product-grid label, .product-grid select, .product-grid input, .product-grid button {
    display: block;
    width: 100%;
    margin: 0.4rem 0;
}

.product-grid button, .dulceProducts button {
    background-color: #69a286;
    color: #fff;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.product-grid button:hover {
    background-color: #ef2c2c;
}

.product-grid footer {
    margin-top: auto;
}

.view-all{
    display: inline-block;
    text-decoration: none;
    padding: 12px 24px;
    margin-top: 35px;
    background-color: #fd5588;
    color: #fff;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 6px #000;
}

/* Testimonals */
#testimonials h2{
    text-align: center;
    color: #ff004c;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 20px;
}

.testimonial {
    background-color: #69a286;
    color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px #000;
    font-style: italic;
}

.testimonial span {
    display: block;
    font-weight: bold;
    text-align: right;
    margin-top: 1rem;
    color: #fff;
}

/* Footer Styles */
footer {
    margin-top: 50px;
    color: #fff;
    padding: 1px 15px;
    border-top: 6px solid #69a286;
} 

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    flex: 1;
}

.footer-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
    text-align: right;
    margin-top: 100px;
}

.footer-left p{
    padding-bottom: 20px;
}

.footer-copy{
    margin-bottom: 15px;

    text-align: center;
}
 
footer a {
    text-decoration: none;
    color: #fff;
}

footer ul {
    list-style-type: none;
    text-align: right;
}

footer ul li {
    text-align: center;
    margin-top: 50px;
}

 #size-gushers, #quantity-gushers, #size-skittles, #quantity-skittles, #size-airheadExtreme,  #quantity-airheadExtreme, #size-peachRings, #quantity-peachRings, #size-nerdClusters, #quantity-nerdClusters, #size-spicyManguitos, #quantity-spicyManguitos, #size-gummyFresitas, #quantity-gummyFresitas, #size-sourPunchStraws, #quantity-sourPunchStraws, #size-gummyWorms, #quantity-gummyWorms, #size-sourPatchWatermelons, #quantity-sourPatchWatermelons, #size-sourCherries, #quantity-sourCherries, #size-candyApple, #quantity-candyApple {
    color: #ff004c;
    padding: 10px;
    font-size: 16px;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

label {
    font-weight: bold;
    font-size: 16px;
}

/* Contact Page Styles*/
.faq-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    background-color: #69a286;
    box-shadow: 0 4px 6px #000;
}

.faq-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.faq-item{
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question:focus{
    outline: none;
}

.icon {
    font-size: 1.5rem;
}

.faq-answer{
    padding: 10px;
    font-size: 1rem;
    color: #fff;
    display: none;
}

.faq-question.active .icon {
    content: "-";
}

/* Contact Styles */
#contact p {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

form {
    display: block;
    width: 500px; 
    padding: 1.5em;
    margin: 0 auto;
    font-size: 1.1em; 
}

label, input{
    display: block;
    width: 100%;
}

input{
    font-size: 1em;
    padding: 0.25em 0.5em;
    border: 2px solid  #69a286;
    height: 2.5em;
}

textarea{
    width: 100%;
    height: 5em;
    margin-bottom: 1em;
    border: 2px solid #69a286;
}

#newContact button {
    display: block;
    width: fit-content;
   margin-left: auto;
   background-color: #69a286;
   color: #fff;
   padding: 10px;
   border: none;
   font-size: 16px;
}

#newContact{
    color: #fd5588;
}

/* Shopping Cart */
.cart-link {
    position: relative;
    display: inline-block;
  }
  
.cart-count {
    position: absolute;
    top: -8px;
    right: -15px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    display: none;
}
  
input.add-to-cart {
    display: none;
}

.add-to-cart-label {
    background-color: #fd5588;  
    color: white;    
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;          
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;  
    text-align: center; 
}
 
.add-to-cart-label:hover {
    background-color: #d94371;
  }
  
.add-to-cart-label:active {
    background-color: #c1456d; 
  }

.shoppingCart{
    visibility: hidden;
}

#cart{
    text-align: center;
}

#cartTotal span {
    display: inline-block;
    width: 120px;
    font-weight: 600;
    color: #444;
  }
  
  #cartTotal #total {
    font-size: 1.4rem;
    color: #fd5588;
  }
  
.cart-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

#cart h2{
    color: #fd5588;
}

.cart-header i {
    font-size: 2rem;
    margin-right: 10px;
    color: #fd5588;
}

#shipping-method {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    margin-top: 8px;
    margin-bottom: 20px;
    width: 250px;
    transition: border-color 0.3s ease;
  }
  
  #shipping-method:hover {
    border-color: #fd5588;
  }
  
  label[for="shipping-method"] {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #444;
  }
  

.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    
  }

#cartTotal{
    background-color: #fff3f7;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
  }

#cartTotal h4{
    font-size: 20px;
  }

 #items{
    list-style: none;
    font-size: 20px;
    font-weight: 400;
    padding: 25px;
  }

  #items li {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

.remove-button {
  margin-left: 10px;
  background-color: transparent;
  color: #fd5588;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.remove-button:hover {
    color: red;
  }

#checkOut{
    background-color: #fd5588;
    color: #fff;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 4px;
    border: none;
}

#checkOut:hover{
    background-color: #69a286;
}

.order-popup {
  display: none;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 1.5rem;
  border: 2px solid #333;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s ease;
  }
  
  .order-popup.show {
  display: block;
  opacity: 1;
  }
  
  

/* Toast Notification Styles */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    font-size: 16px;
    z-index: 9999;
  }
  
  /* Toast is visible */
  .toast.show {
    opacity: 1;
    visibility: visible;
  }

/* Media Queries */
@media screen and (max-width: 1024px) {
    nav {
      gap: 1rem;
    }

    .navigation-bar a {
        font-size: 1.1rem;
        text-align: center;
        display: block;
        margin: 10px 1px;
    }
  
    header {
      padding: 15px;
    }

    .product-grid img {
        width: 100%;
        height: auto;
      }

    .dulceProducts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 2rem;
    }

    .dulceProducts img{
        height: 300px;
    }

    .dulceProducts h3{
        font-size: 1.1rem;
     }
    
    .testimonials-grid{
        display: flex;
        flex-direction: column;
    }

  }
  
  /* Small Tablets / Large Phones */
  @media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .navigation-bar a {
        font-size: 1.1rem;
        text-align: center;
        display: block;
        margin: 10px 1px;
    }
      
    header {
        text-align: center;
    }
      
    .product-grid img {
        height: auto;
    }
      
    .product-grid {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonials-grid{
        display: flex;
        flex-direction: column;
    }

    .dulceProducts {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

     .dulceProducts img{
        height: 300px;
     }   

     .dulceProducts h3{
        font-size: 1.3rem;
     }
      
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
      
    .footer-left, .footer-center, .footer-right {
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 0;
    }
      
    .footer-right {
        margin-top: 0;
    }
      
    .footer-left p {
        margin-top: 10px;
        font-size: 0.85rem;
    }
      
    footer ul li {
        margin-top: 10px;
    }

    .footer-copy {
        margin-top: 20px;
        font-size: 0.9rem;
        color: #fff;
        margin-bottom: 10px;
        text-align: center;
    }

    .faq-section {
        width: 600px;
        padding: 1.5rem;
    }
      
    .faq-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
      
    .faq-question {
    font-size: 1rem;
    padding: 0.75rem;
    }
      
    .faq-answer p {
    font-size: 0.95rem;
    line-height: 1.5;
    }
} 

/* Mobile (small screens) */
@media screen and (max-width: 500px) {
    header {
      font-size: 0.9rem;
      padding: 10px;
    }
  
    .navigation-bar a {
      font-size: 0.7rem;
      text-align: center;
      display: block;
      margin: 0 0.2rem;
      padding-left: 13px;
    }

    .product-grid img, .dulceProducts img{
      width: 100%;
      height: auto;   
    }
    .product-grid{
      display:flex;
      flex-direction:column;
      align-items:flex-start;
    }  

    .dulceProducts {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
        margin: 10px 0;
        flex: unset;
    }

    .footer-left {
        align-items: center;
    }

    .footer-copy {
        margin-top: 20px;
        font-size: 0.85rem;
        color: #fff;
        margin-bottom: 10px;
        text-align: center;
    }

    footer ul li {
        margin: 8px 0;
    }

    .footer-right {
        justify-content: center;
        text-align: center;
        font-size: 0.9rem;
    }

    footer a {
        font-size: 0.95rem;
    }
    .faq-title {
        font-size: 1.1rem;
    }
      
    .faq-question {
        font-size: 0.95rem;
        padding: 0.65rem;
    }
      
    .faq-answer p {
        font-size: 0.9rem;
    }
      
    #contact {
        padding: 1rem;
      }
    
      form#newContact {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        width: 100%;
      }
    
      form#newContact label,
      form#newContact input,
      form#newContact textarea,
      form#newContact button {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 1rem;
      }

    .faq-section{
        width: 90%;
    }
      
}


  

