@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --brand-blue: #006bb6;
  --brand-sky: #ff5000;
  --brand-orange: #ff5000;
  --brand-yellow: #ffd814;
  --paper: #ffffff;
  --sample-blue: #0087c8;
  --sample-deep: #004f9f;
}

.font-display {
  font-family: 'Montserrat', sans-serif;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #0f172a;
}

.page-shell {
  background: #ffffff;
}

.sample-container {
  width: min(calc(100% - 48px), 1200px);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1900px) {
  .sample-container {
    width: min(calc(100% - 48px), 1486px);
  }
}

@media (max-width: 480px) {
  .sample-container {
    width: min(calc(100% - 30px), 1200px);
  }
}

/* Login page: dual-column layout for desktop */
.login-columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .login-columns {
    flex-direction: row;
    align-items: stretch;
  }
  .login-columns .login-form-panel {
    width: 50%;
  }
  .login-columns .login-illustration {
    display: block;
    width: 50%;
  }
  .login-columns .login-illustration img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }
}

.sample-nav-link {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.sample-nav-link.active,
.sample-nav-link:hover {
  color: #ff5000;
}

.sample-btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffd814;
  color: #111827;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(255, 216, 20, 0.26);
  transition: all 0.2s ease;
}

.sample-btn-yellow:hover {
  background: #ff5000;
  color: #ffffff;
}

.sample-section-title {
  color: #0087c8;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.12;
}

@media (max-width: 767px) {
  .products-hero-title {
    font-size: 20px !important;
  }
}

