/*
Theme Name: Viet Coffee - Premium Edition
Theme URI: https://jacklabs.com
Author: Jack Labs
Author URI: https://jacklabs.com
Description: Premium Vietnamese Coffee e-commerce theme with WooCommerce integration. Professional, warm, and conversion-optimized.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: viet-coffee
Tags: coffee, ecommerce, woocommerce, responsive, conversion, premium

Premium WordPress theme for Vietnamese Coffee businesses - Professional, Modern, User-Friendly
*/

/* ============================================================
   COLOR SCHEME VARIABLES & CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-primary-brown: #6B4423;
  --color-primary-brown-dark: #3D2817;
  --color-accent-tan: #D4A574;
  --color-accent-tan-light: #E8C5A0;
  --color-bg-cream: #FBF8F3;
  --color-bg-light: #F8F1E9;
  --color-success: #4CAF50;
  --color-warning: #F59E0B;
  --color-text-dark: #2D2D2D;
  --color-text-muted: #64748B;
  --color-border: #E8DCC9;
  --color-white: #FFFFFF;
}

/* ============================================================
   GLOBAL BASE STYLES
   ============================================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--vc-body-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
}

/* ============================================================
   TYPOGRAPHY & HEADINGS
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--vc-heading-font, 'Playfair Display', serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--color-primary-brown-dark);
}

h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--color-primary-brown-dark);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.75rem;
  color: var(--color-primary-brown);
}

h4 {
  font-size: 1.25rem;
  color: var(--color-primary-brown);
  font-weight: 600;
}

p {
  margin: 0 0 1rem 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

a {
  color: var(--color-primary-brown);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-tan);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

/* Ensure fixed header doesn't cause jump on load */
#header {
  background-color: var(--color-primary-brown);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  top: 0;
  left: 0;
  right: 0;
}

/* Add space for fixed header */
body {
  padding-top: 80px;
}

/* Header Container */
#header .max-w-7xl {
  display: flex;
  align-items: center;
}

/* Professional centered logo layout */
#header .flex.items-center.h-full {
  width: 100%;
}

/* Logo Styling - centered, premium feel */
#header a[href*="home"],
#header .flex.items-center.flex-shrink-0 a,
#header .flex.items-center.flex-shrink-0 .custom-logo-link,
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.015em;
}

/* Custom logo image sizing */
#header .custom-logo {
  max-height: 38px;
  width: auto;
  border-radius: 6px;
}

#header a[href*="home"]:hover,
#header .flex.items-center.flex-shrink-0 a:hover,
.logo-link:hover {
  opacity: 0.95;
}

#header a[href*="home"]:hover .logo-icon,
#header .flex.items-center.flex-shrink-0 a:hover .w-10,
.logo-link:hover .logo-icon {
  background-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.03);
}

/* Logo Icon - refined */
#header .w-10.h-10,
#header .logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--color-white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  ring: 1px solid rgba(255,255,255,0.1);
}

/* Right side action group - professional toolbar style */
#header .bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

#header .bg-white\/5:hover {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Action buttons (search + cart) */
#header button,
#header a[aria-label*="Cart"],
#header a[aria-label*="Shopping"] {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

#header button:hover,
#header a[aria-label*="Cart"]:hover,
#header a[aria-label*="Shopping"]:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.13);
}

/* Cart badge - clean & premium */
#cart-count {
  font-feature-settings: "tnum";
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255,255,255,0.2);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

a[aria-label*="Cart"]:hover #cart-count,
a[aria-label*="Shopping"]:hover #cart-count {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.25);
}

/* Spacer */
.flex-1 {
  flex: 1 1 auto;
}

/* Right Actions Container */
#header .flex.items-center {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Header Buttons - base (overridden for action toolbar) */
#header button,
#header a:not([href*="home"]) {
  color: var(--color-white);
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scoped override for the professional right-side action buttons */
#header .bg-white\/5 button,
#header .bg-white\/5 a {
  padding: 0;
  min-width: 36px;
  min-height: 36px;
  font-size: 15px;
  border-radius: 12px;
}

#header .bg-white\/5 button:hover,
#header .bg-white\/5 a:hover {
  background-color: rgba(255, 255, 255, 0.13);
  transform: scale(1.03);
}

/* Cart Count Badge - premium refined */
#cart-count {
  background-color: var(--color-success) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.2px;
}

#header .bg-white\/5 a:hover #cart-count {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

/* Scrolled Header State */
#header.nav-scrolled {
  background-color: rgba(107, 68, 35, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Navigation Styles */
nav {
  font-weight: 500;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.75rem;
}

nav a:hover,
nav a.active {
  color: var(--color-accent-tan);
}

/* Underline effect for desktop nav */
nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-accent-tan);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Image stability to reduce CLS on refresh */
.coffee-card img,
.hero-bg {
  display: block;
  width: 100%;
}

