body, html {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: Arial, sans-serif;
}

.content {
  flex: 1;
  overflow-y: auto;
}
footer {
  background-color: #808000;
  color: white;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  position: fixed;
  bottom: 0;
  z-index: 1;
}
.back-button {
  margin-left: auto;
  margin-right: 8px;
}

.carousel-item img {
  height: 500px;
  object-fit: cover;
}
.carousel-caption .btn-shop {
  background-color: #045c97;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 25px;
  position: absolute;
  top: 10px;
  left: 10px;
}
.carousel-caption .btn-shop:hover {
  background-color: #808000;
  color: white;
}
.about-section {
  padding: 50px 0;
  background-color: #f8f9fa;
}
.contact-section {
  padding: 50px 0;
}
.footer {
  background-color: #343a40;
  color: white;
  padding: 20px 0;
}
.footer a {
  color: #c7b63c;
  text-decoration: none;
}
.footer a:hover {
  color: #f0e68c;
  text-decoration: underline;
}
.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 24px;
  text-decoration: none;
  margin-right:0px;
  text-align: right;
}
.social-icons a:hover {
  color: #007BFF;
}
@media (max-width: 768px) {
  .carousel-item img {
    height: 300px;
  }
  .carousel-caption {
    display: block;
    text-align: left;
  }
  .carousel-caption h5 {
    font-size: 16px;
  }
  .carousel-caption p {
    font-size: 12px;
  }
  .carousel-caption .btn-shop {
    font-size: 18px;
    padding: 3px 7px;
  }
  .about-section, .contact-section {
    padding: 30px 0;
  }
  .footer {
    text-align: center;
  }
  .footer .social-icons {
    margin-top: 10px;
  }
}
@media (max-width: 576px) {
  .carousel-item img {
    height: 200px;
  }
  .carousel-caption .btn-shop {
    font-size: 16px;
    padding: 14px 15px;
    margin: -50px 70px 0px -11px;
  }
  .about-section, .contact-section {
    padding: 20px 0;
  }
  .social-icons a {
    font-size: 20px;
  }
  .footer {
    padding-bottom: 50px;
  }
}

.school-card {
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 10px;
  background-color: #f9f9f9;
  transition: transform 0.2s;
}
.school-card:hover {
  transform: scale(1.05);
}
.school-logo {
  max-height: 100%;
  max-width: 100%;
  /*object-fit: contain;*/
  margin-bottom: 5px;
}
.card-title {
  margin: 0;
}
.card-title a {
  color: #333;
  text-decoration: none;
}
.card-title a:hover {
  text-decoration: underline;
}
.heading {
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-top: 5px;
}
.detail-card {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    transition: transform 0.2s;
}

.detail-card:hover {
    transform: scale(1.05);
}

.detail-logo {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}

.card-title {
    margin: 0;
}

.card-title h5 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.price {
    font-size: 18px;
    color: #333;
}

.size-select {
    width: 80px;
    margin: 10px auto;
    display: block;
}

.color-select {
    width: 80px;
    margin: 10px auto;
    display: block;
}

.quantity-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantity-controls button {
    background-color: #007bff;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    padding: 0;
    margin: 0 5px;
    cursor: pointer;
}

.quantity-controls input {
    width: 50px;
    text-align: center;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}
.item-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
}
.container {
    padding-bottom: 100px;
    /* Adjust based on the height of footer and cart summary */
}

#itemsList {
    max-height: calc(100vh - 150px);
    /* Adjust to fit the screen and footer/cart summary */
    overflow-y: auto;
    /* Makes the items section scrollable when it overflows */
    scrollbar-width: thin;
    /* Makes the scrollbar thinner (for Firefox) */
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
    /* Customize scrollbar colors (for Firefox) */
}

/* Customizing scrollbar for Webkit browsers (Chrome, Safari, etc.) */
#itemsList::-webkit-scrollbar {
    width: 8px;
    /* Width of the vertical scrollbar */
}

#itemsList::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    /* Color of the scrollbar thumb */
    border-radius: 4px;
}

#itemsList::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
    /* Color of the scrollbar track */
}

#cartSummary {
    position: fixed;
    bottom: 30px;
    /* This ensures a small space between footer and cart summary */
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 10px 20px;
    margin-bottom: 15px;  /*  Naveed add margin */
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#cartSummary .btn {
    width: auto;
    /* Let the button size shrink to its content */
    padding: 5px 15px;
    /* Make the button smaller */
    font-size: 14px;
    /* Smaller font size */
    text-align: center;
    background-color: #c7b63c;
    color: white;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 999;
}

/* Adjust the layout for mobile */
@media (max-width: 576px) {
    .item_image {
        max-width: 80px;
        max-height: 80px;
    }

    .container {
        padding-bottom: 120px;
        /* More space for small screens */
    }

    #cartSummary {
        bottom: 30px;
        /* Adjust to fit mobile screens */


    }

    .col-6.col-sm-6.col-md-4 {
        max-width: 50%;
        flex: 0 0 50%;
    }

    .quantity-controls button {
        width: 25px;
        height: 25px;
        font-size: 14px;
        margin: 0 3px;
    }

    .quantity-controls input {
        width: 40px;
    }
}

