/* Import a premium-looking font */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto:wght@300;400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #212529;
}

h1, h2, h3, h4, h5, h6, .display-4 {
    font-family: 'Playfair Display', serif;
}

.navbar {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
}

.product-card .card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.btn-outline-light {
    border-color: #555;
    color: #ccc;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #121212;
    border-color: #fff;
}

.category-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

.category-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.home-banner {
    background-image: url('/images/banners/home-banner.jpg');
    height: 500px;
    background-size: cover;
    background-position: center;
}

.home-banner-mask {
    background-color: rgba(0, 0, 0, 0.6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- New Homepage Styles from Old EJS --- */

/* Carousel */
.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Horizontal Scrolling Product Sections */
.scrolling-wrapper {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.scrolling-wrapper::-webkit-scrollbar {
  display: none; /* Hide scrollbar for a cleaner look */
}

.scroll-card {
  flex: 0 0 auto; /* Prevent cards from shrinking */
  scroll-snap-align: start;
  width: 45%; /* Two cards visible on mobile */
  border: none;
  border-radius: 15px;
  overflow: hidden;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

@media (min-width: 768px) {
  .scroll-card {
    width: 22%; /* Adjust for larger screens */
  }
}

.scroll-card-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.section-header {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.view-all-link {
  font-size: 0.9rem;
  text-decoration: underline;
  color: #212529;
}

/* Feature Icons Section */
.feature-icon {
    width: 70px;
    height: 70px;
    color: #212529;
}

/* Category Grid */
.category-grid-img {
    border-radius: 15px;
    transition: transform 0.3s ease;
}
.category-grid-img:hover {
    transform: scale(1.05);
}

/* New Navbar Centering Styles */
.abs-center-x {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.badge-sm {
    font-size: 0.6em;
    padding: 0.25em 0.4em;
}

.offcanvas .list-group-item-action:hover,
.offcanvas .list-group-item-action:focus {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.footer-links a {
  text-decoration: none; /* Removes underline */
  padding-bottom: 5px;   /* Adds padding below each link */
  display: inline-block;  /* Ensures padding works properly */
}

/* --- Styles from new navbar.ejs --- */

/* Marquee Banner */
.marquee {
  height: 30px;
  background-color: #000;
  color: #fff;
  overflow: hidden;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 15s linear infinite;
}

.marquee-content span {
  padding: 0 2rem;
}

@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Custom Hover for Nav Links */
.custom-hover {
  position: relative;
  text-decoration: none;
}

.custom-hover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background-color: #212529;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease-in-out;
}

.custom-hover:hover::after {
  transform: scaleX(1);
}

/* Sticky WhatsApp Button */
.whatsapp-sticky {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1030;
}

/* --- New Product Detail Page Styles --- */
.product-detail-image {
    width: 100%;
    height: auto;
    cursor: zoom-in;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.product-title {
    word-wrap: break-word;
    letter-spacing: 2px;
}

.product-price {
    color: #C21010;
}

.quantity-input {
    text-align: center;
    width: 80px;
}

.btn-add-to-cart {
    border-radius: 70px;
    white-space: nowrap;
}

.btn-buy-now {
    border-radius: 70px;
    white-space: nowrap;
}

/* --- Cart Page Order Summary Fix --- */
.card .list-group-item {
    color: #212529; /* Use the default dark text color */
}

/* --- Checkout Page Styles --- */
.payment-option {
    border: 1px solid #495057;
    border-radius: .375rem;
    padding: .75rem 1.25rem .75rem 2.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.payment-option:hover {
    border-color: #212529;
}

.payment-option input:checked {
    /* Custom style for checked radio button */
    background-color: #212529;
    border-color: #212529;
}

/* Add a prominent border when a payment option is selected */
.payment-option.selected {
    border: 2px solid #212529;
}

/* Custom focus style for form inputs */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

/* --- New Product Card Styles --- */
.panel {
    border: none;
    box-shadow: none;
    background-color: transparent; /* Let parent control background */
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    aspect-ratio: 3 / 4; /* Make the image taller */
    object-fit: cover;
    border-radius: 4px 4px 0 0;
}

.product-card .pro-img-box {
    position: relative;
    z-index: 1; /* Ensure this container (and its button) is above the panel-body */
}

.adtocart {
    background: #C21010; /* Using your site's red color */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    display: inline-block;
    text-align: center;
    border: 3px solid #fff;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%); /* Move button down by 50% of its height */
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
}

.adtocart:hover {
    transform: translate(-50%, 50%) scale(1.1); /* Corrected hover transform to prevent jumping */
}

.adtocart i {
    color: #fff;
    font-size: 20px;
    line-height: 38px; /* Adjusted for new size: height (44) - 2*border (6) */
}

.pro-title {
    color: #212529; /* Set a default visible color */
    text-decoration: none;
    display: inline-block;
    margin-top: 10px; /* Reduce space above the title */
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.pro-title:hover {
    color: #C21010;
}

.product-card .price {
    color: #C21010;
    font-size: 1.1rem;
    font-weight: bold;
}

.product-card .panel-body {
    /* Add padding to the top to make space for the overlapping button */
    padding-top: 35px; /* Reduce top padding */
    padding-bottom: 15px; /* Control bottom padding */
}

.amount-old {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.price-container {
    margin-top: 8px; /* Reduce space between title and price */
}

/* --- Homepage Horizontal Scroller Styles --- */
.mobile-card-30vw {
  width: 22%; /* Default for desktop: approx 4.5 cards visible */
}

@media (max-width: 992px) {
  .mobile-card-30vw {
    width: 30%; /* approx 3 cards visible on tablets */
  }
}

@media (max-width: 576px) {
  .mobile-card-30vw {
    width: 45%; /* approx 2 cards visible on mobile */
  }
}

.scroll-card {
  border-radius: 12px;
  overflow: hidden;
}


 #suggestions-container .list-group-item {
        color: #212529; /* Use a default dark text color */
    }