/*
Theme Name: Ftoni Shop
Theme URI: https://webozel.net
Author: Edip Berisha
Author URI: https://webozel.net
Description: Ürün tanıtımı ve siparişe yönlendirme için özel olarak hazırlanmış dikkat çekici, responsive bir WordPress teması.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ftoni-shop
*/

@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/fonts/Lato/Lato-Regular.woff2') format('woff2'),
         url('assets/fonts/fonts/Lato/Lato-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/fonts/Lato/Lato-Light.woff2') format('woff2'),
         url('assets/fonts/fonts/Lato/Lato-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/fonts/Lato/Lato-Bold.woff2') format('woff2'),
         url('assets/fonts/fonts/Lato/Lato-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/fonts/Montserrat/Montserrat-Light.woff2') format('woff2'),
         url('assets/fonts/fonts/Montserrat/Montserrat-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/fonts/Montserrat/Montserrat-Regular.woff2') format('woff2'),
         url('assets/fonts/fonts/Montserrat/Montserrat-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/fonts/Montserrat/Montserrat-Medium.woff2') format('woff2'),
         url('assets/fonts/fonts/fonts/Montserrat/Montserrat-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/fonts/Montserrat/Montserrat-Bold.woff2') format('woff2'),
         url('assets/fonts/fonts/Montserrat/Montserrat-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/fonts/Montserrat/Montserrat-SemiBold.woff2') format('woff2'),
         url('assets/fonts/fonts/Montserrat/Montserrat-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/*=== ROOT RENK ===*/
:root {
  --primary-color: #EF811D;      /* Turuncu */
  --secondary-color: #01325A;    /* Lacivert */
  --light-bg: #F9F9F9;
  --lighter-bg: #F5F5F5;
  --text-color: #333333;         /* Antrasit gri */
}

/*=== BODY RENK VE FONT ===*/
body {
  font-family: 'Lato', sans-serif;
  color: var(--text-color);
  background-color: var(--lighter-bg);
  margin: 0;
  padding: 0;
}

/* Başlıklar Montserrat ile */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--secondary-color);
  margin-top: 0;
}

/* Linkler */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--secondary-color);
}

/* Butonlar */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* === ÜST BAR (TOP BAR) === */
.top-bar {
  background-color: var(--secondary-color);
  color: #fff;
  font-size: 0.9rem;
  padding: 5px 0;
}
.top-bar a {
  color: #fff;
  margin-right: 10px;
  transition: color 0.3s ease;
}
.top-bar a:hover {
  color: var(--primary-color) !important;
}

/* === ALT BAR (LOGO + MENÜ) === */
.main-header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 15px 0;
}
.site-logo img {
  max-height: 60px;
}
/*.main-nav .navbar-nav > li {
  margin-left: 15px;
}
.main-nav .navbar-nav > li > a {
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}
.main-nav .navbar-nav > li > a:hover {
  color: var(--primary-color);
}*/
/* === NAVBAR GENEL === */
.main-header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 999;
  position: relative;
}

.navbar-nav {
  gap: 15px;
}

.navbar-nav .nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  padding: 10px 15px;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.current-menu-item .nav-link,
.navbar-nav .nav-item.current_page_item .nav-link,
.navbar-nav .nav-item.current-menu-ancestor .nav-link {
  background-color: var(--primary-color);
  color: #fff !important;
}

