@charset "UTF-8";
/* ==========================================================================
   농업회사법인(주)칠송농장 - 반응형 미디어 쿼리 스타일시트
   PC (> 992px): 1280px 중앙 정렬 컨테이너 / 모바일 메뉴 완전 숨김
   태블릿/모바일 (<= 992px): 100vw 스마트 핏 & 모바일 드로어 활성화
   ========================================================================== */

/* Tablet & Smaller Desktops (<= 1200px) */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .quick-menu-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .haccp-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .gnb-nav-center {
    gap: 24px;
  }

  .header-product-thumb-card {
    display: none;
  }
}

/* Tablet & Mobile (<= 992px) */
@media (max-width: 992px) {
  .header-gnb-bar {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: block !important;
  }

  .header-top {
    display: none !important;
  }

  .hero-slider-section {
    margin-top: 85px !important;
  }

  .header-main-grid {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .header-left-search {
    max-width: 220px;
  }

  .search-tags {
    display: none;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .group-buy-box {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 24px;
  }

  .b2b-banner-box {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }

  .product-detail-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-gallery {
    position: static;
  }

  .b2b-calc-grid {
    grid-template-columns: 1fr;
  }

  .b2b-summary-card {
    position: static;
  }

  /* Mobile Drawer Menu (<= 992px) */
  .mobile-nav-drawer {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 85% !important;
    max-width: 360px !important;
    height: 100% !important;
    background-color: #121316 !important;
    z-index: 3000 !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6) !important;
    transition: right 0.35s ease !important;
    padding: 30px 24px !important;
    flex-direction: column !important;
    color: #FFF !important;
    overflow-y: auto !important;
  }

  .mobile-nav-drawer.active {
    right: 0 !important;
  }

  .drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid var(--border-dark) !important;
  }

  .drawer-close-btn {
    font-size: 26px !important;
    color: #FFF !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 6px !important;
  }

  .drawer-menu-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .drawer-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 10px !important;
  }

  .drawer-menu-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--primary-light) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    user-select: none !important;
  }

  .drawer-menu-title i {
    transition: transform 0.25s ease !important;
  }

  .drawer-sub-menu {
    padding-left: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 6px !important;
  }

  .drawer-sub-menu a {
    color: #DDD !important;
    font-size: 14.5px !important;
    text-decoration: none !important;
    padding: 4px 0 !important;
  }

  .drawer-sub-menu a:hover {
    color: var(--primary-color) !important;
  }

  .drawer-backdrop {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.65) !important;
    z-index: 2900 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    backdrop-filter: blur(4px) !important;
  }

  .drawer-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  .container,
  .container-wide {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .header-main {
    padding: 10px 0 !important;
  }

  .header-main-grid {
    grid-template-columns: auto 1fr auto !important;
    gap: 10px !important;
  }

  .header-left-search {
    display: none !important;
  }

  .header-center-logo {
    justify-content: flex-start !important;
  }

  /* Mobile Logo Size Normalization */
  .header-logo-img,
  .logo-link img {
    height: 36px !important;
    width: auto !important;
    max-height: 36px !important;
    max-width: none !important;
    flex-shrink: 0 !important;
    display: block !important;
  }

  .logo-link {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .logo-title-ko {
    font-size: 17px !important;
    font-weight: 900 !important;
    letter-spacing: 0px !important;
  }

  .logo-sub-en {
    font-size: 8.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
  }

  .logo-sub-brand {
    font-size: 9px !important;
    font-weight: 800 !important;
  }

  .b2b-btn-pill {
    padding: 6px 12px !important;
    font-size: 11px !important;
  }

  .hero-slider-section {
    min-height: 580px !important;
    height: 85vh !important;
    margin-top: 65px !important;
  }

  .hero-title {
    font-size: 28px !important;
  }

  .hero-badges {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
  }

  .hero-cta-group a {
    width: 100% !important;
    justify-content: center !important;
  }

  .quick-menu-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    padding: 16px 8px !important;
    gap: 8px !important;
  }

  .quick-icon-wrap {
    width: 46px !important;
    height: 46px !important;
    font-size: 18px !important;
  }

  .quick-title {
    font-size: 12px !important;
  }

  .quick-sub {
    display: none !important;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .product-info {
    padding: 14px !important;
  }

  .product-name {
    font-size: 15px !important;
    height: 42px !important;
  }

  .current-price {
    font-size: 18px !important;
  }

  .stat-number {
    font-size: 42px !important;
  }

  .stat-title {
    font-size: 18px !important;
  }

  /* Subpage Tab Nav Mobile */
  .subpage-tab-nav-section {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .subpage-tab-grid,
  .subpage-tab-grid.grid-2,
  .subpage-tab-grid.grid-4 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .subpage-tab-btn {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 130px !important;
    padding: 10px 8px !important;
    font-size: 12.5px !important;
    gap: 6px !important;
  }

  /* Sub Banner Mobile */
  .subpage-top-offset,
  .sub-banner {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 60px !important;
    height: 200px !important;
    padding: 0 16px !important;
  }

  .sub-banner-title {
    font-size: 24px !important;
    line-height: 1.25 !important;
  }

  .sub-banner-desc {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  /* Breadcrumbs */
  .breadcrumb-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }

  .breadcrumb-list {
    font-size: 11.5px !important;
  }

  /* Multi-column to 1 column on Mobile */
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns:1.4fr 1fr"],
  [style*="grid-template-columns:repeat(5, 1fr)"],
  [style*="grid-template-columns: repeat(5, 1fr)"],
  .haccp-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* 3-Column Promo Grid on Main */
  .promo-grid-3col {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .promo-vcard-dark {
    min-height: 360px !important;
  }

  .promo-hcard-white {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  .promo-hcard-text {
    align-items: center !important;
  }
  .promo-hcard-img-wrap {
    margin-top: 14px !important;
  }

  /* Inline cards & photos padding */
  [style*="padding:50px"],
  [style*="padding: 50px"],
  [style*="padding:40px"],
  [style*="padding: 40px"] {
    padding: 20px 16px !important;
  }

  .section-main-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
  .section-desc {
    font-size: 13px !important;
  }

  /* Table overflow safe */
  table, .b2b-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Mobile floating quick bar */
  .floating-bar {
    position: fixed !important;
    right: 14px !important;
    bottom: 24px !important;
    top: auto !important;
    transform: none !important;
    z-index: 2100 !important;
    width: 44px !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
  }

  .floating-bar.expanded,
  .floating-bar:hover {
    width: 84px !important;
  }

  .footer-top {
    grid-template-columns: 1fr !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 14px !important;
    text-align: center !important;
  }

  .purchase-action-group {
    grid-template-columns: 1fr !important;
  }

  /* B2B Wholesale Calculator Mobile Horizontal Fit (대량발주 품목 선택 카드 모바일 가로 핏 최적화) */
  .b2b-calc-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
    margin-bottom: 40px !important;
  }

  .b2b-calc-card {
    padding: 20px 14px !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .b2b-calc-card h3 {
    font-size: 18px !important;
    margin-bottom: 14px !important;
    word-break: keep-all !important;
  }

  .b2b-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border: 1px solid #EAE6DE !important;
    border-radius: 6px !important;
    margin-bottom: 12px !important;
  }

  .b2b-calc-table {
    width: 100% !important;
    min-width: 520px !important;
    margin: 0 !important;
    font-size: 12.5px !important;
    display: table !important;
    border-collapse: collapse !important;
  }

  .b2b-calc-table th,
  .b2b-calc-table td {
    padding: 10px 8px !important;
    white-space: nowrap !important;
    text-align: center !important;
    vertical-align: middle !important;
  }

  .b2b-calc-table th {
    background: #F8F6F2 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  .b2b-calc-table td.text-left {
    text-align: left !important;
    white-space: nowrap !important;
  }

  .b2b-calc-table .qty-input {
    width: 54px !important;
    padding: 4px !important;
    font-size: 13px !important;
  }

  .b2b-summary-card {
    padding: 22px 16px !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: static !important;
  }

  .b2b-summary-title {
    font-size: 18px !important;
    margin-bottom: 16px !important;
    word-break: keep-all !important;
  }


  
  /* Realtime Group Buy Status Card (모바일 100% 풀 카드 뷰) */
  .group-buy-status-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    margin-top: 10px !important;
  }

  .group-buy-status-card h3 {
    font-size: 17px !important;
    margin-bottom: 14px !important;
    line-height: 1.35 !important;
    word-break: keep-all !important;
  }

  .group-buy-pc-view {
    display: none !important;
  }

  .group-buy-mobile-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .gb-m-item {
    background: #FFFFFF !important;
    border-radius: 10px !important;
    border: 1px solid #E5E2DC !important;
    padding: 14px 16px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .gb-m-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .gb-m-buyer {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #121316 !important;
  }

  .gb-m-status {
    background: rgba(46, 125, 50, 0.1) !important;
    color: #2E7D32 !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(46, 125, 50, 0.3) !important;
  }

  .gb-m-product {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
    margin: 2px 0 !important;
  }

  .gb-m-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 12px !important;
    color: #888E9B !important;
    padding-top: 6px !important;
    border-top: 1px dashed #ECEAE4 !important;
  }


  .group-buy-table th {
    background: #F8F6F2 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #333 !important;
  }

  .group-buy-table td {
    border-bottom: 1px solid #EFECE6 !important;
  }


  /* Smart Group Purchase (공동구매 특가관 모바일 정렬 및 가로 핏 최적화) */
  .group-buy-box {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px 16px !important;
    gap: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
  }

  .group-buy-visual {
    min-height: 240px !important;
    max-height: 280px !important;
    width: 100% !important;
  }

  .group-buy-img {
    height: 260px !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  .group-buy-info {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .timer-box {
    padding: 10px 14px !important;
    gap: 8px !important;
    justify-content: space-between !important;
    margin-bottom: 16px !important;
    flex-wrap: wrap !important;
  }

  .timer-digits {
    font-size: 16px !important;
    gap: 4px !important;
  }

  .timer-unit {
    padding: 3px 6px !important;
    font-size: 14px !important;
  }

  .group-title {
    font-size: 20px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
    word-break: keep-all !important;
  }

  .group-desc {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 18px !important;
    word-break: keep-all !important;
  }

  .group-price-row {
    align-items: baseline !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    flex-wrap: wrap !important;
  }

  .group-discount {
    font-size: 26px !important;
  }

  .group-price {
    font-size: 28px !important;
  }

  .group-original {
    font-size: 15px !important;
  }

  .group-progress-wrap {
    padding: 12px 14px !important;
    margin-bottom: 20px !important;
  }

  .progress-header {
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }

  .btn-buy-now {
    padding: 15px 16px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }


  /* HACCP Official Partner Card Mobile Horizontal Fit (목우촌 공식 파트너 카드 모바일 가로 핏 최적화) */
  .haccp-partner-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 22px 16px !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 18px !important;
  }

  .haccp-partner-card > div:first-child {
    width: 100% !important;
  }

  .haccp-partner-card h3 {
    font-size: 19px !important;
    line-height: 1.35 !important;
    margin: 8px 0 10px !important;
    word-break: keep-all !important;
  }

  .haccp-partner-card p {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    word-break: keep-all !important;
    color: #DDD !important;
    margin: 0 !important;
  }

  .haccp-partner-card > div:last-child {
    width: 100% !important;
  }

  .haccp-partner-card .btn-primary-gold {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px 14px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }


  /* Factory Equipment 7 (자동 라벨 프린트 시스템 카드 모바일 가로 핏 최적화) */
  .factory-label-system-box {
    display: flex !important;
    flex-direction: column !important;
    padding: 22px 16px !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 18px !important;
  }

  .factory-label-system-box > div:first-child {
    width: 100% !important;
  }

  .factory-label-system-box h3 {
    font-size: 19px !important;
    line-height: 1.35 !important;
    margin: 8px 0 10px !important;
    word-break: keep-all !important;
  }

  .factory-label-system-box p {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    word-break: keep-all !important;
    color: #DDD !important;
    margin: 0 !important;
  }

  .factory-label-system-box > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    justify-content: stretch !important;
  }

  .factory-label-system-box .btn-primary-gold,
  .factory-label-system-box .btn-outline-white {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    font-size: 13.5px !important;
    box-sizing: border-box !important;
  }


  /* CEO Greeting Page Mobile Horizontal Text & Layout (대표인사말 모바일 가로 핏 최적화) */
  .ceo-greeting-box {
    padding: 20px 14px !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 30px !important;
  }

  .ceo-greeting-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .ceo-greeting-left,
  .ceo-greeting-right {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .ceo-quote-txt {
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    margin-bottom: 14px !important;
    word-break: keep-all !important;
    white-space: normal !important;
  }

  .ceo-p {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    margin-bottom: 12px !important;
    word-break: keep-all !important;
    color: #444 !important;
  }

  .ceo-bldg-wrap img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
  }

  .ceo-name-box {
    padding: 14px !important;
    margin-top: 12px !important;
    border-radius: 8px !important;
  }

  .ceo-name-txt {
    font-size: 17px !important;
  }

  .ceo-title-txt {
    font-size: 12px !important;
  }

  /* History Timeline Mobile Optimization */
  .history-timeline-box {
    padding: 20px 14px !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .timeline-vertical-line {
    padding-left: 20px !important;
    border-left-width: 2px !important;
  }

  .timeline-item {
    margin-bottom: 24px !important;
  }

  .timeline-dot {
    left: -27px !important;
    width: 12px !important;
    height: 12px !important;
  }

  .timeline-date-txt {
    font-size: 18px !important;
  }

  .timeline-title-txt {
    font-size: 15px !important;
    word-break: keep-all !important;
  }

  .timeline-desc-txt {
    font-size: 12.5px !important;
    word-break: keep-all !important;
    line-height: 1.5 !important;
  }


  /* Notice Board 100% Fit (모바일 전용 100% 풀 카드 뷰) */
  .notice-card-box {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
  }

  .notice-pc-view {
    display: none !important;
  }

  .notice-mobile-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .notice-m-item {
    background: #FFFFFF !important;
    border-radius: 10px !important;
    border: 1px solid #E5E2DC !important;
    padding: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .notice-m-item.notice-highlight {
    background: #FFFDF9 !important;
    border-color: rgba(197, 160, 89, 0.4) !important;
  }

  .notice-m-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .notice-badge {
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    color: #FFF !important;
  }

  .badge-notice {
    background: var(--accent-red) !important;
  }

  .badge-info {
    background: var(--primary-dark) !important;
  }

  .notice-m-num {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #888E9B !important;
  }

  .notice-m-date {
    font-size: 12px !important;
    color: #888E9B !important;
  }

  .notice-m-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #121316 !important;
    line-height: 1.45 !important;
    word-break: keep-all !important;
    text-decoration: none !important;
  }

  .notice-m-title:hover {
    color: var(--primary-color) !important;
  }

  .notice-m-footer {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 12px !important;
    color: #888E9B !important;
    padding-top: 6px !important;
    border-top: 1px dashed #ECEAE4 !important;
  }
}
@media (max-width: 768px) {

  .header-logo-text-img {
    height: 20px !important;
    width: auto !important;
  }
  .logo-sub-row {
    gap: 4px !important;
    margin-top: 2px !important;
  }

}
