/* CSS Custom Properties for dynamic viewport */
:root {
  --vh: 1vh;
}

/* Global Styles */
:root {
  --primary-color: #2a4d5f;
  --secondary-color: #4a90a4;
  --accent-color: #ff7e5f;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #333;
  --text-light: #6c757d;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

button, input, select {
  font-family: inherit;
  font-size: 1rem;
}

/* Header */
.main-header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1500;
}

.top-bar {
  background-color: var(--primary-color);
  color: white;
  padding: 6px 0;
  font-size: 13px;
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  z-index: 2000;
  width: 100%;
  padding-right: 84px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-bar .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 20px;
  margin-right: auto;
}

.contact-info a {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.9);
}

.contact-info a {
  font-size: 0.7rem;
  gap: 4px;
}

.contact-info a span {
  display: none;
}

.contact-info .phone-number {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-info .email {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.phone-icon,
.email-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.contact-info a:hover {
  opacity: 0.8;
}

.top-bar-right {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 40px;
  margin-left: auto;
  padding: 0 4px;
}

.language-selector,
.currency-selector {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  padding: 0 8px !important;
  border-radius: 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  font-size: 10px !important;
  height: 26px !important;
  min-width: 60px !important;
  margin: 0 1px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  vertical-align: middle !important;
}

.language-selector:hover,
.currency-selector:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-selector:active,
.currency-selector:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.25);
}

.language-selector img,
.currency-selector img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  top: -1px;
}

.language-selector span:not(.icon-translate, .icon-translate-2),
.currency-selector span:not(.icon-translate, .icon-translate-2) {
  display: inline-block;
  transform: scale(0.85);
  transform-origin: left center;
  white-space: nowrap;
}

/* Main Navigation */
.menu {
  padding: 15px 0;
  position: relative;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  padding-right: 84px;
  transition: all 0.3s ease, box-shadow 0.3s ease;
  overflow: visible;
}

.menu .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.main-logo {
  display: flex;
  align-items: center;
  z-index: 10;
}

.main-logo .logo-image {
  height: 40px;
  width: auto;
}

.main-header {
  position: relative;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.header-square-logo {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
  transition: opacity 0.3s ease, transform 0.3s ease, pointer-events 0.3s ease;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.header-square-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.header-square-logo:hover img {
  transform: scale(1.05);
}

.header-square-logo:hover {
  transform: translateY(-50%) scale(1.1);
}

.nav-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: space-between;
  gap: 20px;
  overflow: visible;
}

.buttons {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 12px;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
}

.buttons a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease;
}

.buttons .account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 25px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  height: 48px;
  min-width: 140px;
  box-sizing: border-box;
}

.account .button-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.buttons a:hover {
  background-color: #f5f5f5;
}

