/* ============================================================
   BEANOVA COFFEE – Responsive CSS
   ============================================================ */

/* ============================================================
   GUVEN ALANI
   ============================================================ */
.bv-trust-section {
  background: #1a120d;
  border-top: 2px solid rgba(199, 146, 78, 0.3);
  border-bottom: 2px solid rgba(199, 146, 78, 0.3);
  padding: 40px 0;
  box-sizing: border-box;
}

.bv-trust-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 0;
}

.bv-trust-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  width: 25%;
  padding: 12px 16px;
  border-right: 1px solid rgba(199, 146, 78, 0.2);
  text-align: left;
  box-sizing: border-box;
}

.bv-trust-item:last-child {
  border-right: none;
}

.bv-trust-icon {
  width: 88px;
  height: 88px;
  min-width: 88px;
  border-radius: 50%;
  border: 2px solid rgba(199, 146, 78, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(199, 146, 78, 0.1);
  margin-bottom: 0;
}

.bv-trust-icon .fa {
  font-size: 2.75rem;
  color: #c7924e;
}

.bv-trust-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bv-trust-content h4 {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8f5f1;
  margin: 0;
  line-height: 1.3;
}

.bv-trust-content p {
  font-size: 1.125rem;
  color: #beb5ae;
  margin: 0;
  line-height: 1.5;
}

.bv-trust-divider {
  display: none;
}

/* ============================================================
   URUN KARTLARI (Light theme override for home)
   ============================================================ */
#common-home .product-thumb {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

#common-home .product-thumb:hover {
  border-color: rgba(199, 146, 78, 0.3);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

#common-home .product-thumb .image {
  background: #f7f3ee;
  text-align: center;
  overflow: hidden;
  position: relative;
}

#common-home .product-thumb .caption {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}

#common-home .product-thumb .caption h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  color: #2a1710;
  margin: 0 0 8px;
  line-height: 1.4;
  font-weight: 600;
}

#common-home .product-thumb .caption h4 a {
  color: #2a1710;
}
#common-home .product-thumb .caption h4 a:hover {
  color: #c7924e;
}

#common-home .product-thumb .caption .price {
  color: #2a1710;
  font-size: 1rem;
  font-weight: 700;
  margin-top: auto;
  padding-top: 8px;
}

#common-home .product-thumb .caption .price-new {
  color: #c7924e;
}

#common-home .product-thumb .button-group {
  background: #fafafa;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px;
  display: flex;
  gap: 6px;
}

#common-home .product-thumb .button-group button {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #7a6e66;
  padding: 8px 6px;
  font-size: 0.75rem;
  border-radius: 4px;
  transition: all 0.25s ease;
  cursor: pointer;
}

#common-home .product-thumb .button-group button:hover {
  background: rgba(199, 146, 78, 0.12);
  border-color: #c7924e;
  color: #c7924e;
}

#common-home .product-thumb .button-group button:first-child {
  background: #c7924e;
  border-color: #c7924e;
  color: #2a1710;
  font-weight: 700;
}

#common-home .product-thumb .button-group button:first-child:hover {
  background: #e4ba7a;
  border-color: #e4ba7a;
}

/* ============================================================
   RESPONSIVE – 1199px
   ============================================================ */
@media (max-width: 1199px) {
  .bv-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Arama kutusunu küçült */
  .bv-search-desktop #search,
  .bv-search-desktop .input-group {
    width: 180px !important;
  }
  .bv-search-desktop .input-group .form-control {
    width: 180px !important;
  }

  /* Nav link padding'i azalt */
  .bv-nav-item > a {
    padding: 0 10px;
    font-size: 14px;
  }

  /* Logo margin azalt */
  .bv-logo {
    margin-right: 20px;
    width: 150px;
    min-width: 150px;
  }
  .bv-logo-img {
    max-width: 150px;
  }

  /* Header actions gap azalt */
  .bv-header-actions {
    gap: 4px;
  }
}

/* ============================================================
   RESPONSIVE – 992px (Nav breakpoint)
   ============================================================ */
