/*
Theme Name: Bi Bo Badminton
Description: Custom WooCommerce theme for badminton racket shop
Version: 1.0
Text Domain: bibo-badminton
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-pink: #ec1e7e;
  --color-blue: #1a3fcf;
  --color-black: #1a1a1a;
  --color-white: #ffffff;
  --color-border: #d9d9d9;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--color-black);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==========================================================================
   TOP BAR - single row: hotlines + search + social
   ========================================================================== */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--color-white);
  padding: 14px 24px;
  flex-wrap: wrap;
}

.hotline-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 8px 18px;
}

.hotline-pill .icon-phone {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  font-size: 12px;
  flex-shrink: 0;
}

.hotline-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hotline-label {
  font-size: 11px;
  color: var(--color-pink);
  font-weight: 600;
}

.hotline-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
}

.search-bar {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  min-width: 260px;
}

.search-bar input {
  border: none;
  padding: 10px 16px;
  flex: 1;
  outline: none;
  font-size: 14px;
  color: #999;
}

.search-bar button {
  background: var(--color-blue);
  color: var(--color-white);
  border: none;
  width: 44px;
  height: 42px;
  cursor: pointer;
  flex-shrink: 0;
}

.social-icons {
  display: flex;
  gap: 12px;
  font-size: 40px;
}

.social-icons i.fa-facebook { color: #1877f2; }
.social-icons i.fa-tiktok { color: #000; }
.social-icons i.fa-instagram { color: #c13584; }

/* ==========================================================================
   MAIN NAV - solid pink bar, logo overlaps top-bar + nav
   ========================================================================== */

.main-nav {
  position: relative;
  background: var(--color-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.main-nav ul {
  display: flex;
  align-items: center;
}

.main-nav li a {
  display: block;
  padding: 18px 22px;
  color: var(--color-white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.main-nav li a:hover {
  opacity: 0.85;
}

/* Spacer pushes second group of links away from the logo */
.nav-spacer {
  width: 130px;
}

/* Logo circle overlaps both top-bar and nav bar */
.site-logo {
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--color-white);
  border: 4px solid var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.site-logo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 50%;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .main-nav {
    flex-wrap: wrap;
    padding-top: 60px;
  }

  .site-logo {
    top: -40px;
    width: 90px;
    height: 90px;
  }

  .nav-spacer {
    display: none;
  }

  .main-nav li a {
    padding: 12px 14px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .hotline-pill .hotline-label {
    display: none;
  }
}

/* Homepage: two-column latest products grid */
.home-products {
  padding: 40px 0;
}

.home-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

.home-product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.home-product-link {
  display: block;
}

.home-product-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.home-product-placeholder {
  width: 100%;
  height: 260px;
  background: #f0f0f0;
}

.home-product-info {
  padding: 12px 8px 4px;
}

.home-product-info .price {
  margin-top: 8px;
  color: var(--color-blue);
  font-weight: 700;
}

@media (max-width: 768px) {
  .home-products-grid {
    grid-template-columns: 1fr;
  }
}