html {
    font-size: 16px; /* Base size for rem units */
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 1.5rem;
    font-weight: 1000;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
}

h4 {
  color: #1F4C4C;
  font-size: 1.25rem;
  font-weight: 700;
}
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
}
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1.25rem;
}

.top-nav img {
    height: 2rem;
    object-fit: contain;
}

.top-nav h1 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
}

.divider {
    border-bottom: 0.125rem solid #ccc;
    margin: 0 1.25rem;
}

.bottom-nav {
    text-align: center;
    padding: 0.625rem 0;
    font-size: 1rem;
}

.bottom-nav a {
    margin: 0 0.625rem;
    color: #000;
    text-decoration: none;
}

.bottom-nav a:hover {
    text-decoration: underline;
}

#banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
/* privacy banner */
.privacy-banner {
    background-color: #182C4B;
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    border-radius: 0;
    position: relative;
  }

  .banner-content {
    flex: 1;
    text-align: center;
  }
  
  .banner-text {
    margin: 0;
  }
  
  .banner-text a{
    color: #FFF;
    text-decoration: none;
  }

  .banner-text a:hover{
    text-decoration: underline;
  }

  .close-banner {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
  }
/* content wrapper */

.content-wrapper {
    margin: 2rem 4rem;  
    padding: 2rem;
  }

/* home page Section 1 */

.split-container {
    display: flex;
    justify-content: space-between;
    padding-bottom: 2rem; 
    gap: 2rem;
  }
  
  .left-part,
  .right-part {
    flex: 1 1 40%; 
  }
  
  .second-part {
    flex: 1 1 50%; 
  }
  
  /* Left Part Styling */
  .left-image {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* Right Part Styling */
  .right-part {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-right: 4rem;
  }
  
  .right-part h2 {
    font-size: 1.5rem;
    margin: 1rem 0;
  }
  
  .right-part p {
    font-size: 1rem;
    margin: 0.5rem 0;
  }
  
  .right-image {
    width: 100%;
    height: auto;
    margin: 1rem 0;
  }
  

  .btn-filled {
    padding: 0.75rem 1.5rem;
    background-color: #1F464B;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: 1000;
    width: 100%;
    border-style: none;
    text-decoration: none;
  }
  
  .btn-filled:hover {
    background-color: #719F94;
    border-color: #719F94;
  }
  
  /* Second Part Styling (Product Cards) */
  .second-part h2 {
    font-size: 1.5rem;
    margin-bottom: 4rem;
  }
  
  .bestseller-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .bestseller-card {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #1F4C4C;
  }
  
  .bestseller-card img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    margin-top: -4rem;  
 
  }
  
  .bestseller-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .bestseller-card p {
    font-size: 1rem;
    color: #1F4C4C;
  }

