/* =============================================
   CULTIVATE CAPABILITIES — SHOP STYLES
   ============================================= */

/* --- Store Grid --- */
.cc-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* --- Product Card --- */
.cc-product-card {
  background: var(--cc-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
  position: relative;
  border: 2px solid transparent;
}
.cc-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cc-teal);
}
.cc-product-card.featured {
  border-color: var(--cc-teal);
}

/* Product Badge */
.cc-product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--cc-teal);
  color: var(--cc-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .85rem;
  border-radius: 50px;
  z-index: 2;
}
.cc-product-badge.sold-out { background: #999; }

/* Product Image / Icon Area */
.cc-product-image {
  aspect-ratio: 16/9;
  background: var(--cc-bg);
  overflow: hidden;
  position: relative;
}
.cc-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.cc-product-card:hover .cc-product-image img {
  transform: scale(1.04);
}
.cc-product-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--cc-bg) 0%, rgba(0,194,168,.08) 100%);
}

/* Product Body */
.cc-product-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cc-product-type {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cc-teal);
  margin-bottom: .5rem;
}
.cc-product-body h3 {
  font-size: 1.2rem;
  margin-bottom: .6rem;
  line-height: 1.3;
}
.cc-product-excerpt {
  color: var(--cc-muted);
  font-size: .9rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* Price Block */
.cc-product-price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.cc-product-price .amount {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  color: var(--cc-teal);
  line-height: 1;
}
.cc-product-price .period {
  font-size: .8rem;
  color: var(--cc-muted);
}
.cc-product-price .poa {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cc-muted);
}

/* Features List */
.cc-product-features {
  list-style: none;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.cc-product-features li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .87rem;
  color: var(--cc-text);
}
.cc-product-features li::before {
  content: '✓';
  color: var(--cc-teal);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* CTA Button */
.cc-product-cta {
  margin-top: auto;
}
.cc-btn-checkout {
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cc-btn-checkout .btn-text { transition: opacity .2s; }
.cc-btn-checkout.loading .btn-text { opacity: 0; }
.cc-btn-checkout.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cc-spin .7s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes cc-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Sold Out State */
.cc-btn-sold-out {
  width: 100%;
  text-align: center;
  background: var(--cc-border);
  color: var(--cc-muted);
  border-color: var(--cc-border);
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Single Product Page --- */
.cc-single-product {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
.cc-product-gallery {
  position: sticky;
  top: 100px;
}
.cc-product-gallery .main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cc-bg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-product-gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cc-product-detail-type {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cc-teal);
  margin-bottom: .6rem;
  display: block;
}
.cc-product-detail h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}
.cc-product-detail-price {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--cc-bg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--cc-teal);
}
.cc-product-detail-price .amount {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--cc-teal);
  line-height: 1;
}
.cc-product-detail-price .suffix {
  font-size: .9rem;
  color: var(--cc-muted);
  margin-top: .3rem;
}

/* Qty Selector */
.cc-qty-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.cc-qty-wrap label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
}
.cc-qty-input {
  display: flex;
  align-items: center;
  border: 2px solid var(--cc-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cc-qty-btn {
  width: 36px;
  height: 36px;
  background: var(--cc-bg);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cc-dark);
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-qty-btn:hover { background: var(--cc-teal); color: #fff; }
.cc-qty-num {
  width: 44px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  border: none;
  outline: none;
  background: transparent;
}

/* Notice / Flash Messages */
.cc-shop-notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.cc-shop-notice.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.cc-shop-notice.error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.cc-shop-notice.info    { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* Order Success Page */
.cc-order-success {
  text-align: center;
  padding: 5rem 0;
}
.cc-order-success .success-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: cc-pop .5s cubic-bezier(.36,1.1,.47,1) forwards;
}
@keyframes cc-pop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .cc-single-product { grid-template-columns: 1fr; }
  .cc-product-gallery { position: static; }
  .cc-store-grid { grid-template-columns: 1fr; }
}
