/* Norco bridge overrides */
body {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 1024px) {
  .wp-contact-bar {
    bottom: 90px !important;
    right: 12px !important;
    left: auto !important;
    transform: none !important;
    flex-direction: column !important;
    width: auto !important;
  }

  .wd-toolbar {
    z-index: 99999;
  }
}

.norco-us-time {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #FFDE00;
}

.norco-auth-notices .woocommerce-error,
.norco-auth-notices .woocommerce-message {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 4px;
  list-style: none;
}

.norco-auth-notices .woocommerce-error {
  background: #fdecea;
  color: #b71c1c;
  border-left: 4px solid #e53935;
}

.norco-auth-notices .woocommerce-message {
  background: #edf7ed;
  color: #1b5e20;
  border-left: 4px solid #43a047;
}

.norco-reg-hint {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.norco-auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

/* ===== My Account page ===== */
.norco-my-account-page .wd-my-account-wrapper {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 30px;
  align-items: start;
}

.norco-my-account-page .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.norco-my-account-page .woocommerce-MyAccount-navigation-link a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--brdcolor-gray-300, #eee);
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.norco-my-account-page .woocommerce-MyAccount-navigation-link.is-active a,
.norco-my-account-page .woocommerce-MyAccount-navigation-link a:hover {
  color: var(--wd-primary-color, #83B735);
}

.norco-my-account-page .woocommerce-MyAccount-content {
  min-width: 0;
}

.norco-my-account-page .woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
}

.norco-my-account-page .woocommerce-orders-table th,
.norco-my-account-page .woocommerce-orders-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--brdcolor-gray-300, #eee);
  text-align: left;
}

.norco-my-account-page .norco-order-detail {
  background: #f8f8f8;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
}

.norco-my-account-page .woocommerce-EditAddressForm .form-row,
.norco-my-account-page .woocommerce-EditAccountForm .form-row {
  margin-bottom: 16px;
}

.norco-my-account-page .woocommerce-EditAddressForm label,
.norco-my-account-page .woocommerce-EditAccountForm label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.norco-my-account-page .input-text {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--brdcolor-gray-300, #ddd);
  border-radius: 4px;
}

.norco-my-account-page .form-row-first,
.norco-my-account-page .form-row-last {
  display: inline-block;
  width: calc(50% - 8px);
  vertical-align: top;
}

.norco-my-account-page .form-row-first { margin-right: 12px; }

.norco-account-panel h2,
.norco-account-panel h3 {
  margin-top: 0;
}

#norco-account-notices .woocommerce-error,
#norco-account-notices .woocommerce-message {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 4px;
}

#norco-account-notices .woocommerce-error {
  background: #fdecea;
  color: #b71c1c;
  border-left: 4px solid #e53935;
}

#norco-account-notices .woocommerce-message {
  background: #edf7ed;
  color: #1b5e20;
  border-left: 4px solid #43a047;
}

@media (max-width: 768px) {
  .norco-my-account-page .wd-my-account-wrapper {
    grid-template-columns: 1fr;
  }

  .norco-my-account-page .form-row-first,
  .norco-my-account-page .form-row-last {
    width: 100%;
    margin-right: 0;
  }
}

/* ===== Order product list ===== */
.norco-order-product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

.norco-order-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.norco-order-product-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--brdcolor-gray-300, #eee);
  flex-shrink: 0;
  background: #f8f8f8;
}

.norco-order-product-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.norco-order-product-name {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}

.norco-order-product-qty {
  font-size: 12px;
  color: #777;
}

.norco-order-detail .norco-order-product-item {
  margin-bottom: 8px;
}

/* ===== Product card layout fix ===== */
.norco-product-card .image-hover-wrap {
  display: none !important;
}

.norco-product-card .eael-product-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.norco-product-card:hover .eael-product-wrap {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.norco-product-card .product-image-wrap {
  position: relative;
  overflow: hidden;
  background: #f8f8f8;
}

.norco-product-card .norco-img-link {
  display: block;
  aspect-ratio: 1;
}

.norco-product-card .product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.norco-product-card:hover .product-image-wrap img {
  transform: scale(1.04);
}

.norco-product-card .norco-details {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.norco-product-card .eael-product-title {
  margin: 0 0 6px;
  order: 1;
}

.norco-product-card .eael-product-title h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: #1a1a1a;
  transition: color 0.2s;
}

.norco-product-card .eael-product-title a:hover h2 {
  color: #0C5A38;
}

.norco-product-card .eael-product-price {
  order: 2;
  margin: 0 0 12px;
}

.norco-product-card .eael-product-price .price {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: #0C5A38;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.norco-product-card .eael-product-price .price::before {
  content: '';
}

.norco-product-actions {
  order: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.norco-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.2s ease;
  min-height: 36px;
}

.norco-btn-outline {
  background: #fff;
  color: #333;
  border: 1.5px solid #ddd;
}

.norco-btn-outline:hover {
  border-color: #0C5A38;
  color: #0C5A38;
  background: #f5faf7;
}

.norco-btn-primary {
  background: #FFDE00;
  color: #1a1a1a;
  border: 1.5px solid #FFDE00;
}

.norco-btn-primary:hover {
  background: #0C5A38;
  border-color: #0C5A38;
  color: #fff;
}

/* Grid spacing */
.eael-post-appender-e4c3a54 .norco-product-card,
.eael-post-appender-ec9b077 .norco-product-card {
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .norco-product-actions {
    grid-template-columns: 1fr;
  }

  .norco-btn {
    font-size: 13px;
    padding: 10px 8px;
  }

  .norco-product-card .eael-product-price .price {
    font-size: 18px;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .norco-btn {
    font-size: 11px;
    padding: 8px 4px;
  }
}

/* ===== Peptide shop category page ===== */
.norco-shop-product .wd-product-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.norco-shop-product:hover .wd-product-wrapper {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.norco-shop-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f8f8;
}

.norco-shop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.norco-shop-product:hover .norco-shop-image img {
  transform: scale(1.04);
}

.norco-shop-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.norco-shop-info .wd-entities-title {
  font-size: 15px;
  margin: 0 0 8px;
  line-height: 1.35;
}

.norco-shop-info .wd-entities-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.norco-shop-info .wd-entities-title a:hover {
  color: #0C5A38;
}

.norco-shop-price {
  font-size: 20px;
  font-weight: 700;
  color: #0C5A38;
  margin-bottom: 12px;
}

.norco-shop-product .norco-product-actions {
  margin-top: auto;
}

.products.wd-products .wd-sticky-loader {
  display: none;
}