/* === DROPDOWN MENÜ === */
.navbar-nav .dropdown-menu {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.navbar-nav .dropdown-menu .dropdown-item {
  padding: 10px 15px;
  color: var(--secondary-color);
  transition: background-color 0.3s ease;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* === TOGGLER STİLİ === */
.navbar-toggler {
  border: none;
  background: transparent;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba%280, 0, 0, 0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === MOBİL MENÜ === */
@media (max-width: 768px) {
  .navbar-nav {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
  }
}

/* === FOOTER STYLE === */
.site-footer {
  background-color: var(--lighter-bg);
  color: var(--secondary-color);
  padding: 30px 0 20px;
}
.footer-widget {
  font-size: 0.95rem;
}
.widget-title {
  color: var(--primary-color);
  font-weight: 600;
}
.footer-bottom {
  background-color: var(--light-bg);
  font-size: 0.9rem;
  padding: 10px 0;
  text-align: center;
}
.footer-bottom a {
  color: var(--secondary-color);
  transition: color 0.3s ease;
}
.footer-bottom a:hover {
  color: var(--primary-color);
}

/*=== SLIDER VE BANNER ===*/
.homepage-hero img,
.homepage-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/*=== KART STYLELERI ===*/
.homepage-cards .card {
  border: none;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.homepage-cards .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Ürün slider img */
.homepage-product-slider img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
}

/* Blog kart başlıkları */
.homepage-blog .card-title {
  color: var(--secondary-color);
}

/* Responsive ufak düzeltmeler */
@media (max-width: 767px) {
  .main-nav .navbar-nav > li {
    margin-left: 0;
  }
  .top-bar, .main-header {
    text-align: center;
  }
}

/*=== SLIDER STYLE ===*/
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px; /* Buradaki değeri istediğin gibi ayarlayabilirsin */
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px; /* Buradaki değeri istediğin gibi ayarlayabilirsin */
}

@media (max-width: 768px) {
  .swiper {
    height: 180px;
  }
}

.main-nav .navbar-nav > li > a {
  color: #01325A; /* Lacivert */
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav .navbar-nav > li > a:hover,
.main-nav .navbar-nav > li > a:focus {
  color: #EF811D; /* Turuncu */
}

/* === Banner Açıklama Yazı ===*/
.banner-box {
    overflow: hidden;
}

.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(1, 50, 90, 0.75); /* Lacivert yarı saydam */
    color: #fff;
    padding: 10px 15px;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 0 0 0.375rem 0.375rem; /* alt kısmı yuvarla */
}

.banner-box img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

/* === Single Ürün Sayfası ===*/
.product-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-meta li {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.product-gallery {
    margin-top: 15px;
}
.product-gallery .gallery-item img {
    max-width: 70px;
    border-radius: 6px;
    transition: transform 0.3s ease;
}
.product-gallery .gallery-item img:hover {
    transform: scale(1.1);
    border: 2px solid #25D366; /* WhatsApp yeşili */
    cursor: pointer;
}

.btn-success {
    background-color: #25D366;
    border-color: #25D366;
}
.btn-success:hover {
    background-color: #1ebe57;
    border-color: #1ebe57;
}

.nav-tabs .nav-link {
    color: #333;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: #EF811D;
    border-color: #EF811D #EF811D #fff;
}

.tab-content {
    background: #fff;
}

/*=== Yorum Formu ===*/
  /* Aktif küçük resim stili */
  .gallery-thumb.active-thumb {
    border: 2px solid #EF811D !important;
    opacity: 0.8;
  }

  /* Sosyal medya ikonları */
  .social-share a {
    color: #555;
    transition: color 0.3s ease;
  }
  .social-share a:hover {
    color: #EF811D;
  }

  /* Yorum formu stil önerisi */
  .comment-respond {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(239, 129, 29, 0.3);
    margin-top: 20px;
  }
  .comment-respond h3 {
    color: #EF811D;
    font-weight: 700;
    margin-bottom: 15px;
  }
  .comment-respond input[type="text"],
  .comment-respond input[type="email"],
  .comment-respond textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease;
  }
  .comment-respond input[type="text"]:focus,
  .comment-respond input[type="email"]:focus,
  .comment-respond textarea:focus {
    border-color: #EF811D;
    outline: none;
    box-shadow: 0 0 5px #EF811D;
  }
  .comment-respond input[type="submit"] {
    background-color: #EF811D;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  .comment-respond input[type="submit"]:hover {
    background-color: #c96910;
  }
  /* Sirket hakkinda style*/
  .company-info {
  background: #f9f9f9;
}
.company-info h2 {
  font-weight: 600;
}

/*Timeline style*/
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 3px solid #EF811D; /* Turuncu */
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}
.timeline-year {
  position: absolute;
  left: -3.8rem;
  top: 0;
  background: #EF811D; /* Turuncu */
  color: white;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 0.25rem;
  font-size: 1.1rem;
  width: 4rem;
  text-align: center;
}
.timeline-content h5 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #003366; /* Lacivert */
  font-size: 1.2rem; /* Başlıkları büyüttüm */
}
.activities h6 {
  font-weight: 600;
  font-size: 1.1rem; 
  color: #003366; /* Lacivert */
}
.activities p {
  color: #555;
  font-size: 1rem; /* Normal metin biraz büyütüldü */
}

@media (max-width: 767px) {
  .timeline {
    padding-left: 1.2rem;
    border-left: 2px solid #EF811D; /* Turuncu */
  }
  .timeline-year {
    left: -3rem;
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
    width: 3rem;
  }
}

/*Partner logo alanı*/
.partner-logo {
  max-height: 60px;
  filter: grayscale(100%);
  transition: filter .3s ease;
  object-fit: contain;
}
.partner-logo:hover { filter: grayscale(0%); }
.swiper-slide { padding: 15px; }
.partner-logos .swiper-slide {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logos .partner-logo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-logos .partner-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}
@media (max-width: 576px) {
  .partner-logos .swiper-slide { height: 80px; }
  .partner-logos .partner-logo { max-height: 60px; }
}

/* Bayrak kapsayıcı */
#flag-cluster {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.flag-cluster-star {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  -webkit-clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  object-fit: cover;
  opacity: 0.9;
  transition: transform 3s ease, opacity 1s ease;
}

/*Bayrak Slider*/
.flags-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

/*Sayfalama Renk style*/
.pagination .page-link {
  color: var(--primary-color);       /* Turuncu renk */
  border-color: var(--primary-color);
  background-color: white;
}

.pagination .page-link:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.flag-container {
  margin: 30px auto;
  width: 200px;
  height: 120px;
  perspective: 800px; /* 3D derinlik için */
}

.flag {
  width: 100%;
  height: auto;
  animation: wave 3s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes wave {
  0% { transform: rotateY(0deg) translateX(0); }
  25% { transform: rotateY(10deg) translateX(5px); }
  50% { transform: rotateY(0deg) translateX(0); }
  75% { transform: rotateY(-10deg) translateX(-5px); }
  100% { transform: rotateY(0deg) translateX(0); }
}
