/**
 * Single Product Page - Modern Design
 * Clean, minimal layout for background check services
 */

:root {
  --primary: #12715B;
  --primary-hover: #0e5a49;
  --accent: #33D886;
  --accent-hover: #2bc478;
  --text: #1a202c;
  --text-light: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --bg: #f7fafc;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

/* === CONTAINER === */
.cc-product-container {
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* === BREADCRUMB === */
.cc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-light);
}

.cc-breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.cc-breadcrumb a:hover {
  color: var(--primary);
}

.cc-breadcrumb span:last-child {
  color: var(--text);
  font-weight: 500;
}

/* === LAYOUT === */
.cc-product-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}

@media (max-width: 1024px) {
  .cc-product-layout {
    grid-template-columns: 1fr;
  }
}

/* === MAIN CONTENT === */
.cc-product-main {
  min-width: 0;
}

/* Product Header */
.cc-product-head {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.cc-product-icon-lg {
  width: 72px;
  height: 72px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.cc-product-icon-lg svg {
  width: 36px;
  height: 36px;
}

.cc-product-name {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
  color: var(--text);
}

.cc-product-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0 0 20px;
}

.cc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  border: 1px solid var(--border);
}

.cc-badge svg {
  flex-shrink: 0;
}

/* === TABS === */
.cc-tabs {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.cc-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.cc-tab {
  flex: 1;
  padding: 16px 24px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.cc-tab:hover {
  color: var(--text-light);
  background: rgba(18, 113, 91, 0.03);
}

.cc-tab.active {
  color: var(--primary);
  background: var(--white);
  border-bottom-color: var(--primary);
}

.cc-tab-panel {
  display: none;
  padding: 32px;
}

.cc-tab-panel.active {
  display: block;
}

/* Content Sections */
.cc-content-section {
  margin-bottom: 40px;
}

.cc-content-section:last-child {
  margin-bottom: 0;
}

.cc-content-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}

.cc-section-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0 0 24px;
}

.cc-content-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
  margin: 0 0 16px;
}

/* Feature Grid */
.cc-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cc-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
}

.cc-feature svg {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Coverage Grid */
.cc-coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.cc-coverage-item {
  display: flex;
  gap: 16px;
  background: var(--bg);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cc-coverage-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.cc-coverage-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.cc-coverage-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
}

/* Requirements */
.cc-requirements {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cc-req-item {
  display: flex;
  gap: 16px;
  background: var(--bg);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cc-req-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.cc-req-icon svg {
  width: 18px;
  height: 18px;
}

.cc-req-content {
  flex: 1;
}

.cc-req-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cc-req-badge {
  display: inline-block;
  background: #fee;
  color: #c33;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cc-req-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* Alert */
.cc-alert {
  display: flex;
  gap: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 32px;
}

.cc-alert svg {
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 2px;
}

.cc-alert strong {
  color: #92400e;
  font-weight: 600;
}

/* === SIDEBAR === */
.cc-product-sidebar {
  position: relative;
}

.cc-price-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: sticky;
  top: 24px;
  box-shadow: var(--shadow-lg);
}

.cc-price-box {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  text-align: center;
}

.cc-price-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.cc-currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
}

.cc-price-value {
  font-size: 56px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.cc-price-suffix {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cc-price-box .cc-save-badge {
  display: inline-block;
  background: #fee;
  color: #c33;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Details */
.cc-details {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.cc-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 12px;
}

.cc-detail:last-child {
  margin-bottom: 0;
}

.cc-detail span {
  color: var(--text-light);
}

.cc-detail strong {
  color: var(--text);
  font-weight: 600;
}

/* === ADD TO CART SECTION === */
.cc-add-to-cart {
  margin-bottom: 24px;
}

/* Button Styles */
.cc-btn {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.cc-btn-primary {
  background: var(--accent) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(51, 216, 134, 0.3);
}

.cc-btn-primary:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 216, 134, 0.4);
}

.cc-btn-primary.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.cc-btn-text {
  font-size: 16px;
  font-weight: 600;
}

.cc-btn-arrow {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.cc-btn-primary:hover .cc-btn-arrow {
  transform: translateX(3px);
}

.cc-btn-disabled {
  background: var(--bg) !important;
  color: var(--text-muted) !important;
  border: 2px solid var(--border);
  cursor: not-allowed;
}

/* Trust Badges */
.cc-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.cc-trust-secure {
  background: #f0fdf4;
  color: var(--success) !important;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid #86efac;
}

.cc-trust-item svg {
  flex-shrink: 0;
}

.cc-trust-secure svg {
  color: var(--success);
}

.cc-trust-item:not(.cc-trust-secure) svg {
  color: var(--primary);
}

/* === NOTIFICATIONS === */
.cc-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 600;
  z-index: 99999;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-notification-show {
  opacity: 1;
  transform: translateX(0);
}

.cc-notification-success {
  border-color: var(--success);
  color: var(--success);
}

.cc-notification-error {
  border-color: var(--error);
  color: var(--error);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .cc-price-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .cc-product-container {
    padding: 16px 16px 60px;
  }
  
  .cc-product-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .cc-product-name {
    font-size: 26px;
  }
  
  .cc-badges {
    justify-content: center;
  }
  
  .cc-tabs-nav {
    overflow-x: auto;
  }
  
  .cc-tab {
    white-space: nowrap;
    padding: 14px 20px;
  }
  
  .cc-tab-panel {
    padding: 24px;
  }
  
  .cc-feature-grid,
  .cc-coverage-grid {
    grid-template-columns: 1fr;
  }
  
  .cc-price-card {
    padding: 24px;
  }
  
  .cc-price-value {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  .cc-breadcrumb {
    font-size: 13px;
    flex-wrap: wrap;
  }
  
  .cc-product-name {
    font-size: 24px;
  }
  
  .cc-product-excerpt {
    font-size: 15px;
  }
}
