/*
Theme Name: Flatsome Child - Ốc Tự Nhiên 2
Theme URI: https://octn2saigon.com
Template: flatsome
Author: Ốc Tự Nhiên 2 Sài Gòn
Description: Flatsome child theme cho quán Ốc Tự Nhiên 2 Sài Gòn
Version: 1.0.0
Text Domain: flatsome-child
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --oc-green: #2d6a4f;
  --oc-green-light: #40916c;
  --oc-mint: #95d5b2;
  --oc-cream: #f8f9fa;
  --oc-dark: #1b4332;
  --oc-orange: #e76f51;
  --oc-orange-dark: #d4533b;
  --oc-white: #fff;
  --oc-text: #333;
  --oc-text-light: #777;
}

body {
  font-family: 'Nunito Sans', sans-serif !important;
  color: var(--oc-text);
  background: var(--oc-cream);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif !important;
}

/* === TOPBAR === */
.header-top { background: var(--oc-dark) !important; color: #fff !important; }
.header-top a { color: var(--oc-mint) !important; }
.header-top a:hover { color: #fff !important; }

/* === HEADER === */
.header-main { background: #fff !important; box-shadow: 0 2px 15px rgba(0,0,0,0.08) !important; }
.header-nav .nav > li > a { text-transform: uppercase !important; letter-spacing: 1px; font-weight: 600 !important; font-size: 14px !important; color: var(--oc-dark) !important; }
.header-nav .nav > li > a:hover, .header-nav .nav > li.active > a { color: var(--oc-green) !important; }
.logo img { max-height: 70px !important; }

/* === BUTTONS === */
.button.primary, .button.alt, button.primary, .btn-primary {
  background: linear-gradient(135deg, var(--oc-green), var(--oc-green-light)) !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 12px 30px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px;
  transition: all 0.3s ease !important;
}
.button.primary:hover, .btn-primary:hover {
  background: linear-gradient(135deg, var(--oc-dark), var(--oc-green)) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(45,106,79,0.3);
}

/* === SECTION TITLES === */
.section-title h2, .erp_features_img_two h2 {
  font-family: 'Playfair Display', serif !important;
  color: var(--oc-dark) !important;
  font-size: 32px !important;
  position: relative;
  padding-bottom: 15px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--oc-green);
  border-radius: 2px;
}

/* === MENU CARDS === */
.menu-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  margin-bottom: 20px;
  position: relative;
}
.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.menu-card .price-ribbon {
  position: absolute;
  top: 12px;
  right: -5px;
  background: var(--oc-orange);
  color: #fff;
  padding: 5px 15px 5px 12px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 2;
}
.menu-card .price-ribbon::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px;
  border-width: 5px 5px 0 0;
  border-style: solid;
  border-color: var(--oc-orange-dark) transparent transparent;
}
.menu-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.menu-card .card-title {
  font-family: 'Playfair Display', serif;
  color: var(--oc-dark);
  font-size: 17px;
  font-weight: 600;
  padding: 12px 15px 5px;
  margin: 0;
}
.menu-card .card-body {
  padding: 5px 15px 15px;
  font-size: 13px;
  color: var(--oc-text-light);
  line-height: 1.6;
}

/* === FOOTER === */
footer a:hover { color: var(--oc-mint) !important; text-decoration: none !important; }

/* === FLOATING CTA === */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.floating-cta a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 3px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}
.floating-cta a:hover { transform: scale(1.15); }
.floating-cta .cta-phone { background: var(--oc-green); animation: pulse-green 2s infinite; }
.floating-cta .cta-zalo { background: #0068ff; }

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(45,106,79,0.5); }
  70% { box-shadow: 0 0 0 15px rgba(45,106,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,106,79,0); }
}

/* === HIDE DEFAULTS === */
.element-error, .woocommerce-cart-link, .header-account-link, .header-newsletter-link { display: none !important; }

/* === RESPONSIVE === */
@media (max-width: 849px) {
  .menu-card img { height: 150px; }
  .floating-cta { right: 12px; bottom: 12px; }
  .floating-cta a { width: 44px; height: 44px; }
}
