/* ========================================
   GH LASH — sweetheartlashes.com style
   Config: white bg / pink #FFEBF2 / black
   Fonts: Libre Baskerville (headings) / Helvetica (body)
   ======================================== */

/* --- Reset & Base --- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink: #FFEBF2;
  --pink-deep: #FFD4E5;
  --pink-logo: #E8919F;
  --black: #000000;
  --white: #FFFFFF;
  --gray: #737373;
  --gray-light: #B8B8B8;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: Helvetica, Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* --- Announcement Bar --- */
.announcement-bar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  letter-spacing: 0.3px;
}

/* --- Header --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #E5E5E5;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.header-right { justify-content: flex-end; }

.icon-btn,
.search-toggle,
.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--black);
  position: relative;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mobile-menu-toggle { display: none; }
.search-toggle { display: inline-flex; }
.icon-btn { display: inline-flex; }

.icon-btn svg,
.search-toggle svg,
.mobile-menu-toggle svg { width: 22px; height: 22px; display: block; }

.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Logo — pink serif italic, two lines centered */
.site-branding { flex: 0 0 auto; text-align: center; }

.site-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.logo-line-1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--pink-logo);
  letter-spacing: 1px;
}

.logo-line-2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  color: var(--pink-logo);
  letter-spacing: 0.5px;
}

/* Nav */
.main-navigation {
  border-bottom: 1px solid #F0F0F0;
}

.main-navigation ul.nav-menu {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 12px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.main-navigation .nav-menu a {
  font-size: 14px;
  color: var(--black);
  font-weight: 400;
  transition: opacity 0.2s;
}

.main-navigation .nav-menu a:hover { opacity: 0.6; }

/* Search overlay */
.search-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid #E5E5E5;
  padding: 24px;
  z-index: 999;
}

.search-overlay.active { display: block; }

.search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 8px;
}

.search-form input[type="search"] {
  flex: 1;
  border: 1px solid #E5E5E5;
  padding: 10px 16px;
  font-size: 15px;
}

.search-form button {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  font-size: 14px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  padding: 12px 30px;
  border: 1px solid var(--black);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover {
  background: #333;
  border-color: #333;
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-options {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
  width: 100%;
  padding: 8px 16px;
  font-size: 14px;
  margin-top: 8px;
}

.btn-options:hover {
  background: var(--black);
  color: var(--white);
}

/* --- Hero — black bg white text --- */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.hero-rating {
  font-size: 14px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title em {
  font-style: italic;
}

.hero-features {
  margin-bottom: 32px;
}

.hero-features > p {
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.hero-features ul {
  display: inline-block;
  text-align: left;
  font-size: 16px;
  line-height: 1.8;
}

.hero-features li {
  padding-left: 4px;
}

.hero-cta {
  font-size: 16px;
  padding: 14px 40px;
}

/* --- Section titles --- */
.section-title-center {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.section-sub-center {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 32px;
  color: #333;
}

/* --- Easy Steps --- */
.easy-steps {
  padding: 60px 0;
  background: var(--white);
}

.steps-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
}

.step-item {
  text-align: center;
  flex: 0 0 auto;
}

.step-number {
  width: 48px;
  height: 48px;
  border: 2px solid var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 auto 12px;
}

.step-name {
  font-family: var(--serif);
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
}

.step-item p {
  font-size: 14px;
  color: var(--gray);
}

.steps-cta {
  text-align: center;
}

/* --- Reviews --- */
.reviews-section {
  padding: 60px 0;
  background: var(--pink);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--white);
  padding: 24px;
  border-radius: 0;
}

.review-stars {
  color: #FFD700;
  font-size: 16px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  color: #333;
}

.review-author {
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
}

/* --- Products Section --- */
.products-section {
  padding: 60px 0;
  background: var(--white);
}

/* Product grid — works for both [products] shortcode and archive */
.lash-products-grid,
.lash-products-grid > ul.products,
ul.products.lash-products-grid,
div.woocommerce > ul.products {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 -12px;
  width: auto;
}

ul.products > li.product,
.lash-products-grid > li.product {
  width: 25%;
  padding: 0 12px;
  margin: 0 0 32px;
  box-sizing: border-box;
  float: none;
  position: relative;
}

/* Product card inner — pink gradient bg, no border, no shadow */
.product-card-inner {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  padding: 0;
  text-align: center;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-media-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 48px;
  background: var(--pink);
}

/* SALE tag — top left, small */
.sale-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.5px;
}

/* Product body */
.product-body {
  padding: 16px 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.product-item-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 8px;
}

.product-item-name a {
  color: var(--black);
}

.product-item-name a:hover { text-decoration: underline; }

.product-rating-row {
  margin-bottom: 8px;
}

.product-rating-row .stars {
  color: #FFD700;
  font-size: 14px;
}

.product-price-container {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-regular {
  text-decoration: line-through;
  color: var(--gray-light);
  font-size: 14px;
}

.price-sale {
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
}

.price-current {
  font-size: 16px;
  color: var(--black);
}

/* --- Newsletter --- */
.newsletter-section {
  padding: 60px 0;
  background: var(--pink);
  text-align: center;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 24px auto 0;
  gap: 8px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  border: 1px solid var(--black);
  padding: 12px 16px;
  font-size: 15px;
}

.newsletter-form button {
  flex: 0 0 auto;
}

/* --- Footer --- */
.site-footer {
  background: var(--pink);
  padding: 48px 0 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin-top: 12px;
  max-width: 320px;
}

.footer-logo .logo-line-1 { font-size: 18px; }
.footer-logo .logo-line-2 { font-size: 12px; }

.footer-col h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
  transition: color 0.2s;
}

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

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--black);
  font-size: 12px;
  font-weight: 600;
  border-radius: 0;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--black);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #555;
}

