/*
Theme Name: Sinostar Static Conversion
Theme URI: https://example.com/
Author: Codex
Author URI: https://example.com/
Description: Converted static HTML to a WordPress theme with configurable sections and admin controls.
Version: 1.0.0
Text Domain: sinostar
*/

/* Theme-level overrides and section control helpers */
.sinostar-section {
  --sinostar-text-color: inherit;
  --sinostar-text-size: inherit;
  color: var(--sinostar-text-color);
  font-size: var(--sinostar-text-size);
}

.sinostar-section.is-hidden {
  display: none !important;
}

.sinostar-section .sinostar-section-inner {
  position: relative;
}

.mobile-nav {
  display: none;
}

.mobile-nav.is-open {
  display: block;
}

.sinostar-product-actions {
  margin-top: 8px;
}

/* Header layout fixes */
.head-info .l-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.head-logo {
  flex: 0 0 auto;
}

.head-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.head-nav .nav-ul,
.head-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.head-nav .nav-ul > li,
.head-nav ul > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.head-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.head-search {
  flex: 0 0 auto;
  max-width: 240px;
}

.head-search .search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  width: 100%;
}

.head-search input[type="text"],
.head-search input[name="s"] {
  border: none;
  outline: none;
  width: 100%;
  min-width: 0;
  background: transparent;
}

.head-search .search-btn {
  border: none;
  background: transparent;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .head-info .l-wrap {
    flex-wrap: wrap;
  }
  .head-nav {
    order: 3;
    width: 100%;
  }
  .head-search {
    order: 2;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .head-nav {
    display: none;
  }
  .mobile-nav.is-open {
    display: block;
  }
}