.coffee-card .h-56 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   BUTTON STYLES (Primary CTA focus)
   ============================================================ */
.btn,
button,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

/* Primary Button - Green (High Conversion) */
.btn-primary,
button.primary,
button:not(.secondary):not([class*="cancel"]):not([class*="remove"]) {
  background-color: var(--color-success);
  color: var(--color-white);
  border-radius: 9999px;
  padding: 0.875rem 2.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover,
button.primary:hover,
button:not(.secondary):hover {
  background-color: #3d8b40;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-primary:active,
button.primary:active {
  transform: translateY(0);
}

/* Secondary Button - Brown */
.btn-secondary,
button.secondary {
  background-color: var(--color-primary-brown);
  color: var(--color-white);
  border-radius: 0.75rem;
}

.btn-secondary:hover,
button.secondary:hover {
  background-color: var(--color-primary-brown-dark);
  transform: translateY(-2px);
}

/* Outlined Button - Tan */
.btn-outline {
  background-color: transparent;
  color: var(--color-accent-tan);
  border: 2px solid var(--color-accent-tan);
}

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

/* Add to Cart Button - Enhanced */
.add_to_cart_button,
.single_add_to_cart_button {
  background-color: var(--color-success) !important;
  color: var(--color-white) !important;
  border-radius: 9999px !important;
  padding: 0.875rem 2.5rem !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
}

.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
  background-color: #3d8b40 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4) !important;
}

/* ============================================================
   HERO SECTION & BACKGROUNDS
   ============================================================ */
.hero-bg {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slides,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay { z-index: 1; }
.hero-content {
  z-index: 2;
  width: min(900px, calc(100% - 3rem));
  text-align: center;
  color: #fff;
}
.hero-content h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); font-family: var(--vc-heading-font, "Playfair Display", serif); font-weight: 700; }
.hero-content .hero-subtitle { max-width: 720px; margin: 1.25rem auto 2rem; }
.hero-cta {
  display: inline-flex;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--color-primary-brown);
  color: #fff;
  font-weight: 700;
}
.hero-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
}
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }
.hero-dots { position:absolute; z-index:3; bottom:2rem; left:50%; transform:translateX(-50%); display:flex; gap:.55rem; }
.hero-dots button { width:10px; height:10px; padding:0; border-radius:50%; background:rgba(255,255,255,.5); }
.hero-dots button.is-active { background:#fff; transform:scale(1.25); }

.story-rich-content > * + * { margin-top: 1rem; }
.story-rich-content h1, .story-rich-content h2, .story-rich-content h3 { color:#3D2817; font-family:var(--vc-heading-font, "Playfair Display",serif); font-weight:700; }
.story-rich-content img { max-width:100%; height:auto; border-radius:1rem; }

.signature-heading {
  font-family: var(--vc-body-font, "Inter", system-ui, sans-serif);
  line-height: 1.25;
  letter-spacing: -.02em;
}

/* Product excerpts may contain editor markup; keep every line at one readable size. */
.coffee-card-description,
.coffee-card-description p,
.coffee-card-description span,
.coffee-card-description strong,
.coffee-card-description em {
  font-size: .95rem;
  line-height: 1.65;
}

.coffee-card-description p { margin: 0; }

.blog-index__grid { display:grid; gap:2rem; grid-template-columns:repeat(2,minmax(0,1fr)); }
.blog-card { overflow:hidden; background:#fff; border:1px solid #eadfce; border-radius:1.25rem; box-shadow:0 14px 35px rgba(61,40,23,.07); }
.blog-card__image { display:block; aspect-ratio:16/9; overflow:hidden; }
.blog-card__image img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.blog-card:hover .blog-card__image img { transform:scale(1.03); }
.blog-card__body { padding:1.5rem; }
.blog-card__date { margin:0 0 .6rem; color:#8a725f; font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; }
.blog-card h2 { margin:0 0 .75rem; color:#3D2817; font-family:var(--vc-heading-font,"Playfair Display",serif); font-size:1.6rem; line-height:1.25; }
.blog-card__excerpt { color:#64748B; line-height:1.65; }
.blog-card__link { display:inline-block; margin-top:1rem; color:#6B4423; font-weight:700; }
.blog-index__pagination { margin-top:2.5rem; text-align:center; }
.blog-index__empty { padding:4rem 2rem; text-align:center; background:#FBF8F3; border-radius:1.5rem; color:#64748B; }
.blog-index__empty h2 { margin:0 0 .5rem; color:#3D2817; font-family:var(--vc-heading-font,"Playfair Display",serif); font-size:2rem; }
@media (max-width:767px) { .blog-index__grid { grid-template-columns:1fr; } }

.blog-single__header { margin-bottom:2rem; }
.blog-single__header h1 { margin:.5rem 0 0; line-height:1.15; }
.blog-single__image { overflow:hidden; margin-bottom:2rem; border-radius:1.25rem; }
.blog-single__image img { display:block; width:100%; height:auto; }
.blog-single__article .entry-content { color:#4b5563; font-size:1.05rem; line-height:1.8; }

.viet-product-page,
.viet-product-main {
  width: 100%;
}

.viet-product-page {
  background: #f7f7f4;
}

.viet-product-main {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(440px, 2fr);
  max-width: 1600px;
  min-height: min(760px, calc(100vh - 8rem));
  margin: 0 auto;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
}

/* WooCommerce applies 48% widths and floats to its default two-column layout.
   These elements already live inside our grid, so let the grid control sizing. */
.woocommerce div.product .viet-product-gallery .woocommerce-product-gallery,
.woocommerce div.product .viet-product-summary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.woocommerce div.product .viet-product-main > .viet-product-gallery {
  display: flex !important;
  align-items: center;
  justify-content: center;
  align-self: stretch !important;
  box-sizing: border-box;
  width: 100% !important;
  min-height: clamp(540px, 50vw, 780px) !important;
  min-width: 0;
}

.viet-product-gallery .woocommerce-product-gallery {
  position: relative;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.viet-product-gallery .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.viet-product-gallery .woocommerce-product-gallery__image {
  height: clamp(540px, 50vw, 780px);
}

.viet-product-gallery .woocommerce-product-gallery__image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.viet-product-gallery .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0;
}

.viet-product-gallery .flex-control-thumbs {
  display: none !important;
}

.viet-product-gallery .flex-direction-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.viet-product-gallery .flex-direction-nav a {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  overflow: hidden;
  border: 1px solid #171717;
  border-radius: 0;
  background: rgba(247, 247, 244, .92);
  color: #111;
  font-size: 0;
  line-height: 0;
  opacity: 1 !important;
  text-decoration: none;
  transform: none;
  transition: background-color .2s ease, transform .2s ease;
  cursor: pointer;
  pointer-events: auto;
}

.viet-product-gallery .flex-direction-nav a::before {
  content: "" !important;
  display: block;
  box-sizing: border-box;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  color: inherit;
  font: inherit;
  line-height: 1;
  text-shadow: none;
}

.viet-product-gallery .flex-direction-nav .flex-prev { left: 1rem; }
.viet-product-gallery .flex-direction-nav .flex-next { right: 1rem; }
.viet-product-gallery .flex-direction-nav .flex-prev::before { transform: rotate(-135deg); }
.viet-product-gallery .flex-direction-nav .flex-next::before { transform: rotate(45deg); }

.viet-product-gallery .flex-direction-nav a:hover {
  background: #111;
  color: #fff;
  transform: scale(1.06);
}

.viet-product-gallery .flex-direction-nav a.flex-disabled {
  cursor: default;
  opacity: .3 !important;
  pointer-events: none;
}

.woocommerce div.product .viet-product-main > .viet-product-summary {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-self: stretch !important;
  box-sizing: border-box;
  width: 100% !important;
  min-height: clamp(540px, 50vw, 780px) !important;
  min-width: 0;
  max-width: 600px !important;
  padding: 0 !important;
  color: #111;
}

.viet-product-summary .product_title {
  margin: 0 0 .65rem;
  color: #111;
  font-family: var(--vc-body-font, "Inter", sans-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.viet-product-summary .woocommerce-product-rating {
  margin: .5rem 0 1.25rem !important;
  font-size: .82rem;
}

.viet-product-summary .price {
  margin: 1rem 0 1.25rem;
  color: #111;
  font-size: 1.25rem;
  font-weight: 600;
}

.viet-product-summary .woocommerce-product-details__short-description {
  width: 100%;
  max-width: none;
  margin-bottom: 1.5rem;
  color: #282828;
  font-size: 1rem;
  line-height: 1.65;
}

.viet-product-summary form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.5rem 0;
}

.viet-product-summary form.cart .quantity .qty {
  width: 76px;
  min-height: 52px;
  border: 1px solid #111;
  border-radius: 0;
  background: transparent;
  color: #111;
}

.woocommerce div.product .viet-product-summary form.cart .button {
  min-height: 52px;
  flex: 1 1 230px;
  padding: .9rem 1.5rem;
  border: 1px solid #111 !important;
  border-radius: 0 !important;
  background: #111 !important;
  color: #fff !important;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.woocommerce div.product .viet-product-summary form.cart .button:hover {
  background: transparent !important;
  color: #111 !important;
}

.viet-product-summary table.variations,
.viet-product-summary table.variations tbody,
.viet-product-summary table.variations tr,
.viet-product-summary table.variations th,
.viet-product-summary table.variations td {
  display: block;
  width: 100%;
}

.viet-product-summary table.variations {
  margin: 0 0 1rem;
}

.viet-product-summary table.variations th {
  padding: 0 0 .5rem;
  color: #111;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
}

.viet-product-summary table.variations td { padding:0 0 1rem; }
.viet-product-summary table.variations select {
  width: 100%;
  min-height: 50px;
  padding: 0 2.75rem 0 1rem;
  border: 1px solid #111;
  border-radius: 0;
  background-color: transparent;
}

.viet-product-summary .product_meta {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid #cfcfca;
  color: #555;
  font-size: .78rem;
  letter-spacing: .05em;
}

.viet-product-summary .product_meta .sku_wrapper { display:none; }
.woocommerce-cart-form, .cart_totals, .woocommerce-checkout { background:#fff; padding:clamp(1rem,3vw,2rem); border-radius:1rem; }

@media (max-width: 1100px) {
  .viet-product-main {
    grid-template-columns: minmax(0, 54fr) minmax(360px, 46fr);
    gap: clamp(2rem, 4vw, 3rem);
  }

  .viet-product-gallery .woocommerce-product-gallery__image {
    height: clamp(440px, 50vw, 600px);
  }

  .woocommerce div.product .viet-product-main > .viet-product-gallery,
  .woocommerce div.product .viet-product-main > .viet-product-summary {
    min-height: clamp(440px, 50vw, 600px) !important;
  }
}

@media (max-width: 768px) {
  .viet-product-main { grid-template-columns:1fr; min-height:0; gap:2rem; }
  .woocommerce div.product .viet-product-main > .viet-product-gallery,
  .woocommerce div.product .viet-product-main > .viet-product-summary {
    align-self: auto !important;
    min-height: 0 !important;
  }
  .woocommerce div.product .viet-product-main > .viet-product-summary {
    max-width: none !important;
    margin: 0 auto !important;
  }
  .viet-product-gallery .woocommerce-product-gallery { max-width:620px; padding:0; }
  .viet-product-gallery .woocommerce-product-gallery__image { height: min(88vw, 480px); }
  .viet-product-gallery .flex-direction-nav a { width:38px; height:38px; margin-top:-19px; }
  .viet-product-gallery .flex-direction-nav .flex-prev { left:.5rem; }
  .viet-product-gallery .flex-direction-nav .flex-next { right:.5rem; }
  .hero-control { width:38px; height:38px; }
}

.hero-bg h1 {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: var(--color-white);
}

.hero-bg p {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.coffee-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.coffee-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  border-color: var(--color-accent-tan);
}

.coffee-card-image {
  width: 100%;
  height: 280px;
  background-color: var(--color-bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.coffee-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  transition: transform 0.4s ease;
}

.coffee-card:hover .coffee-card-image img {
  transform: scale(1.08);
}

.coffee-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.coffee-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary-brown);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  min-height: 2.5rem;
}

.coffee-card-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  flex-grow: 1;
}

.coffee-card-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.coffee-card-rating .stars {
  color: var(--color-warning);
  letter-spacing: 0.1em;
}

.coffee-card-rating .count {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.coffee-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.coffee-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-brown);
}

.coffee-card .btn-primary {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

/* ============================================================
   TRUST & GUARANTEE SECTION
   ============================================================ */
.trust-section {
  background: linear-gradient(135deg, var(--color-primary-brown) 0%, var(--color-primary-brown-dark) 100%);
  color: var(--color-white);
  padding: 2rem;
  border-radius: 1rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  gap: 0.75rem;
}

.trust-item-icon {
  font-size: 2.5rem;
  color: var(--color-accent-tan);
}

.trust-item-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.trust-item-text {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
}

/* ============================================================
   TESTIMONIAL / REVIEW SECTION
   ============================================================ */
.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent-tan);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--color-warning);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.2em;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-tan), var(--color-primary-brown));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 600;
  font-size: 1.25rem;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-primary-brown);
  margin: 0;
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-success);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ============================================================
   FORM STYLES
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--color-white);
  color: var(--color-text-dark);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent-tan);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
  background-color: var(--color-white);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-dark);
}