/* footer */
footer {
    background-color: #182C4B; 
    color: #fff; 
    padding: 2rem 0 2rem 0;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-text {
    font-size: 1rem;
    line-height: 1.5;
  }
/*   
  .footer-social a {
    margin: 0 0.5rem;
  }
  
  .footer-social img {
    width: 2rem; 
    height: auto;
  }
  
  .footer-social a:hover img {
    opacity: 0.8; 
  } */

  footer a{
    color: #FFF;
  }

  /* health product catalog */
  .search-bar {
    display: flex;
    justify-content: center;
    margin: 2rem auto;
    width: 100%;
    border-radius: 3rem;
    border-color: #182C4B;
    overflow: hidden;
  }
  
  .search-bar input,
  .search-bar select {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    width: 100%;
  }
  .search-bar input {
    border-radius: 3rem 0 0 3rem ;
  }
  .search-btn {
    background-color: #182C4B; 
    color: white;
    border: none;
    border-radius: 0;
  }
  .search-btn:hover {
    background-color: #182C4B; 
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    padding: 2rem;
  }
/* filter buttons */
  .filter-btn {
    border-radius: 3rem;
    background-color: #D9D9D9;
    color: #000;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
  }
  
  .filter-btn:hover {
    background-color: #bcbaba;
  }

  .filter-btn.active {
    background-color: #1F4C4C;
    color: white;
  }

  .filter-btn i {
    color: #1F4C4C;
  }

  .filter-btn.active i {
    color: white;              
  }

  .apply-location-filter, .apply-type-filter {
    background-color: #1F4C4C;
    border-color: #1F4C4C;
    color: white;
  }

  .apply-location-filter:hover, .apply-type-filter:hover {
    background-color: #163636; 
    border-color: #163636;
  }

  .benefit-card {
    padding: 1rem;
    padding-top: 1.5rem;
    border-radius: 0.5rem;
    border: 3px solid #1F4C4C;
    text-align: center;
  }
  .benefit-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 1000;
  }
  .benefit-card img {
    width: 20%;
    margin-bottom: 1rem;
  }


  /* product cards */

  .card-wrapper {
    position: relative;
  }

  .row {
    margin-bottom: 2rem;
  }

  .product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  
  .product-card-link:hover .product-card {
    transform: translateY(-5px);
    transition: transform 0.2s ease;
  }

  .product-card {
    background: #fff;
    border-radius: .5rem;
    border: 1px solid #719F94;
    padding: 2rem;
    box-shadow: 0px 4px 6.6px 0px rgba(0, 0, 0, 0.25);    
    position: relative;
    overflow: visible; 
    z-index: 2;
  }

  
  .product-card:hover {
    transform: translateY(-5px);
  }
  
  .tag-label-0, .tag-label-1, .tag-label-2 {
    position: absolute;
    top: 1.75rem; 
    left: -0.50rem; 
    padding: 0.25rem 1rem;
    border-radius: 0.75rem;
    z-index: 1;
    height: 40%;
  }
  .tag-label-0 {
    background-color: #AEAEAE;
  }

  .tag-label-1 {
    background-color: #951120;
  }

  .tag-label-2 {
    background-color: #719F94; 
  }
  
  .product-image {
    width: 100%;
    border-radius: 0.75rem;
    object-fit: cover;
    margin-bottom: 1rem;
  }
  
  .product-info {
    text-align: left;
  }
  
  .product-name {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
  }
  
  .product-price {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .product-price-free {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1F4C4C;
  }
  .product-desc {
    font-size: .9rem;
    margin-bottom: 0.75rem;
  }
  
  .product-stock {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .stock-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .stock-pill-0, .stock-pill-1, .stock-pill-2 {
    border-radius: 1.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 400;
  }

  .stock-pill-0 {
    background-color: #AEAEAE; 
    text-decoration: line-through;
    color: #575757;
  }
  
  .stock-pill-1 {
    background-color: #951120; 
    color: #fff;
  }
  
  .stock-pill-2 {
    background-color: #719F94;
    color: #fff;
  }
  
  .notify-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* transition: background-color 0.2s ease; */
  }
  
  .notify-btn:hover {
    background-color: #e2e6ea;
  }
  /* product page */
  .back-link {
    margin: 2rem 4rem ; 
    padding: 2rem;
    text-decoration: none;
    color: #1F4C4C;
    font-weight: 700;
    font-size: .9rem;
  }
  .back-link:hover {
    text-decoration: underline;
  }

  /* product info on product page */

/* .product-page-price {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1F4C4C;
  } */
  .stock-card-0, .stock-card-1, .stock-card-2 {
    display: flex;
    width: 12.5rem;
    height: 4.5rem;
    padding: 0.75rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    border-radius: 0.5rem;
    font-weight:700;
    line-height: 1.1;

  }
  .stock-link {
    text-decoration: none;
  }

  .stock-card-0 {
    background-color: #AEAEAE; 
    color: #FFF;
  }
  .stock-card-0:hover {
    background-color: #8b8a8a;
    cursor: pointer; 
  }
  
  .stock-card-1 {
    background-color: #951120; 
    color: #fff;
  }
  .stock-card-1:hover {
    background-color: #7d0e1b; 
    cursor: pointer;
  }
  
  .stock-card-2 {
    background-color: #719F94;
    color: #fff;
  }
  .stock-card-2:hover {
    background-color: #54756d;
    cursor: pointer;

  }
  .stock-remain {
    font-size: .9rem;
    font-weight:400;
  }

  .ppl-wrapper {
    display: inline-flex;
  }
  .mascot-ppl {
    width: 8rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }
  .ppl-indicator {
    display: inline-flex;
    position: absolute;
    height: 5.625rem;
    margin: 2rem 3rem;
    padding: 0.9375rem 1.4375rem 0.9375rem 6.5625rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    border: 1px solid #1F4C4C;
  }
  .ppl-text {
    margin-bottom: 0rem;
  }
  .num-ppl {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: normal;
  }

  .prod-info {
    margin-bottom: 0;
  }

  .more-info {
    background-color: rgba(1, 85, 130, 0.07);
    padding: 4rem 8rem;
  }
  
  .more-info-free {
    background-color: #FCFAF4;
    padding: 4rem 8rem;
  }
  .price-compare {
    display: inline-flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
  }

  .price-cvs, .price-uhs, .price-amz {
    border-radius: 0.5rem;
    border: 1px solid #719F94;
    width: 9.375rem;
    height: 8rem;
    display: flex; 
    justify-content: flex-start;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    padding: 1rem;


  }
  .non-uhs-price{
    width: 3rem;
  }

  .uhs-price {
    width: 2rem;
    margin: .5rem;
  }


  .price-uhs {
    background: #719F94;
    color: #FFF;
  }

  .add-resources {
    display: inline-flex;
    gap: 2rem;
    align-items: center;
  }

  .resource-cards {
    position: relative;
    overflow: hidden;
  }
  .resource-card {
    width: 15rem;
    border-radius: 0.5rem;
    border: 1px solid #719F94;
    object-fit: cover;
    display: block;
    

  }
  .resource-text {
    color: #1F4C4C;
    position: absolute;
    top: 5%; 
    left: 50%;
    transform: translateX(-50%);
  }

  .prod-instruct {
    background-color: #DCE8EE;
    padding: 4rem 6rem;
  }

  .prod-instruct-free {
    background-color: #F9F3E5;
    padding: 4rem 6rem;
  }

  .language-buttons {
    display: inline-flex;
    gap: 1rem;
  }

  .lang-btn {
    display: flex;
    width: 5rem;
    padding: 0.25rem 1.5rem;
    justify-content: center;
    align-items: center;
    border-radius: 3.125rem;
    border: 1px solid #719F94;
  }

  .lang-btn:hover {
    background-color: #abb4ba;
    cursor: pointer;
  }

  .lang-link {
    text-decoration: none;
    color: #000;
  }

  .inst-img {
    width: 30rem;
    background: url("assets/advil-inst.png") lightgray 0px -153.629px / 100% 178.658% no-repeat;
    mix-blend-mode: darken;
  }

  .email-btn {
    background-color: #1F4C4C;
  }

  .email-btn:hover {
    background-color: #163636;
  }

  /* privacy popup */

  #firstVisitModal .modal-content {
    border-radius: 0.5rem;
    border: 1px solid #719F94;     
    text-align: center;           
    padding: 2rem;                
  }
  #firstVisitModal .modal-header {
    justify-content: center;
    padding-top: 5rem;
  }
  
  #firstVisitModal .modal-title {
    font-size: 1.3rem;
    text-align: center;
    font-weight: 700;
  }
  
  #firstVisitModal .modal-body p {
    font-size: 1rem;
    margin-bottom: 0;
  }
  
  #firstVisitModal .modal-footer {
    justify-content: center;     
    gap: 1rem;                   
    border-top: none;            
  }
  
  /* Button spacing */
  #firstVisitModal .btn {
    padding: 0.5rem 1.5rem;
  }
  
  /* Extra: transition for smoother hover/focus */
  #firstVisitModal .btn {
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .understand-btn {
    border-radius: 0.5rem;
    background: #1F464B;  
  }

  .dontshow-btn {
    border-radius: 0.5rem;
    border: 1px solid #6D6D6D;
    background-color: #fff;
    color: #6D6D6D;
  }

  .understand-btn:hover {
    background-color: #163636;
  }

  .circle-image {
    position: absolute;
    top: -7.5rem; 
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 50%;
    width: 13rem;
    height: 13rem;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 5; 
    animation: popAnimation 0.6s ease-out;
  }
  
  @keyframes popAnimation {
    0% {
      transform: translateX(-50%) scale(0.8);
    }
    50% {
      transform: translateX(-50%) scale(1.2);
    }
    100% {
      transform: translateX(-50%) scale(1);
    }
  }
  .circle-img {
    width: 80%;
    object-fit: contain;
  }

  .report-btn {
    border-radius: 0.5rem;
    border: 1px solid #951120;
    color: #951120;
    font-weight: 700;
  }

  .report-btn:hover {
    background-color: #951120;
    color: #FFF;
  }

  .carousel-caption {
    background: rgba(255, 255, 255, 0.60);
    color: #1F4C4C;
    font-weight: 700;
  }

  .location-btn {
    border-radius: 0.5rem;
    border: 1px solid #1F4C4C;
    background-color: #fff;
    display: flex;
    width: 100%;
    padding: 0.375rem 1rem;
    justify-content: center;
    align-items: center;
    color: #1F4C4C;
    font-weight: 700;
  }

  .location-btn:hover {
    background-color: #1F4C4C;
    cursor: pointer;
    color: #FFF;
  }