@import url('https://fonts.googleapis.com/css2?family=Anta&family=Kantumruy+Pro:ital,wght@0,100..700;1,100..700&family=Lilita+One&family=Poiret+One&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}


/* Main Layout */
.main-container {
    display: flex;
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* vvv === NAVIGATION BAR === vvv */

.navbar {
    color: white;
    background-color: #1f1f1f;
}

.content {
    background-color: #1f1f1f;
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 80vw;
    max-width: 80vw;  /* 80% of the viewport width */
    margin: 0 auto;      /* Centers it */
    padding: 0 2rem;     /* Adds spacing on the left & right */
    height: 5rem; 
}


.logo img {
    width: 150px;
    height: auto;
    flex: 1;
}

.search-box {
    display: flex;
    width: 50%;
    margin: 0 20px;
    position: relative;
    overflow: visible; /* Allow overflow for the triangle */
}

.search-box input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: #fcfdfc;
    color: black;
}

.search-box input:focus {
    outline: none;
}


.search-box button {
    background: #4d4d4d;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    color: #fcfdfc;
}

/* Search Result */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto; /* allow vertical scrolling */
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #444;
    border-radius: 0 0 5px 5px;
    z-index: 100;
    padding: 10px;
    margin-top: 10px;
    box-sizing: border-box; /* include padding in max-height */
    display: none;
}

/* Diamond shape pointer */
.search-results::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 20px;
    width: 10px;
    height: 10px;
    background-color: #2a2a2a;
    transform: rotate(45deg);
    z-index: -1;

    border-top: 1px solid #444;
    border-left: 1px solid #444;
}

/* Custom scrollbar for search results */

/* WebKit browsers (Chrome, Edge, Safari) */
.search-results::-webkit-scrollbar {
    width: 8px; /* scrollbar width */
}

.search-results::-webkit-scrollbar-track {
    background: #1f1f1f; /* darker track background */
    border-radius: 5px;
}

.search-results::-webkit-scrollbar-thumb {
    background-color: #555; /* thumb color */
    border-radius: 5px;
    border: 2px solid #2a2a2a; /* creates padding around thumb */
}

.search-results::-webkit-scrollbar-thumb:hover {
    background-color: #888; /* thumb color on hover */
}

/* Firefox */
.search-results {
    scrollbar-width: thin;
    scrollbar-color: #555 #1f1f1f;
}


.search-results p {
    padding: 5px 10px;
    margin: 0;
    cursor: pointer;
}

.search-results p:hover {
    background-color: #444;
}


/* Navbar-Right */
.navbar-right {
    display: flex;
    align-items: center;
}

.icon {
    margin-left: 30px;
    cursor: pointer;
    flex: 1;
}

#profile-icon {
    font-size: 24px;

}

#cart-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

#cart-icon:hover {
    transform: scale(1.3);
}

#about-icon {
    font-size: 25px;
    transition: transform 0.3s ease;
}

#about-icon:hover {
    transform: scale(1.3);
}

.no-link-style {
    color: inherit;       
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block; 
}

.no-link-style:hover {
    transform: scale(1.2);
}



/* Responsive Code */

/* Show search-toggle only on small screens */
.search-toggle {
  display: none; /* hide on desktop */
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
}

@media (max-width: 950px) {
    .content {
    width: 90vw;
    max-width: 90vw;
    padding: 0 1rem;
  }

}


@media (max-width: 768px) {
  .search-box {
    display: none;
  }

  .search-toggle {
    display: flex;
  }

  .logo img {
    width: 120px;
  }

  .content {
    width: 95vw;
    max-width: 95vw;
    padding: 0 1rem;
  }


/* Mobile Search Container - scoped styles similar to desktop .search-box */
.mobile-search-container {
  display: flex;
  width: 100%;          /* Full width for mobile */
  position: relative;
  overflow: visible;    /* allow dropdown overflow */
  background-color: #1f1f1f; /* or inherit as needed */
}

/* Input inside mobile search */
.mobile-search-container input {
  width: 85%;
  margin-bottom: 10px;
  margin-left: auto;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px 0 0 5px;
  background-color: #fcfdfc;
  color: #000; /* black text for better contrast */
  outline: none;
}

/* Button inside mobile search */
.mobile-search-container button {
  background: #4d4d4d;
  color: white;
  border: none;
  padding: 15px 20px;
  margin-bottom: 10px;
  margin-right: auto;
  cursor: pointer;
  border-radius: 0 5px 5px 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon color inside mobile search button */
.mobile-search-container i {
  color: #fcfdfc;
}

/* Search results dropdown inside mobile search */
.mobile-search-container .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto; /* allow vertical scrolling */
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #444;
    border-radius: 0 0 5px 5px;
    z-index: 100;
    padding: 10px;
    margin-top: 10px;
    box-sizing: border-box; /* include padding in max-height */
}

/* Diamond shape pointer for dropdown */
.mobile-search-container .search-results::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 20px;
  width: 10px;
  height: 10px;
  background-color: #2a2a2a;
  transform: rotate(45deg);
  z-index: -1;

  border-top: 1px solid #444;
  border-left: 1px solid #444;
}

