/* ==========================================================================
   Amish Cabinet Factory - Top Bar & Navigation Stylesheet
   ========================================================================== */

:root {
  --amish-green: #00301e;
  --amish-green-dark: #002215;
  --amish-green-light: #06442c;
  --amish-copper: #be6734;
  --amish-copper-hover: #a35527;
  --amish-navy: #152438;
  --amish-navy-hover: #0e1724;
  --amish-cream: #faf8f5;
  --amish-border: #eaeaea;
  --amish-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --amish-font-serif: 'Playfair Display', Georgia, "Times New Roman", serif;
}

/* Base resets & typography */
body {
  font-family: var(--amish-font-sans);
  color: #333333;
}

/* ==========================================================================
   Fluid Container Layout (Full-width fluid across the entire website)
   ========================================================================== */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl,
.container-fluid {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: clamp(1rem, 3.5vw, 3.5rem) !important;
  padding-right: clamp(1rem, 3.5vw, 3.5rem) !important;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
#top-bar {
  background-color: var(--amish-green);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 0;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1030;
}

.amish-top-bar-inner {
  min-height: 26px;
}

.amish-top-left {
  font-size: 13px;
  color: #ffffff;
}

.amish-top-left .amish-flag-icon {
  width: 20px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 6px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.amish-top-motto {
  font-size: 13px;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.amish-top-divider {
  display: inline-block;
  margin: 0 14px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.amish-top-phone {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.amish-top-phone i {
  font-size: 12px;
  margin-right: 6px;
  transition: transform 0.2s ease;
}

.amish-top-phone:hover {
  color: #d1fae5 !important;
  text-decoration: none;
}

.amish-top-phone:hover i {
  transform: scale(1.1);
}

/* Language and currency inside top bar */
.amish-top-currency button,
.amish-top-language button {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 12px !important;
  padding: 2px 6px !important;
  box-shadow: none !important;
}

.amish-top-currency button:hover,
.amish-top-language button:hover {
  color: #ffffff !important;
}

/* ==========================================================================
   Main Navigation Header
   ========================================================================== */
#main-header {
  background-color: #ffffff;
  border-bottom: 1px solid #ebebeb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 1020;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.amish-nav-wrapper {
  gap: 20px;
}

/* Logo */
.amish-logo-container {
  flex-shrink: 0;
}

.amish-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.amish-logo-img {
  height: 52px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
}

.amish-logo-text {
  font-family: var(--amish-font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--amish-navy);
  letter-spacing: 0.05em;
}

/* Desktop Navigation Menu */
.amish-nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.amish-menu-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.amish-menu-item {
  position: relative;
}

.amish-menu-link {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amish-navy);
  padding: 12px 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.amish-menu-link .nav-chevron {
  font-size: 9px;
  margin-left: 5px;
  vertical-align: 0.5px;
  transition: transform 0.25s ease;
}

.amish-menu-link:hover,
.amish-menu-item:hover > .amish-menu-link {
  color: var(--amish-copper);
}

.amish-menu-item:hover > .amish-menu-link .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown styling */
.amish-dropdown-menu {
  border: 1px solid #ebebeb !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  border-radius: 8px !important;
  padding: 8px 0 !important;
  min-width: 220px;
  margin-top: 4px !important;
  background: #ffffff;
}

.amish-dropdown-menu .dropdown-item {
  font-size: 13.5px;
  font-weight: 500;
  color: #333333;
  padding: 8px 18px;
  transition: all 0.15s ease;
}

.amish-dropdown-menu .dropdown-item:hover {
  background-color: #f7f9fa;
  color: var(--amish-copper);
  padding-left: 22px;
}

.amish-dropdown-menu .dropdown-divider {
  margin: 6px 0;
  border-color: #f0f0f0;
}

/* Hover reveal on desktop */
@media (min-width: 1024px) {
  .amish-menu-item.dropdown:hover > .amish-dropdown-menu {
    display: block;
    animation: amishDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes amishDropdownFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Header Right Actions (Search, Account, Cart)
   ========================================================================== */
.amish-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.amish-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--amish-navy);
  font-size: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  line-height: 1;
}

.amish-action-icon:hover {
  color: var(--amish-copper);
  background-color: rgba(190, 103, 52, 0.08);
}

.amish-action-icon::after {
  display: none !important;
}

/* Cart Badge */
.amish-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--amish-copper);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  text-align: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Cart Dropdown Menu */
.amish-cart-dropdown-menu {
  width: 350px;
  max-width: 90vw;
  
  border: 1px solid #ebebeb;
  background: #ffffff;
  padding: 16px;
  margin-top: 8px !important;
}

.amish-cart-dropdown-menu .table {
  margin-bottom: 8px;
}

.amish-cart-dropdown-menu td {
  padding: 8px 4px;
  border-bottom: 1px solid #f0f0f0;
}

/* Account Dropdown Menu */
.amish-account-menu {
  min-width: 200px;
  border-radius: 8px;
  border: 1px solid #ebebeb;
  padding: 8px 0;
  margin-top: 8px !important;
}

.amish-account-menu .dropdown-item {
  font-size: 13.5px;
  padding: 7px 16px;
  color: #333333;
}

.amish-account-menu .dropdown-item:hover {
  background-color: #f7f9fa;
  color: var(--amish-copper);
}

.amish-account-menu .dropdown-item i {
  width: 18px;
  text-align: center;
}

/* Search Dropdown */
.amish-search-menu {
  min-width: 300px;
  border-radius: 8px;
  border: 1px solid #ebebeb;
  padding: 10px;
  margin-top: 8px !important;
}

.amish-search-menu form {
  margin: 0 !important;
}

.amish-search-menu .form-control {
  font-size: 13.5px;
  border-color: #d1d5db;
}

.amish-search-menu .btn {
  background-color: var(--amish-copper);
  color: #ffffff;
  border-color: var(--amish-copper);
}

.amish-search-menu .btn:hover {
  background-color: var(--amish-copper-hover);
}

/* Mobile Toggler */
.amish-mobile-toggler {
  font-size: 20px;
  color: var(--amish-navy);
  border: none;
  background: transparent;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.amish-mobile-toggler:hover {
  color: var(--amish-copper);
}

/* ==========================================================================
   Mobile Offcanvas Menu
   ========================================================================== */
.amish-offcanvas {
  max-width: 320px;
}

.amish-offcanvas .offcanvas-header {
  border-bottom: 1px solid #ebebeb;
  padding: 16px 20px;
}

.amish-offcanvas .offcanvas-body {
  padding: 20px;
}

.amish-mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.amish-mobile-item {
  border-bottom: 1px solid #f0f0f0;
}

.amish-mobile-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--amish-navy);
  text-decoration: none;
}

.amish-mobile-link:hover {
  color: var(--amish-copper);
}

.amish-mobile-subitems {
  list-style: none;
  padding: 0 0 10px 16px;
  margin: 0;
}

.amish-mobile-subitems li a {
  display: block;
  padding: 6px 0;
  font-size: 13.5px;
  color: #555555;
  text-decoration: none;
}

.amish-mobile-subitems li a:hover {
  color: var(--amish-copper);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .amish-logo-img {
    height: 42px;
  }
  #top-bar {
    font-size: 12px;
    padding: 6px 0;
  }
  .amish-top-left {
    font-size: 12px;
  }
  .amish-top-phone {
    font-size: 12px;
  }
}

