/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (ArtPal & Premium Gallery Theme)
   ========================================================================== */
:root {
  --bg-primary: #0a0a0b;        /* Deep obsidian dark */
  --bg-card: #131314;           /* Modern glassy dark card */
  --text-main: #f5f5f7;         /* Warm bright text */
  --text-muted: #a1a1a6;        /* Subdued slate grey */
  --accent-gold: #c5a880;       /* Premium refined gold */
  --accent-gold-light: #24201a; /* Warm gold background wash */
  --border-color: #1e1e20;      /* Thin dark border */
  --danger-color: #e53e3e;      /* Modern vibrant red */
  --success-color: #38a169;     /* Modern vibrant green */
  --shadow-light: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.7);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, .logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.main-header {
  background-color: rgba(10, 10, 11, 0.85);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(15px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.logo-area {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.logo-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-top: -2px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  position: relative;
  padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-main);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

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

.admin-link-btn {
  background-color: var(--accent-gold-light);
  color: var(--accent-gold) !important;
  padding: 8px 16px !important;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(179, 146, 93, 0.2);
}

.admin-link-btn:hover {
  background-color: var(--accent-gold);
  color: #ffffff !important;
}

.icon-svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background-image: url('/uploads/vietnamese_autumn.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.4) 0%, rgba(10, 10, 11, 0.85) 100%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-style: italic;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  margin-bottom: 30px;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   GALLERY / SHOPPING SECTION
   ========================================================================== */
.gallery-section {
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Filter & Search Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-box input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  font-family: var(--font-sans);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(179, 146, 93, 0.1);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.filter-controls {
  display: flex;
  gap: 15px;
}

.filter-select {
  padding: 12px 20px;
  font-family: var(--font-sans);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

.filter-select:focus {
  border-color: var(--accent-gold);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent-gold);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 80%; /* Tỉ lệ vàng hiển thị tranh */
  overflow: hidden;
  background-color: #f0ebe1;
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.product-card:hover .card-overlay {
  opacity: 1;
}

.view-detail-hint {
  color: #ffffff;
  background-color: rgba(17, 17, 17, 0.85);
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-info {
  padding: 24px;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-artist {
  font-size: 0.85rem;
  color: #718096;
  font-style: italic;
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 600;
  font-family: var(--font-serif);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #9e7f4c;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--text-main);
  color: #ffffff;
}

.btn-danger {
  background-color: var(--danger-color);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #8c3533;
}

.btn-zalo {
  background-color: #0068ff;
  color: #ffffff;
}

.btn-zalo:hover {
  background-color: #0050c8;
}

.btn-phone {
  background-color: #111111;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-phone:hover {
  background-color: var(--accent-gold);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* ==========================================================================
   PRODUCT PAGE VIEW (Trang chi tiết sản phẩm độc lập)
   ========================================================================== */
.product-page-section {
  padding: 40px 20px 80px;
  animation: fadeIn 0.4s ease;
}

.back-nav {
  margin-bottom: 30px;
}

.back-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-link:hover {
  color: var(--text-main);
  transform: translateX(-4px);
}

.product-page-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.product-page-image-area {
  background-color: #111112;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-right: 1px solid var(--border-color);
}

.artwork-frame {
  background-color: #171717;
  padding: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.75), inset 0 0 15px rgba(0, 0, 0, 0.5);
  border: 12px solid #28241e; /* Bronze-wood museum border */
  display: inline-flex;
  max-width: 100%;
}

.artwork-frame img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.product-page-details-area {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-category-tag {
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: block;
}

.product-page-title {
  font-size: 2.5rem;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 15px;
}

.product-page-price {
  font-size: 1.8rem;
  color: var(--text-main);
  font-weight: 600;
  font-family: var(--font-serif);
}

.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 25px 0;
}

.section-sub-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.product-page-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.purchase-box-card {
  background-color: var(--bg-primary);
  padding: 24px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.purchase-box-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-main);
}

.purchase-notice {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.purchase-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* ==========================================================================
   POLICIES SECTION (Bản Quyền & Bảo Mật)
   ========================================================================== */
.policies-section {
  padding: 80px 0;
  background-color: #0e0e0f;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.policies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.policy-box {
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-light);
}

.policy-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.policy-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.policy-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: justify;
}

.highlight-policy {
  border-left: 3px solid var(--accent-gold);
  padding-left: 15px;
}

/* ==========================================================================
   FOOTER (Dynamic Contact)
   ========================================================================== */
.main-footer-area {
  background-color: #111111;
  color: #dddddd;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.9rem;
  font-style: italic;
  color: #999999;
  margin-bottom: 20px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #666666;
}

.footer-contact h3,
.footer-social h3 {
  color: #ffffff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.social-icon-btn {
  background-color: #222222;
  color: #ffffff;
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 4px;
  border: 1px solid #333333;
}

.social-icon-btn:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.admin-hint {
  font-size: 0.75rem;
  color: #444444;
  margin-top: 10px;
}

/* ==========================================================================
   ADMIN LOGIN CARD
   ========================================================================== */
.admin-body {
  background-color: #0a0a0b;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 420px;
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h2 {
  font-size: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.login-header p {
  font-size: 0.8rem;
  color: var(--danger-color);
  font-weight: 500;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.col-6 {
  flex: 1;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.required {
  color: var(--danger-color);
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: #18181a;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: #1e1e21;
}

.error-banner {
  background-color: rgba(229, 62, 62, 0.1);
  color: #feb2b2;
  border: 1px solid rgba(229, 62, 62, 0.2);
  border-left: 4px solid #e53e3e;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.success-banner {
  background-color: rgba(56, 161, 105, 0.1);
  color: #9ae6b4;
  border: 1px solid rgba(56, 161, 105, 0.2);
  border-left: 4px solid #38a169;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ADMIN PANEL DASHBOARD
   ========================================================================== */
.admin-header {
  background-color: #111111;
  color: #ffffff;
  padding: 15px 0;
  border-bottom: 2px solid var(--accent-gold);
}

.admin-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-logo h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.admin-logo span {
  font-size: 0.75rem;
  color: #999999;
}

.admin-controls {
  display: flex;
  gap: 10px;
}

.admin-main {
  padding: 40px 20px;
}

.admin-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  margin-bottom: 40px;
}

.admin-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 4px;
  box-shadow: var(--shadow-light);
}

.admin-card-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.card-desc-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  background-color: #faf9f5;
  padding: 10px;
  border-left: 2px solid var(--accent-gold);
}

/* Image Source Tab */
.image-source-tabs {
  display: flex;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-btn.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
  font-weight: 600;
}

/* Image Upload Box */
.image-upload-box {
  background-color: #faf9f6;
  border: 2px dashed var(--border-color);
  border-radius: 4px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.image-upload-box:hover {
  border-color: var(--accent-gold);
}

.upload-icon {
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.upload-text-main {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-main);
}

.upload-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.image-preview-area {
  position: relative;
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.image-preview-area img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #eae6db;
}

.remove-preview-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  background-color: rgba(169, 68, 66, 0.9);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.message-banner {
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* Product list section (Admin table) */
.product-list-section {
  width: 100%;
}

.admin-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.admin-table th {
  background-color: #faf9f6;
  font-weight: 600;
  color: var(--text-main);
}

.table-img-wrapper {
  width: 60px;
  height: 50px;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  background-color: #eae6db;
}

.table-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  background-color: var(--accent-gold-light);
  color: var(--accent-gold);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.price-text {
  font-weight: 500;
  color: var(--text-main);
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   ANIMATIONS & LOADING INDICATORS
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loading-spinner {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

.no-results {
  text-align: center;
  padding: 60px 0;
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.error-msg {
  grid-column: 1 / -1;
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
  .modal-body-layout {
    grid-template-columns: 1fr;
  }
  
  .modal-image-wrapper {
    padding: 30px;
  }
  
  .modal-image-wrapper img {
    max-height: 50vh;
  }
  
  .modal-details {
    padding: 30px;
  }
  
  .admin-grid-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .policies-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-page-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-page-image-area {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
  }

  .product-page-details-area {
    padding: 30px 20px;
  }
  
  .artpal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 0;
  }
  
  .gallery-sidebar {
    position: static;
    margin-bottom: 20px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .main-nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-controls {
    flex-direction: column;
  }
  
  .header-search-box {
    margin: 10px 0;
    max-width: 100%;
    width: 100%;
  }
  
  .artwork-frame {
    padding: 15px;
    border-width: 6px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  .hero-section {
    height: auto;
    padding: 80px 20px;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .product-page-title {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   ADDED CUSTOM STYLES (Related Products & Footer Policy Links)
   ========================================================================== */
.related-products-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.related-section-title {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-policy-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-link-item {
  font-size: 0.9rem;
  color: #999999;
  transition: var(--transition-smooth);
}

.policy-link-item:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* ==========================================================================
   ARTPAL 2-COLUMN SIDEBAR LAYOUT
   ========================================================================== */
.artpal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0 80px;
}

.gallery-sidebar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 4px;
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 90px; /* Dưới header dính */
}

.sidebar-block {
  margin-bottom: 25px;
}

.sidebar-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Danh sách link chủ đề Subjects màu xanh ArtPal */
.subject-link-list {
  list-style: none;
}

.subject-link-list li {
  margin-bottom: 6px;
}

.subject-link {
  color: #0066cc; /* Màu xanh liên kết giống ảnh ArtPal */
  font-size: 0.9rem;
  display: block;
  transition: var(--transition-smooth);
}

.subject-link:hover,
.subject-link.active {
  color: var(--accent-gold);
  font-weight: 600;
  text-decoration: underline;
}

/* Checkboxes trong Sidebar */
.filter-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.sidebar-actions {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

/* Cột Phải: Phòng tranh */
.gallery-main-area {
  flex: 1;
}

.gallery-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.gallery-status-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   HEADER SEARCH & NAVIGATION UPDATES
   ========================================================================== */
.header-search-box {
  position: relative;
  max-width: 320px;
  flex: 1;
  margin: 0 30px;
}

.header-search-box input {
  width: 100%;
  padding: 8px 16px 8px 36px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: #faf9f6;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #111111; /* Black text for high readability on light input background */
  transition: var(--transition-smooth);
}

.header-search-box input:focus {
  background-color: #ffffff;
  border-color: var(--accent-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(179, 146, 93, 0.1);
}

.header-search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

/* ==========================================================================
   MY ORDER TRACKER DIALOG (Popup đơn hàng của tôi)
   ========================================================================== */
.modal-dialog-box {
  position: fixed;
  z-index: 300;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-dialog-content {
  background-color: var(--bg-card);
  margin: 8% auto;
  width: 90%;
  max-width: 680px;
  border-radius: 6px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
  padding: 35px;
  position: relative;
}

.close-dialog-btn {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 32px;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-dialog-btn:hover {
  color: var(--text-main);
}

.dialog-title {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.dialog-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.order-list-container {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
  padding-right: 5px;
}

.my-order-item {
  display: flex;
  gap: 20px;
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 4px;
  background-color: var(--bg-primary);
  align-items: center;
}

.order-item-img {
  width: 70px;
  height: 60px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  background-color: #eae6db;
}

.order-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-details {
  flex: 1;
}

.order-item-details h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.order-price {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.order-meta-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  flex-direction: column;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.pending {
  background-color: #fef8eb;
  color: #c58627;
  border: 1px solid rgba(197, 134, 39, 0.15);
}

.status-badge.completed {
  background-color: #f0f7f0;
  color: #3b7a3b;
  border: 1px solid rgba(59, 122, 59, 0.15);
}

.no-orders-msg {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 40px 0;
}

.dialog-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  line-height: 1.5;
}

/* ==========================================================================
   ADMIN LAYOUT FORM UTILS
   ========================================================================== */
.col-4 {
  flex: 1;
}

/* Responsive Media Queries cho Sidebar */
@media (max-width: 992px) {
  .artpal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .gallery-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .sidebar-block {
    margin-bottom: 0;
  }
  
  .sidebar-actions {
    grid-column: 1 / -1;
    margin-top: 0;
    padding-top: 10px;
  }
  
  .header-search-box {
    max-width: none;
    margin: 10px 0;
    order: 3;
    width: 100%;
  }
}

/* ==========================================================================
   ARTPAW STYLE FOOTER LINK BAR & CELEBRATION
   ========================================================================== */
.footer-artpaw-style-links {
  text-align: center;
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 12px;
}

.footer-artpaw-style-links a {
  color: #3182ce !important; /* ArtPaw style link blue */
  font-weight: 500;
  margin: 0 4px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-artpaw-style-links a:hover {
  text-decoration: underline !important;
  color: var(--accent-gold) !important;
}

.footer-celebrate-text {
  text-align: center;
  font-size: 0.85rem;
  color: #888888;
  font-style: italic;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-copyright-details {
  text-align: center;
  font-size: 0.8rem;
  color: #555555;
  letter-spacing: 0.2px;
}