/* Individual search result items */
.mobile-search-container .search-results p {
  padding: 5px 10px;
  margin: 0;
  cursor: pointer;
}

/* Hover effect for search results */
.mobile-search-container .search-results p:hover {
  background-color: #444;
}

#mobileSearchResults{
    margin-top: 0px;
}

/* Mobile Search Close */
.mobile-search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}


#mobileSearchClear {
  position: absolute;
  right: 50px; /* a bit left of the search button */
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  top: 50%;
  transform: translateX(-250%) translateY(-72%);

  padding: 0;
  line-height: 1;
  user-select: none;

    font-size: 28px;       /* bigger size */
    font-weight: 300;      /* bolder */
    color: #000000;           /* maybe lighter for subtlety */


}

 
}



/* ^^^ === NAVIGATION BAR === ^^^ */

/* Filters Section */
.filters-section {
    width: 250px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 45%;
    font-family: "Kantumruy Pro", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;    
    font-style: normal;
}

.filters-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.filter-group {
    margin-bottom: 25px;
}

/* Checkbox Styles */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #f0f0f0;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #4CAF50;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Price Range Slider */
.price-range {
    display: flex;
    flex-direction: column;
}

.range-values {
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.range-slider {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.range-slider input[type="range"] {
    width: 100%;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

/* Products Section */
#product-section {
    width: 100%;
    padding: 0;
    margin: 0;
}

.header-container {
    padding: 20px;
}

.header-container img{
    width: 100%;
    height: auto;
}

#toolbar{
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

#toolbar h3{
    font-family: "Kantumruy Pro", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
}

.products-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
    justify-content: space-between; /* Ensures content stays evenly spaced */   

}

/* Product Cards */
.prod-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;

    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prod-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.prod-text-title {
    flex-grow: 1;
    padding: 0 15px;
    font-family: "Kantumruy Pro", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 10px;
}

.prod-text-price {
    font-family: "Kantumruy Pro", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #000000;
    padding: 0 15px;
    margin: 10px 0;
}

.prod-card .add-to-cart {
    background-color: #00326b;
    color: white;
    text-align: center;
    padding: 4px 0;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-top: 1px solid #e0e0e0;
}

.prod-card .add-to-cart:hover {
    background-color: #002147;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Modal Product Content */
.modal-product {
    display: flex;
    gap: 30px;
}

.modal-product-image {
    flex: 1;
}

.modal-product-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 4px;
}

.modal-product-details {
    flex: 1;
}

.modal-price {
    font-size: 24px;
    font-weight: bold;
    color: #e53935;
    margin: 10px 0;
}

.modal-brand, .modal-category, .modal-type {
    color: #666;
    margin: 8px 0;
}

.modal-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-description h3 {
    margin-bottom: 10px;
}

.add-to-cart {
    background-color: #00326b;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-top: 20px;
    border-radius: 0px, 0px, 4px, 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #002147;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-product {
        flex-direction: column;
    }
    
    .modal-content {
        width: 90%;
        margin: 10% auto;
    }
}

.sub-types {
    display: none;
    margin-left: 25px;
}

.category-group.active .sub-types {
    display: block;
}





/* ADD TO CART MODAL */
/* Modal background */
.cart-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal content box */
.cart-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
}

/* Close button */
.close-cart {
    position: relative;
    cursor: pointer;
    float: right;
    font-size: 28px;
    font-weight: bold;
    z-index: 9999;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Item added animations */
.modal-body .fa-circle-check {
    color: #4CAF50;
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s;
}
  
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
  

.modal-body h3 {
    margin: 0 0 0.5rem;
    color: #333;
}
  
.modal-body p {
    color: #666;
    margin: 0;
}

.cart-modal-content2 {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
    text-align: center;
    position: relative;
}

/* Add to cart content */
.cart-content {
    display: flex;
}

.cart-content-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 25px;
}

