/* Module CSS - Product Attributes */
/* Các styles cho module ProductAttributes */
/* Sử dụng Barlow Condensed Typography System */
/* Import Core Typography */
/* ===== FONT CONFIGURATION SYSTEM ===== */
/* File này cho phép dễ dàng thay đổi font cho toàn bộ hệ thống */
/* Chỉ cần cập nhật các biến ở đây để áp dụng font mới */
:root {
  /* ===== PRIMARY FONT CONFIGURATION ===== */
  /* Thay đổi font chính ở đây */
  --font-primary: 'Barlow Condensed', 'Arial', 'Helvetica', sans-serif;
  
  /* ===== SECONDARY FONT CONFIGURATION ===== */
  /* Font backup khi primary font không load được */
  --font-secondary: 'Oswald', 'Arial', 'Helvetica', sans-serif;
  
  /* ===== SYSTEM FONT CONFIGURATION ===== */
  /* Font system fallback */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* ===== ALTERNATIVE FONTS ===== */
  /* Các font khác có thể sử dụng */
  --font-inter: 'Inter', 'Arial', 'Helvetica', sans-serif;
  --font-roboto: 'Roboto', 'Arial', 'Helvetica', sans-serif;
  --font-open-sans: 'Open Sans', 'Arial', 'Helvetica', sans-serif;
  --font-lato: 'Lato', 'Arial', 'Helvetica', sans-serif;
  --font-poppins: 'Poppins', 'Arial', 'Helvetica', sans-serif;
  --font-montserrat: 'Montserrat', 'Arial', 'Helvetica', sans-serif;
  --font-raleway: 'Raleway', 'Arial', 'Helvetica', sans-serif;
  --font-source-sans: 'Source Sans Pro', 'Arial', 'Helvetica', sans-serif;
  --font-ubuntu: 'Ubuntu', 'Arial', 'Helvetica', sans-serif;
  --font-nunito: 'Nunito', 'Arial', 'Helvetica', sans-serif;
  
  /* ===== FONT WEIGHTS ===== */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;
  
  /* ===== LINE HEIGHTS ===== */
  --line-tight: 120%;
  --line-normal: 140%;
  --line-relaxed: 150%;
  --line-loose: 160%;
  
  /* ===== LETTER SPACING ===== */
  --tracking-tight: -0.5px;
  --tracking-normal: 0px;
  --tracking-wide: 0.5px;
  --tracking-wider: 1px;
}
/* ===== FONT SWITCHING UTILITIES ===== */
/* Các class để chuyển đổi font nhanh chóng */
/* Primary Font */
.font-primary {
  font-family: var(--font-primary) !important;
}
/* Secondary Font */
.font-secondary {
  font-family: var(--font-secondary) !important;
}
/* System Font */
.font-system {
  font-family: var(--font-system) !important;
}
/* Alternative Fonts */
.font-inter { font-family: var(--font-inter) !important; }
.font-roboto { font-family: var(--font-roboto) !important; }
.font-open-sans { font-family: var(--font-open-sans) !important; }
.font-lato { font-family: var(--font-lato) !important; }
.font-poppins { font-family: var(--font-poppins) !important; }
.font-montserrat { font-family: var(--font-montserrat) !important; }
.font-raleway { font-family: var(--font-raleway) !important; }
.font-source-sans { font-family: var(--font-source-sans) !important; }
.font-ubuntu { font-family: var(--font-ubuntu) !important; }
.font-nunito { font-family: var(--font-nunito) !important; }
/* ===== QUICK FONT SWITCHING ===== */
/* Để thay đổi font nhanh, chỉ cần cập nhật --font-primary */
/* Ví dụ: Chuyển sang Inter */
/* :root { --font-primary: var(--font-inter); } */
/* Ví dụ: Chuyển sang Roboto */
/* :root { --font-primary: var(--font-roboto); } */
/* Ví dụ: Chuyển sang Open Sans */
/* :root { --font-primary: var(--font-open-sans); } */
/* ===== FONT PRESETS ===== */
/* Các preset font combinations */
/* Modern Tech */
.font-preset-modern {
  --font-primary: var(--font-inter);
  --font-secondary: var(--font-roboto);
}
/* Professional */
.font-preset-professional {
  --font-primary: var(--font-open-sans);
  --font-secondary: var(--font-lato);
}
/* Creative */
.font-preset-creative {
  --font-primary: var(--font-poppins);
  --font-secondary: var(--font-montserrat);
}
/* Corporate */
.font-preset-corporate {
  --font-primary: var(--font-raleway);
  --font-secondary: var(--font-source-sans);
}
/* Friendly */
.font-preset-friendly {
  --font-primary: var(--font-nunito);
  --font-secondary: var(--font-ubuntu);
}
/* ===== FONT LOADING OPTIMIZATION ===== */
/* Các class để tối ưu font loading */
/* Font Display Swap */
.font-display-swap {
  font-display: swap !important;
}
/* Font Display Fallback */
.font-display-fallback {
  font-display: fallback !important;
}
/* Font Display Optional */
.font-display-optional {
  font-display: optional !important;
}
/* ===== RESPONSIVE FONT SCALING ===== */
/* Các class để scale font theo viewport */
.font-responsive-sm {
  font-size: clamp(0.875rem, 2vw, 1rem) !important;
}
.font-responsive-md {
  font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
}
.font-responsive-lg {
  font-size: clamp(1.125rem, 3vw, 1.5rem) !important;
}
.font-responsive-xl {
  font-size: clamp(1.25rem, 4vw, 2rem) !important;
}
.font-responsive-2xl {
  font-size: clamp(1.5rem, 5vw, 3rem) !important;
}
/* ===== FONT PERFORMANCE ===== */
/* Các class để tối ưu performance */
/* Preload Font */
.font-preload {
  font-display: swap !important;
  font-loading: eager !important;
}
/* Lazy Load Font */
.font-lazy {
  font-display: optional !important;
  font-loading: lazy !important;
}
/* ===== FONT ACCESSIBILITY ===== */
/* Các class để tăng accessibility */
/* High Contrast */
.font-high-contrast {
  font-weight: var(--font-bold) !important;
  letter-spacing: var(--tracking-wide) !important;
}
/* Large Text */
.font-large-text {
  font-size: 1.125rem !important;
  line-height: var(--line-relaxed) !important;
}
/* Easy Read */
.font-easy-read {
  line-height: var(--line-relaxed) !important;
  letter-spacing: var(--tracking-normal) !important;
}
/* Core Module Typography System */
/* Font Barlow Condensed với các weight và style khác nhau */
/* Có thể dễ dàng thay đổi font bằng cách cập nhật CSS variables */
/* Typography Scale - Dễ dàng thay đổi font */
:root {
  /* ===== FONT CONFIGURATION ===== */
  /* Thay đổi font ở đây để áp dụng cho toàn bộ system */
  --font-primary: 'Barlow Condensed', 'Arial', 'Helvetica', sans-serif;
  --font-secondary: 'Oswald', 'Arial', 'Helvetica', sans-serif; /* Backup font */
  
  /* ===== FONT WEIGHTS ===== */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;
  
  /* ===== LINE HEIGHTS ===== */
  --line-tight: 120%;
  --line-normal: 140%;
  --line-relaxed: 150%;
  --line-loose: 160%;
  
  /* ===== LETTER SPACING ===== */
  --tracking-tight: -0.5px;
  --tracking-normal: 0px;
  --tracking-wide: 0.5px;
  --tracking-wider: 1px;
}
/* Global Font Family */
.core-font {
  font-family: var(--font-primary) !important;
}
/* Header Typography */
.core-header-primary {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-semibold) !important;
  font-style: normal !important;
  line-height: var(--line-tight) !important;
  letter-spacing: var(--tracking-normal) !important;
}
.core-header-secondary {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-medium) !important;
  font-style: normal !important;
  font-size: 30px !important;
  line-height: 100% !important;
  letter-spacing: 0px !important;
}
.core-header-small {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-medium) !important;
  font-style: normal !important;
  line-height: var(--line-normal) !important;
  letter-spacing: var(--tracking-wide) !important;
}
/* Button Typography */
.core-button-primary {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-semibold) !important;
  font-style: normal !important;
  line-height: var(--line-tight) !important;
  letter-spacing: var(--tracking-normal) !important;
}
.core-button-secondary {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-medium) !important;
  font-style: normal !important;
  line-height: var(--line-normal) !important;
  letter-spacing: var(--tracking-normal) !important;
}
.core-button-small {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-medium) !important;
  font-style: normal !important;
  line-height: var(--line-tight) !important;
  letter-spacing: var(--tracking-wide) !important;
}
/* Form Typography */
.core-form-label {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-medium) !important;
  font-style: normal !important;
  line-height: var(--line-normal) !important;
  letter-spacing: var(--tracking-normal) !important;
}
.core-form-input {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-regular) !important;
  font-style: normal !important;
  line-height: var(--line-normal) !important;
  letter-spacing: var(--tracking-normal) !important;
}
.core-form-help {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-regular) !important;
  font-style: normal !important;
  line-height: var(--line-relaxed) !important;
  letter-spacing: var(--tracking-normal) !important;
}
/* Table Typography */
.core-table-header {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-medium) !important;
  font-style: normal !important;
  line-height: var(--line-relaxed) !important;
  letter-spacing: var(--tracking-wider) !important;
}
.core-table-cell {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-regular) !important;
  font-style: normal !important;
  line-height: var(--line-normal) !important;
  letter-spacing: var(--tracking-normal) !important;
}
/* Badge Typography */
.core-badge {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-medium) !important;
  font-style: normal !important;
  line-height: var(--line-tight) !important;
  letter-spacing: var(--tracking-wide) !important;
}
/* Modal Typography */
.core-modal-title {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-semibold) !important;
  font-style: normal !important;
  line-height: var(--line-tight) !important;
  letter-spacing: var(--tracking-normal) !important;
}
.core-modal-body {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-regular) !important;
  font-style: normal !important;
  line-height: var(--line-relaxed) !important;
  letter-spacing: var(--tracking-normal) !important;
}
/* Toast Typography */
.core-toast-title {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-medium) !important;
  font-style: normal !important;
  line-height: var(--line-tight) !important;
  letter-spacing: var(--tracking-normal) !important;
}
.core-toast-message {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-regular) !important;
  font-style: normal !important;
  line-height: var(--line-normal) !important;
  letter-spacing: var(--tracking-normal) !important;
}
/* Pagination Typography */
.core-pagination {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-medium) !important;
  font-style: normal !important;
  line-height: var(--line-normal) !important;
  letter-spacing: var(--tracking-normal) !important;
}
/* Select Typography */
.core-select-label {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-medium) !important;
  font-style: normal !important;
  line-height: var(--line-normal) !important;
  letter-spacing: var(--tracking-normal) !important;
}
.core-select-option {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-regular) !important;
  font-style: normal !important;
  line-height: var(--line-normal) !important;
  letter-spacing: var(--tracking-normal) !important;
}
/* Icon Typography */
.core-icon-label {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-medium) !important;
  font-style: normal !important;
  line-height: var(--line-tight) !important;
  letter-spacing: var(--tracking-wide) !important;
}
/* Test Font Loading */
.core-font-test {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-bold) !important;
  font-size: 24px !important;
  color: #333 !important;
}
/* ===== FONT SWITCHING UTILITIES ===== */
/* Dễ dàng chuyển đổi giữa các font khác nhau */
/* Font Oswald (Backup) */
.font-oswald {
  font-family: var(--font-secondary) !important;
}
/* Font Barlow Condensed (Primary) */
.font-barlow-condensed {
  font-family: var(--font-primary) !important;
}
/* Font System Default */
.font-system {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}
/* ===== QUICK FONT SWITCH ===== */
/* Để thay đổi font nhanh, chỉ cần cập nhật --font-primary trong :root */
/* Ví dụ: --font-primary: 'Inter', 'Arial', sans-serif; */
/* Module Container */
.product-attributes-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font-primary) !important;
    display: block !important;
    visibility: visible !important;
}
/* Override Bootstrap styles for React components */
.react-content-area {
    display: block !important;
    visibility: visible !important;
    font-family: var(--font-primary) !important;
}
/* Ensure Tailwind classes work properly */
.bg-white {
    background-color: #ffffff !important;
}
.border {
    border-width: 1px !important;
}
.border-gray-200 {
    border-color: #e5e7eb !important;
}
.rounded-lg {
    border-radius: 0.5rem !important;
}
.p-6 {
    padding: 1.5rem !important;
}
.text-lg {
    font-size: 1.125rem !important;
    font-family: var(--font-primary) !important;
}
.font-semibold {
    font-weight: 600 !important;
    font-family: var(--font-primary) !important;
}
.text-gray-800 {
    color: #1f2937 !important;
    font-family: var(--font-primary) !important;
}
.mb-4 {
    margin-bottom: 1rem !important;
}
.flex {
    display: flex !important;
}
.items-center {
    align-items: center !important;
}
.gap-3 {
    gap: 0.75rem !important;
}
.flex-1 {
    flex: 1 1 0% !important;
}
.px-3 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}
.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}
.border-gray-300 {
    border-color: #d1d5db !important;
}
.rounded-md {
    border-radius: 0.375rem !important;
}
.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000) !important;
}
.focus\:ring-blue-500:focus {
    --tw-ring-color: #3b82f6 !important;
}
/* ===== RESOURCES TYPOGRAPHY ===== */
/* Typography classes cho resources */
/* Global Font */
.resources-font {
    font-family: var(--font-primary) !important;
}
/* Headers */
.resources-header {
    font-family: var(--font-primary) !important;
    font-weight: var(--font-semibold) !important;
    line-height: var(--line-tight) !important;
}
.resources-subheader {
    font-family: var(--font-primary) !important;
    font-weight: var(--font-medium) !important;
    line-height: var(--line-normal) !important;
}
/* Text Elements */
.resources-text {
    font-family: var(--font-primary) !important;
    font-weight: var(--font-regular) !important;
    line-height: var(--line-normal) !important;
}
.resources-text-small {
    font-family: var(--font-primary) !important;
    font-weight: var(--font-regular) !important;
    line-height: var(--line-tight) !important;
    font-size: 0.875rem !important;
}
/* Buttons */
.resources-button {
    font-family: var(--font-primary) !important;
    font-weight: var(--font-medium) !important;
    line-height: var(--line-tight) !important;
}
.resources-button-primary {
    font-family: var(--font-primary) !important;
    font-weight: var(--font-semibold) !important;
    line-height: var(--line-tight) !important;
}
/* Forms */
.resources-input {
    font-family: var(--font-primary) !important;
    font-weight: var(--font-regular) !important;
    line-height: var(--line-normal) !important;
}
.resources-label {
    font-family: var(--font-primary) !important;
    font-weight: var(--font-medium) !important;
    line-height: var(--line-normal) !important;
}
/* Tables */
.resources-table-header {
    font-family: var(--font-primary) !important;
    font-weight: var(--font-medium) !important;
    line-height: var(--line-relaxed) !important;
    letter-spacing: var(--tracking-wider) !important;
}
.resources-table-cell {
    font-family: var(--font-primary) !important;
    font-weight: var(--font-regular) !important;
    line-height: var(--line-normal) !important;
}
/* ===== FONT SWITCHING UTILITIES ===== */
/* Dễ dàng chuyển đổi font cho resources */
.font-barlow-condensed {
    font-family: var(--font-primary) !important;
}
.font-oswald {
    font-family: var(--font-secondary) !important;
}
.font-system {
    font-family: var(--font-system) !important;
}
/* ===== RESPONSIVE TYPOGRAPHY ===== */
/* Font scaling theo viewport */
.resources-text-responsive {
    font-size: clamp(0.875rem, 2vw, 1rem) !important;
    font-family: var(--font-primary) !important;
}
.resources-header-responsive {
    font-size: clamp(1.25rem, 4vw, 2rem) !important;
    font-family: var(--font-primary) !important;
}
.disabled\:bg-gray-300:disabled {
    background-color: #d1d5db !important;
}
.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed !important;
}
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}
.w-4 {
    width: 1rem !important;
}
.h-4 {
    height: 1rem !important;
}
.space-y-2 > * + * {
    margin-top: 0.5rem !important;
}
.text-sm {
    font-size: 0.875rem !important;
}
.font-medium {
    font-weight: 500 !important;
}
.text-gray-700 {
    color: #374151 !important;
}
.mb-2 {
    margin-bottom: 0.5rem !important;
}
.bg-gray-50 {
    background-color: #f9fafb !important;
}
.justify-between {
    justify-content: space-between !important;
}
.text-red-500 {
    color: #ef4444 !important;
}
.hover\:text-red-700:hover {
    color: #b91c1c !important;
}
.p-1 {
    padding: 0.25rem !important;
}
.space-y-6 > * + * {
    margin-top: 1.5rem !important;
}
/* Remove borders from buttons */
button {
    border: none !important;
    outline: none !important;
}
button:focus {
    outline: none !important;
    border: none !important;
}
/* Specific button styles without borders */
.btn, .btn-add, .btn-remove {
    border: none !important;
    outline: none !important;
}
.btn:focus, .btn-add:focus, .btn-remove:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}
/* Container for React content */
.react-content-area .product-attributes-container {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}
/* Product Attributes Cards - Better UX */
.product-attributes-container {
    background: #f8fafc !important;
    min-height: 100vh !important;
    padding: 2rem 0 !important;
}
.product-attributes-container > div:first-child {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
}
.product-attributes-container .space-y-6 > div {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.2s ease !important;
}
.product-attributes-container .space-y-6 > div:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}
/* Dish Types badges on product cards */
.dish-types {
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.dish-types .badge,
.dish-types .badge-light {
    font-size: 11px;
}