/*
Theme Name: Aorest Flower v1.0.8
Theme URI: https://aorest.com/
Author: Aorest
Description: Custom theme for aorest.com — lightweight, mobile-first, no Elementor. Built on Cmosa base architecture with Aorest brand identity (gold/champagne palette). v1.0.1 adds Hero + Trust strip + 3-col service homepage sections.
Version: 1.0.8
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: aorest
*/

/* ==========================================================================
   1. CSS VARIABLES (Aorest Brand)
   ========================================================================== */
:root {
  /* Brand Colors */
  --aorest-primary: #dd9933;
  --aorest-primary-dark: #b87a1f;
  --aorest-secondary-1: #cab79a;
  --aorest-secondary-2: #e1caa7;
  --aorest-gradient: linear-gradient(145deg, #cab79a, #e1caa7);
  --aorest-gold-shadow: rgba(42, 67, 113, 0.15);

  /* Neutrals */
  --aorest-text: #222222;
  --aorest-text-muted: #666666;
  --aorest-text-light: #999999;
  --aorest-bg: #ffffff;
  --aorest-bg-alt: #f8f6f2;
  --aorest-border: #e8e4dc;

  /* Status */
  --aorest-success: #28a745;
  --aorest-line: #06c755;
  --aorest-messenger: #0084ff;
  --aorest-phone: #dd9933;

  /* Layout */
  --aorest-container: 1200px;
  --aorest-radius: 8px;
  --aorest-radius-lg: 16px;

  /* Typography */
  --aorest-font: 'Kanit', system-ui, -apple-system, sans-serif;
  --aorest-font-display: 'Kanit', sans-serif;

  /* Spacing */
  --aorest-section-pad: 60px;
  --aorest-section-pad-mobile: 40px;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--aorest-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--aorest-text);
  background: var(--aorest-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--aorest-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--aorest-primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--aorest-font-display);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 .5em;
  color: var(--aorest-text);
}

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1em; }

button { font-family: inherit; cursor: pointer; }

/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.aorest-container {
  max-width: var(--aorest-container);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .aorest-container { padding: 0 24px; }
}

.aorest-section {
  padding: var(--aorest-section-pad-mobile) 0;
}

@media (min-width: 768px) {
  .aorest-section { padding: var(--aorest-section-pad) 0; }
}

