
:root {
  --primary-color: #ffffff;
  --secondary-color: #ffffff;
  --text-color-primary: #333;
  --text-color-secondary: #777;
  --button-color: #000000;
  --button-text-color: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: var(--primary-color);  display: flex; justify-content: center; }
.wrapper { background-color: var(--primary-color, #333);width: 100%; max-width: 960px; }

header { display: flex; justify-content: space-between; align-items: center; padding: 16px; }
header a { color: var(--text-color-primary);text-decoration: none;  font-weight: bold; }

#userGreeting {color: var(--text-color-primary); font-size: 0.9rem; display: flex; gap: 8px; align-items: center; }
.site-logo{height: 120px;}
.title {  color: var(--text-color-primary);text-align: center; margin: 24px 0 8px; font-size: 1.2rem;}
.main-title { color: var(--text-color-primary);text-align: center; font-size: 2rem; margin-bottom: 8px; }
.subtitle { color: var(--text-color-primary); text-align: center;  margin-bottom: 24px; }

.categories {display: flex;gap: 12px;padding: 0 16px 24px;overflow-x: auto;scroll-snap-type: x mandatory;-webkit-overflow-scrolling: touch;}
.category-card{background:#fff;border-radius:8px;overflow:hidden;cursor:pointer;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,0.32);transition:transform .2s;flex:0 0 auto;scroll-snap-align:start}
.categories::-webkit-scrollbar {height: 6px;}
.categories::-webkit-scrollbar-thumb {background: rgba(192, 189, 189, 0.2);border-radius: 3px;}
.category-card:hover { transform: translateY(-4px); }
.category-card img { width: 200px;height:200px; object-fit:cover;background: #070707;}
.category-card span {color: var(--text-color-secondary); display: block; padding: 8px; font-weight: 500; }

.products { padding: 0 16px; display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; margin-bottom: 100px; }
.product-card {  position: relative;   height: 100%; display: flex;  flex-direction: column; justify-content: space-between; /* optional but safe */background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.product-card img { width: 100%; height: 150px; object-fit: contain; padding: 10px; }
.product-info {text-wrap: balance;text-align: center;flex-grow: 1;
  padding: 10px;
  text-align: center;
  text-wrap: balance;}
.product-info h4 { color: var(--text-color-secondary, #555);font-size: 0.9rem; }
.product-info p { color: var(--text-color-secondary, #555);font-size: 0.9rem; width: 100%; }
.price-tag {  color: var(--text-color-secondary, #555);font-weight: bold; margin-top: 4px; }
.price-tax { font-size: 14px !important; color: var(--text-color-secondary, #555);margin-top: 4px; }
.qty-buttons {  right: 4px; bottom: 4px; display: flex; justify-content: center;  gap: 4px; }
.qty-buttons button { 
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: rgba(45,106,79,0.85);color: var(--button-text-color); width: 40px; height: 40px; border: none; font-size: 1.2rem; cursor: pointer; }
.qty-section {
  margin-top: auto;
  padding: 10px;
}

.footer { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 960px; background: #fff; border-top: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.footer .summary { color: var(--text-color-secondary); text-align: center;  font-size: 1.6rem; }
.footer button { background:  var(--primary-color);color: var(--secondary-color); border: none; padding: 10px 24px; border-radius: 8px; font-size: 1rem; font-weight: bold; box-shadow: 0 4px 8px rgba(0,0,0,0.15); cursor: pointer; transition: all 0.3s ease; }
.footer button:hover:not(:disabled) { transform: translateY(-2px); }
.footer button:disabled { background: #ccc; cursor: not-allowed; }


.modal-footer button { background:  var(--primary-color);color: var(--secondary-color); border: none; padding: 10px 24px; border-radius: 8px; font-size: 0.8rem; font-weight: bold; box-shadow: 0 4px 8px rgba(0,0,0,0.15); cursor: pointer; transition: all 0.3s ease; }
.modal-footer button:hover:not(:disabled) { transform: translateY(-2px); }
.modal-footer button:disabled { background: #ccc; cursor: not-allowed; }

@media (max-width: 600px) {
  .footer { flex-direction: unset; gap: 8px; }
  .products { grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); }
  .footer .summary { color: var(--text-color-secondary); text-align: center;  font-size: 1rem; }
  .footer button { font-size: 0.8rem; }
}
.stock-badge {position: absolute;top: 0px;left: 0px;background-color: #dc3545;color: white;padding: 5px 10px;font-size: 0.75rem;font-weight: 600;z-index: 2;box-shadow: 0 2px 6px rgba(0,0,0,0.2);text-transform: uppercase;border-bottom-right-radius:10px}

#bannerCarousel .carousel-item {
  height: 350px; 
  object-fit: cover;
}
#bannerCarousel .carousel-item img {
  height: 350px; 
  object-fit: cover;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
  #bannerCarousel .carousel-item {
    height: 250px; 
    object-fit: cover;
  }
  #bannerCarousel .carousel-item img {
    height: 250px; 
    object-fit: cover;
  }
  .main-title { font-size: 1.25rem; }

  .category-card img{
    height: 100px; /* Adjusted height for mobile */
    width: 100px; /* Adjusted width for mobile */
  }
  .site-logo{height: 60px;}
  .subtitle{
    font-size: 0.8rem;
  }
}
