/*
Theme Name: Libera
Version: 1.1.6
*/

/* ===== Variables ===== */

:root {
  --primary: #008575;
  --primary-hover: #00594e;
  --secondary: #850010;
  --accent: #00d1b9;
  --bg-light: #f0f7f6;
  --text: #1a1c1c;
  --border: #d6e4e2;
}

/* ===== Reset ===== */

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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

ul,
ol {
  list-style: none;
}

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

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

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

input,
button,
select,
textarea {
  font: inherit;
}

/* ===== Layout ===== */

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-light,
.card,
.widget {
  background: var(--bg-light);
}

/* ===== Buttons ===== */

button,
.button,
.woocommerce a.button {
  background: var(--primary);
  color: #fff;
  padding: 0.7em 1.2em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

button:hover,
.button:hover,
.woocommerce a.button:hover {
  background: var(--primary-hover);
}

/* ===== Forms ===== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  border: 1px solid var(--border);
  padding: 0.6em;
  border-radius: 3px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
}

/* ===== Header ===== */

#site-header {
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

/* Top bar */
.header-top {
  background: var(--bg-light);
  padding: 8px 0;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.site-logo img {
  max-height: 50px;
}

.site-logo a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-hover);
  text-decoration: none;
}

/* Search */
.header-search {
  flex: 1;
  max-width: 500px;
}

.header-search form {
  display: flex;
}

.header-search input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px 0 0 4px;
  font-size: 0.95rem;
}

.header-search button {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-left: none;
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-search button:hover {
  background: var(--primary-hover);
}

/* Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-icons a {
  font-size: 1.25rem;
  position: relative;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.header-icons a:hover {
  color: var(--primary);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 50%;
}

/* ===== Menu ===== */

.header-bottom {
  background: var(--primary-hover);
}

.primary-menu {
  display: flex;
  justify-content: center;
}

.primary-menu ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  color: #fff;
  font-weight: 500;
  padding: 10px 0;
  display: block;
  font-size: 0.95rem;
  text-decoration: none;
}

/* ===== WooCommerce ===== */

.woocommerce span.onsale {
  background: var(--secondary);
  color: #fff;
}

.woocommerce .price {
  color: var(--primary);
  font-weight: 600;
}

.woocommerce-message {
  border-top: 3px solid var(--primary);
}
.woocommerce-info {
  border-top: 3px solid var(--accent);
}

.woocommerce-error {
  border-top: 3px solid var(--secondary);
  background: #fff5f6;
}

.woocommerce-cart table.cart th,
.woocommerce-checkout #payment {
  background: var(--bg-light);
}

.woocommerce .quantity input.qty {
  border: 1px solid var(--border);
}
