@charset "UTF-8";
/* ==========================================================================
   농업회사법인(주)칠송농장 - 영카트5 쇼핑몰/옵션/대량납품/서브페이지 스타일시트
   ========================================================================== */

/* Subpage Header Banner */
.sub-banner {
  height: 380px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFF;
  margin-bottom: 60px;
}

.sub-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(14, 15, 18, 0.7) 0%, rgba(14, 15, 18, 0.85) 100%);
}

.sub-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.sub-banner-title {
  font-size: 42px;
  font-weight: 900;
  font-family: var(--font-serif);
  margin-bottom: 14px;
}

.sub-banner-desc {
  font-size: 17px;
  color: #DFE2EB;
}

/* Breadcrumb Navigation */
.breadcrumb-wrap {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  margin-bottom: 40px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dark-sub);
}

.breadcrumb-list i {
  font-size: 10px;
  color: #AAA;
}

.breadcrumb-list .current {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ==========================================================================
   PRODUCT DETAIL & OPTION CALCULATOR (영카트5 맞춤 옵션)
   ========================================================================== */
.product-detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.detail-gallery {
  position: sticky;
  top: 100px;
}

.main-image-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #F4F2EB;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.main-detail-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.thumb-list {
  display: flex;
  gap: 12px;
}

.thumb-item {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
}

.thumb-item.active {
  border-color: var(--primary-color);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Detail Info & Option Box */
.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-tag {
  display: inline-block;
  align-self: flex-start;
  background: #121316;
  color: var(--primary-light);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  border: 1px solid var(--primary-color);
}

.detail-title {
  font-size: 30px;
  font-weight: 900;
  font-family: var(--font-serif);
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.detail-sub-desc {
  font-size: 15px;
  color: var(--text-dark-sub);
  margin-bottom: 24px;
  line-height: 1.6;
}

.detail-price-box {
  background: #F8F6F0;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 30px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border: 1px solid rgba(197, 160, 89, 0.25);
}

.price-main {
  font-size: 34px;
  font-weight: 900;
  color: var(--accent-red);
  font-family: var(--font-serif);
}

.price-discount-rate {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent-red);
  margin-right: 8px;
}

.price-original {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
}

/* Meat Specification Table */
.spec-list {
  border-top: 1px solid var(--border-light);
  margin-bottom: 30px;
}

.spec-item {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.spec-label {
  width: 120px;
  color: var(--text-muted);
  font-weight: 600;
}

.spec-val {
  color: var(--text-dark);
  font-weight: 600;
}

/* Custom Option Selector */
.option-section {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.option-group-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.option-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.option-pill-btn {
  padding: 12px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-align: center;
  background: #FFF;
  cursor: pointer;
  transition: var(--transition);
}

.option-pill-btn:hover {
  border-color: var(--primary-color);
}

.option-pill-btn.active {
  border-color: var(--primary-dark);
  background: #FAF6ED;
  font-weight: 800;
  color: var(--primary-dark);
  box-shadow: 0 0 0 1px var(--primary-dark);
}

.pill-main {
  font-size: 14px;
  display: block;
}

.pill-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

/* Real-time calculated total */
.total-calc-box {
  background: #1C1E23;
  color: #FFF;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total-title {
  font-size: 15px;
  font-weight: 700;
  color: #AAA;
}

.total-amount {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-light);
  font-family: var(--font-serif);
}

/* Purchase Actions */
.purchase-action-group {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 14px;
}

.btn-add-cart {
  background: #FFF;
  border: 2px solid var(--bg-dark);
  color: var(--bg-dark);
  font-weight: 800;
  font-size: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-cart:hover {
  background: #F4F1EB;
}

.btn-buy-now {
  background: var(--accent-red);
  color: #FFF;
  font-weight: 800;
  font-size: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(140, 29, 36, 0.35);
}

.btn-buy-now:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   대량납품 QUOTATION / ESTIMATE CALCULATOR (지육/부분육 발주)
   ========================================================================== */
.b2b-calc-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

.b2b-calc-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.group-buy-status-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

.table-responsive-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.b2b-table,
.group-buy-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  font-size: 14px;
  min-width: 600px;
}

.b2b-table th, .b2b-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.b2b-table th {
  background: #F8F6F2;
  font-weight: 700;
  color: var(--text-dark);
}

.b2b-table td.text-left {
  text-align: left;
}

.qty-input {
  width: 70px;
  padding: 6px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  text-align: center;
  font-weight: 700;
}

.b2b-summary-card {
  background: #181A1F;
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-gold);
  position: sticky;
  top: 100px;
}

.b2b-summary-title {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--primary-light);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #BBB;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(197, 160, 89, 0.4);
}

.summary-total-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-light);
  font-family: var(--font-serif);
}

/* ==========================================================================
   위생안전 & FACTORY 10-STEP PROCESS INFOGRAPHIC
   ========================================================================== */
.haccp-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.haccp-step-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.haccp-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.step-num-badge {
  width: 36px;
  height: 36px;
  background: var(--bg-dark);
  color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  margin: 0 auto 14px;
  border: 2px solid var(--primary-color);
}

.step-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Modal Popup */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 540px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}
