/*
Theme Name: Wpilo Fashion
Text Domain: wpilo-fashion
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
*/

:root {
  --bg: #fbfaf9;
  --panel: #ffffff;
  --text: #111827;
  --muted: rgba(17, 24, 39, 0.70);
  --border: rgba(17, 24, 39, 0.10);
  --accent: #b45309;
  --accent-2: #db2777;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 92% -12%, rgba(219, 39, 119, 0.10), transparent 58%),
    radial-gradient(900px 520px at 10% 0%, rgba(180, 83, 9, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.7;
}

html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="ltr"] body { direction: ltr; text-align: left; }

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select { direction: rtl; }

input,
select,
textarea {
  font: inherit;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  padding-inline-end: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
  padding-inline-end: 12px;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(219, 39, 119, 0.45);
  box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.14), 0 12px 30px rgba(17, 24, 39, 0.06);
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(17, 24, 39, 0.65) 50%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.65) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

html[dir="rtl"] select {
  background-position: 18px 50%, 12px 50%;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.93; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(251, 250, 249, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(180, 83, 9, 1), rgba(219, 39, 119, 0.92));
  box-shadow: 0 18px 40px rgba(219, 39, 119, 0.18);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.primary-nav a:hover {
  background: rgba(17, 24, 39, 0.05);
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.button:hover { transform: translateY(-1px); }

.button.button-accent {
  border-color: rgba(219, 39, 119, 0.28);
  background: linear-gradient(135deg, rgba(180, 83, 9, 1), rgba(219, 39, 119, 1));
  color: #fff;
  box-shadow: 0 18px 44px rgba(219, 39, 119, 0.20);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: var(--text);
  font-size: 12px;
  line-height: 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.hero { padding: 40px 0 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4.2vw, 44px);
  line-height: 1.18;
}

.hero p { margin: 0 0 16px; color: var(--muted); }

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section { padding: 28px 0; }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 16px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(17, 24, 39, 0.07);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 62px rgba(17, 24, 39, 0.10);
}

.card-body { padding: 14px; }
.card-title { margin: 0 0 6px; font-weight: 900; }
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.product-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.price {
  font-weight: 900;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.entry-content { overflow-wrap: anywhere; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--muted);
  background: rgba(255,255,255,0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
}

.mobile-nav summary::-webkit-details-marker { display: none; }

.mobile-nav-panel {
  position: absolute;
  top: 44px;
  inset-inline-end: 0;
  width: min(320px, calc(100vw - 32px));
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(17, 24, 39, 0.16);
  padding: 10px;
}

.mobile-nav-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.mobile-nav-panel a:hover { background: rgba(17, 24, 39, 0.05); }

.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-result-count { color: var(--muted); }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border-radius: 999px;
  border: 1px solid rgba(219, 39, 119, 0.22);
  background: linear-gradient(135deg, rgba(180, 83, 9, 1), rgba(219, 39, 119, 1));
  color: #fff;
  padding: 10px 14px;
}

html[dir="rtl"] .woocommerce table.shop_table { text-align: right; }

.woocommerce table.shop_table {
  border-radius: 14px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .primary-nav { display: none; }
  .mobile-nav { display: block; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .container { width: calc(100% - 24px); }
  .panel { padding: 18px; }
  .header-actions .button { padding: 10px 12px; }
}
