/*
Theme Name: cha-ca-quynh-anh
Description: This is a child theme for Flatsome Theme - Chả cá Quỳnh Anh
Author: UX Themes & Antigravity
Template: flatsome
Version: 3.1
*/

:root {
  --primary: #6b0d09;
  --primary-container: #8b261d;
  --secondary: #2a657e;
  --accent-gold: #e9c176;
  --accent-gold-light: #ffdea5;
  --surface: #fbf9f4;
  --surface-container: #f0eee9;
  --surface-container-high: #eae8e3;
  --surface-container-highest: #e4e2dd;
  --surface-card: #ffffff;
  --text-main: #1b1c19;
  --text-muted: #57423f;
}

body {
  background-color: var(--surface) !important;
  color: var(--text-main);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  text-transform: none; /* Khong viet hoa toan bo de dung chuan phong cach Demo */
}

/* ==========================================================================
   Header Custom Styling
   ========================================================================== */
#header {
  border-bottom: 4px solid var(--primary);
  background-color: var(--surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#header .header-main {
  background-color: var(--surface);
}

.header-nav .nav-top-link {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: var(--text-muted) !important;
  text-transform: none !important;
  transition: color 0.2s ease !important;
}

.header-nav .nav-top-link:hover {
  color: var(--primary) !important;
}

.header-button a.button {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  border-radius: 8px !important;
  padding: 0 24px !important;
  text-transform: none !important;
  transition: background-color 0.2s ease, transform 0.15s ease !important;
}

.header-button a.button:hover {
  background-color: var(--primary-container) !important;
  border-color: var(--primary-container) !important;
  transform: translateY(-1px);
}

.cart-icon strong {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-heritage {
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  margin-bottom: 16px;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  border-radius: 9999px;
  background: rgba(228, 226, 221, 0.2);
  backdrop-filter: blur(6px);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-h1 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
}

.hero-sub {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-family: 'Playfair Display', serif !important;
  font-style: italic !important;
}

/* ==========================================================================
   Introduction Section
   ========================================================================== */
.water-icon-circle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(107, 13, 9, 0.08);
  color: var(--primary);
  border: 1px solid rgba(107, 13, 9, 0.2);
  margin: 0 auto 18px !important;
}

.water-icon-circle svg {
  width: 26px;
  height: 26px;
  fill: var(--primary);
  display: block;
}

/* ==========================================================================
   Story Section (Ảnh 1 Demo Pixel-Perfect)
   ========================================================================== */
.story-main-heading {
  font-family: 'Playfair Display', serif !important;
  color: var(--primary) !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  border-left: 4px solid var(--primary) !important;
  padding-left: 20px !important;
  margin-bottom: 32px !important;
  line-height: 1.25 !important;
  text-transform: none !important;
}

.story-feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.story-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.story-feature-icon {
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-feature-content h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  margin-bottom: 8px !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}

.story-feature-content p {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}

/* Box Cam kết chất lượng & OCOP */
.story-ocop-box {
  margin-top: 36px;
  padding: 24px;
  background-color: var(--surface-container);
  border-left: 4px solid var(--primary) !important;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 10px 30px -10px rgba(42, 101, 126, 0.15);
}

.story-ocop-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.story-ocop-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-ocop-header h4 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  margin-bottom: 0 !important;
  text-transform: none !important;
}

.story-ocop-box p {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}

/* Khung ảnh vòm uốn lượn phong cách biển (Arched Pebble Frame) */
.story-arch-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 560px;
  border-top-left-radius: 280px !important;
  border-top-right-radius: 280px !important;
  border-bottom-right-radius: 280px !important;
  border-bottom-left-radius: 0 !important;
  overflow: hidden !important;
  border: 8px solid var(--surface-container-highest) !important;
  box-shadow: 0 15px 35px -10px rgba(42, 101, 126, 0.22) !important;
  background-color: var(--surface-container-highest);
}