@media (max-width: 992px) {
  /* Masaüstü nav gizle */
  .bv-main-nav {
    display: none !important;
  }

  /* Hamburger göster */
  .bv-hamburger {
    display: flex !important;
    flex-shrink: 0 !important;
  }

  /* Masaüstü arama gizle */
  .bv-search-desktop {
    display: none !important;
  }

  /* Mobil arama ikonu göster */
  .bv-search-toggle {
    display: inline-flex !important;
    flex-shrink: 0 !important;
  }

  .bv-currency-lang {
    display: none !important;
  }

  /* Hesabım ve favoriler mobilde gizle — drawer'da erişilebilir */
  .bv-account {
    display: none !important;
  }
  .bv-wishlist-btn {
    display: none !important;
  }

  /* Sepet butonu: mobilde sadece ikon, metin gizle */
  .bv-cart-btn {
    flex-shrink: 0 !important;
  }
  .bv-cart-btn #cart > .btn {
    padding: 6px 10px !important;
    min-width: 40px !important;
  }
  .bv-cart-btn #cart > .btn .hidden-xs {
    display: none !important;
  }

  /* Header actions: overflow visible, hamburger görünsün */
  .bv-header-actions {
    overflow: visible !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  /* Logo küçült */
  .bv-logo {
    width: 130px !important;
    min-width: 130px !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
  }
  .bv-logo-img {
    max-width: 130px !important;
  }
}

/* ============================================================
   RESPONSIVE – 991px (Tablet)
   ============================================================ */
@media (max-width: 991px) {
  /* Hero */
  .bv-hero-slider {
    min-height: 500px;
  }
  .bv-slide.active {
    min-height: 500px;
  }
  .bv-slide .container {
    padding-bottom: 140px;
  }

  /* Features */
  .bv-features-row {
    flex-wrap: wrap;
    gap: 0;
    padding: 16px 0;
  }
  .bv-feature-item {
    flex: 0 0 50%;
    padding: 12px 16px;
    justify-content: flex-start;
  }
  .bv-feature-divider {
    display: none;
  }

  /* Trust */
  .bv-trust-grid {
    flex-wrap: wrap;
    gap: 0;
  }
  .bv-trust-item {
    flex: 0 0 50%;
    padding: 16px;
    justify-content: flex-start;
  }
  .bv-trust-divider {
    display: none;
  }

  /* Categories */
  .bv-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .bv-footer-row .col-md-4,
  .bv-footer-row .col-md-2,
  .bv-footer-row .col-md-3 {
    margin-bottom: 28px;
  }
}

/* ============================================================
   RESPONSIVE – 767px (Mobile)
   ============================================================ */
@media (max-width: 767px) {
  /* Header */
  .bv-header-inner {
    height: 64px;
  }

  /* Hero */
  .bv-hero-slider {
    min-height: 480px;
  }
  .bv-slide.active {
    min-height: 480px;
  }
  .bv-hero-title {
    font-size: 2rem;
  }
  .bv-hero-desc {
    font-size: 0.875rem;
  }
  .bv-slide .container {
    padding-top: 40px;
    padding-bottom: 160px;
  }

  /* Slider controls */
  .bv-slider-prev {
    left: 10px;
  }
  .bv-slider-next {
    right: 10px;
  }
  .bv-slider-dots {
    bottom: 120px;
  }

  /* Features */
  .bv-feature-item {
    flex: 0 0 100%;
  }

  /* Categories */
  .bv-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Trust */
  .bv-trust-item {
    flex: 0 0 100%;
  }

  /* Footer */
  .bv-footer-row .col-md-4,
  .bv-footer-row .col-md-2,
  .bv-footer-row .col-md-3 {
    width: 100%;
    margin-bottom: 24px;
  }
  .bv-footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Product buttons */
  .product-thumb .button-group {
    flex-wrap: wrap;
  }
  .product-thumb .button-group button {
    flex: 0 0 100%;
  }
  .product-thumb .button-group button:first-child {
    flex: 0 0 100%;
  }
}

/* ============================================================
   RESPONSIVE – 480px (Small Mobile)
   ============================================================ */
@media (max-width: 480px) {
  .bv-hero-title {
    font-size: 1.75rem;
  }
  .bv-hero-badge {
    font-size: 0.65rem;
    padding: 5px 12px;
  }
  .bv-btn-primary {
    padding: 12px 20px;
    font-size: 0.8125rem;
  }
  .bv-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .bv-cat-name {
    font-size: 0.75rem;
  }
}

/* ============================================================
   RESPONSIVE – 360px (Very Small)
   ============================================================ */
@media (max-width: 360px) {
  .bv-cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .bv-hero-title {
    font-size: 1.6rem;
  }
}

/* ============================================================
   BODY NAV OPEN (overflow lock)
   ============================================================ */
body.bv-nav-open {
  overflow: hidden;
}

/* ============================================================
   D-NONE / D-LG-FLEX UTILITY
   ============================================================ */
.d-none {
  display: none !important;
}
.d-lg-flex {
  display: none !important;
}

@media (min-width: 992px) {
  .d-lg-flex {
    display: flex !important;
  }
}