.checkout-button{
  background: #00326b;
  color: white;
  padding: 0.5rem; /* Less vertical padding */
  height: 40px;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.checkout-button:hover{
  background: #002147;
  transform: translateY(-2px);
}

.total{
    display: flex;
}

.checkout-section{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Dropdown styles for account */
.account-dropdown {
  position: relative;
  display: inline-block;
}

.account-dropdown .dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: #ffffff;
  min-width: 160px;
  z-index: 1000;
  border-radius: 6px;
  padding: 0; /* Removed extra padding */
  overflow: hidden; /* Prevents white space overflow */
}

.account-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content p {
  margin: 0;
  padding: 0.5em 1em;
  font-weight: bold;
  color: black;
}

.dropdown-content button {
  width: 100%;
  border: none;
  background: #f44336;
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 0 0 6px 6px;
  cursor: pointer;
  display: block;
}


/* vvv === FOOTER === vvv */

/* Quality Footer */
.qualities{
    background-color: #f3f4f7;
}

.qualities-container {
    position: relative;
    width: 80vw;
    max-width: 80vw;  /* 80% of the viewport width */
    margin: 0 auto;      /* Centers it */
    padding: 0 3rem;     /* Adds spacing on the left & right */
    


    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Ensures equal height */
    gap: 50px;
}

.quality-box {
    display: flex;
    align-items: flex-start; /* Aligns content to the top */
    gap: 10px;
    max-width: 300px;
    min-height: 160px; /* Set a minimum height for consistency */
}

.quality-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distributes text evenly */
    height: 100%; /* Make sure it takes up full height */
    text-align: justify;
    gap: 20px;
    padding: auto;
    margin-top: 20px;

    font-family: "Kantumruy Pro", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.quality-title {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    margin: 0;
}

.quality-text {
    font-size: 14px;
    color: #333;
    margin: 0;
    flex-grow: 1; /* Ensures text stretches evenly */
    margin-bottom: 20px;
}

/* RESPONSIVE CODE */

@media (max-width: 1439px) {
    .qualities-container {
    width: 85vw;
    max-width: 85vw;  
    padding: 0 1rem;
  }

}

@media (max-width: 1199px) {
    .qualities-container {
    width: 90vw;
    max-width: 90vw;  
    padding: 0 1rem;
  }

}

@media (max-width: 900px) {
  .qualities {
    height: auto; /* allow it to grow */
    padding: 2rem 0;
  }

  .qualities-container {
    flex-direction: column;
    align-items: center; /* center the stacked boxes */
    width: 90vw;
    max-width: 90vw;
    padding: 0 1rem;
    gap: 2rem;
  }

  .quality-box {
    max-width: 100%;
    width: 100%;
    align-items: flex-start;
    min-height: auto;
  }

  .quality-content {
    text-align: left;
    margin-top: 0;
    gap: 10px;
  }

  .quality-title {
    font-size: 1rem;
  }

  .quality-text {
    font-size: 0.9rem;
  }
}


/* Primary Footer */

.footer-container-primary {
    display: flex;
    justify-content: space-around; /* changed from space-between */
    flex-wrap: wrap;
    gap: 1.5rem;
}



#primary-footer-links {
    background-color: #1f1f1f;
    padding: 2rem 0 1rem;
    font-size: 0.9rem;
    color: #c9c9c9;
    font-family: "Kantumruy Pro", sans-serif;
}

.footer-container-primary {
    max-width: 1200px;
    width: 90vw;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0 1rem;
}

/* Mascot Container */
#mascot-container {
    flex: 0 0 120px;
    align-self: center;
}

#Mascot {
    height: 230px;
    width: auto
}

/* Company Information */
#footer-rabyte-information {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-information-title h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 400;
}