/* WooCommerce Form Styles */
.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  margin-bottom: 0.5rem;
}

/* ============================================================
   NEWSLETTER SIGNUP
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--color-accent-tan) 0%, var(--color-accent-tan-light) 100%);
  color: var(--color-primary-brown-dark);
  padding: 4rem 2rem;
  border-radius: 2rem;
  text-align: center;
}

.newsletter-section h2 {
  color: var(--color-primary-brown-dark);
  margin-bottom: 0.5rem;
}

.newsletter-section p {
  color: rgba(61, 40, 23, 0.8);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  padding: 1rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
}

.newsletter-form button {
  background-color: var(--color-success);
  color: var(--color-white);
  border: none;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #3d8b40;
  transform: translateY(-2px);
}

/* ============================================================
   CART & CHECKOUT MODAL
   ============================================================ */
.cart-modal-panel,
.checkout-modal-panel {
  max-height: 85vh;
  overflow-y: auto;
  background-color: var(--color-white);
  border-radius: 1.5rem;
}

/* Cart mini list */
#cart-modal-content ul.woocommerce-mini-cart,
#cart-modal-content .woocommerce-mini-cart {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

#cart-modal-content li.mini_cart_item,
#cart-modal-content .woocommerce-mini-cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

#cart-modal-content li.mini_cart_item:last-child,
#cart-modal-content .woocommerce-mini-cart-item:last-child {
  border-bottom: none;
}

