/**
 * COSMO TECHS Product Styles
 *
 * COSMO TECHS 제품 페이지용 공통 스타일시트
 * - 제품 상세 페이지 (LSI, Motion Controller, Fieldbus, Step, Servo)
 * - 제품 리스트 페이지 (카테고리별 인덱스 페이지)
 *
 * Note: cosmo-colors.css를 먼저 로드해야 합니다.
 */

/* ========================================
   Body & Container Background
   ======================================== */
body {
  background: var(--cosmo-gray-50);
}

.product-content {
  background: transparent;
}

.product-content .container {
  background: var(--cosmo-white);
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: var(--cosmo-shadow-md);
  margin-top: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .product-content .container {
    padding: 2rem 1rem;
    border-radius: 8px;
  }
}

/* ========================================
     Product Header
     ======================================== */
.product-header {
  background: var(--cosmo-gradient-primary);
}

.product-header .product-title,
.product-header .product-subtitle,
.product-header .breadcrumb,
.product-header .breadcrumb a,
.product-header .breadcrumb span {
  color: var(--cosmo-text-white) !important;
}

.product-header .breadcrumb a:hover {
  color: var(--cosmo-primary-light) !important;
  opacity: 0.9;
}

/* Product Model Badge */
.product-header .product-model {
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--cosmo-text-white) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  display: inline-block;
  margin-top: 0.5rem;
  backdrop-filter: blur(10px);
}

/* ========================================
     Buttons
     ======================================== */
.btn-primary {
  background: var(--cosmo-primary);
}

.btn-primary:hover {
  background: var(--cosmo-primary-dark);
}

/* Back Button Styling */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  width: auto;
  max-width: fit-content;
  white-space: nowrap;
  margin-bottom: 2rem;
}

.back-button i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .back-button {
    width: 100%;
    justify-content: center;
    max-width: 100%;
  }
}

/* ========================================
     Section Spacing
     ======================================== */
.product-content section {
  margin-bottom: 4rem;
}

.product-content section:last-of-type {
  margin-bottom: 2rem;
}

.section-title {
  margin-top: 0;
  margin-bottom: 2rem;
}

.features-section {
  margin-bottom: 4rem;
}

/* ========================================
     Feature Cards (COSMO Brand Colors)
     ======================================== */
.feature-card {
  background: var(--cosmo-white);
  border: 1px solid var(--cosmo-border-light);
}

.feature-card .feature-icon {
  background: var(--cosmo-primary);
  color: white;
}

/* ========================================
     Tables (COSMO Brand Colors)
     ======================================== */
.specs-table {
  background: var(--cosmo-white);
  border: 1px solid var(--cosmo-border-light);
}

.specs-table thead {
  background: var(--cosmo-primary);
  color: white;
}

.specs-table tbody tr:hover {
  background: var(--cosmo-primary-light);
}

.specs-table tbody td {
  background: var(--cosmo-white);
}

.specs-table tbody td:first-child {
  background: var(--cosmo-gray-50);
}

/* ========================================
     Contact Section
     ======================================== */
.contact-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--cosmo-border-light);
}

.contact-card {
  background: var(--cosmo-gradient-light);
  border: 1px solid var(--cosmo-border-light);
  border-left: 4px solid var(--cosmo-primary);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--cosmo-shadow-sm);
}

.contact-card h2 {
  color: var(--cosmo-primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--cosmo-text-secondary);
}

/* ========================================
     Related Products
     ======================================== */
.related-product-card {
  background: var(--cosmo-white);
  border: 1px solid var(--cosmo-border-light);
  transition: all 0.3s ease;
}

.related-product-card:hover {
  border-color: var(--cosmo-primary);
  box-shadow: var(--cosmo-shadow-md);
  transform: translateY(-4px);
}

/* ========================================
     Product Intro Layout
     ======================================== */
.product-intro-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.product-image-section {
  flex: 0 0 auto;
  max-width: 500px;
}