.story-arch-wrapper img,
.story-arch-wrapper .img-inner img {
  width: 100% !important;
  height: 100% !important;
  min-height: 560px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.story-arch-wrapper .img-inner {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

/* ==========================================================================
   Product Heritage Cards (Thu gọn tiêu đề, giá bán & khoảng cách)
   ========================================================================== */
.products-section-heading {
  font-family: 'Playfair Display', serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-bottom: 10px !important;
  text-align: center !important;
  text-transform: none !important;
  line-height: 1.25 !important;
}

.products-section-sub {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14.5px !important;
  color: var(--text-muted) !important;
  max-width: 650px !important;
  margin: 0 auto 30px !important;
  text-align: center !important;
  line-height: 1.55 !important;
}

.product-heritage-card {
  background-color: var(--surface-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(42, 101, 126, 0.15);
  border: 1px solid rgba(233, 193, 118, 0.45);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-heritage-card:hover {
  border-color: var(--primary);
  box-shadow: 0 15px 35px -10px rgba(107, 13, 9, 0.2);
  transform: translateY(-2px);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background-color: var(--surface-container);
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

.product-heritage-card:hover .product-image-wrapper img {
  transform: scale(1.06);
}

/* Badge positioned at TOP-RIGHT */
.product-badge-gold {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background-color: var(--accent-gold);
  color: #5d4201;
  padding: 5px 12px;
  border-radius: 9999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(222, 192, 187, 0.6);
  text-transform: none;
  line-height: 1;
}

.product-badge-gold svg {
  width: 13px;
  height: 13px;
  fill: #5d4201;
  display: block;
}

.product-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-card-body h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  line-height: 1.25 !important;
  text-transform: none !important;
}

.product-card-body h3 a {
  color: var(--primary) !important;
  text-decoration: none !important;
}

.product-card-body p.product-desc {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--text-muted) !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  min-height: unset !important;
}

.product-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f0eee9;
}

.product-price-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.price-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #8b716e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 !important;
  line-height: 1.1;
}

.product-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin: 0 !important;
}

.product-price .unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.btn-buy-cart {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 8px !important;
  background-color: rgba(107, 13, 9, 0.08) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(107, 13, 9, 0.18) !important;
  font-size: 15px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.btn-buy-cart svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.btn-buy-cart:hover {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(107, 13, 9, 0.2);
}

.btn-buy-cart:before,
.btn-buy-cart:after {
  display: none !important;
}

.product-card-footer .added_to_cart {
  display: none !important;
}

/* ==========================================================================
   Bento Guide Cards
   ========================================================================== */
.guide-bento-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(42, 101, 126, 0.12);
  border: 1px solid rgba(233, 193, 118, 0.35);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  height: 100%;
}

.guide-bento-card:hover {
  background: #f5f3ee;
  transform: translateY(-4px);
  box-shadow: 0 14px 35px -10px rgba(42, 101, 126, 0.18);
}

.guide-bento-card h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  margin-bottom: 10px !important;
  text-transform: none !important;
  font-variant-numeric: lining-nums !important;
  font-feature-settings: "lnum" 1 !important;
}