#cart-modal-content .mini_cart_item img,
#cart-modal-content .woocommerce-mini-cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.75rem;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

#cart-modal-content .remove {
  color: #ef4444;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  margin-left: auto;
  padding: 0 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

#cart-modal-content .remove:hover {
  color: #dc2626;
}

#cart-modal-content .woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding: 1rem 0;
  border-top: 2px solid var(--color-border);
  margin-top: 1rem;
  color: var(--color-primary-brown);
}

#cart-modal-content .quantity {
  font-feature-settings: "tnum";
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

#cart-modal-content .woocommerce-mini-cart__buttons {
  display: none !important;
}

/* Checkout modal */
.checkout-modal-panel {
  max-width: 1000px;
}

#checkout-modal-content {
  background: var(--color-white);
}

#checkout-modal-content .woocommerce-checkout {
  display: block;
  max-width: 100%;
}

#checkout-modal-content .col2-set {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

#checkout-modal-content .col2-set .col-1,
#checkout-modal-content .col2-set .col-2 {
  flex: 1 1 48%;
  min-width: 280px;
}

@media (max-width: 768px) {
  #checkout-modal-content .col2-set .col-1,
  #checkout-modal-content .col2-set .col-2 {
    flex: 1 1 100%;
  }
}

#checkout-modal-content .woocommerce-billing-fields,
#checkout-modal-content .woocommerce-shipping-fields,
#checkout-modal-content #order_review {
  margin-bottom: 1.5rem;
}

