/* 
  Samyang Food Store - E-commerce Stylesheet
*/

:root {
  --primary-red: #e11921;
  --dark-red: #b31219;
  --dark-bg: #111111;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-gray: #666666;
  --bg-light: #f8f9fa;
  --border-color: #eaeaea;
  --transition-smooth: all 0.3s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

/* --- MARQUEE --- */
.marquee-container {
  background-color: #ffe5e5;
  color: var(--primary-red);
  padding: 8px 0;
  font-weight: bold;
  font-size: 0.9rem;
  border-bottom: 1px solid #ffcccc;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* --- TOP BAR --- */
.top-bar {
  background-color: var(--primary-red);
  color: white;
  padding: 8px 5%;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- HEADER MIDDLE --- */
.header-middle {
  background-color: white;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.logo img {
  height: 60px;
  max-width: 100%;
}

.search-container {
  display: flex;
  flex: 1;
  max-width: 600px;
  margin: 0 40px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}
.search-container input {
  flex: 1;
  border: none;
  padding: 12px 15px;
  outline: none;
  width: 100%;
}
.search-container select {
  border: none;
  border-left: 1px solid var(--border-color);
  padding: 0 15px;
  background: white;
  outline: none;
  color: var(--text-gray);
  cursor: pointer;
}
.search-btn {
  background-color: var(--primary-red);
  color: white;
  border: none;
  padding: 0 25px;
  cursor: pointer;
  font-weight: bold;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 25px;
}
.icon-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.icon-group small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-gray);
  font-weight: normal;
}
.cart-icon {
  position: relative;
  font-size: 1.5rem;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--primary-red);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-red);
}

/* --- NAVIGATION --- */
.main-nav {
  background-color: white;
  padding: 0 5%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 99;
}
.nav-categories-btn {
  background-color: var(--primary-red);
  color: white;
  padding: 15px 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}
.category-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 250px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: none;
  z-index: 100;
  border-radius: 0 0 8px 8px;
}
.category-dropdown.active {
  display: block;
}
.category-dropdown a {
  display: block;
  padding: 15px 20px;
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}
.category-dropdown a:last-child {
  border-bottom: none;
}
.category-dropdown a:hover {
  background-color: var(--bg-light);
  color: var(--primary-red);
}
.main-nav ul {
  display: flex;
  margin-left: 30px;
  gap: 30px;
}
.main-nav ul li a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 0;
  display: inline-block;
  color: var(--text-dark);
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--primary-red);
}

/* Nav Dropdown */
.main-nav ul li.dropdown {
  position: relative;
}
.main-nav ul li.dropdown > a {
  cursor: pointer;
}
.main-nav ul li.dropdown:hover .dropdown-content {
  display: block;
}
.main-nav ul li .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 100;
  border-radius: 0 0 8px 8px;
}
.main-nav ul li .dropdown-content a {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}
.main-nav ul li .dropdown-content a:last-child {
  border-bottom: none;
}
.main-nav ul li .dropdown-content a:hover {
  background-color: var(--bg-light);
  color: var(--primary-red);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 500px;
  background-color: var(--dark-bg);
  display: flex;
  align-items: center;
  padding: 0 5%;
}
.hero-content {
  max-width: 500px;
  color: white;
  z-index: 2;
}
.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-content h1 span {
  color: var(--primary-red);
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #dddddd;
}
.hero-buttons {
  display: flex;
  gap: 15px;
}
.btn {
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  border: none;
  text-align: center;
}
.btn-primary {
  background-color: var(--primary-red);
  color: white;
  transition: var(--transition-smooth);
}
.btn-primary:hover {
  background-color: var(--dark-red);
}
.btn-outline {
  background-color: transparent;
  color: white;
  border: 1px solid white;
  transition: var(--transition-smooth);
}
.btn-outline:hover {
  background-color: white;
  color: var(--text-dark);
}

/* --- FEATURES BAR --- */
.features-bar {
  background-color: white;
  padding: 30px 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--border-color);
}
.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.feature-icon {
  font-size: 2rem;
  color: var(--primary-red);
}
.feature-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.feature-text p {
  font-size: 0.8rem;
  color: var(--text-gray);
}

