/* ===== HEADER ===== */
.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  backdrop-filter: blur(8px);
  background-color: #F8F6F3c0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
body.homepage .header-bar {
  background-color: transparent;
  backdrop-filter: blur(0px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.0);
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
body.homepage .header-bar.scrolled {
  background-color: #F8F6F3c0;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
  padding: 0 32px;
}
.header-right .tab-item {
  position: absolute;
  left: 4.5rem;
}
.header-left {
  flex: 1;
  justify-content: flex-start;
  gap: 1rem;
}
.header-center {
  flex: 2;
  justify-content: center;
  gap: 24px;
}
.header-right {
  flex: 1;
  justify-content: flex-end;
}
.header-bar a {
  text-decoration: none;
  font-size: 1rem;
  color: #191E2A;
  transition: color 0.4s ease;
}
body.homepage .header-bar a {
  color: white;
  transition: color 0.4s ease;
}
body.homepage .header-bar.scrolled a {
  color: #191E2A;
}
body.homepage .header-bar.scrolled .cart-icon {
  color: #191e2a;
}
.header-bar.scrolled span {
  color: #3D3931;
}
.header-bar a:hover {
  color: #D4AF37;
}
body.homepage .header-bar a:hover {
  color: #D4AF37;
}
.cart-icon {
  font-size: 1rem;
  color: #191E2A;
  cursor: pointer;
}
body.cart-page .cart-icon {
  color: #d4af37;
}
body.homepage .cart-icon {
  color: white;
  transition: color 0.4s ease;
}
.header-bar .cart-icon:hover {
  color: #D4AF37;
}
.header-bar .search-icon {
  display: none;
  color: #191E2A;
  position: absolute;
  left: 1rem;
}
body.homepage .header-bar .search-icon {
  color: #f8f6f3;
  transition: color 0.4s ease;
}
body.homepage .header-bar.scrolled .search-icon {
  color: #191E2A;
}
.search-tab.hovered .search-icon,
.search-tab.locked .search-icon,
body.homepage .search-tab.hovered .search-icon,
body.homepage .search-tab.locked .search-icon {
  color: #D4AF37;
}
.search-tab {
  position: relative;
  display: inline-block;
  width: auto;
}
.search-input:focus {
  outline: none;
}
.search-toggle {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0);
  border-radius: 4px;
  padding: 0.4rem 0.0rem;
  transition: all 0.3s ease;
  overflow: hidden;
  width: 55px;
}
.search-label {
  color: #191E2A;
  font-size: 1rem;
  white-space: nowrap;
  cursor: pointer;
}
body.homepage .search-label {
  color: white;
  transition: transform 0.3s ease;
}
body.homepage .header-bar.scrolled .search-label {
  color: #191E2A;
}
.search-icon {
  color: #191E2A;
}
.search-input {
  border: none;
  background: transparent;
  color: #3D3931;
  font-size: 1rem;
  font-family: 'Vazirmatn', sans-serif;
  width: 0;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
}
.search-tab.hovered .search-toggle {
  width: 265px;
  background-color: rgb(255, 255, 255);
  padding: 0.4rem 0.6rem;
}
.search-tab.hovered .search-label {
  color: #D4AF37
}
body.homepage .search-tab.hovered .search-label {
  color: #D4AF37
}
.search-tab.hovered .search-input {
  width: 210px;
  opacity: 1;
}
.mobile-search-tab {
  display: none;
}
.back-button {
  display: none;
}
.cart {
  position: relative;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 12px;
  height: 12px;
  background-color: red;
  color: white;
  font-size: 0.5rem;
  font-family: 'Vazirmatn';
  font-weight: bold;
  text-align: center;
  border-radius: 50%;
  display: none;
  z-index: 10;
}
.header-bar.scrolled .cart-badge {
  color: white;
}