.aorest-section-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.aorest-section-title .aorest-section-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--aorest-primary);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .aorest-section-title { font-size: 22px; margin-bottom: 24px; }
  .aorest-section-title .aorest-section-link { font-size: 14px; }
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.aorest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--aorest-radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  line-height: 1;
}
.aorest-btn:hover { transform: translateY(-1px); }
.aorest-btn-primary { background: var(--aorest-primary); color: #fff; }
.aorest-btn-primary:hover { background: var(--aorest-primary-dark); color: #fff; }
.aorest-btn-line { background: var(--aorest-line); color: #fff; }
.aorest-btn-line:hover { background: #05a847; color: #fff; }
.aorest-btn-outline {
  background: transparent;
  color: var(--aorest-primary);
  border: 1.5px solid var(--aorest-primary);
}
.aorest-btn-outline:hover { background: var(--aorest-primary); color: #fff; }

/* ==========================================================================
   5. HEADER  (will be detailed in v1.0.1+)
   ========================================================================== */
.aorest-header {
  background: #fff;
  border-bottom: 1px solid var(--aorest-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.aorest-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 16px;
}
.aorest-logo img { height: 40px; width: auto; }

@media (min-width: 768px) {
  .aorest-header-inner { padding: 16px 24px; max-width: var(--aorest-container); margin: 0 auto; }
  .aorest-logo img { height: 50px; }
}

/* ==========================================================================
   6. STICKY BOTTOM NAV (Mobile only, <768px)
   ========================================================================== */
.aorest-sticky-bottom {
  display: none; /* hidden by default; mobile only */
}

@media (max-width: 767px) {
  .aorest-sticky-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--aorest-border);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .aorest-sticky-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px 8px;
    text-decoration: none;
    color: var(--aorest-text);
    font-size: 12px;
    font-weight: 500;
    gap: 4px;
    transition: background .15s;
    min-height: 56px;
  }
  .aorest-sticky-btn:active { background: var(--aorest-bg-alt); }

  .aorest-sticky-btn-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .aorest-sticky-btn-icon svg { width: 100%; height: 100%; }

  .aorest-sticky-btn-line  { color: var(--aorest-line); }
  .aorest-sticky-btn-line .aorest-sticky-btn-icon svg { fill: var(--aorest-line); }

  .aorest-sticky-btn-msg   { color: var(--aorest-messenger); }
  .aorest-sticky-btn-msg .aorest-sticky-btn-icon svg { fill: var(--aorest-messenger); }

  .aorest-sticky-btn-phone { color: var(--aorest-primary); }
  .aorest-sticky-btn-phone .aorest-sticky-btn-icon svg { fill: var(--aorest-primary); }

  .aorest-sticky-btn-label { font-size: 11px; line-height: 1.2; color: var(--aorest-text); }

  /* Push body content so it's not covered by sticky nav */
  body { padding-bottom: 64px; }
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.aorest-footer {
  background: var(--aorest-bg-alt);
  padding: 40px 0 24px;
  margin-top: 60px;
  border-top: 1px solid var(--aorest-border);
}
.aorest-footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--aorest-text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--aorest-border);
  margin-top: 24px;
}

/* ==========================================================================
   8. UTILITY
   ========================================================================== */
.aorest-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aorest-hide-mobile { display: block; }
.aorest-hide-desktop { display: none; }
@media (max-width: 767px) {
  .aorest-hide-mobile { display: none; }
  .aorest-hide-desktop { display: block; }
}

/* ==========================================================================
   9. HERO SECTION (Homepage)
   Layout: ภาพมือถือ+ใบไม้ = BG ของ block, content overlay
   Mobile + Desktop: 2 cols (visual area / content) แต่ภาพเป็น bg ตลอด block
   ========================================================================== */
.aorest-hero {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.aorest-hero-inner {
  position: relative;
  max-width: var(--aorest-container);
  margin: 0 auto;
  padding: 24px 16px;
  min-height: 460px;

  /* The phone+leaves image is the background of this block */
  background-image: url('https://aorest.com/wp-content/uploads/2021/06/ad-%E0%B8%94%E0%B8%AD%E0%B8%81%E0%B9%84%E0%B8%A1%E0%B9%89%E0%B8%AB%E0%B8%99%E0%B9%89%E0%B8%B2%E0%B8%A8%E0%B8%9E.jpg');
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;

  /* 2-col layout: image fills left half, content right half */
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
}

@media (min-width: 768px) {
  .aorest-hero-inner {
    padding: 40px 24px;
    min-height: 540px;
    background-size: 50% auto;
  }
}

@media (min-width: 1024px) {
  .aorest-hero-inner { background-size: 45% auto; }
}

/* COL 1 — Spacer for the phone visual (BG image already shows here) */
.aorest-hero-visual {
  /* empty placeholder — bg image fills this column */
}

/* COL 2 — Content (AOREST + CTA + checks) */
.aorest-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-left: 8px;
}

@media (min-width: 768px) {
  .aorest-hero-content { padding-left: 16px; gap: 12px; }
}

.aorest-hero-logo {
  font-family: var(--aorest-font-display);
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--aorest-text);
  line-height: 1;
  margin: 0 0 4px;
}

.aorest-hero-stars {
  color: var(--aorest-primary);
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .aorest-hero-stars { font-size: 14px; letter-spacing: 3px; }
}

.aorest-hero-tagline {
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  font-weight: 500;
  color: var(--aorest-text);
  margin: 4px 0;
  line-height: 1.4;
}

.aorest-hero-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--aorest-line);
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin: 4px 0;
  transition: background .2s, transform .15s;
}
.aorest-hero-line-btn:hover { background: #05a847; color: #fff; transform: translateY(-1px); }

@media (min-width: 768px) {
  .aorest-hero-line-btn { padding: 10px 32px; font-size: 15px; gap: 8px; }
}

.aorest-hero-subtext {
  font-size: 11px;
  color: var(--aorest-text-muted);
  line-height: 1.6;
  margin: 4px 0 6px;
  max-width: 360px;
}

@media (min-width: 768px) {
  .aorest-hero-subtext { font-size: 12px; line-height: 1.7; margin: 4px 0 8px; }
}

.aorest-hero-checks {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aorest-hero-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--aorest-text);
}
.aorest-hero-check-icon {
  width: 18px;
  height: 18px;
  background: var(--aorest-success);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.aorest-hero-check-icon svg { width: 11px; height: 11px; fill: #fff; }

@media (min-width: 768px) {
  .aorest-hero-checks li { font-size: 14px; gap: 10px; }
  .aorest-hero-check-icon { width: 20px; height: 20px; }
  .aorest-hero-check-icon svg { width: 12px; height: 12px; }
}

/* ==========================================================================
   10. SERVICE SECTION — แยก section ใต้ hero
   ขายพวงหรีด + paragraph + 3 trust icons (พวงหรีด/ดอกไม้หน้าศพ/จัดดอกไม้)
   ========================================================================== */
.aorest-service {
  padding: 40px 16px;
  background: #fff;
  text-align: center;
}

@media (min-width: 768px) {
  .aorest-service { padding: 56px 24px; }
}

.aorest-service-header {
  max-width: 720px;
  margin: 0 auto 32px;
}

.aorest-service-header h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--aorest-text);
}

