/* app/static/css/base.css */
/* --- GLOBAL, base.html --- */
html, body {
  height: 100%;
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
}

body {
  padding-top: 76px;
}
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
}

a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.alert {
  margin-bottom: 0.5rem;
}

:root {
  --navbar-height: 76px;
  --announcement-height: 44px;
}

body {
  padding-top: calc(var(--navbar-height) + var(--announcement-height));
}

#navbar-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

#site-announcement {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  z-index: 1020;
  border-radius: 0;
  margin: 0;
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
    --announcement-height: 60px;
  }

  #site-announcement {
    font-size: 0.95rem;
    line-height: 1.4;
    padding-left: 12px;
    padding-right: 12px;
  }
}

.app-toast-container {
  position: fixed;
  top: calc(var(--navbar-height) + var(--announcement-height) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1080;
  width: min(92vw, 420px);
  
}

.app-toast {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

@media (max-width: 768px) {
  .app-toast-container {
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .app-toast {
    width: 100%;
    max-width: 420px;
  }
}

.app-toast + .app-toast {
  margin-top: 12px;
}

.app-toast .toast-body {
  font-weight: 500;
}

.breadcrumbs-container {
  margin: 10px auto 20px auto;
  padding: 0 20px;
  font-size: 0.9rem;
  color: #555;
}
.breadcrumbs a {
  color: #007bff;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs span {
  color: #333;
  font-weight: 600;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;

}

main {
  flex: 1;
  width: 100%;
}

/* --- Global --- */
.list-group-item {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.btn-warning {
    background-color: #FFC107;
    border-color: #FFC107;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-outline-warning {
    color: #000;
    border-color: #FFC107;
}

.btn-outline-warning:hover {
    background-color: #FFC107;
    color: #000;
}
/* --- GLOBAL, base.html ---end */


/* ---navbar.html ---*/
.navbar {
  background-color: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1rem;
}

.navbar-brand .brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.navbar-brand .text-warning {
  color: #FECF3F !important;
}

.navbar-brand .text-dark {
  color: #333 !important;
}

.navbar .nav-link {
  color: #333;
  font-weight: 500;
  margin: 0 0.25rem;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover {
  color: #F6D35B;
  text-decoration: none;
}

.nav-link:focus,
.nav-link.dropdown-toggle:focus {
  box-shadow: none !important;
  outline: none !important;
}

.navbar .dropdown-toggle {
  display: inline-flex;
  align-items: center;
}

.navbar .dropdown-menu {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  min-width: 240px;
  padding: 0.5rem 0;
}

.navbar .dropdown-item {
  padding: 0.65rem 1rem;
  font-weight: 500;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: #F6D35B;
  color: #000;
}

.navbar .dropdown-item:active {
  background-color: #F6D35B;
  color: #000;
}

@media (min-width: 992px) {
  .navbar .dropdown-menu {
    margin-top: 0.35rem;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    text-align: center;
  }

  .navbar-brand .brand-name {
    font-size: 1.25rem;
  }
}

form.d-flex input[type="text"] {
  border-radius: 6px;
  border: 1px solid #ddd;
}

.navbar-search-form {
  min-width: 280px;
}

.navbar-search-form button {
  border-radius: 6px;
  border-color: #FECF3F;
  color: #333;
}

.navbar-search-form button:hover {
  background-color: #FFC107;
  color: black;
}

#navbar-search-suggestions {
  top: calc(100% + 6px);
  left: 0;
  z-index: 1055;
  max-height: 360px;
  overflow-y: auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  padding: 0.75rem;
  border-bottom: 1px solid #f1f1f1;
  margin-bottom: 0;
  border-radius: 0;
}

.search-suggestion-item:last-child {
  border-bottom: 0;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
  background: #f8f9fa;
  color: inherit;
  text-decoration: none;
}

.search-suggestion-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--bs-border-color);
  flex-shrink: 0;
  background: #fff;
}

.search-suggestion-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px dashed var(--bs-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--bs-secondary-color);
  background: #f8f9fa;
  flex-shrink: 0;
}

.search-suggestion-text {
  min-width: 0;
}

.search-suggestion-name {
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

.search-suggestion-price {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

.search-no-results {
  margin-bottom: 0;
  border-radius: 0;
}
.dropdown-item-parent {
  font-weight: 600;
}

.dropdown-item-child {
  padding-left: 2rem;
  font-size: 0.95rem;
  color: #555;
}
/* ---navbar.html ---end*/


/* --- search_results.html ---*/
.product-thumb {
    height: 220px;
    width: 100%;
    object-fit: contain;
    background-color: #f8f9fa; /* light gray fill so empty space looks clean */
    padding: 5px;
    border-radius: 8px;
}
/* --- search_results.html ---end */


/* --- home.html --- */
.hero-split{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* image slightly bigger */
  gap: 18px;
  align-items: stretch;
}

.hero-media{
  border-radius: 14px;
  overflow: hidden;
  background: #eee;
}

.hero-image{
  width: 100%;
  height: 420px;
  object-fit: contain; background: white;     /* fills nicely, may crop */
  display: block;
  transition: opacity .4s ease;
}

.fade-out{ opacity: 0; }

.hero-side{
  display: flex;
  align-items: center;
}

.hero-card{
  width: 100%;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.06);
}

@media (max-width: 992px){
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .hero-image{
    height: 340px;
  }
}
@media (max-width: 576px){
  .hero-image{
    height: 260px;
  }
}
/* --- home.html ---end */


/* --- footer.html --- */
footer {
  background: #fff;
  border-top: 1px solid #e9ecef;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.03);
}

footer h6 {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  color: #333;
}

footer a {
  color: #555;
  font-size: 0.9rem;
  display: inline-block;
  padding: 4px 0;
  transition: all 0.18s ease;
}

footer a:hover {
  color: #FFC107;
  text-decoration: none;
  transform: translateX(2px);
}

footer ul {
  padding: 0;
  margin: 0;
  line-height: 1.7;
}

footer li {
  margin-bottom: 6px;
  
}

footer p {
  font-size: 0.8rem;
  color: #888;
}

footer .row {
  margin-bottom: 10px;
  gap: 100px;
}

@media (max-width: 768px) {
  footer {
    text-align: center;
  }

  footer .row {
    gap: 10px;
  }

  footer h6 {
    margin-top: 10px;
  }
}

footer .footer-note {
  font-size: 0.75rem;
  color: #999;
  line-height: 1.4;
  margin-top: 2px;
  max-width: 220px;
  opacity: 0.85;
  margin-left: auto;
  margin-right: auto;

  text-align: left;
}
/* --- footer.html ---end */




