:root {
  --vcp-primary: #000000;
  --vcp-primary-rgb: 0, 0, 0;
  --vcp-text: #1a1a1a;
  --vcp-muted: #666;
  --vcp-border: #e2e8f0;
  --vcp-bg: #fff;
  --vcp-radius: 8px;
  --vcp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --vcp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --vcp-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --vcp-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --vcp-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --vcp-z-modal: 99999;
  --vcp-z-lightbox: 999999;
}

/* Base Buttons */
.vcp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--vcp-primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--vcp-radius);
  font-family: var(--vcp-font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--vcp-transition);
  text-decoration: none;
}
.vcp-btn-primary:hover {
  background: rgba(var(--vcp-primary-rgb), 0.9);
  transform: translateY(-1px);
}
.vcp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--vcp-bg);
  color: var(--vcp-text);
  border: 1px solid var(--vcp-border);
  padding: 12px 24px;
  border-radius: var(--vcp-radius);
  font-family: var(--vcp-font);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: var(--vcp-transition);
}
.vcp-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Spinners */
.vcp-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: vcp-spin 0.8s linear infinite;
}
@keyframes vcp-spin { to { transform: rotate(360deg); } }

/* Try-On Button (Global) */
.vcp-tryon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--vcp-bg);
  color: var(--vcp-text);
  border: 2px solid var(--vcp-primary);
  padding: 14px 20px;
  border-radius: var(--vcp-radius);
  font-family: var(--vcp-font);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--vcp-transition);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
.vcp-tryon-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--vcp-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.vcp-tryon-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.vcp-tryon-btn svg, .vcp-tryon-btn span {
  position: relative;
  z-index: 1;
  transition: color 0.4s;
}
.vcp-tryon-btn:hover svg, .vcp-tryon-btn:hover span {
  color: #fff;
}

/* Shortcode Grids */
.vcp-shortcode-grid {
  display: grid;
  grid-template-columns: repeat(var(--vcp-sc-cols, 4), 1fr);
  gap: 24px;
  width: 100%;
}
@media(max-width: 1024px) {
  .vcp-shortcode-grid { grid-template-columns: repeat(min(var(--vcp-sc-cols, 4), 3), 1fr); }
}
@media(max-width: 768px) {
  .vcp-shortcode-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* Product Cards */
.vcp-sc-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--vcp-bg);
  border: 1px solid var(--vcp-border);
  border-radius: var(--vcp-radius);
  overflow: hidden;
  transition: var(--vcp-transition);
}
.vcp-sc-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vcp-shadow-lg);
}

.vcp-sc-link {
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.vcp-sc-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
  background: #f8fafc;
}

.vcp-sc-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.vcp-sc-img.hover-img {
  opacity: 0;
}

.vcp-hover-enabled .vcp-sc-product-card:hover .vcp-sc-img.main-img {
  opacity: 0;
}
.vcp-hover-enabled .vcp-sc-product-card:hover .vcp-sc-img.hover-img {
  opacity: 1;
  transform: scale(1.05);
}

.vcp-sc-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vcp-sc-product-title {
  margin: 0 0 8px 0;
  font-family: var(--vcp-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--vcp-text);
  line-height: 1.4;
}

.vcp-sc-price {
  font-family: var(--vcp-font);
  font-size: 14px;
  color: var(--vcp-muted);
  font-weight: 500;
  margin-top: auto;
}
.vcp-sc-price del { opacity: 0.6; margin-right: 6px; }
.vcp-sc-price ins { text-decoration: none; color: var(--vcp-text); font-weight: 600; }

.vcp-sc-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--vcp-font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}
.vcp-sale-badge { background: #ef4444; }
.vcp-new-badge { background: #10b981; }

.vcp-sc-actions {
  padding: 0 16px 16px;
  margin-top: auto;
}
.vcp-sc-actions .button {
  display: block; width: 100%; text-align: center;
  padding: 10px; background: #f1f5f9; color: var(--vcp-text);
  border-radius: 6px; font-weight: 600; font-size: 13px;
  text-decoration: none; transition: var(--vcp-transition);
}
.vcp-sc-actions .button:hover { background: var(--vcp-primary); color: #fff; }

/* Collection Grid */
.vcp-collection-grid {
  display: grid;
  grid-template-columns: repeat(var(--vcp-sc-cols, 4), 1fr);
  gap: 24px;
}
.vcp-collection-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--vcp-radius); overflow: hidden;
  position: relative; transition: var(--vcp-transition);
}
.vcp-collection-card:hover { transform: translateY(-4px); box-shadow: var(--vcp-shadow); }
.vcp-collection-img-wrap { width: 100%; padding-top: 100%; position: relative; background: #f8fafc; }
.vcp-collection-img-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.vcp-collection-card:hover .vcp-collection-img-wrap img { transform: scale(1.05); }
.vcp-collection-content { padding: 16px; text-align: center; }
.vcp-collection-title { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--vcp-text); }
.vcp-collection-count { font-size: 13px; color: var(--vcp-muted); }

.vcp-sc-title { margin-bottom: 24px; font-family: var(--vcp-font); font-size: 24px; font-weight: 700; color: var(--vcp-text); }

/* Standalone Button */
.vcp-standalone-tryon { margin: 16px 0; }
.vcp-standalone-tryon.vcp-size-sm .vcp-tryon-btn { padding: 8px 16px; font-size: 13px; }
.vcp-standalone-tryon.vcp-size-lg .vcp-tryon-btn { padding: 18px 24px; font-size: 16px; }

