/**
 * QuayPhim Pro – Frontend CSS v1.2.0
 * Film Noir: White + Red + Black
 * Scoped .qp-* only – NO global resets
 */

/* Cards */
.qp-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.qp-card:hover {
  border-color: #c00;
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.qp-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f3f3f3;
  text-decoration: none;
  flex-shrink: 0;
}
.qp-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
  display: block;
}
.qp-card:hover .qp-card__thumb img { transform: scale(1.04); }
.qp-card__ico {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: #f9f9f9;
}
.qp-card__badge {
  position: absolute; top: 10px; left: 10px;
  background: #c00; color: #fff;
  padding: 3px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 700;
}
.qp-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 7px; }

/* Tag */
.qp-tag {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 999px;
  font-size: .68rem; font-weight: 700;
  background: #fff5f5; color: #c00;
  border: 1px solid rgba(192,0,0,.2);
  text-decoration: none; transition: all .15s;
}
.qp-tag:hover { background: #ffe8e8; color: #e00; }

.qp-card__title { font-size: .93rem; font-weight: 700; line-height: 1.3; margin: 0; }
.qp-card__title a { color: #1a1a1a; text-decoration: none; }
.qp-card__title a:hover { color: #c00; }
.qp-card__excerpt {
  font-size: .82rem; color: #666; line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.qp-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.qp-spec-tag {
  font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: #f3f3f3; color: #333; border: 1px solid #e5e5e5;
}
.qp-card__meta { display: flex; flex-wrap: wrap; gap: 5px; }
.qp-meta-item {
  font-size: .76rem; color: #333;
  padding: 2px 8px; background: #f9f9f9;
  border-radius: 4px; border: 1px solid #e5e5e5;
}
.qp-card__footer {
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
}
.qp-card__price { font-size: .9rem; font-weight: 700; color: #c00; }

/* Buttons */
.qp-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; background: #c00; color: #fff;
  border: none; border-radius: 6px;
  font-weight: 700; font-size: .84rem;
  cursor: pointer; font-family: inherit;
  text-decoration: none; transition: background .15s;
}
.qp-btn-primary:hover { background: #e00; color: #fff; }
.qp-btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; background: transparent; color: #c00;
  border: 1.5px solid #c00; border-radius: 6px;
  font-weight: 600; font-size: .84rem;
  cursor: pointer; font-family: inherit;
  text-decoration: none; transition: all .15s;
}
.qp-btn-outline:hover { background: #fff5f5; }
.qp-btn-sm {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; background: #f9f9f9; color: #c00;
  border: 1px solid #e5e5e5; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  text-decoration: none; transition: all .15s;
}
.qp-btn-sm:hover { background: #fff5f5; border-color: rgba(192,0,0,.3); }

/* No results */
.qp-no-results {
  grid-column: 1/-1; text-align: center; padding: 60px 20px; color: #999;
}
.qp-no-results span { font-size: 2.5rem; display: block; margin-bottom: 10px; opacity: .4; }

/* Contact Form */
.qp-form-wrap {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 28px;
  position: relative;
  border-top: 3px solid #c00;
}
.qp-form-title { font-size: 1.05rem; font-weight: 700; color: #1a1a1a; margin: 0 0 5px; }
.qp-form-sub { font-size: .85rem; color: #666; margin: 0 0 20px; }
.qp-form-sub strong { color: #c00; }
.qp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media(max-width:560px){ .qp-form-row { grid-template-columns: 1fr; } }
.qp-form-group { margin-bottom: 12px; }
.qp-form-group label { display: block; font-size: .8rem; font-weight: 600; color: #333; margin-bottom: 5px; }
.qp-form-group input,
.qp-form-group select,
.qp-form-group textarea {
  width: 100%; padding: 10px 13px;
  background: #fff; border: 1px solid #d0d0d0;
  border-radius: 6px; font-family: inherit;
  font-size: .88rem; color: #1a1a1a; outline: none;
  transition: border-color .15s;
}
.qp-form-group input:focus,
.qp-form-group select:focus,
.qp-form-group textarea:focus { border-color: #c00; }
.qp-form-group input::placeholder,
.qp-form-group textarea::placeholder { color: #aaa; }
.qp-form-group textarea { min-height: 88px; resize: vertical; }
.qp-btn-submit {
  width: 100%; padding: 12px;
  background: #c00; color: #fff;
  border: none; border-radius: 6px;
  font-weight: 700; font-size: .9rem;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.qp-btn-submit:hover { background: #e00; }
.qp-form-msg {
  display: none; margin-top: 10px;
  padding: 10px 14px; border-radius: 6px;
  font-size: .86rem; font-weight: 600;
}
.qp-form-msg.success { background: #f0fff4; color: #16a34a; border: 1px solid #bbf7d0; }
.qp-form-msg.error   { background: #fff5f5; color: #c00;    border: 1px solid rgba(192,0,0,.2); }
.qp-form-or { text-align: center; margin: 14px 0; font-size: .78rem; color: #999; }
.qp-form-direct { display: flex; gap: 8px; flex-wrap: wrap; }
.qp-direct-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: 999px;
  font-size: .82rem; font-weight: 700;
  text-decoration: none; transition: all .15s;
}
.qp-direct-phone { background: #fff5f5; color: #c00; border: 1px solid rgba(192,0,0,.2); }
.qp-direct-phone:hover { background: #ffe8e8; color: #c00; }
.qp-direct-zalo { background: #f0f4ff; color: #1d4ed8; border: 1px solid rgba(29,78,216,.2); }
.qp-direct-zalo:hover { background: #e0eaff; color: #1d4ed8; }

/* Sidebar */
.qp-sidebar-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  border-top: 3px solid #c00;
}
.qp-sidebar-header { background: #c00; padding: 18px; }
.qp-sidebar-header h3 { font-size: .95rem; font-weight: 700; color: #fff; margin: 0 0 3px; }
.qp-sidebar-header p  { font-size: .8rem; color: rgba(255,255,255,.75); margin: 0; }
.qp-sidebar-header strong { color: #fff; }
.qp-sidebar-body { padding: 14px; }
.qp-sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
}
.qp-sidebar-item:last-child { border-bottom: none; }
.qp-sidebar-ico { font-size: 1.1rem; width: 28px; text-align: center; flex-shrink: 0; }
.qp-sidebar-label { font-size: .7rem; color: #999; margin-bottom: 1px; }
.qp-sidebar-val { font-size: .86rem; font-weight: 600; color: #1a1a1a; }
a.qp-sidebar-item:hover .qp-sidebar-val { color: #c00; }
.qp-sidebar-footer {
  padding: 12px 14px;
  background: #f9f9f9; border-top: 1px solid #f0f0f0;
}

/* Section blocks */
.qp-section-block {
  background: #fff; border: 1px solid #e5e5e5;
  border-radius: 10px; padding: 22px; margin-bottom: 16px;
  border-left: 3px solid #c00;
}
.qp-section-title {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: #c00; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid #f0f0f0;
}

/* FAQ (plugin) */
.qp-fq { background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; margin-bottom: 5px; }
.qp-fq.open { border-color: #c00; }
.qp-fq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; cursor: pointer;
  font-size: .88rem; font-weight: 600; color: #1a1a1a; gap: 10px;
}
.qp-fq-q:hover { background: #f9f9f9; }
.qp-fq.open .qp-fq-q { color: #c00; }
.qp-fq-ico {
  width: 20px; height: 20px; border-radius: 50%;
  background: #f3f3f3; border: 1px solid #e5e5e5;
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; color: #666; flex-shrink: 0; transition: all .2s;
}
.qp-fq.open .qp-fq-ico { background: #c00; color: #fff; border-color: #c00; transform: rotate(45deg); }
.qp-fq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.qp-fq.open .qp-fq-a { max-height: 300px; }
.qp-fq-inner {
  padding: 0 16px 13px;
  font-size: .84rem; color: #666; line-height: 1.72;
  border-top: 1px solid #f0f0f0;
}

/* Breadcrumb */
.qp-breadcrumb { padding: 8px 0; font-size: .82rem; color: #999; }
.qp-breadcrumb a { color: #666; text-decoration: none; }
.qp-breadcrumb a:hover { color: #c00; }
.qp-breadcrumb span { margin: 0 5px; color: #ccc; }

/* Archive layout */
.qp-archive-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
@media(max-width:900px){ .qp-archive-layout { grid-template-columns: 1fr; } .qp-archive-sidebar { display: none; } }
.qp-archive-sidebar { position: sticky; top: 80px; }
.qp-filter-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.qp-filter-card h4 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #c00; margin: 0 0 10px; }
.qp-filter-select {
  width: 100%; padding: 7px 10px;
  background: #fff; border: 1px solid #d0d0d0;
  border-radius: 6px; font-family: inherit;
  font-size: .84rem; color: #1a1a1a; outline: none; margin-bottom: 7px;
}
.qp-filter-select:focus { border-color: #c00; }
.qp-filter-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  border: 1px solid #e5e5e5; font-size: .74rem; font-weight: 600;
  color: #666; cursor: pointer; transition: all .15s;
  text-decoration: none; margin: 2px;
}
.qp-filter-pill:hover, .qp-filter-pill.active { background: #fff5f5; border-color: rgba(192,0,0,.3); color: #c00; }

/* Single layout */
.qp-single-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
@media(max-width:900px){ .qp-single-layout { grid-template-columns: 1fr; } }
.qp-single-sidebar { position: sticky; top: 80px; }
