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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: #333;
}

.breadcrumb-nav {
    flex-grow: 1;
    margin-left: 30px;
}

.breadcrumb {
    list-style: none;
    display: flex;
    padding: 8px 15px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.breadcrumb li {
    margin-right: 5px;
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 5px;
    color: #666;
}

.breadcrumb a {
    text-decoration: none;
    color: #0066cc;
}

.breadcrumb span {
    color: #666;
}

.cart-icon {
    position: relative;
}

.cart-toggle {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.shopping-cart {
   display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 500px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.shopping-cart .cart-items{
    display: block;
}

.cart-icon:hover .cart-toggle {
    background-color: #f0f0f0;
}

.cart-icon:hover .shopping-cart{
    display: block;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-details{
    display: flexbox;
    justify-content: space-between;
    margin-left: 40px;
    margin-right: 20px;
    font-size: 1.2rem;
    text-align: right;
}

.cart-number {
      width: 20%;
        padding: 8px;
        margin: 8px 0;
        display: inline-block;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
}

.category-section {
    margin: 30px 0;
    text-align: center;
}

.category-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.category-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.cat-btn.active {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.cat-btn:hover {
    border-color: #0066cc;
}

.admin-section {
    margin: 40px 0;
    text-align: left;
}

.products-section {
    margin: 40px 0;
    text-align: center;
}

.products-section h2 {
    margin-bottom: 25px;
    color: #333;
    text-align: left;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-category {
    display: inline-block;
    font-size: 0.8rem;
    color: #666;
    background-color: #f0f0f0;
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.product-title a:hover {
    color: #0066cc;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.product-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e53935;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #0055aa;
}

.product-card-details {
    display: inline-flex;
    position: relative;
    background-color: rgb(255, 255, 255);
    max-width: 1000px;
    margin-bottom: 40px;
    align-items: center;
    justify-content: center;
}

.product-image-details {
    position: relative;
    max-height: 600px;
    max-width: 600px;
    overflow: hidden;
    display: flexbox;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.product-image-details img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slide-image {
    display: none;
}

.product-info-details {
    padding: 20px;
    max-height: 600px;
    max-width: 400px;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.prev {
    left: 0%;
}

/* Position the "next button" to the right */
.next {
    right: 0%;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    font-size: 1.2rem;
    color: #333;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

.checkout-btn, .clear-btn, .remove-btn {
    width: 100%;
    padding: 15px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.clear-btn {
    width: 30%;
    padding: 5px;
    border-radius: 1px;
 }
 .remove-btn {
    width: 10%;
    padding: 3px;
    border-radius: 1px;
 }

.checkout-btn:hover, .clear-btn:hover{
    background-color: #45a049;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .breadcrumb-nav {
        margin-left: 0;
        width: 100%;
    }
    
    .products-grid {
        gap: 15px;
    }
    
    .product-card {
        width: 100%;
        max-width: 350px;
    }
    
    .shopping-cart {
        width: 100%;
        right: -85%;
        min-width: 300px;
    }
    /* Add a click indicator for mobile */
    .cart-icon::after {
        content: " (click to open cart)";
        font-size: 0.8rem;
        color: #666;
    }
}

@media (max-width: 480px) {
    .category-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cat-btn {
        width: 200px;
    }
}