.product-image-section img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-intro-description {
  flex: 1;
  min-width: 300px;
}

.product-intro-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--cosmo-text-secondary);
}

@media (max-width: 768px) {
  .product-intro-layout {
    flex-direction: column;
  }

  .product-image-section {
    max-width: 100%;
  }

  .product-intro-description p {
    font-size: 1rem;
  }
}

/* ========================================
     Product List Pages (Category Index)
     ======================================== */

/* Page Intro Layout - For list/category pages */
.page-intro-layout {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.page-intro-text {
  flex: 1;
}

.page-intro-image {
  flex: 0 0 400px;
}

.page-intro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Product Card Styling - For list pages */
.product-card-header {
  background: linear-gradient(
    135deg,
    rgba(52, 77, 94, 0.2) 0%,
    rgba(40, 60, 75, 0.2) 100%
  );
  background-size: contain;
  background-position: 140% center;
  background-repeat: no-repeat;
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

/* PMC Series - Individual product backgrounds */
.product-card[data-category="pmc-620r"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/lsi/img_PMC620R.jpg");
  background-size: contain;
  background-position: 140% center;
  background-repeat: no-repeat;
}

.product-card[data-category="pmc-820sr"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/lsi/img_PMC820SR.jpg");
  background-size: contain;
  background-position: 140% center;
  background-repeat: no-repeat;
}

.product-card[data-category="pmc-842sr"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/lsi/img_PMC842SR.jpg");
  background-size: contain;
  background-position: 140% center;
  background-repeat: no-repeat;
}

/* CHIC Series - Individual product backgrounds */
.product-card[data-category="chic-002eu-a"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/lsi/img_CHIC-002EU-A.jpg");
  background-size: contain;
  background-position: 140% center;
  background-repeat: no-repeat;
}

.product-card[data-category="chic-002-02eu-a"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/lsi/img_CHIC-002-02EU-A.jpg");
  background-size: contain;
  background-position: 140% center;
  background-repeat: no-repeat;
}

.product-card[data-category="chic-004eu-a"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/lsi/img_CHIC-004EU-A.jpg");
  background-size: contain;
  background-position: 140% center;
  background-repeat: no-repeat;
}

.product-card[data-category="chic-004-02eu-a"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/lsi/img_CHIC-004-02EU-A.jpg");
  background-size: contain;
  background-position: 140% center;
  background-repeat: no-repeat;
}

.product-card[data-category="chic-005eu-a"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/lsi/img_CHIC-005EU-A.jpg");
  background-size: contain;
  background-position: 140% center;
  background-repeat: no-repeat;
}

.product-card-header h3,
.product-card-header p {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.product-icon {
  background: var(--cosmo-primary);
}

/* ========================================
     Category Cards (COSMO Main Page)
     ======================================== */

/* LSI Category */
.product-card[data-category="lsi"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/lsi/img_main.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* Motion Controllers Category */
.product-card[data-category="motion"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_main.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* Fieldbus Motion Category */
.product-card[data-category="fieldbus"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_main.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* 5-Phase Drivers Category */
.product-card[data-category="step"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/step/img_main.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* Servo/Linear Motors Category */
.product-card[data-category="servo"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/servo/img_minas_a6.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* ========================================
     Motion Controller Products
     ======================================== */

/* PCI Controllers */
.product-card[data-category="pci-168"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_PCPG-168.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="pci-23i"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_PCPG-23I(F).jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="pci-28io"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_PCPG-28-IO.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="pci-88f"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_PCPG-88(F).jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* PCI-Express Controllers */
.product-card[data-category="pxpg-48"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_PXPG-48.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="pxpg-88"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_PXPG-88.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* USB Controllers */
.product-card[data-category="usb-28r"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_USPG-28R.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="usb-48hr"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_USPG-48HR.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="usb-48hrio"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_USPG-48HR-IO.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="usb-48r"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_USPG-48R.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="usb-48rio"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_USPG-48R-IO.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* EX Series */
.product-card[data-category="ex-adda0804"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_EX-ADDA0804.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ex-cpu"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_EX-CPU.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ex-io32"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_EX-IO32.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ex-pg4"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/motion/img_EX-PG4.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* Fieldbus Products - Individual product backgrounds */
.product-card[data-category="pxep-cn"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_PXEP-CN.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ethercat-mjr"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_EtherCAT-MJR.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="rtex-ctr"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_RTEX-CTR.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="rtex-mjr"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_RTEX-MJR.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctdr-0514es-2ls"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_CTDR-0514ES-2LS.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctdr-0514es-4ls"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_CTDR-0514ES-4LS.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* RealTimeExpress Controllers */
.product-card[data-category="csrc-rp"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_CSRC-32CN-RP.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="pcmc"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_PCMC-168N-IO32.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="pcpg"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_PCPG-168N-V.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="pxrp"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_PXRP-3216CN.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* RealTimeExpress Drivers/Motors */
.product-card[data-category="ctdr-0514ns"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_CTDR-0514NS-4LS.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctdr-0514ns-4ls"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_CTDR-0514NS-4LS.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="cti-16nsw"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_CTI-16NSW.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="cti-32ns"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_CTI-32NS.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="cto-16nsw"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_CTO-16NSW.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="cto-32ns"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_CTO-32NS.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctad-08nsb"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_CTAD-08NSB.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctada-44ns"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_CTADA-44NS.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctto-04ns"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/fieldbus/img_CTTO-04NS.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* Step Product Cards - AC 드라이버 */
.product-card[data-category="ctdr-s5514p"] .product-card-header {
  background: linear-gradient(135deg, rgba(52, 77, 94, 0.2) 0%, rgba(40, 60, 75, 0.2) 100%),
    url("../../assets/images/cosmo/step/img_CTDR-S5514P.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctdr-s7514p"] .product-card-header {
  background: linear-gradient(135deg, rgba(52, 77, 94, 0.2) 0%, rgba(40, 60, 75, 0.2) 100%),
    url("../../assets/images/cosmo/step/img_CTDR-S7514P.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* Step Product Cards - DC24V 풀 스펙 */
.product-card[data-category="ctdr-s3ml"] .product-card-header {
  background: linear-gradient(135deg, rgba(52, 77, 94, 0.2) 0%, rgba(40, 60, 75, 0.2) 100%),
    url("../../assets/images/cosmo/step/img_CTDR-S3ML.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctdr-s5g"] .product-card-header {
  background: linear-gradient(135deg, rgba(52, 77, 94, 0.2) 0%, rgba(40, 60, 75, 0.2) 100%),
    url("../../assets/images/cosmo/step/img_CTDR-S5G.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctdr-s5ml"] .product-card-header {
  background: linear-gradient(135deg, rgba(52, 77, 94, 0.2) 0%, rgba(40, 60, 75, 0.2) 100%),
    url("../../assets/images/cosmo/step/img_CTDR-S5ML.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* Step Product Cards - DC24V 마이크로 */
.product-card[data-category="ctdr-s0514-l"] .product-card-header {
  background: linear-gradient(135deg, rgba(52, 77, 94, 0.2) 0%, rgba(40, 60, 75, 0.2) 100%),
    url("../../assets/images/cosmo/step/img_CTDR-S0514-L.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctdr-s0514-2l"] .product-card-header {
  background: linear-gradient(135deg, rgba(52, 77, 94, 0.2) 0%, rgba(40, 60, 75, 0.2) 100%),
    url("../../assets/images/cosmo/step/img_CTDR-S0514-2L.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctdr-s0514-3l"] .product-card-header {
  background: linear-gradient(135deg, rgba(52, 77, 94, 0.2) 0%, rgba(40, 60, 75, 0.2) 100%),
    url("../../assets/images/cosmo/step/img_CTDR-S0514-3L.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctdr-s0514-4l"] .product-card-header {
  background: linear-gradient(135deg, rgba(52, 77, 94, 0.2) 0%, rgba(40, 60, 75, 0.2) 100%),
    url("../../assets/images/cosmo/step/img_CTDR-S0514-4L.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctdr-s0514zu"] .product-card-header {
  background: linear-gradient(135deg, rgba(52, 77, 94, 0.2) 0%, rgba(40, 60, 75, 0.2) 100%),
    url("../../assets/images/cosmo/step/img_CTDR-S0514ZU.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctdr-s0528"] .product-card-header {
  background: linear-gradient(135deg, rgba(52, 77, 94, 0.2) 0%, rgba(40, 60, 75, 0.2) 100%),
    url("../../assets/images/cosmo/step/img_CTDR-S0528.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="ctdr-s5035"] .product-card-header {
  background: linear-gradient(135deg, rgba(52, 77, 94, 0.2) 0%, rgba(40, 60, 75, 0.2) 100%),
    url("../../assets/images/cosmo/step/img_CTDR-S5035.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* Servo Category Cards */
.product-card[data-category="drivemotor"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/servo/img_drivemotor_150.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="linear"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/servo/img_linearmotor_coreless.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="minas"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/servo/img_minas_a6.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

/* Step Category Cards */
.product-card[data-category="ac"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/step/img_CTDR-S5514P.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="dc24v"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/step/img_CTDR-S5G.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="micro"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/step/img_CTDR-S0514-L.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.product-card[data-category="motor"] .product-card-header {
  background: linear-gradient(
      135deg,
      rgba(52, 77, 94, 0.2) 0%,
      rgba(40, 60, 75, 0.2) 100%
    ),
    url("../../assets/images/cosmo/step/img_CTDR-S0514-4L.jpg");
  background-size: contain;
  background-position: 120% center;
  background-repeat: no-repeat;
}

.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  max-width: 100%;
}

/* When there's only 1 card, limit its width */
.products-grid:has(.product-card:only-child) {
  grid-template-columns: repeat(auto-fit, minmax(350px, 450px));
  justify-content: start;
}

/* Product Grid for main COSMO page */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Section Title & Description - For list pages */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--cosmo-border-light);
  color: var(--cosmo-text-primary);
}

.section-title:first-of-type {
  margin-top: 0;
}

.section-description {
  color: var(--cosmo-text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ========================================
     Lineup Cards (타사 취급 제품 라인업)
     ======================================== */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.lineup-card {
  display: flex;
  flex-direction: column;
  background: var(--cosmo-white);
  border: 1px solid var(--cosmo-border-light);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--cosmo-shadow-sm);
}

.lineup-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cosmo-shadow-lg);
}

.lineup-card:hover .lineup-card-link {
  color: var(--cosmo-primary-dark);
}

.lineup-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cosmo-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lineup-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.lineup-card:hover .lineup-card-image img {
  transform: scale(1.03);
}

.lineup-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lineup-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cosmo-text-primary);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.lineup-card-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--cosmo-text-secondary);
  margin: 0 0 1rem;
  flex: 1;
}

.lineup-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cosmo-primary);
  transition: color 0.2s ease;
  margin-top: auto;
}

.lineup-card-link i {
  font-size: 0.75rem;
}

/* Lineup card without link (non-clickable variant) */
.lineup-card--static {
  cursor: default;
}

.lineup-card--static:hover {
  transform: none;
  box-shadow: var(--cosmo-shadow-sm);
}

.lineup-card--static:hover .lineup-card-image img {
  transform: none;
}

/* ========================================
     Responsive Utilities
     ======================================== */
@media (max-width: 768px) {
  /* Product Detail Pages */
  .product-content section {
    margin-bottom: 3rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .features-section {
    margin-bottom: 3rem;
  }

  /* Product List Pages */
  .page-intro-layout {
    flex-direction: column;
  }

  .page-intro-image {
    flex: 0 0 auto;
    width: 100%;
  }

  /* Lineup Cards */
  .lineup-grid {
    grid-template-columns: 1fr;
  }
}