.aorest-service-header p {
  font-size: 14px;
  color: var(--aorest-text-muted);
  line-height: 1.75;
  margin: 0;
}

.aorest-service-header .aorest-highlight {
  color: var(--aorest-primary);
  font-weight: 500;
}

.aorest-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .aorest-service-grid { gap: 32px; }
}

.aorest-service-item {
  text-align: center;
  padding: 8px 4px;
}

.aorest-service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1.5px solid var(--aorest-secondary-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  background: #fff;
  transition: border-color .2s, transform .2s;
}
.aorest-service-item:hover .aorest-service-icon {
  border-color: var(--aorest-primary);
  transform: translateY(-2px);
}
.aorest-service-icon svg {
  width: 30px; height: 30px;
  fill: var(--aorest-secondary-1);
  transition: fill .2s;
}
.aorest-service-item:hover .aorest-service-icon svg { fill: var(--aorest-primary); }

@media (min-width: 768px) {
  .aorest-service-icon { width: 100px; height: 100px; border-width: 2px; }
  .aorest-service-icon svg { width: 44px; height: 44px; }
}

.aorest-service-item h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--aorest-text);
}

.aorest-service-item p {
  font-size: 11px;
  color: var(--aorest-text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 768px) {
  .aorest-service-item h3 { font-size: 17px; margin-bottom: 8px; }
  .aorest-service-item p { font-size: 13px; line-height: 1.6; }
}

/* ==========================================================================
   11. PROCESS — 3-col how-to (เลือก / จัดส่ง / ราคาถูก)
   Layout: icon กลม + text เรียงข้างกัน (ตามเว็บเดิม)
   ========================================================================== */
.aorest-process {
  padding: 48px 0;
  background: #fff;
  border-top: 1px solid var(--aorest-border);
}

.aorest-process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .aorest-process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.aorest-process-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.aorest-process-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--aorest-secondary-1);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aorest-secondary-1);
}
.aorest-process-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--aorest-secondary-1);
}

.aorest-process-text { flex: 1; min-width: 0; }

.aorest-process-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--aorest-text);
}

.aorest-process-text p {
  font-size: 13px;
  color: var(--aorest-text-muted);
  line-height: 1.65;
  margin: 0;
}

@media (min-width: 768px) {
  .aorest-process-icon { width: 64px; height: 64px; }
  .aorest-process-icon svg { width: 30px; height: 30px; }
}

/* ==========================================================================
   12. PRODUCT CARD + GRID
   Match aorest.com original styling
   ========================================================================== */

/* Grid: 3-col mobile, 5-col desktop */
.aorest-products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

@media (min-width: 768px) {
  .aorest-products,
  ul.products {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
}

ul.products li.product,
ul.products[class*="columns-"] li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: none !important;
}

.aorest-product-card {
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow .2s, transform .15s;
}

.aorest-product-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.aorest-product-card a {
  text-decoration: none;
  color: var(--aorest-text);
}

.aorest-product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--aorest-bg-alt);
}

.aorest-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.aorest-product-card:hover .aorest-product-thumb img {
  transform: scale(1.04);
}