.buttons .rewards {
  background: linear-gradient(135deg, #6aa8ff, #b07cc9);
  color: white !important;
  padding: 8px 20px 8px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.buttons .rewards:hover {
  background: linear-gradient(135deg, #5c97e6, #9f6fb8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.account-section {
  margin-left: auto;
}

.search-form {
  display: flex;
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
}

.search-form input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px 0 0 20px;
  outline: none;
}

.search-form button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0 15px;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-form button:hover {
  background: var(--secondary-color);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  z-index: 1050;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1200;
  overflow: hidden;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.dropdown-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.account-section .dropdown-menu {
  right: 0;
  left: auto;
  background: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-section .dropdown-item {
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-section .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.account-section .dropdown-icon {
  filter: brightness(0) invert(1);
}

.dropdown:hover .icon-down {
  transform: rotate(180deg);
}

.icon-down {
  transition: transform 0.3s ease;
}

.account-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.account-text span {
  font-size: 0.7em;
  white-space: nowrap;
}

.account-text strong {
  font-size: 0.9rem;
}

.account-text span {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Sticky Header */
.menu.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.menu.sticky .container {
  padding: 10px 40px;
}

body.menu-sticky {
  padding-top: 80px;
}

.top-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.header-square-logo.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8);
}

/* Language Modal */
.language-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.language-modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.language-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.language-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
}

.language-modal-header button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.language-modal-header button:hover {
  background: #f5f5f5;
  color: #333;
}

.language-options {
  padding: 16px 0;
}

.language-option {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 0.2s;
  gap: 12px;
}

.language-option:hover {
  background-color: #f8f9fa;
}

.language-option.selected {
  background-color: #e3f2fd;
}

.language-flag {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.language-info {
  flex: 1;
}

.language-name {
  font-weight: 500;
  color: var(--text-color);
}

.language-native {
  font-size: 0.85rem;
  color: #666;
  margin-top: 2px;
}

.language-check {
  color: var(--primary-color);
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s;
}

.language-option.selected .language-check {
  opacity: 1;
}

.currency-options {
  padding: 16px 0;
}

.currency-option {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 0.2s;
  gap: 12px;
}

.currency-option:hover {
  background-color: #f8f9fa;
}

.currency-option.selected {
  background-color: #e3f2fd;
}

.currency-symbol {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.currency-info {
  flex: 1;
}

.currency-code {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1rem;
}

.currency-name {
  font-size: 0.85rem;
  color: #666;
  margin-top: 2px;
}

.currency-check {
  color: var(--primary-color);
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s;
}

.currency-option.selected .currency-check {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .top-bar {
    padding-right: 0;
  }
  
  .top-bar .container {
    padding: 0 20px;
    flex-direction: column;
    gap: 8px;
    height: auto;
    min-height: 36px;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 4px;
    margin-right: 0;
    text-align: center;
  }
  
  .contact-info a {
    font-size: 0.75rem;
    justify-content: center;
  }
  
  .phone-icon,
  .email-icon {
    width: 12px;
    height: 12px;
  }
  
  .top-bar-right {
    margin-left: 0;
    justify-content: center;
  }
  
  .menu {
    padding-right: 0;
  }
  
  .menu.sticky {
    padding-right: 0;
  }
  
  .menu.sticky .container {
    padding: 10px 20px;
  }
  
  .menu .container {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }
  
  .main-logo .logo-image {
    height: 35px;
  }
  
  .nav-content {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .search-form {
    order: 2;
    max-width: 100%;
    margin: 0;
  }
  
  .buttons {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .buttons a {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
  
  .button-icon {
    width: 20px;
    height: 20px;
  }
  
  .account-section {
    order: 4;
    margin-left: 0;
    width: 100%;
  }
  
  .account {
    width: 100%;
    justify-content: center;
  }
  
  .account .account-text,
  .account .button-icon {
    font-size: 0.9rem;
  }
  
  .account .button-icon {
    width: 20px;
    height: 20px;
  }
  
  .header-square-logo {
    display: none;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f8f9fa;
    margin-top: 8px;
    border-radius: 8px;
  }
  
  .dropdown:hover .dropdown-menu,
  .dropdown.open .dropdown-menu {
    transform: none;
  }
  
  .account-section .dropdown:not(.tab-dropdown):hover .dropdown-menu {
    position: static;
    background: #f8f9fa;
  }
  
  .dropdown-item {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .dropdown-icon {
    width: 16px;
    height: 16px;
  }
  
  .language-modal-content {
    width: 95%;
    max-width: 350px;
  }
  
  .language-modal-header {
    padding: 16px 20px;
  }
  
  .language-modal-header h3 {
    font-size: 1.1rem;
  }
  
  .language-option,
  .currency-option {
    padding: 10px 20px;
  }
  
  .currency-symbol {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .dropdown-menu {
    min-width: 100%;
  }
  
  .buttons .dropdown:last-child .dropdown-menu {
    right: 0;
    left: auto;
  }
  
  .dropdown-item {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .dropdown-icon {
    width: 14px;
    height: 14px;
  }
  
  .top-bar .container {
    padding: 0 15px;
  }
  
  .language-selector,
  .currency-selector {
    font-size: 9px !important;
    min-width: 50px !important;
    height: 24px !important;
  }
  
  .language-selector img,
  .currency-selector img {
    width: 20px !important;
    height: 20px !important;
  }
  
  .contact-info {
    gap: 2px;
  }
  
  .contact-info a {
    font-size: 0.7rem;
  }
  
  .phone-icon,
  .email-icon {
    width: 10px;
    height: 10px;
  }
  
  .menu .container {
    padding: 10px 15px;
  }
  
  .main-logo .logo-image {
    height: 30px;
  }
  
  .search-form {
    order: 2;
  }
  
  .search-form input {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .buttons {
    order: 3;
    gap: 6px;
  }
  
  .buttons a {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
  
  .account {
    order: 4;
  }
  
  .account .button-icon {
    width: 18px;
    height: 18px;
  }
  
  .language-modal-content {
    width: 98%;
    max-width: 320px;
  }
  
  .language-modal-header {
    padding: 12px 16px;
  }
  
  .language-modal-header h3 {
    font-size: 1rem;
  }
  
  .language-option,
  .currency-option {
    padding: 8px 16px;
  }
  
  .currency-symbol {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
} 