/* style.css - All styles */

/* base reset – 5px rounding */
* {
  border-radius: 0 !important; 
}


.filter-chip,
.product-card,
.add-btn,
.nav-icon-btn,
.sticky-category-btn,
.cart-sticky-btn,
.img-square,
.img-square img,
.quantity-btn,
.modal-content,
.category-panel,
.no-image-text {
  border-radius: 5px !important;
}

body {
  background: #f8f9fa;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  margin: 5px;
  padding-bottom: 0;
}

.alertinfoo {
color: #FFFFFF;
  background: radial-gradient(circle at 30% 30%, #0367CD, #02458f);
}


/* navbar */
.navbar {
  margin: -5px;
  background: radial-gradient(circle at 30% 30%, #0367CD, #02458f);
  backdrop-filter: blur(8px);
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar-brand {
  font-weight: 620;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
//  background: linear-gradient(145deg, #B2D6FD, #2A8CF7);
  background:  #B2D6FD;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-icon-btn {
  background: #0D6EFD;
  padding: 0.5rem 1.4rem;
  font-weight: 500;
  color: #FFFFFF;
  transition: 0.15s;
  border-radius: 5px !important;
  justify-content: center;
  margin-right: 15px;
  border: none; /* Add this to remove any default border */
}

/* Add hover state */
.nav-icon-btn:hover {
  background: #0b5ed7; /* Slightly darker blue on hover */
  color: #FFFFFF;
  cursor: pointer;
}

/* Optional: Add active state */
.nav-icon-btn:active {
  background: #0a58ca; /* Even darker when clicked */
  transform: translateY(1px);
}

/* STICKY BUTTONS CONTAINER */
.sticky-buttons-container {
  position: sticky;
  top: 10px;
  z-index: 1050;
  margin: 0.5rem 0 0 0;
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  background: transparent;
}

/* Categories Button in sticky section - BLUE */
.sticky-category-btn {
  background: linear-gradient(135deg, #3a7bd5, #2d5f9e); /* Blue gradient */
  border: none;
  color: white;
  padding: 0.5rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 5px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.15s ease;
  box-shadow: 0 6px 14px rgba(45, 95, 158, 0.3);
  flex: 1;
}

.sticky-category-btn:hover {
  background: linear-gradient(135deg, #2d5f9e, #1e4070);
  box-shadow: 0 8px 16px rgba(45, 95, 158, 0.4);
}

.sticky-category-btn i {
  font-size: 1.1rem;
}

/* GREEN GRADIENT cart button */
.cart-sticky-btn {
  background: linear-gradient(135deg, #ffffff, #75dd75);
  border: none;
  padding: 0.5rem 1.4rem;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 5px !important;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(46, 125, 50, 0.3);
  transition: 0.15s ease;
  flex: 1;
}

.cart-sticky-btn:hover {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  box-shadow: 0 8px 16px rgba(46, 125, 50, 0.4);
}

.cart-total-amount {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.2rem 0.7rem;
  border-radius: 5px !important;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
}

/* Remove old category toggle styles */
.category-toggle-container,
.category-toggle-btn {
  display: none;
}

/* filter chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.filter-chip {
  background: #2d3748;
  border: 1px solid #1e2a3a;
  padding: 0.55rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: 0.1s;
  border-radius: 5px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-chip:hover {
  background: #3f4a5e;
}

.filter-chip.active {
  background: #29a529 !important;
  border-color: #1e7a1e;
}

/* Category Panel */
.category-panel {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 5px !important;
  padding: 1rem;
  margin-top: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  width: 100%;
  position: relative;
  z-index: 1040;
}

/* product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
  }
}

.product-card {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  transition: none;
  border-radius: 5px !important;
}

.img-square {
  width: 100%;
  background: #f8f9fa;
  border: 1px solid #e9edf2;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 5px !important;
  overflow: hidden;
  position: relative;
}

.img-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f8f9fa;
  border-radius: 5px !important;
}

/* No Image Available text */
.no-image-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 10px;
  background: #f8f9fa;
}

.product-name {
  font-size: 0.98rem;
  font-weight: 570;
  line-height: 1.35;
  color: #1e2b3a;
  margin: 4px 0 8px 0;
  flex: 0 0 auto;
  min-height: 2.7rem;
}

/* two-line prices */
.price-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px 0;
  background: #f8f9fa;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 5px !important;
}

.price-row-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.price-label-line {
  font-weight: 600;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
}

.price-value-line {
  font-weight: 670;
  color: #2b6b4a;
  font-size: 1rem;
}

.price-value-line::before {
  content: '£';
  font-size: 0.8rem;
  margin-right: 2px;
  font-weight: 600;
  color: #235c3e;
}

/* add to cart button */
.add-btn {
  background: #ff8c1a;
  border: none;
  padding: 8px 4px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.9rem;
  margin-top: auto;
  border-radius: 5px !important;
  box-shadow: 0 3px 8px rgba(255, 140, 26, 0.25);
  transition: 0.1s ease;
  cursor: pointer;
}

.add-btn i {
  font-size: 1rem;
  color: white;
}

.add-btn:hover {
  background: #e67e17;
}

/* Out of stock button - light grey */
.add-btn.out-of-stock {
  background: #e0e0e0 !important;
  color: #666666 !important;
  cursor: not-allowed !important;
  opacity: 0.8 !important;
  box-shadow: none !important;
  border: 1px solid #cccccc !important;
}

.add-btn.out-of-stock:hover {
  background: #d0d0d0 !important;
  transform: none !important;
  box-shadow: none !important;
}

.add-btn.out-of-stock i {
  color: #888888 !important;
}

.add-btn:disabled {
  pointer-events: none !important;
}

/* Quantity Modal Styles */
.quantity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
}

.quantity-btn {
  background: #0150E2;
  //background: radial-gradient(circle at 30% 30%, #2C73F5, #093E9F);
  border: 1px solid white;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 15px 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 5px !important;
  width: 100%;
  text-align: center;
}

.quantity-btn:hover {
  background: #F2F4F6;
color: #000000;
 // border-color: #000000;
 // color: white;
  transform: scale(1.05);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.modal-content {
  background: linear-gradient(135deg, #2C73F5, #093E9F);
  color: white;
  border: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.modal-header {
  background: #f8f9fa;
  border-bottom: 2px solid #2d3748;
  padding: 1rem 1.5rem;
}

.modal-title {
  color: #2d3748;
  font-weight: 600;
  font-size: 1.3rem;
}

.modal-body {
  padding: 1.5rem;
}

/* main content */
main {
  width: 100%;
  margin-top: 1rem;
}

/* Animation */
.collapse {
  transition: all 0.3s ease;
  width: 100%;
}

.collapse:not(.show) {
  display: none;
}

/* mobile block layout */
@media (max-width: 767px) {
  .desktop-button-group {
    display: none;
  }

  .mobile-account-group {
    display: block;
  }
  
  .sticky-buttons-container {
    flex-direction: column;
    gap: 5px;
  }
  
  .sticky-category-btn,
  .cart-sticky-btn {
    width: 100%;
    justify-content: center;
  }
  
  .quantity-btn {
   padding: 12px 5px;
    font-size: 1rem;
  }
  
  .category-panel {
    margin-top: 5px;
  }
}

@media (min-width: 768px) {
  .mobile-account-group {
    display: none;
  }
  
  .sticky-buttons-container {
    flex-direction: row;
  }
  
  .sticky-category-btn,
  .cart-sticky-btn {
    flex: 1;
  }
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

/* Add/update these styles in your style.css */

/* Sticky Header Container */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: #f8f9fa;
  padding: 0 0 0 0;
  width: 100%;
}

/* STICKY BUTTONS CONTAINER */
.sticky-buttons-container {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  background: #f8f9fa;
}

/* Categories Button in sticky section - BLUE */
.sticky-category-btn {
  background: linear-gradient(135deg, #3a7bd5, #2d5f9e);
  border: none;
  color: white;
  padding: 0.5rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 5px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.15s ease;
  box-shadow: 0 6px 14px rgba(45, 95, 158, 0.3);
  flex: 1;
}

.sticky-category-btn:hover {
  background: linear-gradient(135deg, #2d5f9e, #1e4070);
  box-shadow: 0 8px 16px rgba(45, 95, 158, 0.4);
}

.sticky-category-btn i {
  font-size: 1.1rem;
}

/* BLUE GRADIENT cart button */
.cart-sticky-btn {
  background: radial-gradient(circle at 30% 30%, #0367CD, #02458f);
  border: none;
  padding: 0.5rem 1.4rem;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 5px !important;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(3, 103, 205, 0.3);
  transition: 0.15s ease;
  flex: 1;
}

.cart-sticky-btn:hover {
  //background: linear-gradient(135deg, #2e7d32, #1b5e20);
  box-shadow: 0 8px 16px rgba(46, 125, 50, 0.4);
}

.cart-total-amount {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.2rem 0.7rem;
  border-radius: 5px !important;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
}

/* Category Panel */
.category-panel {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 5px !important;
  padding: 1rem;
  margin-top: 10px;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  width: 100%;
}

/* Animation */
.collapse {
  transition: all 0.3s ease;
  width: 100%;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .sticky-buttons-container {
    flex-direction: column;
    gap: 5px;
  }
  
  .sticky-category-btn,
  .cart-sticky-btn {
    width: 100%;
    justify-content: center;
  }
  
  .category-panel {
    margin-top: 5px;
  }
}

@media (min-width: 768px) {
  .sticky-buttons-container {
    flex-direction: row;
  }
  
  .sticky-category-btn,
  .cart-sticky-btn {
    flex: 1;
  }
}

/* Remove old styles */
.category-toggle-container,
.category-toggle-btn,
.cart-sticky-container {
  display: none;
}

/* Update cart button styles for link */
.cart-sticky-btn {
  background: linear-gradient(135deg, #43a047, #2e7d32);
  border: none;
  padding: 0.5rem 1.4rem;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 5px !important;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(46, 125, 50, 0.3);
  transition: 0.15s ease;
  flex: 1;
  text-decoration: none; /* Remove underline from link */
}

.cart-sticky-btn:hover {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  box-shadow: 0 8px 16px rgba(46, 125, 50, 0.4);
  color: white;
  text-decoration: none;
}

/* ===== CART PAGE BUTTON STYLES - FIXED ===== */
/* Remove hover effects from outline buttons */
.btn-outline-dark.no-hover {
    background-color: #999999 !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}

.btn-outline-dark.no-hover:hover,
.btn-outline-dark.no-hover:focus,
.btn-outline-dark.no-hover:active {
    background-color: #290661 !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
}

/* When button is selected/active */
.btn-dark.active {
    background-color: #3366cc !important;
    border-color: #1a0438 !important;
    color: #ffffff !important;
}

/* Ensure both buttons have the same appearance when not selected */
.price-type-btn.btn-outline-dark {
    border-color: #6c757d;
    color: #ffffff;
    background-color: #290661;
}

/* Override Bootstrap's default hover for these buttons */
.btn-outline-dark:hover {
    background-color: #290661 !important;
    color: #ffffff !important;
}

/* Style for the selected state */
.btn-dark {
    background-color: #1a0438 !important;
    border-color: #1a0438 !important;
    color: #ffffff !important;
}

/* Ensure the savings badge stands out */
.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}







/* Cart page image styles - square images */
.cart-image-cell {
    width: 50px;
    min-width: 40px;
    padding: 5px !important;
}

.cart-image-container {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 5px !important;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.cart-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* For placeholder images or images that fail to load */
.cart-image[src*="placeholder.jpg"] {
    object-fit: contain;
    padding: 5px;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .cart-image-container {
        width: 35px;
        height: 35px;
    }
    
    .cart-image-cell {
        width: 40px;
        min-width: 35px;
    }
}