/* Sale percentage badge - top left, ORANGE (matches original) */
.aorest-product-sale-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #ff6b35;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  z-index: 2;
  border-bottom-right-radius: 4px;
}

@media (min-width: 768px) {
  .aorest-product-sale-badge { font-size: 12px; padding: 5px 10px; }
}

/* "แอด ราคา บาท" red badge - top right corner */
.aorest-product-price-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #d93025;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 3px;
  text-align: center;
  line-height: 1.2;
  z-index: 2;
  min-width: 42px;
}

.aorest-product-price-badge .aorest-pb-prefix {
  display: block;
  font-size: 9px;
  font-weight: 400;
  opacity: .95;
  margin-bottom: 1px;
}
.aorest-product-price-badge .aorest-pb-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.aorest-product-price-badge .aorest-pb-baht {
  display: block;
  font-size: 9px;
  font-weight: 400;
  opacity: .95;
}

@media (min-width: 768px) {
  .aorest-product-price-badge {
    top: 8px;
    right: 8px;
    min-width: 48px;
  }
  .aorest-product-price-badge .aorest-pb-prefix { font-size: 10px; }
  .aorest-product-price-badge .aorest-pb-num { font-size: 13px; }
  .aorest-product-price-badge .aorest-pb-baht { font-size: 10px; }
}

.aorest-product-info {
  padding: 10px 6px 14px;
}

.aorest-product-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--aorest-text);
  margin: 0 0 4px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.6em;
}

@media (min-width: 768px) {
  .aorest-product-title { font-size: 14px; }
  .aorest-product-info { padding: 12px 8px 16px; }
}

.aorest-product-price {
  font-size: 13px;
  line-height: 1.4;
}

.aorest-product-price del {
  color: var(--aorest-text-light);
  font-size: 11px;
  display: block;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.aorest-product-price ins,
.aorest-product-price .aorest-price-current {
  color: var(--aorest-text);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

@media (min-width: 768px) {
  .aorest-product-price del { font-size: 12px; }
  .aorest-product-price ins,
  .aorest-product-price .aorest-price-current { font-size: 15px; }
}

/* Hide WooCommerce default add-to-cart, ratings, etc on listings */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart,
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist,
ul.products li.product .add_to_cart_button { display: none !important; }

/* ==========================================================================
   13. PRODUCT SECTION (homepage)
   With pre-heading (•sub• + main title), centered intro
   ========================================================================== */
.aorest-product-section {
  padding: 40px 0;
}

@media (min-width: 768px) {
  .aorest-product-section { padding: 60px 0; }
}

.aorest-product-section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .aorest-product-section-intro { margin-bottom: 36px; }
}

/* Pre-heading: • พวงหรีด • */
.aorest-section-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--aorest-primary);
  letter-spacing: 1px;
  margin: 0 0 12px;
}
.aorest-section-pretitle::before,
.aorest-section-pretitle::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aorest-primary);
}

.aorest-product-section-intro h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--aorest-text);
}

.aorest-product-section-intro p {
  font-size: 14px;
  color: var(--aorest-text-muted);
  margin: 0;
  line-height: 1.75;
}

.aorest-product-section-intro p a {
  color: var(--aorest-primary);
  text-decoration: none;
}

.aorest-product-section-footer {
  text-align: center;
  margin-top: 24px;
}

/* ==========================================================================
   14. SINGLE PRODUCT (LINE-only, no cart)
   ========================================================================== */
.aorest-single-product {
  padding: 24px 0;
}

.aorest-single-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .aorest-single-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.aorest-single-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--aorest-bg-alt);
  border-radius: var(--aorest-radius);
  overflow: hidden;
}
.aorest-single-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aorest-single-meta h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 12px;
}

.aorest-single-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.aorest-single-price .aorest-price-current {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--aorest-primary);
}
.aorest-single-price del {
  font-size: 16px;
  color: var(--aorest-text-light);
}
.aorest-single-price-discount {
  background: #d93025;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.aorest-single-sku {
  font-size: 13px;
  color: var(--aorest-text-muted);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--aorest-border);
}

.aorest-single-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 24px;
}

@media (min-width: 480px) {
  .aorest-single-cta {
    grid-template-columns: 1fr 1fr;
  }
}