.cart-icon {
    color: #808000;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.cart-icon .fa-shopping-cart {
    transition: color 0.3s;
    font-size: 24px;
}

.cart-icon:hover .fa-shopping-cart {
    color: #c7b63c;
}

.cart-counter {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

.quantity-controls .decreaseQuantity {
    background-color: #343a40;
    color: white;
}

.quantity-controls .increaseQuantity {
    background-color: #343a40;
    color: white;
}

/* Hover effect for buttons */
.quantity-controls .decreaseQuantity:hover {
    background-color: #343a40;
    /* Darker on hover */
}

.quantity-controls .increaseQuantity:hover {
    background-color: #343a40;
    /* Darker on hover */
}

/* Focus effect for buttons (when clicked) */
.quantity-controls button:focus {
    outline: none;
    /* Remove default outline */
    border: 4px solid #808000;
    /* White border when clicked */
}
.detail-card {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    transition: transform 0.2s;
    overflow: hidden; /* Add this line */
}
.detail-card:hover {
    transform: scale(1.05);
}
.detail-logo {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}
.card-title {
    margin: 0;
}
.heading {
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-top: 20px;
}

.school-logo {
    width: 100%;
    height: auto;
    max-width: 100px;
    max-height: 100px;
    border: 1px solid grey;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .detail-logo {
        max-height: 90px;
    }
    .school-logo {
        max-width: 90px;
        max-height: 90px;
    }
}

@media (max-width: 576px) {
    .detail-logo {
        max-height: 80px;
    }
    .heading {
        font-size: 20px;
    }
    .school-logo {
        max-width: 80px;
        max-height: 80px;
    }
}

.card-title {
    margin: 0;
}
.card-title a {
    color: #333;
    text-decoration: none;
}
.card-title a:hover {
    text-decoration: underline;
}
.btn {
    background-color: #c7b63c;
    color: white;
}

.order-summary {
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
}

.order-summary h5 {
    margin-bottom: 20px;
}

.order-summary table {
    width: 100%;
}

.order-summary table th,
.order-summary table td {
    padding: 10px;
    text-align: left;
}

.order-summary table th {
    background-color: #f8f9fa;
}
.cart-total {
    font-size: 18px;
    font-weight: bold;
}
.btn {
    background-color: #c7b63c;
    color: white;
}
.quantity-controls {
    display: flex;
    align-items: center;
}
.quantity-controls button {
    background-color: #007bff;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    text-align: center;
    padding: 0;
    margin: 0 5px;
    cursor: pointer;
}
.quantity-controls input {
    width: 50px;
    text-align: center;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}
.delete-item {
    color: red;
    cursor: pointer;
    font-size: 20px;
}
.container {
    padding-bottom: 100px;
}
/* Make the table horizontally scrollable for small screens */
@media (max-width: 768px) {
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    .table th, .table td {
        white-space: nowrap; /* Ensure text doesn't wrap */
    }
    .quantity-controls button {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    .cart-total {
        font-size: 16px;
    }
}

/* Stack table rows on very small screens (mobile-first approach) */
@media (max-width: 576px) {
    .table td, .table th {
        padding: 5px 10px;
        font-size: 12px;
    }
    .table {
        font-size: 14px;
    }
    .quantity-controls input {
        width: 40px;
    }
}

.quantity-controls .decreaseQuantity {
    background-color: #343a40;
    color: white;
}

.quantity-controls .increaseQuantity {
    background-color: #343a40;
    color: white;
}

/* Hover effect for buttons */
.quantity-controls .decreaseQuantity:hover {
    background-color: #343a40; /* Darker on hover */
}

.quantity-controls .increaseQuantity:hover {
    background-color: #343a40; /* Darker on hover */
}

/* Focus effect for buttons (when clicked) */
.quantity-controls button:focus {
    outline: none; /* Remove default outline */
    border: 4px solid #808000; /* White border when clicked */
}
.detail-card {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    transition: transform 0.2s;
    overflow: hidden; /* Add this line */
}
.detail-card:hover {
    transform: scale(1.05);
}
.detail-logo {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}
.card-title {
    margin: 0;
}
.heading {
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-top: 20px;
}

.school-logo {
    width: 100%;
    height: auto;
    max-width: 100px;
    max-height: 100px;
    border: 1px solid grey;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .detail-logo {
        max-height: 90px;
    }
    .school-logo {
        max-width: 90px;
        max-height: 90px;
    }
}

@media (max-width: 576px) {
    .detail-logo {
        max-height: 80px;
    }
    .heading {
        font-size: 20px;
    }
    .school-logo {
        max-width: 80px;
        max-height: 80px;
    }
}

.card-title {
    margin: 0;
}
.card-title a {
    color: #333;
    text-decoration: none;
}
.card-title a:hover {
    text-decoration: underline;
}