.footer-information-content {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-information-content h6 {
    font-weight: 600;
    margin: 0;
    font-size: 15px;
}

.footer-information-content p {
    margin: 0;
    font-weight: 400;
    font-size: 15px;
    color: #a0a0a0;
}

/* Link Sections */
.footer-link {
    flex: 1;
    min-width: 150px;
    margin-top: auto;
    margin-bottom: auto;
}

.footer-link-title {
    margin-bottom: 1rem;
}

.footer-link-title h5 {
    font-family: "Kantumruy Pro", sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: white;
    margin: 0;
}

.footer-link-list ul {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-link-list li {
    font-family: "Kantumruy Pro", sans-serif;
    font-weight: 400;
    font-size: 15px;
}

.footer-link-list a {
    text-decoration: none;
    color: #a0a0a0;
    transition: color 0.2s;
}

.footer-link-list a:hover {
    text-decoration: underline;
    color: #c9c9c9;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    padding: 1rem;
    color: #666;
    font-size: 0.8rem;
    margin-top: 1rem;
    border-top: 1px solid #333;
}

/* RESPONSIVE ADJUSTMENTS */

/* Large tablets and small laptops */
@media (max-width: 1199px) {
    .footer-container-primary {
        width: 95vw;
        max-width: 95vw;
        padding: 0 1rem;
    }

    #Mascot {
        height: 100px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .footer-container-primary {
        justify-content: center;
        gap: 2rem;
    }

    #mascot-container {
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    #footer-rabyte-information,
    .footer-link {
        flex: 1 1 45%;
        min-width: 180px;
    }
}

/* Mobile devices */
@media (max-width: 600px) {
    .footer-container-primary {
        flex-direction: column;
        max-width: 95vw;
        padding: 1rem;
        gap: 2rem;
    }

    #mascot-container {
        margin: 0 auto 1.5rem auto;
        width: 100px;
    }

    #Mascot {
        height: auto;
        max-width: 100%;
    }

    #footer-rabyte-information,
    .footer-link {
        margin: 0 auto;
        width: 100%;
        text-align: center;
    }

    .footer-information-content {
        justify-content: center;
    }

    .footer-link-title {
        margin-bottom: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 400px) {
    .footer-container-primary {
        gap: 1.5rem;
    }

    #Mascot {
        height: 80px;
    }

    .footer-information-title h1 {
        font-size: 1.3rem;
    }

    .footer-link-title h5 {
        font-size: 1.1rem;
    }
}



/* Last Footer */
.footer-container-tertiary {
    max-width: 80vw;  /* 80% of the viewport width */
    margin: 0 auto;      /* Centers it */
    padding: 0 2rem;     /* Adds spacing on the left & right */
    height: 4rem; 
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #e8e9e9;
    align-items: center;
}

#copyright {
    align-content: center;
}

#copyright h6 {
    font-family: "Kantumruy Pro", sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: rgb(56, 47, 47); 
}

#payment-partnership {
    display: flex;
    gap: 10px;
}

.payment-card {
    height: 2em; /* Matches h6 text size */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white; /* optional, helps visualize the box */
    border-radius: 10px; /* optional, for rounded corners */
    overflow: hidden; /* prevents overflow of weirdly-sized images */
}

.payment-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* keeps aspect ratio, fits nicely inside */
}
/* ^^^ === FOOTER === ^^^ */

/* ADD TO CART MODAL */
/* Modal background */
.cart-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal content box */
.cart-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
}

/* Close button */
.close-cart {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Item added animations */
.modal-body .fa-circle-check {
    color: #4CAF50;
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s;
}
  
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
  

.modal-body h3 {
    margin: 0 0 0.5rem;
    color: #333;
}
  
.modal-body p {
    color: #666;
    margin: 0;
}

.cart-modal-content2 {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
    text-align: center;
    position: relative;
}

/* Add to cart content */
.cart-content {
    display: flex;
}

.cart-content-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 25px;
}

.checkout-button{
  background: #00326b;
  color: white;
  height: 40px;
  padding: 0.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.checkout-button:hover{
  background: #002147;
  transform: translateY(-2px);
}

.total{
    display: flex;
}

.checkout-section{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Dropdown styles for account */
/*yung sa account to sa nav bar*/
.account-dropdown {
  position: relative;
  display: inline-block;
}

.account-dropdown .dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: #ffffff;
  min-width: 160px;
  z-index: 1000;
  border-radius: 6px;
  padding: 0; /* Removed extra padding */
  overflow: hidden; /* Prevents white space overflow */
}

.account-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content p {
  margin: 0;
  padding: 0.5em 1em;
  font-weight: bold;
  color: black;
}

.dropdown-content button {
  width: 100%;
  border: none;
  background: #f44336;
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 0 0 6px 6px;
  cursor: pointer;
  display: block;
}

#f1{
    cursor: pointer;
}

#f2{
    cursor: pointer;
}

#f3{
    cursor: pointer;
}

#f4{
    cursor: pointer;
}

.price-input-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.price-input-container input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 120px;
    font-size: 14px;
}

.price-input-container input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}