.aorest-single-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .15s, opacity .2s;
}
.aorest-single-cta-btn:hover { transform: translateY(-1px); opacity: .92; }
.aorest-single-cta-line { background: var(--aorest-line); color: #fff; }
.aorest-single-cta-line:hover { color: #fff; }
.aorest-single-cta-phone { background: var(--aorest-primary); color: #fff; }
.aorest-single-cta-phone:hover { color: #fff; }
.aorest-single-cta-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.aorest-single-description {
  font-size: 14px;
  line-height: 1.8;
  color: var(--aorest-text);
}

.aorest-single-description h2,
.aorest-single-description h3 {
  margin-top: 24px;
}

/* Order box (info above CTAs) */
.aorest-order-info {
  background: var(--aorest-bg-alt);
  border-radius: var(--aorest-radius);
  padding: 16px;
  margin: 0 0 16px;
  font-size: 14px;
}
.aorest-order-info-title {
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--aorest-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.aorest-order-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aorest-order-info li {
  padding: 4px 0;
  display: flex;
  gap: 8px;
}
.aorest-order-info li::before {
  content: "✓";
  color: var(--aorest-success);
  font-weight: bold;
  flex-shrink: 0;
}

/* Related products on single */
.aorest-related-products {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--aorest-border);
}

/* ==========================================================================
   15. CATEGORY / ARCHIVE
   ========================================================================== */
.aorest-archive-header {
  padding: 24px 0 16px;
  text-align: center;
}
.aorest-archive-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 8px;
}
.aorest-archive-header p {
  font-size: 14px;
  color: var(--aorest-text-muted);
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.aorest-breadcrumb {
  font-size: 12px;
  color: var(--aorest-text-muted);
  padding: 12px 0;
}
.aorest-breadcrumb a { color: var(--aorest-text-muted); }
.aorest-breadcrumb a:hover { color: var(--aorest-primary); }
.aorest-breadcrumb-sep { margin: 0 6px; opacity: .5; }

/* WooCommerce notices/messages — minimal style */
.woocommerce-result-count,
.woocommerce-ordering {
  font-size: 13px;
  color: var(--aorest-text-muted);
  margin: 0 0 12px;
}

/* Pagination */
.aorest-pagination,
.woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: 4px;
  list-style: none;
  padding: 32px 0;
  margin: 0;
}
.aorest-pagination a,
.aorest-pagination span,
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 14px;
  background: var(--aorest-bg-alt);
  color: var(--aorest-text);
  text-decoration: none;
  transition: background .15s;
}
.aorest-pagination a:hover,
.woocommerce-pagination ul li a:hover {
  background: var(--aorest-primary);
  color: #fff;
}
.aorest-pagination .current,
.woocommerce-pagination ul li .current {
  background: var(--aorest-primary);
  color: #fff;
}

/* ==========================================================================
   16. HEADER + NAVIGATION
   Desktop: Logo | Nav center | Phone + LINE pill + Search
   Mobile:  [FB icon]  [AOREST logo center]  [☰ hamburger]
   ========================================================================== */
.aorest-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.aorest-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.aorest-logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--aorest-text);
}

/* Custom logo (admin uploaded) */
.aorest-logo .custom-logo {
  height: 40px;
  width: auto;
  max-width: 200px;
}

@media (min-width: 1024px) {
  .aorest-logo .custom-logo { height: 50px; max-width: 220px; }
}

/* Fallback: flower circle + AOREST text */
.aorest-logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--aorest-secondary-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.aorest-logo-circle svg {
  width: 20px;
  height: 20px;
  fill: var(--aorest-secondary-1);
}

@media (min-width: 1024px) {
  .aorest-logo-circle { width: 44px; height: 44px; }
  .aorest-logo-circle svg { width: 22px; height: 22px; }
}

.aorest-logo-text {
  font-family: var(--aorest-font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--aorest-text);
}

@media (min-width: 1024px) {
  .aorest-logo-text { font-size: 22px; }
}