#checkout-modal-content .woocommerce-checkout-review-order {
  background: var(--color-bg-cream);
  border-radius: 1rem;
  padding: 1.5rem;
}

#checkout-modal-content #payment {
  margin-top: 1.5rem;
}

#checkout-modal-content .form-row {
  margin-bottom: 1rem;
}

#checkout-modal-content button#place_order {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 9999px;
  background-color: var(--color-success) !important;
  color: var(--color-white) !important;
  border: none !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

#checkout-modal-content button#place_order:hover {
  background-color: #3d8b40 !important;
  transform: translateY(-2px) !important;
}

/* ============================================================
   FOOTER STYLES
   ============================================================ */
footer {
  background: linear-gradient(180deg, var(--color-primary-brown) 0%, var(--color-primary-brown-dark) 100%);
  color: rgba(255, 255, 255, 0.9);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

footer h4 {
  color: var(--color-accent-tan);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
  text-decoration: none;
}

footer a:hover {
  color: var(--color-accent-tan);
  text-decoration: underline;
}

.footer-widget {
  margin-bottom: 0;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget li {
  margin-bottom: 0.5rem;
}

footer .social-links {
  display: flex;
  gap: 1.5rem;
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

footer .copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
#mobile-menu {
  background: var(--color-primary-brown);
  padding: 1rem;
}

#mobile-menu a {
  color: rgba(255, 255, 255, 0.9);
  display: block;
  padding: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

#mobile-menu a:hover,
#mobile-menu a.active {
  background-color: rgba(212, 165, 116, 0.15);
  color: var(--color-accent-tan);
  border-left-color: var(--color-accent-tan);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================================
   MICRO-INTERACTIONS & ANIMATIONS
   ============================================================ */

/* Scroll offset for anchors with fixed header */
section[id],
div[id] {
  scroll-margin-top: 100px;
}

/* Smooth fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Loading spinner */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent-tan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Pulse animation for new products */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Scale animation for badges */
@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.scale-in {
  animation: scaleIn 0.3s ease-out;
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: var(--color-accent-tan);
  color: var(--color-primary-brown);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-success {
  background-color: var(--color-success);
  color: var(--color-white);
}

.badge-warning {
  background-color: var(--color-warning);
  color: var(--color-white);
}

/* ============================================================
   RESPONSIVE GRID & UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

/* ============================================================
   RESPONSIVE DESIGN / MOBILE FIRST
   ============================================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

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

  .hero-bg {
    background-attachment: scroll;
  }

  .coffee-card-image {
    height: 200px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

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

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  footer {
    padding-top: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  #checkout-modal-content .col2-set {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  button, .btn {
    width: 100%;
    font-size: 0.875rem;
  }

  .coffee-card-footer {
    flex-direction: column;
  }

  .coffee-card-price {
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .trust-item {
    padding: 1rem;
  }
}

/* ============================================================
   ACCESSIBILITY & PRINT
   ============================================================ */

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--color-accent-tan);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary-brown);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Print styles */
@media print {
  header,
  footer,
  .no-print {
    display: none;
  }

  .coffee-card {
    page-break-inside: avoid;
  }
}

/* ============================================================
   WOOCOMMERCE CART
   ============================================================ */
body.woocommerce-cart {
  background: #f8f4ee;
}

body.woocommerce-checkout {
  background: #f8f4ee;
}

body.woocommerce-cart #main-content {
  max-width: 1280px;
  padding-top: 8.5rem;
  padding-bottom: 6rem;
}

