/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

header h1 {
    margin-bottom: 10px;
    color: #004080; /* Changed from #ff5500 to Petrol Blue */
    font-size: 1.8em;
}

/* Product List Styles */
.product-list {
    list-style: none;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-name {
    font-weight: 500;
    flex-grow: 1;
    margin-right: 15px;
}

/* Product buttons container */
.product-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Base button styling */
.shopee-button, .amazon-button {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.shopee-button {
    background-color: #ff5500;
    color: white;
}

.amazon-button {
    background-color: #232f3e;
    color: white;
}

.shopee-button:hover {
    background-color: #e64d00;
    transform: translateY(-2px);
}

.amazon-button:hover {
    background-color: #131a22;
    transform: translateY(-2px);
}

/* Product List Heading */
.products-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Footer Styles */
footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

footer a {
    color: #E07A5F; /* Changed from #ff5500 to Soft Coral */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Navigation Styles */
.main-nav {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
}

.main-nav li {
    flex: 1;
    text-align: center;
}

/* Navigation item dividers - add this to the existing navigation styles */
.main-nav li:not(:last-child) {
    border-right: 1px solid #ddd;
}

.main-nav a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 15px 0;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.main-nav a:hover {
    background-color: #004080; /* Changed from #ff5500 to Petrol Blue */
    color: white;
    border-radius: 0; /* Remove border radius from all sides */
}

/* Add border radius only to the outer corners */
.main-nav li:first-child a:hover {
    border-radius: 8px 0 0 8px;
}

.main-nav li:last-child a:hover {
    border-radius: 0 8px 8px 0;
}

/* Welcome Message Styles */
.welcome-message {
    background-color: #f8f9fa; /* Changed from #fff8f5 to match Off-White */
    border-left: 4px solid #E07A5F; /* Changed from #ff5500 to Soft Coral */
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
}

.welcome-message p {
    margin: 0;
}

.welcome-message strong {
    color: #004080; /* Changed from #ff5500 to Petrol Blue */
}

/* Filter Button Styles */
.filter-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center; /* Add this line to center the buttons */
}

.filter-button {
    padding: 10px 20px;
    background-color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    color: #333;
    font-size: 0.95rem;
}

.filter-button:hover {
    background-color: #f8f9fa; /* Changed slightly for consistency */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 64, 128, 0.12); /* Updated shadow color */
}

.filter-button.active {
    background-color: #004080; /* Changed from #ff5500 to Petrol Blue */
    color: white;
    box-shadow: 0 4px 8px rgba(0, 64, 128, 0.3); /* Updated shadow color */
}

/* List Container Styles */
.list-container {
    margin-top: 20px;
}

/* Category Styles */
.category-item {
    margin-bottom: 30px;
}

.category-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: #004080; /* Changed from #ff5500 to Petrol Blue */
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #E07A5F; /* Changed from #ff5500 to Soft Coral */
}

.category-products {
    list-style: none;
    padding-left: 0;
}

/* Category Caption Styles */
.category-caption {
    font-size: 0.9rem;
    color: #555;
    margin: -10px 0 15px 0;
    line-height: 1.4;
    padding-left: 2px;
}

/* Search Box Styles */
.search-containers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: #ff5500;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.2);
}

.search-button {
  padding: 8px 15px;
  background-color: #004080; /* Changed from #ff5500 to Petrol Blue */
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
}

.search-button:hover {
  background-color: #003366; /* Darker version of Petrol Blue */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 64, 128, 0.3); /* Updated shadow color */
}

/* About Page Styles */
.about-container {
  max-width: 700px;
  margin: 0 auto;
}

.about-content {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  line-height: 1.7;
}

.about-content p {
  margin-bottom: 18px;
}

.about-content h2 {
  color: #004080;
  margin: 25px 0 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #E07A5F;
}

.about-list {
  margin-left: 20px;
  margin-bottom: 20px;
}

.about-list li {
  margin-bottom: 10px;
}

.about-closing {
  font-weight: 500;
  margin-top: 25px;
}

.about-signature {
  text-align: right;
  font-style: italic;
  color: #004080;
  margin-top: 5px;
}

/* Affiliate notice styling */
.affiliate-notice {
  font-size: 0.8rem;
  color: #777;
  margin-top: 10px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .product-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-name {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .shopee-button {
        align-self: stretch;
        text-align: center;
    }
    
    .main-nav a {
        padding: 12px 5px;
        font-size: 0.9rem;
        border-radius: 0;
    }
    
    .main-nav li:first-child a {
        border-radius: 8px 0 0 8px;
    }
    
    .main-nav li:last-child a {
        border-radius: 0 8px 8px 0;
    }
    
    .search-box {
        flex-direction: column;
    }
}