.guide-bento-card h3 .temp-num {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

.guide-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(107, 13, 9, 0.08);
  color: var(--primary);
  border: 1px solid rgba(107, 13, 9, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.guide-icon-circle svg {
  width: 26px;
  height: 26px;
  fill: var(--primary);
  display: block;
}

.guide-bento-card:hover .guide-icon-circle {
  transform: scale(1.1);
  background: rgba(107, 13, 9, 0.15);
}

@media (min-width: 768px) {
  .guide-bento-offset {
    margin-top: 18px;
  }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-heritage-section {
  border-radius: 16px;
  border: 1px solid rgba(233, 193, 118, 0.4);
  box-shadow: 0 10px 30px -10px rgba(42, 101, 126, 0.1);
  margin-top: 30px;
  margin-bottom: 30px;
}

.cta-heritage-section h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-bottom: 8px !important;
  text-transform: none !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-heritage {
  border-top: 8px solid var(--primary) !important;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(107, 13, 9, 0.1);
  color: var(--primary);
  font-size: 16px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-social-icons a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-links-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-links-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-copyright-bar {
  border-top: 1px solid rgba(139, 113, 110, 0.25);
  padding-top: 24px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ==========================================================================
   Order Section (Thông Tin Đặt Hàng)
   ========================================================================== */
.order-section-heritage {
  background-color: var(--surface);
  border-top: 1px solid rgba(139, 113, 110, 0.2);
}

.order-info-card {
  background-color: var(--surface-card);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 10px 30px -10px rgba(42, 101, 126, 0.15);
  border: 1px solid rgba(233, 193, 118, 0.45);
  display: flex;
  flex-direction: column;
}

.order-info-card h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-top: 10px !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}

.order-info-card p.order-info-sub {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13.5px !important;
  color: var(--text-muted) !important;
  line-height: 1.55 !important;
  margin-bottom: 18px !important;
}

.order-feature-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.order-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.order-feature-item i {
  color: var(--primary);
  font-size: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.order-feature-item .feature-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 13.5px;
  margin-bottom: 2px;
  line-height: 1.3;
}

.order-feature-item .feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.order-hotline-box {
  margin-top: 18px; /* Kéo hotline lên sát gần danh sách */
  padding: 14px 18px;
  background: var(--surface-container);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-hotline-box i {
  font-size: 22px;
  color: var(--primary);
}

.order-hotline-box .hotline-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.order-form-card {
  background-color: var(--surface-card);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 10px 30px -10px rgba(42, 101, 126, 0.15);
  border: 1px solid rgba(233, 193, 118, 0.45);
}

.order-form-card h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}

.order-form-card p.order-form-sub {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13.5px !important;
  color: var(--text-muted) !important;
  line-height: 1.55 !important;
  margin-bottom: 18px !important;
}

/* Custom inputs for Order form */
.order-form-wrapper .form-group {
  margin-bottom: 14px;
}

.order-form-wrapper .form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 5px;
}

.order-form-wrapper .form-label i {
  color: var(--primary);
}

.order-form-wrapper .form-label .required {
  color: #ba1a1a;
  font-weight: 700;
}

.order-form-wrapper input.custom-input,
.order-form-wrapper textarea.custom-input,
.order-form-wrapper select.custom-input {
  width: 100% !important;
  background-color: #fbf9f4 !important;
  border: 1px solid rgba(139, 113, 110, 0.3) !important;
  border-radius: 8px !important;
  padding: 9px 13px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13.5px !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
}

.order-form-wrapper input.custom-input:focus,
.order-form-wrapper textarea.custom-input:focus {
  border-color: var(--primary) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(107, 13, 9, 0.1) !important;
  outline: none !important;
}

.order-form-wrapper .product-checkbox-group .wpcf7-list-item {
  display: block;
  margin: 4px 0 !important;
}

.order-form-wrapper .product-checkbox-group label {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--text-main) !important;
  cursor: pointer !important;
}

.order-form-wrapper .product-checkbox-group input[type="checkbox"] {
  accent-color: var(--primary) !important;
  margin-right: 8px !important;
  transform: scale(1.15);
}

.form-submit-group {
  margin-top: 16px;
  margin-bottom: 0 !important;
}

.btn-order-submit {
  width: 100% !important;
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 13px 24px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(107, 13, 9, 0.3) !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  margin-bottom: 0 !important;
}

.btn-order-submit:hover {
  background-color: var(--primary-container) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(107, 13, 9, 0.4) !important;
}

.wpcf7 form .wpcf7-response-output {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  display: block !important;
  margin-top: 14px !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13.5px !important;
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */
@media only screen and (max-width: 48em) {
  .hero-h1 {
    font-size: 28px !important;
  }
  .story-arch-wrapper {
    min-height: 320px;
    border-top-left-radius: 160px !important;
    border-top-right-radius: 160px !important;
    border-bottom-right-radius: 160px !important;
  }
  .story-arch-wrapper img {
    min-height: 320px !important;
  }
  .product-card-body {
    padding: 18px 20px;
  }
  .guide-bento-card {
    padding: 24px 18px;
  }
  .order-info-card,
  .order-form-card {
    padding: 24px 18px;
  }
}