/* --- SECTIONS --- */
.section-container {
  padding: 60px 5%;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-header h2 {
  font-size: 1.8rem;
}
.view-all {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- CATEGORY GRID --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.category-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.category-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
}
.category-card h4 {
  font-size: 0.9rem;
}

/* --- PRODUCT GRID (HOME) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.product-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  transition: transform 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.product-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}
.product-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
}
.product-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-red);
  margin-bottom: 10px;
}
.product-rating {
  font-size: 0.8rem;
  color: #ffb700;
  margin-bottom: 15px;
}
.product-rating span {
  color: var(--text-gray);
  margin-left: 5px;
}
/* Product Card Additions */
.badge-hot, .badge-new {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 8px;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 4px;
  z-index: 10;
}
.badge-hot { background-color: var(--primary-red); }
.badge-new { background-color: #28a745; }
.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* pushes to bottom of card */
}
.btn-add-cart {
  background-color: transparent;
  color: var(--primary-red);
  border: 1px solid var(--primary-red);
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-add-cart:hover {
  background-color: var(--primary-red);
  color: white;
}

/* --- PROMO BANNERS --- */
.promo-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}
.promo-card {
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}
.promo-dark {
  background-color: #1a1a1a;
  color: white;
}
.promo-light {
  background-color: #fcecd5;
}
.promo-content {
  max-width: 60%;
  z-index: 2;
}
.promo-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.promo-content p {
  margin-bottom: 25px;
  font-size: 0.95rem;
}

/* --- NEWSLETTER --- */
.newsletter {
  background-color: var(--primary-red);
  padding: 40px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  flex-wrap: wrap;
  gap: 20px;
}
.newsletter-text {
  display: flex;
  align-items: center;
  gap: 20px;
}
.newsletter-text h3 {
  font-size: 1.5rem;
}
.newsletter-text p {
  font-size: 0.9rem;
}
.newsletter-form {
  display: flex;
  width: 500px;
  max-width: 100%;
}
.newsletter-form input {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.newsletter-form button {
  background-color: var(--dark-bg);
  color: white;
  border: none;
  padding: 0 30px;
  border-radius: 0 4px 4px 0;
  font-weight: bold;
  cursor: pointer;
}

/* --- FOOTER --- */
footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding: 60px 5% 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-icon {
  width: 35px;
  height: 35px;
  border: 1px solid #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.social-icon:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
}
.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a:hover {
  color: var(--primary-red);
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ========================================= */
/* PAGES (CONTACT & POLICIES)                */
/* ========================================= */

.page-banner {
  background-color: #1a1a1a;
  background-position: center;
  background-size: cover;
  padding: 80px 5%;
  text-align: center;
  color: white;
  border-bottom: 5px solid var(--primary-red);
}
.banner-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* Contact Page Layout */
.contact-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
}
.contact-form-section {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.contact-form-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-red);
}
.contact-form-section > p {
  color: var(--text-gray);
  margin-bottom: 30px;
}
.modern-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  transition: var(--transition-smooth);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(225, 25, 33, 0.1);
}
.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Contact Info Cards */
.contact-info-section h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}
.info-card {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border-left: 4px solid var(--primary-red);
}
.info-icon {
  font-size: 2rem;
}
.info-details h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.info-details p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert { padding: 15px; border-radius: 4px; margin-bottom: 20px; }
.alert-success { background-color: #d4edda; color: #155724; }
.alert-error { background-color: #f8d7da; color: #721c24; }

/* Policy Page Layout */
.policy-layout {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
}
.policy-sidebar {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  align-self: start;
  position: sticky;
  top: 100px;
}
.policy-sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}
.policy-sidebar ul li {
  margin-bottom: 10px;
}
.policy-sidebar ul li a {
  display: block;
  padding: 10px 15px;
  border-radius: 6px;
  color: var(--text-gray);
  font-weight: 600;
}
.policy-sidebar ul li a:hover,
.policy-sidebar ul li a.active {
  background-color: var(--primary-red);
  color: white;
}
.policy-content {
  background: white;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.content-text h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--text-dark);
}
.content-text h2:first-child {
  margin-top: 0;
}
.content-text p, .content-text ul, .content-text ol {
  margin-bottom: 20px;
  color: var(--text-gray);
  line-height: 1.8;
}
.content-text ul, .content-text ol {
  padding-left: 20px;
}
.content-text li {
  margin-bottom: 10px;
}
.page-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 40px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* ========================================= */
/* CATALOG PAGE (PRODUCTS.PHP)               */
/* ========================================= */