@media (max-width: 575.98px) {
  .amish-logo-img {
    height: 36px;
  }
  .amish-top-phone span {
    font-size: 11px;
  }
}

/* ==========================================================================
   Amish Cabinet Factory Footer
   ========================================================================== */
#container {
  position: relative !important;
  margin-bottom: 0 !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

main {
  flex: 1 0 auto !important;
}

#content, #column-left, #column-right {
  padding-bottom: 30px !important;
}

footer.amish-footer,
footer {
  position: static !important;
  background-color: #ffffff !important;
  border: none !important;
  border-top: 1px solid #e5e7eb !important;
  color: #374151 !important;
  padding: 0 !important;
  width: 100% !important;
  margin-top: 0px !important;
}

.amish-footer-top {
  padding: 25px 0;
  background-color: #ffffff;
}

.amish-footer-heading {
  font-family: var(--amish-font-sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b1e33;
  margin-bottom: 18px;
}

.amish-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.amish-footer-links li {
  margin-bottom: 9px;
}

.amish-footer-links li a {
  color: #4b5563 !important;
  font-size: 13.5px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.amish-footer-links li a:hover {
  color: var(--amish-copper) !important;
  transform: translateX(2px);
}

.amish-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.amish-footer-logo {
  max-height: 62px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.amish-footer-contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.amish-footer-contact-link {
  color: #1e293b !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.amish-footer-contact-link i {
  color: var(--amish-navy);
  font-size: 15px;
  margin-right: 10px;
  width: 18px;
  text-align: center;
}

.amish-footer-contact-link:hover {
  color: var(--amish-copper) !important;
}

.amish-footer-contact-link:hover i {
  color: var(--amish-copper);
}

/* Bottom Copyright Bar */
.amish-footer-bottom {
  background-color: var(--amish-green);
  color: #ffffff;
  padding: 16px 0;
  font-size: 13px;
  font-weight: 400;
}

.amish-footer-copyright {
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
}

.amish-footer-legal a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.amish-footer-legal a:hover {
  color: #d1fae5 !important;
}

.amish-footer-divider {
  display: inline-block;
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

@media (max-width: 991.98px) {
  .amish-footer-brand {
    margin-top: 25px;
  }
}
