/* ============================================
   PREMIER CHINA - MASTER STYLESHEET
   All pages now use this single file.
   ============================================ */

:root {
  --color-primary: #475569;
  --color-primary-dark: #334155;
  --color-accent: #22c55e;
  --color-accent-dark: #16a34a;
  --color-text: #4a5568;
  --color-heading: #1e293b;
  --color-muted: #64748b;
  --color-bg-light: #f8fafc;
  --color-border: #e2e8f0;
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.1);
}

/* Base & Reset */
* { box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--color-text); line-height: 1.6; margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-heading); margin: 0 0 10px 0; }
a { color: var(--color-primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* Layout Containers */
.page-container {
  max-width: 1200px;
  margin: 150px auto 0;
  padding: 0 10px;
  position: relative;
  z-index: 1;
  clear: both;
}
.page-header-box {
  text-align: center;
  padding: 10px;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-bottom: 10px;
}
.section-box {
  background: #fff;
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}
.btn:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn-accent { background: var(--color-accent); }
.btn-accent:hover { background: var(--color-accent-dark); }

/* Products Page */
.main-layout-table { width: 100%; border-spacing: 10px; border-collapse: separate; }
.cat-sidebar { width: 22%; vertical-align: top; padding-right: 20px; }
.cat-heading {
  font-size: 16px; font-weight: 500; color: var(--color-heading);
  margin: 0 0 10px 0; padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
  display: flex; align-items: center; gap: 8px;
}
.cat-link {
  display: flex; align-items: center; padding: 4px 8px; margin: 2px 0;
  color: var(--color-text); border-radius: 4px; transition: all 0.2s ease;
}
.cat-link:hover { background: var(--color-border); }
.cat-link.active { background: var(--color-primary); color: #fff; font-weight: 500; }
.cat-link i { margin-right: 10px; width: 18px; text-align: center; }

.product-card {
  text-align: center; padding: 10px; background: #fff;
  border-radius: var(--radius); border: 1px solid var(--color-border);
  min-height: 270px; box-shadow: var(--shadow); transition: all 0.3s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.product-code { font-size: 14px; color: var(--color-muted); margin-bottom: 3px; }
.product-name { font-size: 14px; color: var(--color-heading); margin: 3px 0; }
.product-price { font-size: 14px; color: var(--color-primary); font-weight: 500; margin: 3px 0; }
.view-cart-btn {
  display: none; align-items: center; gap: 6px; padding: 7px 14px;
  background: var(--color-accent); color: #fff !important; border-radius: 6px;
  font-weight: 500; font-size: 14px; float: right;
}
.view-cart-btn:hover { background: var(--color-accent-dark); }
.pagination { text-align: center; margin: 10px 0 0; }
.pagination a, .pagination span {
  display: inline-block; padding: 4px 9px; margin: 0 2px;
  background: var(--color-bg-light); color: var(--color-primary);
  border-radius: 4px; font-size: 14px;
}
.pagination a:hover { background: var(--color-primary); color: #fff; }

/* Product Detail */
.detail-table {
  width: 100%; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow); border-collapse: separate; border-spacing: 0;
}
.detail-table td { padding: 20px; vertical-align: top; }
.detail-img-col {
  width: 50%; text-align: center; border-right: 1px solid var(--color-border);
  background: var(--color-bg-light); padding: 25px 20px;
}
.detail-img-col img {
  width: 350px !important; height: 350px !important; object-fit: contain !important;
  margin: 0 auto 15px !important; box-shadow: var(--shadow) !important;
  border-radius: var(--radius) !important; transition: all 0.3s ease;
}
.detail-img-col img:hover { transform: translateY(-3px) !important; box-shadow: var(--shadow-hover) !important; }
.detail-info-col { width: 50%; padding: 25px !important; }
.detail-meta { color: var(--color-muted); font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.detail-price { font-size: 18px; color: var(--color-primary); font-weight: 700; margin: 10px 0; }
.detail-desc {
  background: var(--color-bg-light); padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--color-border); line-height: 1.6; font-size: 14px;
}
.detail-footer { text-align: center; padding: 20px; background: #fff; border-top: 1px solid var(--color-border); }

/* About & Services */
.about-section {
  margin-bottom: 10px; padding: 10px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--color-primary);
}
.about-section h2 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.about-section h2 i { color: var(--color-primary); width: 24px; text-align: center; }
.about-cta { border-left-color: var(--color-accent); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px; margin-bottom: 10px;
}
.service-card {
  background: #fff; padding: 15px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 4px solid var(--color-primary); transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-3px); }
.service-card h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; }
.service-card h3 i { margin-right: 10px; color: var(--color-primary); width: 20px; text-align: center; }
.service-card ul { list-style: none; padding: 0; margin: 0; }
.service-card ul li { margin-bottom: 10px; padding-left: 25px; position: relative; font-size: 13px; }
.service-card ul li:before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  color: var(--color-primary); position: absolute; left: 0; font-size: 14px;
}
.cta-box {
  text-align: center; background: var(--color-primary); color: #fff;
  padding: 20px; border-radius: var(--radius); margin-top: 10px;
}
.cta-box h3 { color: #fff; margin: 0 0 10px; }
.cta-box p { color: #e2e8f0; margin-bottom: 15px; }

/* Flipbook */
.flipbook-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flipbook-cell {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--color-border);
  box-shadow: var(--shadow); min-height: 400px; position: relative; overflow: hidden; transition: all 0.3s ease;
}
.flipbook-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.flipbook-cell > * { opacity: 0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; }
.flipbook-cell:nth-child(1) { background: url('https://www.premierchina.net/wp-content/uploads/2026/04/catalog_thumb1.jpg') center/50% no-repeat !important; }
.flipbook-cell:nth-child(2) { background: url('https://www.premierchina.net/wp-content/uploads/2026/04/catalog_thumb2.jpg') center/50% no-repeat !important; }

/* Thank You Page */
.thank-you-wrapper { max-width: 1200px; margin: 150px auto; padding: 0 20px; }
.thank-you-card {
  background: #fff; border-radius: 12px; padding: 40px 35px; text-align: center;
  box-shadow: var(--shadow-hover); border: 1px solid var(--color-border); animation: slideUp 0.4s ease-out;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.thank-you-icon {
  width: 80px; height: 80px; background: #dcfce7; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 25px;
  color: var(--color-accent); font-size: 36px; box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}
.thank-you-details {
  background: var(--color-bg-light); border-radius: 8px; padding: 15px;
  margin-bottom: 30px; text-align: left; border: 1px solid var(--color-border);
}
.thank-you-details p { margin: 5px 0; font-size: 13px; color: #475569; }
.thank-you-details strong { color: var(--color-heading); font-weight: 500; }

/* Contact Page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.form-container { background: #fff; border-radius: var(--radius); padding: 15px; box-shadow: var(--shadow); border: 1px solid var(--color-border); }
.form-header { margin-bottom: 10px; color: var(--color-muted); font-size: 14px; }
#InquiryForm table { width: 100%; border-spacing: 0 10px; border-collapse: separate; }
#InquiryForm td { padding: 0; vertical-align: top; border: none; }
#InquiryForm .label-cell { width: 160px; color: var(--color-muted); font-size: 13px; padding-right: 15px; text-align: right; }
#InquiryForm input[type="text"], #InquiryForm input[type="email"], #InquiryForm input[type="tel"], #InquiryForm textarea {
  width: 100%; padding: 8px 10px; font-size: 13px; border: 1px solid var(--color-border);
  border-radius: 6px; background: var(--color-bg-light); transition: all 0.2s ease;
}
#InquiryForm input:focus, #InquiryForm textarea:focus {
  outline: none; border-color: var(--color-primary); background: #fff; box-shadow: 0 0 0 2px rgba(71,85,105,0.1);
}
.cart-display-box {
  min-height: 100px; max-height: 120px; padding: 10px; background: #f9f9f9;
  border: 1px solid var(--color-border); border-radius: 6px; overflow-y: auto; font-size: 13px;
}
.cart-display-box ul { margin: 0; padding-left: 18px; }
.cart-display-box li { margin-bottom: 3px; }
.lm-ic-file-drop-zone {
  border: 2px dashed var(--color-border); padding: 15px; text-align: center;
  margin: 10px 0; border-radius: 6px; cursor: pointer; background: var(--color-bg-light); transition: all 0.2s ease;
}
.lm-ic-file-drop-zone:hover { border-color: var(--color-primary); background: #f1f5f9; }
.lm-ic-file-list { margin-top: 10px; }
.lm-ic-file-item {
  display: flex; align-items: center; gap: 8px; padding: 6px; background: #fff;
  margin: 4px 0; border-radius: 4px; border: 1px solid var(--color-border); font-size: 12px;
}
.turnstile-container {
  text-align: center; background: var(--color-bg-light); border-radius: 6px; padding: 5px;
  border: 1px solid var(--color-border); display: inline-block; max-width: 100%;
}
.submit-row td { text-align: center; padding: 10px 0 5px !important; }
.submit-row button {
  padding: 6px 16px; font-size: 13px; background: var(--color-primary); color: #fff;
  border: none; border-radius: 6px; cursor: pointer; margin: 0 4px; transition: all 0.2s ease;
}
.submit-row button:hover:not(:disabled) { background: var(--color-primary-dark); transform: translateY(-2px); }
.submit-row button:disabled { background: #94a3b8; cursor: not-allowed; opacity: 0.8; }
.submit-row button[type="reset"] { background: var(--color-border); color: var(--color-primary); }
.contact-panel {
  background: var(--color-bg-light); border-left: 4px solid var(--color-primary);
  border-radius: var(--radius); padding: 15px; box-shadow: var(--shadow); border: 1px solid var(--color-border);
}
.contact-panel-header { text-align: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--color-border); }
.contact-info-item {
  display: flex; align-items: flex-start; margin-bottom: 8px; padding: 10px;
  background: #fff; border-radius: 6px; border: 1px solid var(--color-border); transition: all 0.2s ease;
}
.contact-info-item:hover { background: #f1f5f9; border-color: var(--color-primary); transform: translateX(3px); }
.contact-icon {
  width: 30px; height: 30px; background: var(--color-primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-right: 10px; flex-shrink: 0;
}
.contact-value a { color: var(--color-primary); }
.whatsapp-btn {
  display: inline-block; background: #25D366; color: #fff !important;
  padding: 6px 14px; border-radius: 5px; text-decoration: none; transition: all 0.2s ease;
}
.whatsapp-btn:hover { background: #128C7E; transform: translateY(-2px); }
.pcl-notice { padding: 15px; margin: 0 0 10px; border-radius: 6px; }
.pcl-notice.success { background: #dcfce7; border-left: 4px solid var(--color-accent); color: #166534; }
.pcl-notice.error { background: #fee2e2; border-left: 4px solid #ef4444; color: #991b1b; }

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-container { margin-top: 130px; padding: 0 10px; }
  .main-layout-table tr, .detail-table tr { display: block; width: 100%; }
  .main-layout-table td, .detail-table td { width: 100% !important; display: block; padding: 10px !important; }
  .cat-sidebar { margin-bottom: 10px; padding-right: 0; }
  .detail-img-col { border-right: none; border-bottom: 1px solid var(--color-border); }
  .detail-img-col img { width: 100% !important; height: auto !important; max-width: 350px; }
  .flipbook-grid { grid-template-columns: 1fr; }
  .flipbook-cell { min-height: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  #InquiryForm table tr td { display: block; width: 100% !important; text-align: left !important; padding: 3px 0 !important; }
  #InquiryForm .label-cell { padding-bottom: 4px !important; padding-right: 0 !important; font-weight: 500; }
  .thank-you-wrapper { margin: 25px auto; padding: 0 15px; }
  .thank-you-card { padding: 30px 25px; }
}