body.woocommerce-checkout #main-content {
  max-width: 1180px;
  padding-top: 8.5rem;
  padding-bottom: 6rem;
}

.commerce-page-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.commerce-page-header__eyebrow {
  display: inline-block;
  margin-bottom: .65rem;
  color: var(--vc-accent, #b45309);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.commerce-page-header h1 {
  margin: 0;
  color: var(--vc-primary, #4a2c1a);
  font-family: var(--vc-heading-font, "Playfair Display", serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
}

.commerce-page-header p {
  margin: .85rem 0 0;
  color: #71655c;
  font-size: 1rem;
}

body.woocommerce-cart .woocommerce {
  --cart-border: #e8dfd6;
  --cart-muted: #766a61;
  --cart-surface: #fff;
  --cart-primary: var(--vc-primary, #4a2c1a);
  color: #302923;
}

body.woocommerce-cart .woocommerce::after {
  display: table;
  clear: both;
  content: "";
}

body.woocommerce-cart .woocommerce-notices-wrapper > * {
  margin: 0 0 1.25rem;
  border: 1px solid #d7e5d1;
  border-radius: .85rem;
  background: #f2f8ef;
  box-shadow: none;
}

body.woocommerce-cart .woocommerce-cart-form {
  float: left;
  width: calc(68% - .75rem);
  margin-bottom: 1.5rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--cart-border);
  border-radius: 1.25rem;
  background: var(--cart-surface);
  box-shadow: 0 14px 40px rgba(65, 43, 29, .07);
}

body.woocommerce-cart .viet-cart-products-title {
  float: left;
  width: calc(68% - .75rem);
  margin: 0 0 1rem;
  color: #39261b;
  font-family: var(--vc-heading-font, "Playfair Display", serif);
  font-size: 1.6rem;
}

body.woocommerce-cart table.shop_table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
}

body.woocommerce-cart table.shop_table thead {
  background: #f5eee7;
}

body.woocommerce-cart table.shop_table th {
  padding: 1rem 1.25rem;
  border: 0;
  color: #685648;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.woocommerce-cart table.shop_table td {
  padding: 1.25rem;
  border-width: 0 0 1px;
  border-color: var(--cart-border);
  vertical-align: middle;
}

body.woocommerce-cart table.shop_table tr:last-child td {
  border-bottom: 0;
}

body.woocommerce-cart td.product-thumbnail {
  width: 104px;
}

body.woocommerce-cart td.product-thumbnail img {
  width: 82px;
  height: 82px;
  border-radius: .85rem;
  background: #f6f1eb;
  object-fit: cover;
}

body.woocommerce-cart td.product-name a {
  color: #38271d;
  font-family: var(--vc-heading-font, "Playfair Display", serif);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

body.woocommerce-cart td.product-name a:hover {
  color: var(--cart-primary);
}

body.woocommerce-cart .product-price,
body.woocommerce-cart .product-subtotal {
  color: #4b382c;
  font-weight: 700;
  white-space: nowrap;
}

body.woocommerce-cart a.remove {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  margin: auto;
  border: 1px solid #eadbd4;
  border-radius: .65rem;
  background: #fff8f6;
  color: transparent !important;
  font-size: 0;
  line-height: 1;
  text-decoration: none;
  place-items: center;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

body.woocommerce-cart a.remove::before {
  content: "\f182";
  color: #a34b38;
  font: 18px/1 dashicons;
}

body.woocommerce-cart a.remove:hover {
  border-color: #a34b38;
  background: #a34b38;
  transform: translateY(-1px);
}

body.woocommerce-cart a.remove:hover::before {
  color: #fff;
}

body.woocommerce-cart .quantity {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #d9cec4;
  border-radius: .7rem;
  background: #fff;
  box-shadow: 0 2px 7px rgba(55, 36, 24, .05);
}

body.woocommerce-cart .quantity .qty {
  width: 48px;
  min-height: 42px;
  padding: .4rem .2rem;
  border: 0;
  border-right: 1px solid #eee5dd;
  border-left: 1px solid #eee5dd;
  border-radius: 0;
  background: #fff;
  color: #39291f;
  font-weight: 700;
  text-align: center;
  box-shadow: none;
  -moz-appearance: textfield;
}

body.woocommerce-cart .quantity .qty::-webkit-inner-spin-button,
body.woocommerce-cart .quantity .qty::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

body.woocommerce-cart .quantity .minus,
body.woocommerce-cart .quantity .plus,
body.woocommerce-cart .quantity button {
  display: grid;
  flex: 0 0 38px;
  width: 38px !important;
  min-width: 38px;
  min-height: 42px;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #faf6f1 !important;
  color: var(--cart-primary) !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none !important;
  place-items: center;
}

body.woocommerce-cart .quantity .minus:hover,
body.woocommerce-cart .quantity .plus:hover,
body.woocommerce-cart .quantity button:hover {
  background: var(--cart-primary) !important;
  color: #fff !important;
}

body.woocommerce-cart td.actions {
  padding: 1rem 1.25rem;
  background: #fcfaf7;
}

body.woocommerce-cart td.actions .coupon {
  display: flex;
  gap: .65rem;
}

body.woocommerce-cart td.actions .coupon .input-text {
  width: 210px;
  min-height: 44px;
  padding: 0 .9rem;
  border: 1px solid #d9cec4;
  border-radius: .65rem;
}

body.woocommerce-cart .button,
body.woocommerce-cart button.button,
body.woocommerce-cart input.button {
  min-height: 44px;
  padding: .7rem 1.1rem;
  border: 1px solid #d8c8bb;
  border-radius: .65rem;
  background: #fff;
  color: var(--cart-primary);
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

body.woocommerce-cart .button:hover,
body.woocommerce-cart button.button:hover,
body.woocommerce-cart input.button:hover {
  border-color: var(--cart-primary);
  background: var(--cart-primary);
  color: #fff;
}

body.woocommerce-cart .cart-collaterals {
  float: right;
  display: flex;
  width: calc(32% - .75rem);
  justify-content: flex-end;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  float: none;
  box-sizing: border-box;
  width: 100%;
  padding: 1.75rem;
  border: 1px solid var(--cart-border);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 14px 40px rgba(65, 43, 29, .07);
}

body.woocommerce-cart .cart_totals h2 {
  margin: 0 0 1.25rem;
  color: #39261b;
  font-family: var(--vc-heading-font, "Playfair Display", serif);
  font-size: 1.6rem;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
  padding: 1rem 0;
  border-bottom: 1px solid var(--cart-border);
  background: transparent;
  text-transform: none;
}

body.woocommerce-cart .cart_totals table th {
  color: var(--cart-muted);
  font-size: .9rem;
  letter-spacing: 0;
}

body.woocommerce-cart .cart_totals table td {
  text-align: right;
}

body.woocommerce-cart .order-total strong {
  color: var(--cart-primary);
  font-size: 1.25rem;
}

body.woocommerce-cart .wc-proceed-to-checkout {
  padding: 1.25rem 0 0;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100%;
  margin: 0;
  padding: .95rem 1.25rem;
  border-color: var(--cart-primary);
  border-radius: .75rem;
  background: var(--cart-primary);
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  border-color: #2f1c11;
  background: #2f1c11;
  transform: translateY(-1px);
}

body.woocommerce-cart .cart-empty {
  margin: 0;
  padding: 3rem 1.5rem 1rem;
  color: #65584f;
  text-align: center;
}

body.woocommerce-cart .return-to-shop {
  text-align: center;
}

/* WooCommerce Cart Block */
body.woocommerce-cart .wc-block-cart {
  display: grid !important;
  grid-template-columns: minmax(0, 1.75fr) minmax(310px, .85fr);
  grid-template-areas: "main sidebar";
  align-items: start;
  gap: 1.5rem;
}

body.woocommerce-cart .wc-block-cart__main {
  grid-area: main;
  min-width: 0;
}

body.woocommerce-cart .wc-block-cart__sidebar {
  grid-area: sidebar;
  width: 100% !important;
  margin: 0 !important;
}

body.woocommerce-cart .wc-block-cart__main::before {
  display: block;
  margin: 0 0 1rem;
  color: #39261b;
  content: "Products in cart";
  font-family: var(--vc-heading-font, "Playfair Display", serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart__sidebar {
  border: 1px solid #e8dfd6 !important;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 14px 40px rgba(65, 43, 29, .07);
}

body.woocommerce-cart .wc-block-cart-items {
  overflow: hidden;
}

body.woocommerce-cart .wc-block-cart-items__row {
  padding: 1.25rem !important;
  border-bottom: 1px solid #e8dfd6 !important;
}

body.woocommerce-cart .wc-block-cart-item__image img {
  border-radius: .85rem;
}

body.woocommerce-cart .wc-block-components-quantity-selector {
  height: 42px;
  overflow: hidden;
  border: 1px solid #d9cec4;
  border-radius: .7rem;
  background: #fff;
  box-shadow: 0 2px 7px rgba(55, 36, 24, .05);
}

body.woocommerce-cart .wc-block-components-quantity-selector::after {
  display: none;
}

body.woocommerce-cart .wc-block-components-quantity-selector input {
  min-width: 40px;
  color: #39291f;
  font-weight: 700;
}

body.woocommerce-cart .wc-block-components-quantity-selector button {
  position: static;
  width: 38px !important;
  min-width: 38px;
  min-height: 40px;
  padding: 0 !important;
  border-radius: 0 !important;
  background: #faf6f1 !important;
  color: var(--vc-primary, #4a2c1a) !important;
  opacity: 1;
}

body.woocommerce-cart .wc-block-components-quantity-selector button:hover {
  background: var(--vc-primary, #4a2c1a) !important;
  color: #fff !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-top: .7rem;
  padding: .35rem .7rem !important;
  border: 1px solid #eadbd4 !important;
  border-radius: .55rem;
  background: #fff8f6 !important;
  color: #9e4937 !important;
  font-size: .78rem !important;
  font-weight: 700;
  text-decoration: none !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
  border-color: #a34b38 !important;
  background: #a34b38 !important;
  color: #fff !important;
}

body.woocommerce-cart .wc-block-components-product-name {
  color: #38271d;
  font-family: var(--vc-heading-font, "Playfair Display", serif);
  font-weight: 700;
}

body.woocommerce-cart .wc-block-cart__sidebar {
  box-sizing: border-box;
  padding: 1.5rem !important;
}

body.woocommerce-cart .wc-block-components-button:not(.is-link) {
  border-radius: .75rem;
  background: var(--vc-primary, #4a2c1a);
  color: #fff;
}

@media (max-width: 782px) {
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals,
  body.woocommerce-cart .viet-cart-products-title {
    float: none;
    width: 100%;
  }

  body.woocommerce-cart .wc-block-cart {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "sidebar";
  }
}

@media (max-width: 782px) {
  body.woocommerce-cart #main-content {
    padding-top: 7rem;
    padding-right: 1rem;
    padding-bottom: 4rem;
    padding-left: 1rem;
  }

  .commerce-page-header {
    margin-bottom: 1.75rem;
  }

  body.woocommerce-cart table.shop_table_responsive thead {
    display: none;
  }

  body.woocommerce-cart table.shop_table_responsive tr.cart_item {
    position: relative;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    padding: 1rem;
    border-bottom: 1px solid var(--cart-border);
  }

  body.woocommerce-cart table.shop_table_responsive tr.cart_item td {
    display: block;
    padding: .35rem 2.75rem .35rem 0;
    border: 0;
    text-align: left !important;
  }

  body.woocommerce-cart table.shop_table_responsive tr.cart_item td::before {
    display: none;
  }

  body.woocommerce-cart table.shop_table_responsive td.product-thumbnail {
    display: block;
    grid-row: 1 / span 5;
    width: auto;
    padding-right: 1rem;
  }

  body.woocommerce-cart table.shop_table_responsive td.product-thumbnail::before {
    display: none;
  }

  body.woocommerce-cart table.shop_table_responsive td.product-thumbnail img {
    width: 68px;
    height: 68px;
  }

  body.woocommerce-cart table.shop_table_responsive td.product-remove {
    position: absolute;
    top: .85rem;
    right: .75rem;
    padding: 0;
  }

  body.woocommerce-cart table.shop_table_responsive td.product-name {
    padding-top: 0;
  }

  body.woocommerce-cart table.shop_table_responsive td.product-price {
    color: var(--cart-muted);
    font-size: .85rem;
  }

  body.woocommerce-cart table.shop_table_responsive td.product-subtotal {
    color: var(--cart-primary);
  }

  body.woocommerce-cart tr:not(.cart_item) td.actions {
    display: block;
    padding: 1rem;
  }

  body.woocommerce-cart td.actions .coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  body.woocommerce-cart td.actions .coupon .input-text {
    width: 100%;
  }

  body.woocommerce-cart td.actions > button.button {
    width: 100%;
    margin-top: .75rem;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100%;
  }
}
.wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main {
    box-sizing: border-box;
    margin: 0;
    padding-right: 4.5283018868%;
    width: 65% !important;
}
.wc-block-components-sidebar-layout .wc-block-components-main {
    box-sizing: border-box;
    margin: 0;
    padding-right: 4.5283018868%;
    width: 100%;
}

/* Checkout: keep the contact fields but remove their section label. */
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout__contact-fields > .wc-block-components-checkout-step__heading,
body.woocommerce-checkout .wc-block-checkout #contact-fields > .wc-block-components-checkout-step__heading,
body.woocommerce-checkout #contact-fields .wc-block-components-checkout-step__heading {
  display: none !important;
}

@media (max-width: 480px) {
  body.woocommerce-cart .woocommerce-cart-form {
    border-radius: 1rem;
  }

  body.woocommerce-cart td.actions .coupon {
    grid-template-columns: 1fr;
  }

  body.woocommerce-cart td.actions .coupon .button,
  body.woocommerce-cart .quantity button,
  body.woocommerce-cart .wc-block-components-quantity-selector button {
    width: auto;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    padding: 1.25rem;
  }
}
