/*
Theme Name: Realitem Theme
Theme URI: http://realitem.com.tr
Author: Antigravity AI
Author URI: https://realitem.com.tr
Description: Custom, responsive, WooCommerce compatible, split-screen theme for Realitem Taahhüt Sanayi Ticaret Ltd. Şti.
Version: 1.0
Text Domain: realitem
*/

:root {
  --primary-color: #109999;
  --primary-hover: #0d8080;
  --text-color: #333333;
  --bg-color: #ffffff;
  --gray-bg: #f5f5f5;
  --dark-navy: #1a252f;
  --gold-accent: #d4af37;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

/* Header & Navbar */
.site-header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo svg {
  height: 40px;
  width: auto;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.main-navigation a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1rem;
  padding: 20px 0;
  display: block;
  transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
  color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark-navy);
  cursor: pointer;
}

@media (max-width: 768px) {
  .ticaret-top-bar {
    display: none;
  }

  .ticaret-info-boxes {
    display: none !important;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-navy);
    cursor: pointer;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    padding: 10px 20px;
    gap: 0;
  }

  .main-navigation a {
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
  }
}

/* Split Screen Layout (Front Page) */
.split-screen-container {
  display: flex;
  height: 100vh;
  width: 100%;
  position: relative;
}

.split-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.split-section:hover {
  flex: 1.15;
}

.split-left {
  color: var(--dark-navy);
}

.split-right {
  color: white;
}

.split-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 1s ease;
}

.split-section:hover .split-bg {
  transform: scale(1.1);
}

.split-left .split-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(245, 247, 250, 0.95) 0%, rgba(195, 207, 226, 0.85) 100%);
  z-index: 1;
}

.split-right .split-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(14, 28, 54, 0.95) 0%, rgba(44, 62, 80, 0.85) 100%);
  z-index: 1;
}

.split-content {
  z-index: 2;
  max-width: 400px;
}