@media (max-width: 1023px) {
  .home-hero,
  .home-hero-inner {
    height: auto !important;
    min-height: 620px;
  }

  .home-hero-inner {
    justify-content: center;
    padding-top: 96px !important;
    padding-bottom: 56px;
  }

  .home-hero-panel {
    border-radius: 22px;
    padding: 28px 30px !important;
  }

  .home-hero-title {
    font-size: 22px !important;
  }

  .home-categories,
  .home-partners,
  .home-inquiry {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }

  .home-section-title {
    font-size: 32px !important;
  }

  .home-category-card {
    padding-top: 26px !important;
  }

  .home-category-name {
    margin-top: 24px !important;
    font-size: 20px !important;
  }

  .home-certifications {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  .home-certification-grid {
    margin-top: 58px !important;
    margin-bottom: 58px !important;
    flex-wrap: wrap;
    align-items: center;
  }

  .home-certification-image {
    height: 230px !important;
  }

  .home-inquiry-panel {
    padding: 48px 42px !important;
  }
}

@media (max-width: 767px) {
  .home-hero,
  .home-hero-inner {
    min-height: 560px;
  }

  .home-hero-image {
    object-position: 58% center;
  }

  .home-hero-inner {
    padding-top: 78px !important;
    padding-bottom: 38px;
  }

  .home-hero-panel {
    border-radius: 18px;
    padding: 22px 20px !important;
    background: rgba(255, 255, 255, 0.82) !important;
  }

  .home-hero-copy {
    gap: 14px !important;
  }

  .home-hero-title {
    font-size: 19px !important;
    line-height: 1.32 !important;
  }

  .home-hero-text {
    font-size: 13px !important;
    line-height: 1.62 !important;
  }

  .home-hero-badges {
    margin-top: 20px !important;
    gap: 18px !important;
    padding-left: 8px !important;
  }

  .home-hero-badge {
    height: 54px !important;
  }

  .home-categories,
  .home-partners,
  .home-inquiry {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  .home-section-heading {
    gap: 14px !important;
  }

  .home-section-title {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }

  .home-category-grid,
  .home-partner-grid {
    margin-top: 34px !important;
    gap: 14px !important;
  }

  .home-category-card {
    aspect-ratio: auto;
    min-height: 178px;
    padding: 22px 12px 18px !important;
  }

  .home-category-image {
    width: 72px !important;
  }

  .home-category-name {
    margin-top: 18px !important;
    font-size: 16px !important;
  }

  .home-certifications {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .home-certification-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 36px !important;
    margin-bottom: 20px !important;
    gap: 16px !important;
  }

  .home-certification-image {
    width: 100%;
    height: auto !important;
    max-height: 220px;
  }

  .home-partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-partner-card {
    padding: 12px !important;
  }

  .home-inquiry-panel {
    border-radius: 16px !important;
    padding: 34px 22px !important;
  }

  .home-inquiry-image {
    top: 0 !important;
    height: 100% !important;
  }

  .home-inquiry-content {
    gap: 22px !important;
  }

  .home-inquiry-title {
    font-size: 27px !important;
    line-height: 1.16 !important;
  }

  .home-inquiry-actions {
    gap: 10px !important;
  }

  .home-inquiry-actions a {
    width: 100%;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

@media (max-width: 480px) {
  .home-hero,
  .home-hero-inner {
    min-height: 530px;
  }

  .home-hero-inner {
    padding-top: 64px !important;
  }

  .home-hero-panel {
    padding: 18px 16px !important;
  }

  .home-hero-title {
    font-size: 17px !important;
  }

  .home-hero-text {
    font-size: 12px !important;
  }

  .home-hero-badge {
    height: 46px !important;
  }

  .home-section-title {
    font-size: 23px !important;
  }

  .home-category-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .home-category-card {
    min-height: 154px;
    padding-top: 18px !important;
  }

  .home-category-image {
    width: 62px !important;
  }

  .home-category-name {
    margin-top: 14px !important;
    font-size: 14px !important;
  }

  .home-certification-grid {
    gap: 12px !important;
  }

  .home-certification-image {
    max-height: 180px;
  }

  .home-partner-grid {
    gap: 10px !important;
  }

  .home-partner-card {
    padding: 10px !important;
  }
}

.soft-panel,
.table-card,
.sample-product-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.inquiry-records-desktop {
  display: none;
}

.inquiry-records-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.inquiry-records-back-link:hover {
  border-color: #ff5000;
  color: #ff5000;
  box-shadow: 0 12px 28px rgba(255, 80, 0, 0.12);
}

@media (min-width: 768px) {
  .inquiry-records-mobile {
    display: none;
  }

  .inquiry-records-desktop {
    display: block;
  }
}

.sample-product-card {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.product-card-image {
  transition: transform 0.5s ease;
  height: 212px;
}

.sample-product-card:hover .product-card-image {
  transform: scale(1.25);
}

.product-spec-row {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 22px;
  margin-top: 8px;
}

.product-spec-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #4b5563;
  color: #000000;
  font-size: 9px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-spec-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta-panel {
  margin: 10px 0;
}

.product-category-filter {
  height: 30px;
  flex-shrink: 0;
  padding: 0 22px;
  border: 1px solid #188bc9;
  border-radius: 999px;
  background: transparent;
  color: #188bc9;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.product-category-filter:hover,
.product-category-filter.is-active {
  background: #188bc9;
  color: #ffffff;
}

@media (min-width: 1200px) {
  .product-category-filters {
    flex-wrap: nowrap;
  }
}

.product-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}

.product-qty-pill {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 2px 3px;
  border-radius: 25px;
  background: #000000;
  font-size: 12px;
  font-weight: 700;
}

.product-qty-control {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 24px;
}

.product-card-cart-button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

.product-qty-label {
  color: #ffffff;
  padding-left: 5px;
}

.product-qty-button {
  flex: 0 0 22px;
  width: 22px !important;
  height: 22px !important;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.product-qty-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  outline: 0;
  appearance: textfield;
}

@media (max-width: 1320px) and (min-width: 1024px) {
  .sample-product-card .p-4 {
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-action-bar {
    gap: 6px;
  }

  .product-qty-pill {
    gap: 7px;
  }

  .product-qty-control {
    min-width: 0;
    width: auto;
  }

  .product-qty-input {
    min-width: 0;
    width: auto;
  }
}

@media (max-width: 480px) {
  .product-card-content {
    padding: 0.6rem !important;
  }

  .product-card-price {
    font-size: 16px !important;
  }

  .product-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .product-qty-pill {
    flex: 0 0 auto;
    width: 100%;
    gap: 6px;
    font-size: 11px;
  }

  .product-qty-control {
    flex: 1 1 auto;
    padding-left: 2px;
    padding-right: 2px;
  }

  .cart-btn-wrap {
    align-self: flex-end;
  }

  .product-card-cart-button {
    align-self: flex-end;
  }

  .cart-btn-qty[data-cart-btn-qty] {
    top: -6px;
    left: auto !important;
    right: -6px !important;
    bottom: auto !important;
  }

  .remove-from-cart-btn[data-remove-from-cart] {
    bottom: -6px !important;
    left: -6px !important;
    top: auto !important;
    right: auto !important;
  }

  .product-qty-button {
    flex-basis: 22px;
    width: 22px !important;
  }

  .product-qty-input {
    font-size: 12px;
  }
}

.product-qty-input::-webkit-outer-spin-button,
.product-qty-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.min-h-\[300px\] {
  min-height: 300px;
}

.overflow-hidden {
  overflow: hidden;
}

.bg-\[length\:auto\] {
  background-size: auto;
}

.bg-center {
  background-position: center;
}

.bg-no-repeat {
  background-repeat: no-repeat;
}

.bg-white\/80 {
  background-color: rgb(255 255 255 / 0.8);
}

.bg-\[linear-gradient\(135deg\,rgba\(11\,35\,69\,0\.9\)\,rgba\(21\,60\,116\,0\.72\)\)\] {
  background-image: linear-gradient(135deg, rgba(11, 35, 69, 0.9), rgba(21, 60, 116, 0.72));
}

@media (min-width: 768px) {
  .md\:min-h-\[460px\] {
    min-height: 460px;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-\[0\.85fr_1\.15fr\] {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.orange-title-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.orange-title-bar::before {
  content: '';
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: #ff5000;
}

.toast {
  position: fixed;
  top: 25%;
  left: 50%;
  z-index: 9999;
  opacity: 0;
  transform: translateX(-50%) translateY(-20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

/* Cart page: make horizontal scrollbar always visible on mobile */
.table-card {
  overflow-x: auto;
}
@media (max-width: 767px) {
  .table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-card::-webkit-scrollbar {
    height: 6px;
  }
  .table-card::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
  }
  .table-card::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }
  .product-card-image {
      min-height: auto;
    }
}

.rich-editor {
  min-height: 180px;
}

@media (min-width: 768px) {
  .rich-editor {
    min-height: 220px;
  }
}

.rich-editor:focus {
  outline: none;
}

.rich-editor-toolbar button.active {
  background-color: #fff7ed;
}

.rich-editor table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}

.rich-editor table th,
.rich-editor table td {
  border: 1px solid #d1d5db;
  padding: 6px 10px;
  text-align: left;
}

.rich-editor table th {
  background: #fff7ed;
  font-weight: 600;
}

.sample-page-content h1 {
  margin: 0 0 28px;
  color: #0087c8;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.sample-page-content h1::after {
  content: '';
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 18px;
  border-radius: 999px;
  background: #ff5000;
}

.sample-page-body {
  color: #475569;
  font-size: 16px;
  line-height: 1.85;
}

.sample-page-body h2,
.sample-page-body h3,
.sample-page-body h4 {
  color: #0f172a;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.25;
}

.sample-page-body h2 {
  margin: 34px 0 14px;
  font-size: 28px;
}

.sample-page-body h3 {
  margin: 28px 0 10px;
  padding-left: 14px;
  border-left: 4px solid #ff5000;
  font-size: 20px;
}

.sample-page-body h4 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.sample-page-body p {
  margin: 0 0 18px;
}

.sample-page-body a {
  color: #0087c8;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(0, 135, 200, 0.3);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.sample-page-body a:hover {
  color: #ff5000;
  text-decoration-color: rgba(255, 80, 0, 0.45);
}

.sample-page-body ul,
.sample-page-body ol {
  margin: 0 0 22px 22px;
  padding: 0;
}

.sample-page-body li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.sample-page-body strong {
  color: #0f172a;
  font-weight: 800;
}

.sample-page-body blockquote {
  margin: 28px 0;
  border-left: 5px solid #ffd814;
  border-radius: 16px;
  background: #fff7ed;
  padding: 20px 24px;
  color: #334155;
}

.sample-page-body table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 0 1px #e5e7eb;
}

.sample-page-body th,
.sample-page-body td {
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  text-align: left;
}

.sample-page-body th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
}


/* Secondary / outline button (lower emphasis than sample-btn-yellow) */
.sample-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  border: 2px solid #cbd5e1;
  box-shadow: none;
  transition: all 0.2s ease;
}
.sample-btn-outline:hover {
  border-color: #ff5000;
  background: #fff4ec;
  color: #ff5000;
}

/* ===== Customer Login actions: Remember / Register / Login ===== */
.login-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.login-submit-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}

.login-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 14px 32px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  font-weight: 800;
  text-decoration: none;
  box-sizing: border-box;
  border: 0;
  cursor: pointer;
  flex: 1 1 auto;
  white-space: nowrap;
}

/* Mobile (<768px): Remember, Register, Login each own row (full width) */
@media (max-width: 767px) {
  .login-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .login-remember {
    width: 100%;
  }
  .login-submit-group {
    flex-direction: column;
    align-items: stretch;
  }
  .login-submit-btn {
    width: 100%;
  }
}

/* Tablet (768-1199px): Remember on its own row; buttons share one row below */
@media (min-width: 768px) and (max-width: 1199px) {
  .login-remember {
    flex-basis: 100%;
  }
  .login-submit-group {
    width: 100%;
  }
  .login-submit-btn {
    flex: 1 1 0;
  }
}

/* PC (>=1200px): Remember, Register, Login all on one row */
@media (min-width: 1200px) {
  .login-actions {
    flex-wrap: nowrap;
  }
  .login-submit-group {
    width: auto;
    flex: 1 1 auto;
    flex-wrap: nowrap;
  }
  .login-remember {
    flex: 0 0 auto;
  }
  .login-submit-btn {
    flex: 1 1 0;
  }
}