/* Mobile FB icon (left side) */
.aorest-header-fb {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s, transform .15s;
}
.aorest-header-fb:hover { background: #0d65d9; color: #fff; transform: translateY(-1px); }
.aorest-header-fb svg { width: 18px; height: 18px; fill: #fff; }

/* Primary nav (desktop) */
.aorest-nav { flex: 1; }

.aorest-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.aorest-menu li { position: relative; }

.aorest-menu a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--aorest-text);
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.aorest-menu a:hover {
  background: var(--aorest-bg-alt);
  color: var(--aorest-primary);
}

.aorest-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  margin-top: -3px;
  opacity: .7;
}

.aorest-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--aorest-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  padding: 6px;
  list-style: none;
  margin: 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 100;
}

.aorest-menu li:hover > .sub-menu,
.aorest-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aorest-menu .sub-menu a { white-space: nowrap; padding: 8px 12px; }

/* Header right side actions */
.aorest-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.aorest-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--aorest-primary);
  white-space: nowrap;
  text-decoration: none;
}

.aorest-header-phone svg {
  width: 16px;
  height: 16px;
  fill: var(--aorest-primary);
}

.aorest-header-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--aorest-line);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
}
.aorest-header-line:hover { background: #05a847; color: #fff; }
.aorest-header-line svg { width: 14px; height: 14px; fill: #fff; }

.aorest-header-search {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--aorest-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.aorest-header-search:hover { background: var(--aorest-bg-alt); color: var(--aorest-primary); }
.aorest-header-search svg { width: 18px; height: 18px; fill: currentColor; }

/* Inline search panel */
.aorest-search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--aorest-border);
  padding: 16px;
  display: none;
  z-index: 95;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.aorest-search-panel.is-open { display: block; }
.aorest-search-panel form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}
.aorest-search-panel input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--aorest-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
}
.aorest-search-panel button {
  background: var(--aorest-primary);
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* Mobile hamburger */
.aorest-hamburger {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--aorest-text);
  flex-shrink: 0;
}

.aorest-hamburger span {
  position: relative;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s, opacity .15s;
}
.aorest-hamburger span::before,
.aorest-hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s;
}
.aorest-hamburger span::before { top: -7px; }
.aorest-hamburger span::after  { top:  7px; }

.aorest-hamburger.is-open span { background: transparent; }
.aorest-hamburger.is-open span::before { top: 0; transform: rotate(45deg); }
.aorest-hamburger.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile layout switch */
@media (max-width: 1023px) {
  .aorest-header-inner {
    justify-content: space-between;
    gap: 8px;
  }

  /* Show FB icon + hamburger, hide nav + phone + LINE pill + search */
  .aorest-header-fb { display: inline-flex; }
  .aorest-hamburger { display: inline-flex; }
  .aorest-nav { display: none; }
  .aorest-header-phone,
  .aorest-header-line,
  .aorest-header-search { display: none; }

  /* Logo absolutely centered between FB and hamburger */
  .aorest-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
  }
  .aorest-logo a { gap: 8px; }
  .aorest-logo-circle { display: none; } /* hide flower circle on mobile, show only AOREST text */
  .aorest-logo-text { font-size: 22px; letter-spacing: 2.5px; }

  /* Header positioning for absolute logo */
  .aorest-header-inner { position: relative; min-height: 56px; }
  .aorest-header-actions { gap: 4px; }
}

/* Mobile drawer */
.aorest-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 86%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,.1);
  z-index: 1000;
  transition: right .3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.aorest-drawer.is-open { right: 0; }

.aorest-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 999;
}
.aorest-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.aorest-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--aorest-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.aorest-drawer-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 24px;
  color: var(--aorest-text);
  cursor: pointer;
  line-height: 1;
}

.aorest-drawer-menu {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  flex: 1;
}
.aorest-drawer-menu li { border-bottom: 1px solid var(--aorest-border); }
.aorest-drawer-menu a {
  display: block;
  padding: 14px 20px;
  color: var(--aorest-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.aorest-drawer-menu a:hover { background: var(--aorest-bg-alt); color: var(--aorest-primary); }
.aorest-drawer-menu .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--aorest-bg-alt);
}
.aorest-drawer-menu .sub-menu a {
  padding: 10px 20px 10px 36px;
  font-size: 14px;
  font-weight: 400;
}

.aorest-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--aorest-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Lock body scroll when drawer open */
body.aorest-drawer-locked { overflow: hidden; }
