/*
Theme Name: Boskora Minoxidil Store
Author: Boskora
Version: 1.0
Description: A minimal WooCommerce storefront for Boskora minoxidil products.
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: boskora
*/

:root {
  --color-ink: #171817;
  --color-muted: #66706b;
  --color-border: #e4e8e3;
  --color-soft: #f6f8f5;
  --color-accent: #155f4f;
  --color-accent-dark: #0f463b;
  --color-alert: #a93636;
  --color-gold: #c59b45;
  --shadow-soft: 0 18px 50px rgba(24, 36, 30, 0.08);
  --shadow-card: 0 18px 40px rgba(24, 36, 30, 0.11);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--color-ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

.top-bar {
  background: #11231f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 10px 16px;
  text-align: center;
}

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner,
.section-inner {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  min-height: 78px;
}

.brand {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a,
.header-actions a,
.footer-links a {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.header-actions a:hover,
.footer-links a:hover {
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
}

.cart-link {
  border: 1px solid #cfd8d2;
  border-radius: 8px;
  background: var(--color-soft);
  font-weight: 800;
  padding: 10px 14px;
}

.cart-link:hover {
  background: #edf3ef;
  transform: translateY(-1px);
}

.hero {
  background:
    linear-gradient(115deg, rgba(21, 95, 79, 0.09), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #f6f8f5 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 500px);
  align-items: center;
  gap: 64px;
  min-height: 560px;
  padding: 76px 0 64px;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(21, 95, 79, 0.18);
  border-radius: 8px;
  background: rgba(21, 95, 79, 0.08);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 14px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 610px;
  color: var(--color-muted);
  font-size: 19px;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 26px;
}

.text-link {
  color: var(--color-accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.hero-proof span {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px 10px;
}

.button,
.wp-block-button__link,
.single_add_to_cart_button,
.add_to_cart_button,
.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--color-accent);
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 22px;
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button-large {
  min-height: 56px;
  padding: 15px 28px;
  font-size: 16px;
  box-shadow: 0 14px 28px rgba(21, 95, 79, 0.2);
}

.button:hover,
.wp-block-button__link:hover,
.single_add_to_cart_button:hover,
.add_to_cart_button:hover,
.checkout-button:hover {
  background: var(--color-accent-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(21, 95, 79, 0.2);
}

.hero-visual {
  display: grid;
  place-items: center;
  border: 1px solid rgba(21, 95, 79, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 95, 79, 0.13), rgba(197, 155, 69, 0.11)),
    linear-gradient(180deg, #ffffff 0%, #eef4ef 100%);
  min-height: 420px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

.hero-visual::after {
  content: "Secure checkout";
  position: absolute;
  right: 28px;
  bottom: 28px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  box-shadow: 0 12px 30px rgba(24, 36, 30, 0.12);
}

.hero-card {
  display: grid;
  justify-items: center;
  gap: 13px;
  width: min(76%, 310px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 32px 24px 28px;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-card);
  z-index: 1;
}

.hero-card strong {
  font-size: 21px;
}

.hero-card > span:not(.sale-badge) {
  color: var(--color-muted);
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--color-muted);
}

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

.product-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(24, 36, 30, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
  border-color: rgba(21, 95, 79, 0.28);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.product-image {
  display: grid;
  place-items: center;
  min-height: 300px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(21, 95, 79, 0.07)),
    var(--color-soft);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 14px;
}

.product-image-placeholder {
  display: grid;
  place-items: center;
  width: 132px;
  height: 190px;
  border: 1px solid #cfd6ce;
  border-radius: 8px 8px 18px 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #e4e8df 100%);
  color: var(--color-accent);
  font-weight: 800;
  box-shadow: 0 18px 38px rgba(24, 36, 30, 0.14);
}

.sale-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(169, 54, 54, 0.22);
  color: #ffffff;
  color: var(--color-alert);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 10px;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(24, 36, 30, 0.08);
  z-index: 2;
}

.product-content {
  display: grid;
  padding: 22px;
}

.product-title {
  min-height: 50px;
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.32;
}

.product-benefit {
  min-height: 44px;
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: 14px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.sale-price {
  color: var(--color-accent);
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  margin-right: 9px;
}

.old-price {
  color: var(--color-muted);
  text-decoration: line-through;
  font-size: 14px;
}

.stock-note {
  border-radius: 8px;
  background: rgba(169, 54, 54, 0.08);
  color: var(--color-alert);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
}

.product-card .button,
.product-card .add_to_cart_button {
  width: 100%;
}

.trust-band {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px 0;
}

.trust-badge {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(24, 36, 30, 0.04);
}

.trust-badge strong {
  display: block;
  margin-bottom: 4px;
}

.trust-badge span {
  color: var(--color-muted);
  font-size: 14px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}

.trust-item {
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
}

.reviews-section {
  border-top: 1px solid var(--color-border);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-soft);
  padding: 24px;
}

.review-card p {
  margin: 12px 0 18px;
  color: #303532;
  font-size: 16px;
}

.review-card strong {
  font-size: 14px;
}

.stars {
  color: var(--color-gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.faq-section {
  background: var(--color-soft);
  border-top: 1px solid var(--color-border);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 42px;
  align-items: start;
}

.faq-layout h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
}

.faq-layout p {
  color: var(--color-muted);
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list details p {
  padding-top: 12px;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--color-muted);
  font-size: 14px;
}

.woocommerce main,
.woocommerce-page main,
.page-content {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 46px 0;
}

.woocommerce ul.products li.product {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0 0 18px;
  overflow: hidden;
}

.woocommerce span.onsale {
  min-height: auto;
  min-width: auto;
  border-radius: 8px;
  background: var(--color-alert);
  line-height: 1;
  padding: 8px 10px;
}

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 0;
    text-align: center;
  }

  .main-nav,
  .header-actions,
  .footer-inner {
    justify-content: center;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 16px 22px;
  }

  .hero-inner,
  .product-grid,
  .trust-row,
  .trust-badges,
  .review-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    gap: 34px;
    padding: 48px 0;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .hero-visual {
    min-height: 330px;
  }

  .section-heading,
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }

  .section {
    padding: 52px 0;
  }

  .product-image {
    min-height: 250px;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .button,
  .wp-block-button__link,
  .single_add_to_cart_button,
  .add_to_cart_button,
  .checkout-button {
    width: 100%;
    min-height: 52px;
  }
}
