/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global styles */
body {
    font-family: 'Poppins', sans-serif; /* Apply Poppins font globally */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    color: #647a67; /* Default text color */
}

/* Background for index.html */
body.index-page {
    background-image: url('../img/home.jpg');
    background-color: #020402; /* Black background for home page */
    color: #c5efcb; /* Light green text for home page */
}

/* Background for other pages */
body.other-page {
    background-image: url('../img/pages.jpg');
    background-color: #ffffff; /* White background for other pages */
    color: #1f241f; /* Dark green-gray text for other pages */
}

/* Header styles */
header {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    color: #c5efcb; /* Light green text */
    font-weight: bold;
}

header nav a {
    color: #c6dec6; /* Soft green for navigation links */
    text-decoration: none;
    font-weight: 500;
}

header nav a:hover {
    color: #b8d2b3; /* Slightly darker green on hover */
}

/* Footer styles */
footer {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    color: #758173; /* Muted green-gray text */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #FF7D29; /* Light green for headings */
    font-weight: bold;
}

/* Special bold font for home page headings */
body.index-page h1, body.index-page h2, body.index-page h3 {
    color: #FF7D29; /* Light green */
    font-weight: 700; /* Extra bold */
}

/* Product card styles */
.card-title {
    color:rgb(0, 0, 0); /* Soft green for product names */
    font-weight: 600;
}

.card-text {
    color:rgb(0, 0, 0); /* Dark green-gray for product prices */
    font-weight: 500;
}

/* Buttons */
.btn {
    background-color: #FFBF78; /* Dark green-gray */
    color: #ffffff; /* White text */
    border: none;
    text-transform: uppercase;
}

.btn:hover {
    background-color: #758173; /* Muted green-gray on hover */
    color: #ffffff;
}

/* Form inputs */
input, textarea {
    border: 1px solid #b8d2b3; /* Light green border */
    color: #1f241f; /* Dark green-gray text */
    background-color: #ffffff; /* White background */
}

input::placeholder, textarea::placeholder {
    color: #758173; /* Muted green-gray placeholder text */
}

input:focus, textarea:focus {
    border-color: #a9c5a0; /* Soft green border on focus */
    outline: none;
}

/* Hero section (home page) */
body.index-page .hero {
    text-align: center;
    color: #c5efcb; /* Light green text */
}

body.index-page .hero a {
    background-color: #647a67; /* Dark green-gray button */
    color: #ffffff; /* White text */
    font-weight: bold;
    border-radius: 50px;
    padding: 10px 20px;
    text-decoration: none;
}

body.index-page .hero a:hover {
    background-color: #758173; /* Muted green-gray on hover */
}

/* Contact form */
form button {
    background-color: #647a67; /* Dark green-gray button */
    color: #ffffff; /* White text */
    font-weight: bold;
}

form button:hover {
    background-color: #758173; /* Muted green-gray on hover */
}

/* Shorten Add to Cart buttons */
.add-to-cart {
  width: fit-content; /* Adjust width to fit the content */
  padding: 8px 20px; /* Add padding for better appearance */
  font-size: 14px; /* Reduce font size */
  margin: 0 auto; /* Center the button */
  display: block; /* Ensure the button is centered */
  border-radius: 25px; /* Rounded edges for a professional look */
  background-color: #FF7D29; /* Professional orange color */
  color: #ffffff; /* White text */
  text-transform: uppercase; /* Make text uppercase for emphasis */
  font-weight: bold; /* Bold text */
}

.add-to-cart:hover {
  background-color: #e66a1f; /* Slightly darker orange on hover */
  color: #ffffff; /* Keep text white */
}

/* Blink animation */
.blink {
  animation: blink-animation 1s steps(5, start) infinite; /* Infinite blinking */
  color: #FF7D29 !important; /* Change background color while blinking */
  color: #FF7D29 !important; /* Ensure text remains visible */
}

@keyframes blink-animation {
  50% {
    opacity: 0; /* Blinking effect */
  }
}