.split-title {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

.split-desc {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUpDesc 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

.split-btn {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s forwards;
}

.split-left .split-btn {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 153, 153, 0.3);
}

.split-left:hover .split-btn {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(16, 153, 153, 0.4);
}

.split-right .split-btn {
  background-color: var(--gold-accent);
  color: var(--dark-navy);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.split-right:hover .split-btn {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.split-center-logo {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: white;
  padding: 10px 30px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.2rem;
  animation: floatCenter 4s ease-in-out infinite;
}

@keyframes floatCenter {
  0% {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }

  100% {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpDesc {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 0.9;
    transform: translateY(0);
  }
}

/* Intro Overlay Transition */
.intro-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--primary-color);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: left 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.intro-overlay.active {
  left: 0;
}

.intro-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-size: 3.5rem;
  font-weight: 800;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s ease 0.4s;
}

.intro-overlay.active .intro-logo {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .split-screen-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .split-section {
    flex: none;
    height: 50vh;
  }

  .split-section:hover {
    flex: none;
  }

  .split-title {
    font-size: 2rem;
  }

  .split-center-logo {
    top: 50%;
    margin-top: -50px;
    z-index: 20;
  }
}

/* Standard Page Layout */
.page-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  min-height: 50vh;
}

.page-title {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 2.5rem;
  border-bottom: 2px solid var(--gray-bg);
  padding-bottom: 10px;
}

.page-content {
  font-size: 1.1rem;
  color: #444;
}

/* WooCommerce Overrides */
.woocommerce .button.alt {
  background-color: var(--primary-color) !important;
}

.woocommerce .button.alt:hover {
  background-color: var(--primary-hover) !important;
}

/* Footer */
.site-footer {
  background-color: var(--dark-navy);
  color: white;
  padding: 50px 20px 20px;
  margin-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-widget h4 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget ul li {
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-widget a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-widget a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
}

/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  left: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

/* Hero Slider Styles */
.hero-slider-section {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

/* Animations for Slider Content */
.hero-slide.active .animate-title {
  animation: fadeInDown 1s ease-out forwards;
}

.hero-slide.active .animate-subtitle {
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.hero-slide.active .animate-btn {
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  padding: 0 20px;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 50%;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: var(--primary-color);
}

/* Products Grid */
.products-section {
  padding: 60px 0;
}

.dynamic-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 15px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-navy);
  margin: 10px 0;
  padding: 0 10px;
}

.product-card .price {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.2rem;
  display: block;
  margin-top: 10px;
}

.product-card a {
  text-decoration: none;
}

.daha-fazla-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.daha-fazla-btn:hover {
  background: var(--dark-navy);
}

/* WooCommerce Shop Page Layout */
.shop-page-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.shop-sidebar {
  width: 25%;
  min-width: 250px;
  background: var(--bg-color);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.shop-main-content {
  width: 75%;
}

/* Sidebar Widgets Styling */
.shop-widget {
  margin-bottom: 30px;
}

.shop-widget:last-child {
  margin-bottom: 0;
}

.shop-widget .widget-title {
  font-size: 1.1rem;
  color: var(--dark-navy);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.shop-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop-widget ul li {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.shop-widget ul li a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s;
  display: block;
}

.shop-widget ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* WooCommerce Products Grid */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 30px !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product {
  text-align: center;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 15px;
  width: 100% !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.woocommerce ul.products li.product img {
  border-radius: 8px;
  margin-bottom: 15px;
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f9f9f9;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 10px;
}

.woocommerce ul.products li.product .price {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 15px;
}

.woocommerce ul.products li.product .button {
  background: var(--primary-color);
  color: #fff;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: 600;
  transition: background 0.3s;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--dark-navy);
}

.woocommerce-products-header__title {
  color: var(--primary-color);
  border-bottom: 2px solid var(--gray-bg);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .shop-page-wrapper {
    flex-direction: column;
  }

  .shop-sidebar {
    width: 100%;
    margin-bottom: 30px;
  }

  .shop-main-content {
    width: 100%;
  }
}

/* Brands Ticker */
.brands-section {
  padding: 60px 0;
  background: #fff;
  overflow: hidden;
}

.brands-ticker-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 40px;
}

.brands-ticker-wrapper::before,
.brands-ticker-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.brands-ticker-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.brands-ticker-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.brands-ticker {
  display: flex;
  width: max-content;
  animation: tickerScroll 20s linear infinite;
}

.brands-ticker:hover {
  animation-play-state: paused;
}

.brand-item {
  width: 150px;
  height: 80px;
  margin: 0 30px;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #888;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: all 0.3s;
}

.brand-item:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.05);
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Layout Utilities added for Homepage */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--dark-navy);
  margin-bottom: 20px;
}

.section-divider {
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0 40px;
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

/* Shop Banner */
.shop-banner {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-color) 100%);
  padding: 80px 20px;
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shop-banner-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shop-banner-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* WooCommerce Select/Dropdown Styling */
.woocommerce-ordering select {
  appearance: none;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 40px 12px 20px;
  font-size: 1rem;
  color: var(--dark-navy);
  cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.woocommerce-ordering select:hover,
.woocommerce-ordering select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Blog Styles */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.blog-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.blog-title a {
  color: var(--dark-navy);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-title a:hover {
  color: var(--primary-color);
}

.blog-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 15px;
}

.blog-excerpt {
  color: #555;
  line-height: 1.6;
}

.single-content h2 {
  color: var(--dark-navy);
  margin-top: 30px;
  margin-bottom: 15px;
/* WooCommerce Single Product Flexbox Layout Fix */
}
.woocommerce div.product {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.woocommerce div.product div.images {
    width: 48% !important;
    float: none !important;
    margin-bottom: 30px;
}
.woocommerce div.product div.summary {
    width: 48% !important;
    float: none !important;
    min-height: auto !important;
}
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products {
    width: 100% !important;
    flex: 0 0 100%;
    clear: both !important;
    float: none !important;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eaeaea;
}

@media (max-width: 768px) {
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        width: 100% !important;
    }
}