/* Theme Name: Tesla bar */

@font-face {
  font-family: "Raleway";
  src: url('/tesla-bar/wp-content/themes/tesla-bar/fonts/Raleway-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/tesla-bar/wp-content/themes/tesla-bar/fonts/CormorantGaramond-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/tesla-bar/wp-content/themes/tesla-bar/fonts/CormorantGaramond-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/tesla-bar/wp-content/themes/tesla-bar/fonts/CormorantGaramond-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

html {
  min-height: 100%;
  overflow: auto;
}

body.tesla-menu-page {
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  margin: 0;
  padding: 0;

  --bg: #1D3648;
  --text: #fff;
  --tab-active: rgba(255,255,255,0.18);
  --tab-hover: rgba(255,255,255,0.08);
  --divider: rgba(255,255,255,0.08);
  --desc: rgba(255,255,255,0.55);
  --cat-label: rgba(255,255,255,0.4);
}

body.tesla-menu-page,
body.tesla-menu-page *,
body.tesla-menu-page *::before,
body.tesla-menu-page *::after {
  box-sizing: border-box;
}

.header-inner .logo-wrap a img {
  height: 150px;
}

.tesla-menu {
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

.tab-header {
  flex-shrink: 0;
  background: var(--bg);
  z-index: 20;
}

.logo-wrap {
  padding: 17px 15px 6px;
  display: flex;
  justify-content: center;
}

.logo-text {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.tesla-menu .tabs-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 5px 0 20px;
  scroll-behavior: auto !important;
}

.tesla-menu .tabs-wrap::-webkit-scrollbar {
  display: none;
}

.tesla-menu .tabs {
  display: flex;
  gap: 3px;
  padding: 0 9px;
  width: max-content;
  min-width: 100%;
  justify-content: center;
  position: relative;
}

@media (max-width: 700px) {
  .tesla-menu .tabs {
    justify-content: flex-start;
  }
}

.tesla-menu .tab-pill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 32px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.18);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transform: translate3d(0, -50%, 0);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
    width 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  will-change: transform, width;
}

.tesla-menu .tab-btn {
  position: relative;
  z-index: 1;
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 7px 10px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  outline: none;
  transition: color 0.2s ease;
  transform: none !important;
}

.tesla-menu .tab-btn:active {
  transform: none !important;
}

.tesla-menu .tab-btn:focus-visible {
  outline: 1px solid rgba(255,255,255,0.7);
  outline-offset: 2px;
}

.tesla-menu .tab-btn.active .label {
  opacity: 1;
}

.tesla-menu .tab-btn:not(.active) .label {
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.tesla-menu .tab-btn:not(.active):hover .label {
  opacity: 0.88;
}

.tesla-menu .tab-btn .tab-bg {
  display: none;
}

.tesla-menu .tab-btn .label {
  position: relative;
  z-index: 1;
  display: block;
}

.tesla-menu .scroll-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
}

.tesla-menu .scroll-area::-webkit-scrollbar {
  display: none;
}

.tesla-menu .content {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px calc(50px + env(safe-area-inset-bottom));
}

.tesla-menu .menu-section {
  display: none;
}

.tesla-menu .menu-section.active {
  display: block;
  opacity: 1;
  transition: opacity 0.22s ease;
}

.tesla-menu .cat-heading {
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cat-label);
  margin: 40px 0 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--divider);
}

.tesla-menu .menu-section > .cat-heading:first-child {
  margin-top: 0;
}

.tesla-menu .item-card {
  display: flex;
  align-items: baseline;
  border-bottom: 1px solid var(--divider);
  padding: 9px 0;
  gap: 8px;
  width: 100%;
}

.tesla-menu .item-card:last-child {
  border-bottom: none;
}

.tesla-menu .item-info {
  flex: 1 1 0;
  min-width: 0;
}

.tesla-menu .item-name {
  font-size: 18px;
  line-height: 1.4;
  word-break: break-word;
}

.tesla-menu .item-desc {
  font-size: 12px;
  color: var(--desc);
  line-height: 1.3;
  margin-top: 2px;
}

.tesla-menu .item-right {
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tesla-menu .item-unit {
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  color: var(--desc);
  text-align: right;
}

.tesla-menu .item-price {
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-align: right;
  min-width: 45px;
}

.tesla-menu .menu-empty,
.tesla-menu .section-empty,
.tesla-menu .category-empty {
  color: var(--desc);
  text-align: center;
  padding: 45px 15px;
  line-height: 1.5;
  font-size: 13px;
}

.tesla-menu .category-empty {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}



@media (max-width: 600px) {  
	.header-inner .logo-wrap a img {
		height: 130px;
	}
	.tesla-menu .item-name {
		font-size: 20px;
	}
	.tesla-menu .item-price {
		font-size: 14px;
	}
	.tesla-menu .item-unit { 
		font-size: 12px;
	}
}












.tesla-menu {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.tesla-menu::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1360px;
  height: 1360px;
  background-image: url("https://dev.michel.hr/tesla-bar/wp-content/uploads/2026/04/tesla-lijevo-ilustracija.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left bottom;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.tesla-menu > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) { 
	.tesla-menu::before {
	  left: -85%;
	  bottom: -10px;
	  width: 760px;
      height: 760px;
	}
}