.catalog-layout {
  max-width: 1400px;
  margin: 50px auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
.catalog-sidebar {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  align-self: start;
}
.filter-group {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 10px;
}
.filter-group h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}
.filter-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-gray);
}
.filter-list label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-list input[type="checkbox"] {
  accent-color: var(--primary-red);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.filter-list .count {
  font-size: 0.85rem;
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: 20px;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.catalog-toolbar p {
  color: var(--text-gray);
}
.sort-by label {
  margin-right: 10px;
  color: var(--text-gray);
}
.sort-by select {
  padding: 8px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
.catalog-grid {
  grid-template-columns: repeat(3, 1fr);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-dark);
  font-weight: 600;
}
.page-link.active, .page-link:hover {
  background-color: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
}
.page-link:last-child {
  width: auto;
  padding: 0 20px;
  border-radius: 20px;
}

/* ========================================= */
/* FAQ PAGE (BUYERS-GUIDE.PHP)               */
/* ========================================= */
.faq-category {
  margin-bottom: 50px;
}
.faq-category-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}
.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.faq-item.active {
  border-color: var(--primary-red);
  box-shadow: 0 4px 15px rgba(225, 25, 33, 0.1);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  outline: none;
  text-align: left;
}
.faq-item.active .faq-question {
  color: var(--primary-red);
}
.faq-icon {
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--text-gray);
  transition: var(--transition-smooth);
}
.faq-item.active .faq-icon {
  color: var(--primary-red);
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #fcfcfc;
}
.faq-answer p {
  padding: 0 20px 20px;
  color: var(--text-gray);
  margin: 0;
  line-height: 1.7;
}

/* ========================================= */
/* TOAST NOTIFICATION                        */
/* ========================================= */
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background-color: white;
  color: var(--text-dark);
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-left: 4px solid #28a745;
}
.toast.show {
  transform: translateX(0);
}
.toast-icon {
  font-size: 1.5rem;
}
.toast-message {
  font-size: 0.95rem;
}


/* ========================================= */
/* RESPONSIVE DESIGN (TABLETS & MOBILE)      */
/* ========================================= */

@media (max-width: 1200px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); } /* Home Grid */
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); } /* Catalog Grid */
}

@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.8rem; }
  .features-bar { grid-template-columns: repeat(2, 1fr); }
  .promo-banners { grid-template-columns: 1fr; }
  .search-container { margin: 0 20px; }
  .newsletter { justify-content: center; text-align: center; }
  .newsletter-form { width: 100%; margin-top: 15px; }
  
  .contact-wrapper { grid-template-columns: 1fr; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-sidebar { position: relative; top: 0; }
  
  .catalog-layout { grid-template-columns: 1fr; } /* Stack catalog sidebar on top */
  .catalog-grid { grid-template-columns: repeat(3, 1fr); } /* Recover grid size since sidebar is gone */
}

@media (max-width: 768px) {
  .top-bar { display: none; } /* Hide secondary top bar on mobile, keep marquee */
  
  .header-middle {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    width: 100%;
    text-align: center;
  }
  .search-container {
    order: 3;
    margin: 15px 0 0 0;
    width: calc(100% - 55px);
    max-width: none;
  }
  .hide-mobile {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex; 
    justify-content: center;
    align-items: center;
    order: 4;
    width: 45px;
    height: 45px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .main-nav {
    flex-direction: column;
    padding: 0;
    display: none; /* Hidden by default, toggled via JS */
  }
  .main-nav.active {
    display: flex;
  }
  .category-dropdown {
    position: static;
    box-shadow: none;
    width: 100%;
    background-color: var(--bg-light);
  }
  .nav-categories-btn {
    width: 100%;
    justify-content: center;
  }
  .main-nav ul {
    flex-direction: column;
    margin: 0;
    width: 100%;
  }
  .main-nav ul li {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }
  .main-nav ul li a {
    width: 100%;
    padding: 15px;
  }

  .hero {
    height: auto;
    padding: 60px 5%;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); } /* Home Grid */
  .catalog-grid { grid-template-columns: repeat(2, 1fr); } /* Catalog Grid */
  
  .catalog-toolbar { flex-direction: column; gap: 15px; text-align: center; }
  
  .promo-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .promo-content {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-icons { justify-content: center; }
  .footer-col div { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  
  .modern-form .form-row { grid-template-columns: 1fr; }
  .policy-content { padding: 30px 20px; }
  .locations-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .features-bar { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.2rem; }
  .banner-content h1 { font-size: 2rem; }
  .contact-form-section { padding: 20px; }
  
  #toast-container { right: 10px; bottom: 10px; left: 10px; }
  .toast { justify-content: center; }
}