/* --- Cart Drawer --- */
.lash-cart-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  display: none;
}

.lash-cart-overlay.active { display: block; }

.lash-cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.lash-cart-drawer.active { transform: translateX(0); }

.lash-cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #E5E5E5;
}

.lash-cart-drawer-header h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.lash-cart-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--black);
  line-height: 1;
}

.lash-cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.lash-cart-empty {
  text-align: center;
  color: var(--gray);
  padding: 40px 0;
}

.lash-cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #F0F0F0;
}

.lash-cart-item-img {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  overflow: hidden;
}

.lash-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lash-cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lash-cart-item-name {
  font-size: 14px;
  font-weight: 400;
}

.lash-cart-item-variant {
  font-size: 12px;
  color: var(--gray);
}

.lash-cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.lash-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lash-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #E5E5E5;
  background: var(--white);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lash-qty span {
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

.lash-cart-item-price {
  font-size: 14px;
  font-weight: 600;
}

.lash-cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid #E5E5E5;
}

.lash-cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 16px;
}

.lash-cart-subtotal span:last-child { font-weight: 600; }

.lash-cart-drawer-footer .btn {
  width: 100%;
  margin-bottom: 8px;
}

.lash-view-cart {
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--gray);
}

.lash-view-cart:hover { color: var(--black); }

/* --- WooCommerce Archive --- */
.wc-container.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--black);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  ul.products > li.product,
  .lash-products-grid > li.product { width: 33.3333%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-left { gap: 8px; }
  .header-right { gap: 8px; }

  .logo-line-1 { font-size: 18px; }
  .logo-line-2 { font-size: 11px; }

  .main-navigation ul.nav-menu {
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 16px;
  }

  .hero-title { font-size: 26px; }
  .hero-features > p { font-size: 17px; }
  .hero-features ul { font-size: 15px; }

  .section-title-center { font-size: 22px; }

  .steps-row {
    gap: 20px;
    flex-wrap: wrap;
  }

  .step-number { width: 40px; height: 40px; font-size: 16px; }

  ul.products > li.product,
  .lash-products-grid > li.product {
    width: 50%;
    padding: 0 8px;
    margin-bottom: 20px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .mobile-menu-toggle { display: inline-flex; }

  .main-navigation.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 1px solid #E5E5E5;
    z-index: 998;
  }

  .main-navigation.mobile-open ul.nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 22px; }
  .hero-features ul { font-size: 14px; }
  .hero-cta { padding: 12px 28px; font-size: 14px; }

  ul.products > li.product,
  .lash-products-grid > li.product { width: 50%; }

  .product-item-name { font-size: 13px; }
  .price-sale, .price-current { font-size: 14px; }
}
