/* Base Styles from base.html, header.html, footer.html */

:root {
  --header-bg: #f8f6ef;
  --header-border: #000;
  --text-dark: #222;
  --accent-red: #b54024;
  --shadow: 0 4px 12px rgba(0,0,0,0.18);
  --accent-red-bright: #ff1e1e;
}

html {
  background: #ffffff;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #111827;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

main {
  min-height: calc(100vh - 200px);
}

/* HEADER STYLES */
#main-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: var(--header-bg);
  border-bottom: 2px solid var(--header-border);
  box-shadow: var(--shadow);
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}

.header-container {
  max-width: 100%;
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 20px;
  position: relative;
}

.header-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

.address-display {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-text {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.2;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.logo-img {
  height: 79px;
  width: auto;
  display: block;
}

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-only {
  display: none !important;
}

.desktop-only {
  display: flex;
}

.is-hidden {
  display: none !important;
}

.action-btn {
  background: #fff;
  border: 1.4px solid #000;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.action-btn:hover {
  background: #f5f5f5;
}

.search-toggle img {
  width: 19px;
  height: 19px;
}

.action-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.logout-btn,
.logout-btn:hover {
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  padding: 0;
}

.logout-btn img {
  width: 20px;
  height: 20px;
}

.cart-btn {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1.4px solid #000;
  border-radius: 999px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  transition: 0.2s ease;
}

.cart-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  position: relative;
}

.cart-icon-wrapper img {
  width: 20px;
  height: 20px;
}

.cart-count {
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.cart-divider {
  width: 1.4px;
  height: 38px;
  background: #000;
}

.cart-right-spacer {
  width: 25px;
}

.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ffc244;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
}

.account-dropdown {
  position: relative;
}

.account-toggle {
  background: #fff;
  border: 1.4px solid #000;
  border-radius: 999px;
  height: 38px;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  transition: 0.2s ease;
}

.cart-btn:hover,
.account-toggle:hover {
  background: #f5f5f5;
}

.user-name {
  line-height: 1;
  white-space: nowrap;
}

.chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.account-dropdown.active .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--header-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 210px;
  padding: 8px 0;
  z-index: 1001;
}

.account-dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14px;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

.dropdown-divider {
  height: 1px;
  background: #ddd;
  margin: 8px 0;
}

.staff-link {
  color: var(--accent-red);
  font-weight: 600;
}

.login-link {
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: 600;
}

.search-panel {
  display: none;
  background: #fff;
  border-top: 1px solid var(--header-border);
  padding: 12px 16px;
}

.search-panel.active {
  display: block;
}

.search-form {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.search-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 24px;
  outline: none;
  font-size: 14px;
}

.search-submit {
  padding: 10px 20px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
}

.mobile-menu-toggle {
  display: none;
}

.burger-icon {
  width: 18px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  border-radius: 2px;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 2000;
  display: none;
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu-content {
  min-height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 36px;
}

.mobile-address-section {
  display: flex;
  flex-direction: column;
  max-width: 66%;
}

.mobile-address-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #000;
}

.address-underline {
  width: 100%;
  height: 1px;
  border-bottom: 1.5px dotted #999;
  margin-top: 8px;
}

.mobile-menu-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-action-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e9e9e9;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  text-decoration: none;
  color: #000;
  flex-shrink: 0;
}

.mobile-action-circle img {
  width: 22px;
  height: 22px;
}

.close-icon {
  font-size: 30px;
  line-height: 1;
  margin-top: -2px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.mobile-nav-item {
  width: 100%;
  padding: 20px 0;
  text-align: center;
  font-size: 19px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #f1f1f1;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  display: block;
}

.mobile-nav-item:first-child {
  border-top: 1px solid #f1f1f1;
}

.logout-mobile-btn {
  color: #b54024;
}

.staff-mobile-link {
  color: var(--accent-red);
  font-weight: 600;
}

/* FOOTER STYLES */
#main-footer {
  background: #f8f6ef;
  border-top: 2px solid #000;
  padding: 26px 20px 24px;
  font-family: 'Inter', sans-serif;
  color: #000;
  margin-top: 60px;
}

.footer-container {
  width: 100%;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 0px;
}

.footer-left-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-logo img {
  height: 150px;
  width: auto;
  display: block;
}

.footer-socials {
  padding-top: 40px;
}

.social-title {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.social-links {
  display: flex;
  align-items: flex-start;
  gap: 38px;
}

.social-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #000;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  transition: opacity 0.2s ease;
}

.social-links a:hover {
  opacity: 0.7;
}

.social-links img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.email-link .underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-contacts {
  text-align: right;
  min-width: 270px;
  padding-top: 22px;
}

.phone-link {
  text-decoration: none;
  color: #000;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  display: inline-block;
  margin-bottom: 4px;
}

.phone-number.red-text {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.red-text {
  color: var(--accent-red-bright);
}

.work-hours {
  font-size: 10px;
  line-height: 1.2;
  margin: 0;
  font-weight: 400;
  color: #666;
}

.address-box {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  color: #8b8b8b;
}

.nederlands-information {
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 10px;
  line-height: 1;
  font-weight: 400;
  color: #8b8b8b;
  display: flex;
  flex-direction: column;
  gap: 8px; 
  text-align: right;
  align-items: flex-end;
}

.address-box p {
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-top: -15px;
  margin-left: 1.5px;
}

.language-selector select {
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-nav a {
  text-decoration: none;
  color: #8b8b8b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #000;
}

.footer-greeting {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
  .header-container {
    height: 74px;
    padding: 0 14px;
  }

  .address-display {
    display: none;
  }

  .header-center {
    position: static;
    transform: none;
    left: auto;
  }

  .logo-img {
    height: 62px;
  }

  #main-footer {
    padding: 20px 20px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .footer-left-group {
    gap: 12px;
  }

  .social-links {
    gap: 24px;
  }

  .footer-socials {
    padding-top: 10px;
  }

  .footer-contacts {
    text-align: left;
    min-width: unset;
    padding-top: 10px;
  }

  .nederlands-information {
    text-align: left !important;
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .nederlands-information p {
    margin: 0 !important;
    text-align: left !important;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 30px;
  }

  .footer-nav {
    gap: 10px 20px;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 68px;
  }

  .logo-img {
    height: 56px;
  }

  .header-actions {
    gap: 8px;
  }

  .mobile-only {
    display: flex !important;
  }

  .desktop-only {
    display: none !important;
  }

  .action-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    background: #fff;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .header-left {
    display: none;
  }

  .header-center {
    position: static;
    transform: none;
    left: auto;
    flex: 1;
    display: flex;
    justify-content: flex-start;
  }

  .logo-img {
    height: 48px;
  }

  .cart-btn {
    height: 38px;
    width: 38px;
    min-width: 38px;
    border-radius: 50%;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }

  .cart-icon-wrapper {
    padding: 0;
    gap: 0;
  }
}

@media (max-width: 640px) {
  .footer-left-group {
    flex-direction: column;
    gap: 12px;
  }

  .social-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-logo img {
    height: 120px;
  }

  .phone-link {
    font-size: 17px;
  }

  .footer-nav {
    gap: 12px 20px;
  }
}
