/* Was Par My — light flexbox redesign (site palette) */
:root {
  --cyan: #00b0e1;
  --cyan-dark: #01a2d8;
  --pink: #d0344a;
  --pink-hot: #e44057;
  --text: #626262;
  --heading: #222;
  --muted: #8a8a8a;
  --bg: #f4f7f9;
  --bg-soft: #e8f4f9;
  --surface: #ffffff;
  --header-bg: #1a1f24;
  --border: #dde3e8;
  --max: 1120px;
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0, 176, 225, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(208, 52, 74, 0.08), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, #eef2f5 40%, var(--bg) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--cyan-dark);
  text-decoration: none;
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--header-bg);
  color: #cfd6dc;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 176, 225, 0.15), transparent 40%),
    linear-gradient(225deg, rgba(208, 52, 74, 0.12), transparent 35%);
  pointer-events: none;
}

.header-top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 0.55rem 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top a {
  color: #d5dde3;
}

.header-top a:hover {
  color: var(--cyan);
}

.header-welcome {
  color: var(--muted);
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.header-middle {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
}

.brand img {
  height: 48px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #fff;
}

.brand-tag {
  font-size: 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.promo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.promo-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12px;
  color: #b8c2ca;
}

.promo-item img {
  width: 28px;
  height: auto;
}

/* Nav */
.site-nav {
  background: linear-gradient(180deg, #222a31 0%, #181d22 100%);
  border-top: 1px solid rgba(0, 176, 225, 0.25);
  border-bottom: 3px solid var(--cyan);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  padding: 0.35rem 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 14px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.1rem;
  flex: 1;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 0.7rem 0.85rem;
  color: #e8eef2;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-list > li > a:hover,
.nav-list > li:hover > a,
.nav-list > li > a.is-active {
  color: var(--cyan);
}

.has-dropdown > a::after {
  content: " ▾";
  font-size: 10px;
  opacity: 0.7;
}

.dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  z-index: 50;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.dropdown a:hover {
  background: var(--bg-soft);
  color: var(--cyan-dark);
}

/* Main */
main {
  flex: 1;
  padding: 1.75rem 0 2.5rem;
}

.page-header {
  margin-bottom: 1.25rem;
}

.page-header h1 {
  margin: 0 0 0.35rem;
  color: var(--cyan-dark);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.breadcrumbs {
  font-size: 13px;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--cyan-dark);
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: stretch;
}

.hero-slider {
  flex: 1 1 55%;
  min-width: 260px;
  display: flex;
  gap: 0.75rem;
  overflow: hidden;
  border-radius: 2px;
}

.hero-slider a {
  flex: 1;
  overflow: hidden;
  background: #111;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  transition: transform 0.45s ease;
}

.hero-slider a:hover img {
  transform: scale(1.04);
}

.hero-side {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 220px;
}

.hero-side img {
  width: 100%;
  height: auto;
}

/* Sections */
.section {
  margin-bottom: 2rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 0.45rem;
}

.section-head h2 {
  margin: 0;
  color: var(--heading);
  font-size: 1.25rem;
}

.section-head a {
  font-size: 13px;
  font-weight: 600;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.cat-tabs a {
  padding: 0.4rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.cat-tabs a:hover,
.cat-tabs a.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}

/* Product grid */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-card {
  flex: 1 1 calc(25% - 1rem);
  min-width: 180px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.product-card .thumb {
  aspect-ratio: 1;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.product-card .thumb img {
  max-height: 150px;
  width: auto;
  margin: 0 auto;
}

.product-card .body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.product-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.product-card h3 a {
  color: var(--heading);
}

.product-card h3 a:hover {
  color: var(--cyan-dark);
}

.price {
  color: var(--pink);
  font-weight: 700;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  background: var(--pink);
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--pink-hot);
}

.btn-ghost {
  background: transparent;
  color: var(--cyan-dark) !important;
  border: 1px solid var(--cyan);
}

.btn-ghost:hover {
  background: var(--bg-soft);
}

/* Product detail */
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
}

.product-gallery {
  flex: 0 1 280px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px solid var(--border);
}

.product-meta {
  flex: 1 1 280px;
}

.product-meta .price {
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.product-meta .meta-line {
  margin: 0.25rem 0;
  font-size: 14px;
}

.content-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem 1.35rem;
}

.content-box p:first-child {
  margin-top: 0;
}

.content-box p:last-child {
  margin-bottom: 0;
}

/* Forms (static) */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 420px;
}

.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
}

.form-stack input,
.form-stack textarea,
.form-stack select {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  font: inherit;
  color: var(--text);
  background: #fff;
}

.form-stack textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background: #1a1f24;
  color: #aeb7bf;
  padding: 2rem 0 1.25rem;
  margin-top: auto;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-bottom: 1.5rem;
}

.footer-col {
  flex: 1 1 180px;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--cyan);
  display: inline-block;
  padding-bottom: 0.25rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: #aeb7bf;
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  font-size: 12px;
  color: #7a858e;
  text-align: center;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
}

/* Blog cards from r-template_blog */
.blog-container {
  margin-top: 0.5rem;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-card {
  flex: 1 1 calc(50% - 1rem);
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.1rem 1.2rem;
}

.blog-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.blog-title a {
  color: var(--heading);
}

.blog-title a:hover {
  color: var(--cyan-dark);
}

.blog-preview {
  color: var(--text);
  font-size: 14px;
}

.blog-preview p {
  margin: 0;
}

/* Animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.section-head,
.product-card {
  animation: fade-up 0.5s ease both;
}

.product-card:nth-child(2) {
  animation-delay: 0.05s;
}
.product-card:nth-child(3) {
  animation-delay: 0.1s;
}
.product-card:nth-child(4) {
  animation-delay: 0.15s;
}

@media (max-width: 900px) {
  .product-card {
    flex: 1 1 calc(50% - 1rem);
  }

  .hero-side {
    max-width: none;
    flex-direction: row;
    flex: 1 1 100%;
  }

  .hero-side img {
    width: calc(33.33% - 0.5rem);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    margin: 0.35rem 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-list.is-open {
    display: flex;
  }

  .has-dropdown > .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    display: none;
  }

  .has-dropdown.is-open > .dropdown {
    display: block;
  }

  .dropdown a {
    color: #d5dde3;
  }

  .product-card {
    flex: 1 1 100%;
  }

  .brand img {
    height: 40px;
  }
}
