html {
  font-size: 14px;
}

/* Product card modern styles */
.card.product-card {
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(20, 24, 46, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.card.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(20, 24, 46, 0.12);
}
.card.product-card .card-body { padding: 1.25rem; }
.card.product-card .card-title { font-weight: 700; font-size: 1.05rem; }
.card.product-card .card-text { color: #6c757d; }
.product-price { color: #16a34a; font-weight: 800; font-size: 1.05rem; }

/* Modern Add to Cart button (gradient, rounded, shadow, hover) */
.btn.btn-add-cart {
  background: linear-gradient(90deg,#1e90ff 0%, #7b3fe4 100%) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.45rem 0.9rem !important;
  box-shadow: 0 6px 18px rgba(123,63,228,0.18) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.btn.btn-add-cart:focus { outline: none; box-shadow: 0 0 0 0.2rem rgba(123,63,228,0.15) !important; }
.btn.btn-add-cart:hover {
  transform: scale(1.03) !important;
  filter: saturate(1.05) drop-shadow(0 8px 28px rgba(123,63,228,0.18)) !important;
}

/* ensure consistent small variant */
.btn-add-cart.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.9rem; }

/* Advantages (features) section */
.advantages { background: linear-gradient(90deg,#f8fbff,#fff); padding: 3rem 0; }
.adv-card { background: #fff; border-radius: .8rem; box-shadow: 0 8px 28px rgba(20,24,46,0.04); padding: 1.25rem; text-align: center; }
.adv-icon { font-size: 2.25rem; color: #0d6efd; background: linear-gradient(90deg,#e7f0ff,#f3e9ff); width:64px; height:64px; display:inline-flex; align-items:center; justify-content:center; border-radius:12px; margin-bottom: .75rem; }
.adv-title { font-weight:700; margin-bottom:.25rem; }
.adv-desc { color: #6c757d; font-size: .95rem; }

@media (max-width: 768px) {
  .advantages { padding: 2rem 0; }
  .adv-icon { width:56px; height:56px; font-size:1.65rem; }
}

/* Uniform product image sizing and responsive card grid */
.card.product-card img.card-img-top,
.card .card-img-top,
.product-img {
  width: 100%;
  height: 180px !important; /* uniform smaller neat size */
  object-fit: cover !important;
  object-position: center !important;
  border-top-left-radius: 0.8rem !important;
  border-top-right-radius: 0.8rem !important;
}

@media (min-width: 1200px) {
  /* slightly larger images on wide screens */
  .product-card img.card-img-top,
  .card .card-img-top,
  .product-img { height: 200px; }
}

@media (max-width: 576px) {
  .product-card img.card-img-top,
  .card .card-img-top,
  .product-img { height: 140px; }
  .product-card .card-title { font-size: 1rem; }
}

/* Apply add-to-cart visual to any element with .btn-add-cart across site */
.btn-add-cart i { margin-right: .35rem; }

/* Advantages section richer background */
.advantages { background: linear-gradient(180deg,#fbfcff,#ffffff); background-image: radial-gradient(ellipse at 10% 10%, rgba(123,63,228,0.03) 0%, transparent 20%), radial-gradient(ellipse at 90% 90%, rgba(30,144,255,0.02) 0%, transparent 18%); }
.adv-card { transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease; }
.adv-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,24,46,0.08); border-color: rgba(123,63,228,0.06); }
.adv-card .adv-title { color: #0f172a; }
.adv-card .adv-desc { color: #58606b; }

/* Ensure consistent spacing inside product lists */
.product-list .col-md-4 { display:flex; }
.product-list .product-card { flex:1; display:flex; flex-direction:column; }
.product-card .card-body { display:flex; flex-direction:column; }
.product-card .mt-auto { margin-top: auto !important; }

/* Delivery limitation/info card for perishables */
.delivery-limited-card {
  background: linear-gradient(90deg,#eef8ff,#f7fbff);
  border-radius: .75rem;
  padding: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.08);
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #075985;
}
.delivery-limited-card .icon {
  width:48px; height:48px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; background: linear-gradient(180deg,#e9f7ff,#eef6ff); color:#0369a1; font-size:1.4rem;
}
.delivery-limited-card .text { font-size: .95rem; }
.delivery-limited-card .text .title { font-weight:700; margin-bottom: .2rem; }

/* WhatsApp confirmation note */
.whatsapp-note { display:flex; gap:.6rem; align-items:center; color:#14532d; background:#ecfdf5; padding:.6rem .9rem; border-radius:.5rem; border:1px solid rgba(16,185,129,0.08); }
.whatsapp-note i { font-size:1.15rem; }

/* Product image disclaimer */
.image-disclaimer { font-size:0.85rem; color:#6c757d; font-style:italic; margin-top:.45rem; display:flex; gap:.4rem; align-items:center; }
.image-disclaimer i { color:#6c757d; }

@media (max-width: 576px) {
  .delivery-limited-card { flex-direction: row; gap:.5rem; }
}

/* Checkout section headers and spacing */
.section-header {
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
  border-radius: 0.5rem;
  margin-bottom: 0.6rem;
}

.section-spacing { margin-top: 1.25rem; margin-bottom: 1.25rem; }

/* Form label alignment and spacing (labels above inputs) */
.form-label { display:block; margin-bottom: .5rem; font-weight:600; }
.form-control { padding: .55rem .75rem; }

/* Primary CTA prominent style */
.btn-primary-cta {
  background: linear-gradient(90deg,#0d6efd,#6610f2);
  color: #fff;
  border: 0;
  padding: .75rem 1.25rem;
  font-size: 1.05rem;
  font-weight:700;
  border-radius: .6rem;
  box-shadow: 0 8px 28px rgba(13,110,253,0.18);
}
.btn-primary-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(13,110,253,0.22); }

/* Ensure responsive adjustments for checkout layout */
@media (max-width: 576px) {
  .section-header { font-size: 1.05rem; padding: .5rem; }
  .btn-primary-cta { width: 100%; }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Navbar improvements */
.navbar-brand { font-weight:700; font-size:1.35rem; letter-spacing: .2px; }
.navbar-nav .nav-link { padding: .5rem .8rem; color: rgba(0,0,0,.75); }
.navbar-nav .nav-link:hover { color: rgba(0,0,0,.95); background: rgba(0,0,0,.02); border-radius: .5rem; }
.navbar { padding-top: .6rem; padding-bottom: .6rem; }

/* Carousel caption & image fixes */
.carousel-inner img { width:100%; height:auto; max-height:70vh; object-fit:contain; object-position:center; }
.carousel-img { width:100%; height:auto; max-height:70vh; object-fit:contain; object-position:center; }
.carousel-caption { z-index: 20; left:6%; right:auto; bottom: 18%; text-align:left; }
.carousel-caption .caption-box { background: rgba(33,37,41,0.65); backdrop-filter: blur(4px); padding: 1rem 1.25rem; border-radius: .6rem; display:inline-block; }
.carousel-caption h1, .carousel-caption p { color: #fff; }
.carousel-caption h1 { font-weight:700; font-size:2.5rem; }
.carousel-caption p.lead { font-size:1.05rem; opacity: .95; }

@media (max-width: 992px) {
  .carousel-inner img { max-height: 50vh; }
  .carousel-img { max-height: 50vh; }
}

@media (max-width: 768px) {
  .carousel-inner img { max-height: 40vh; }
  .carousel-img { max-height: 40vh; }
  .carousel-caption { bottom: 10%; left: 4%; right: 4%; }
  .carousel-caption h1 { font-size:1.5rem; }
}

/* Custom navbar theme */
.bg-brand { background: linear-gradient(180deg,#007bff,#0069d9) !important; }
.navbar-dark .navbar-nav .nav-link { color: rgba(255,255,255,0.9); }
.navbar-dark .nav-link:hover { color: #28a745 !important; background: rgba(255,255,255,0.03); border-radius: .4rem; }
.navbar .nav-link.active { font-weight:700; color: #fff !important; }
.navbar { border-radius: .4rem; }
.navbar .badge { font-size: .65rem; }

/* Loyalty badge colors */
.loyalty-badge { padding: .35rem .6rem; border-radius: .5rem; font-weight:600; color:#fff; }
.loyalty-bronze { background: #b87333; }
.loyalty-silver { background: #c0c0c0; color:#000; }
.loyalty-gold { background: #d4af37; color:#000; }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.discount-highlight {
    color: #dc3545; /* Bootstrap danger red */
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}
.offer-ribbon {
    position: absolute;
    top: 10px;
    right: -20px;
    background: #dc3545;
    color: #fff;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: bold;
}


@keyframes splash {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .splash-icon {
        width: 60px;
        top: 5px;
        right: 5px;
    }
}