/* ===== MOBILE TAB BAR ===== */
.mobile-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: transparent;
  transition: background-color 0.4s ease, color 0.4s ease;
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}
.tab-icon {
  justify-self: center;
}
svg.tab-icon {
    width: 24px;
    display: block;
}
.tab-item {
  position: relative;
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #191E2A;
  text-decoration: none;
}
body.homepage .tab-item{
  color: white;
}
.tab-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}
body.homepage #home-tab .tab-icon {
  color: #D4AF37;
}
body.products-page #products-tab .tab-icon {
  color: #D4AF37;
}
body.support-page #support-tab .tab-icon {
  color: #D4AF37;
}
body.account-page #login-tab .tab-icon {
  color: #D4AF37;
}
body.product-page .mobile-tab-bar {
  background-color: #F8F6F3c0;
  backdrop-filter: blur(8px);
}

/* ===== FOOTER ===== */
.main-footer {
  background-color:#D2CDC8;
  color: #191E2A;
  padding: 3rem 4rem 1rem;
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
}
.footer-grid {
  width: 100vw;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-block h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #191E2A;
}
.footer-block p,
.footer-block ul {
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-block ul {
  list-style: none;
  padding: 0;
}
.footer-block ul li {
  margin-bottom: 0.5rem;
}
.footer-block ul li a,
.footer-block p a {
  color: #191E2A;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-block ul li a:hover,
.footer-block p a:hover {
  color: #A67C52;
}
.social-links a, .address-links a {
  margin-left: 1rem;
  font-size: 1.2rem;
  color: #191E2A;
  transition: color 0.3s ease;
}
.social-links a:hover, .address-links a:hover {
  color: #A67C52;
}
.footer-credit {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

/* ===== HERO SECTION ===== */
#hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 1536px;
}
canvas#chandelier_canvas {
  min-width: 1536px;
  min-height: 100%;
  display: block;
  position: absolute;
  top: -35%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  background-color: transparent;
}
#brand {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 2;
  padding: 1rem;
}
.wordmark {
  width: 550px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.wordmark-mobile {
  display: none;
}
.tagline-box {
  display: inline-block;
  background-color: #D4AF37AA;
  padding: 0.22rem 2rem;
  border-radius: 0px;
  margin-top: 1rem;
}
.tagline-box p {
  font-size: 1.2rem;
  color: white;
  margin: 0;
  opacity: 0.95;
}
.scroll-cue {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  transition: opacity 0.4s ease;
}
.scroll-cue .arrow {
  font-size: 28px;
  color: #F8F6F3;
  animation: pulse 2s infinite;
  opacity: 0.8;
}
@keyframes pulse {
  0% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.4; }
}
.scroll-cue.hide {
  opacity: 0;
  pointer-events: none;
}

/* ===== PHILOSOPHY SECTION ===== */
.philosophy-section {
  background-image: url('../assets/banners/banner-0001.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #191E2A;
  color: #F5F5F5;
  width: 100%;
  max-width: 100vw;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: left;
  position: relative;
  z-index: 10;
  overflow-x: hidden;
}
.container {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  width: 65vw;
  padding-left: 0;
  padding-right: 0;
}
.text-content {
  flex: 1;
  text-align: left;
  padding-left: 3rem;
  margin-left: 0;
  max-width: 600px;
}
.phil-title {
  font-size: 4rem;
  color: #F8F6F3;
  font-weight: 1000;
  margin-bottom: 20px;
  line-height: 1.4;
  font-family: 'Vazirmatn', sans-serif;
}
.philosophy-subtext {
  font-size: 1.2rem;
  color: #F8F6F3;
  margin-bottom: 30px;
  font-family: 'Vazirmatn', sans-serif;
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  color: #191E2A;
  font-weight: 550;
  text-decoration: none;
  border-radius: 10px;
  background-color: #A89F91;
  transition: background-color 0.5s ease;
}
.btn:hover {
  background-color: #D4AF37
}
.image-content {
  flex: 1;
  text-align: center;
  display: none;
}