/*
 * Hapoomeo Single Product Content Styles for PetShop Lux
 * Version: 1.0.0
 * Scope: WooCommerce single product pages only
 * Purpose: render imported Hapoomeo product-description Tailwind-style markup
 * without requiring Tailwind classes to exist in the destination theme.
 *
 * Hapoomeo orange/amber accents are intentionally mapped to PetShop Lux
 * purple/lilac accents. Semantic colors such as emerald/sky/rose remain intact.
 */

.single-product {
  --hpl-purple-50: #faf5ff;
  --hpl-purple-100: #f3e8ff;
  --hpl-purple-200: #e9d5ff;
  --hpl-purple-300: #d8b4fe;
  --hpl-purple-400: #c084fc;
  --hpl-purple-500: #a855f7;
  --hpl-purple-600: #9333ea;
  --hpl-purple-700: #7e22ce;
  --hpl-purple-800: #6b21a8;
  --hpl-purple-900: #581c87;

  --hpl-slate-50: #f8fafc;
  --hpl-slate-100: #f1f5f9;
  --hpl-slate-200: #e2e8f0;
  --hpl-slate-500: #64748b;
  --hpl-slate-600: #475569;
  --hpl-slate-700: #334155;
  --hpl-slate-800: #1e293b;

  --hpl-emerald-50: #ecfdf5;
  --hpl-emerald-100: #d1fae5;
  --hpl-emerald-600: #059669;
  --hpl-emerald-700: #047857;

  --hpl-sky-50: #f0f9ff;
  --hpl-sky-100: #e0f2fe;
  --hpl-sky-500: #0ea5e9;
  --hpl-sky-600: #0284c7;

  --hpl-violet-50: #f5f3ff;
  --hpl-violet-100: #ede9fe;
  --hpl-violet-600: #7c3aed;

  --hpl-rose-50: #fff1f2;
  --hpl-rose-100: #ffe4e6;
  --hpl-rose-600: #e11d48;

  --hpl-indigo-50: #eef2ff;
  --hpl-indigo-100: #e0e7ff;
  --hpl-indigo-500: #6366f1;
}

/* Base content normalization */
.single-product article.max-w-4xl,
.single-product .woocommerce-Tabs-panel--description article.max-w-4xl,
.single-product .woocommerce-product-details__short-description article.max-w-4xl {
  width: 100%;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  color: var(--hpl-slate-700);
  line-height: 2;
  text-align: justify;
}

.single-product article.max-w-4xl *,
.single-product .woocommerce-Tabs-panel--description article.max-w-4xl *,
.single-product .woocommerce-product-details__short-description article.max-w-4xl * {
  box-sizing: border-box;
}

.single-product article.max-w-4xl h1,
.single-product article.max-w-4xl h2,
.single-product article.max-w-4xl h3,
.single-product article.max-w-4xl p,
.single-product article.max-w-4xl ul {
  font-family: inherit;
}

.single-product article.max-w-4xl ul {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Display */
.single-product .block { display: block; }
.single-product .inline-flex { display: inline-flex; }
.single-product .flex { display: flex; }
.single-product .grid { display: grid; }
.single-product .hidden { display: none; }

/* Position */
.single-product .relative { position: relative; }
.single-product .absolute { position: absolute; }
.single-product .top-0 { top: 0; }
.single-product .right-0 { right: 0; }
.single-product .-top-12 { top: -3rem; }
.single-product .-left-12 { left: -3rem; }
.single-product .-bottom-14 { bottom: -3.5rem; }
.single-product .-right-10 { right: -2.5rem; }
.single-product .z-10 { z-index: 10; }
.single-product .pointer-events-none { pointer-events: none; }
.single-product .overflow-hidden { overflow: hidden; }

/* Flex/Grid */
.single-product .items-center { align-items: center; }
.single-product .items-start { align-items: flex-start; }
.single-product .justify-center { justify-content: center; }
.single-product .justify-between { justify-content: space-between; }
.single-product .shrink-0 { flex-shrink: 0; }
.single-product .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.single-product .gap-2 { gap: .5rem; }
.single-product .gap-3 { gap: .75rem; }
.single-product .gap-4 { gap: 1rem; }

/* Width / Height */
.single-product .w-8 { width: 2rem; }
.single-product .h-8 { height: 2rem; }
.single-product .w-9 { width: 2.25rem; }
.single-product .h-9 { height: 2.25rem; }
.single-product .w-28 { width: 7rem; }
.single-product .h-28 { height: 7rem; }
.single-product .w-32 { width: 8rem; }
.single-product .h-32 { height: 8rem; }
.single-product .w-36 { width: 9rem; }
.single-product .h-36 { height: 9rem; }

/* Spacing */
.single-product .m-0 { margin: 0; }
.single-product .p-0 { padding: 0; }
.single-product .p-4 { padding: 1rem; }
.single-product .p-5 { padding: 1.25rem; }
.single-product .px-3 { padding-left: .75rem; padding-right: .75rem; }
.single-product .py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.single-product .mb-1 { margin-bottom: .25rem; }
.single-product .mb-2 { margin-bottom: .5rem; }
.single-product .mb-3 { margin-bottom: .75rem; }
.single-product .mt-1 { margin-top: .25rem; }
.single-product .mt-2 { margin-top: .5rem; }
.single-product .mt-4 { margin-top: 1rem; }

.single-product .space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: .5rem; }
.single-product .space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
.single-product .space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* Typography */
.single-product .text-justify { text-align: justify; }
.single-product .leading-loose { line-height: 2; }
.single-product .leading-relaxed { line-height: 1.625; }
.single-product .leading-snug { line-height: 1.375; }
.single-product .text-xs { font-size: .75rem; line-height: 1rem; }
.single-product .text-sm { font-size: .875rem; line-height: 1.5rem; }
.single-product .text-base { font-size: 1rem; line-height: 1.5rem; }
.single-product .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.single-product .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.single-product .text-\[11px\] { font-size: 11px; line-height: 1rem; }
.single-product .font-normal { font-weight: 400; }
.single-product .font-bold { font-weight: 700; }
.single-product .font-extrabold { font-weight: 800; }
.single-product .list-none { list-style: none; }

/* Text colors */
.single-product .text-slate-500 { color: var(--hpl-slate-500); }
.single-product .text-slate-600 { color: var(--hpl-slate-600); }
.single-product .text-slate-700 { color: var(--hpl-slate-700); }
.single-product .text-slate-800 { color: var(--hpl-slate-800); }

/* Hapoomeo orange/amber -> PetShop Lux purple/lilac */
.single-product .text-orange-500,
.single-product .text-amber-500 { color: var(--hpl-purple-500); }
.single-product .text-orange-600,
.single-product .text-amber-600 { color: var(--hpl-purple-600); }
.single-product .text-orange-700 { color: var(--hpl-purple-700); }

.single-product .text-emerald-600 { color: var(--hpl-emerald-600); }
.single-product .text-emerald-700 { color: var(--hpl-emerald-700); }
.single-product .text-sky-500 { color: var(--hpl-sky-500); }
.single-product .text-sky-600 { color: var(--hpl-sky-600); }
.single-product .text-violet-600 { color: var(--hpl-violet-600); }
.single-product .text-rose-600 { color: var(--hpl-rose-600); }
.single-product .text-indigo-500 { color: var(--hpl-indigo-500); }

/* Background colors */
.single-product .bg-white { background-color: #fff; }
.single-product .bg-white\/80 { background-color: rgba(255,255,255,.8); }
.single-product .bg-slate-50 { background-color: var(--hpl-slate-50); }

.single-product .bg-orange-50,
.single-product .bg-amber-50 { background-color: var(--hpl-purple-50); }
.single-product .bg-orange-100,
.single-product .bg-amber-100 { background-color: var(--hpl-purple-100); }
.single-product .bg-orange-200\/30,
.single-product .bg-amber-200\/30 { background-color: rgba(216,180,254,.30); }

.single-product .bg-emerald-50 { background-color: var(--hpl-emerald-50); }
.single-product .bg-emerald-100 { background-color: var(--hpl-emerald-100); }
.single-product .bg-sky-50 { background-color: var(--hpl-sky-50); }
.single-product .bg-sky-100 { background-color: var(--hpl-sky-100); }
.single-product .bg-violet-50 { background-color: var(--hpl-violet-50); }
.single-product .bg-violet-100 { background-color: var(--hpl-violet-100); }
.single-product .bg-rose-50 { background-color: var(--hpl-rose-50); }
.single-product .bg-rose-100 { background-color: var(--hpl-rose-100); }
.single-product .bg-indigo-50 { background-color: var(--hpl-indigo-50); }

/* Borders */
.single-product .border { border-width: 1px; border-style: solid; }
.single-product .border-r-4 { border-right-width: 4px; border-right-style: solid; }
.single-product .border-slate-100 { border-color: var(--hpl-slate-100); }
.single-product .border-slate-200 { border-color: var(--hpl-slate-200); }

.single-product .border-orange-200,
.single-product .border-amber-100 { border-color: var(--hpl-purple-200); }
.single-product .border-orange-400 { border-color: var(--hpl-purple-400); }

.single-product .border-emerald-100 { border-color: var(--hpl-emerald-100); }
.single-product .border-sky-100 { border-color: var(--hpl-sky-100); }
.single-product .border-violet-100 { border-color: var(--hpl-violet-100); }
.single-product .border-rose-100 { border-color: var(--hpl-rose-100); }
.single-product .border-indigo-100 { border-color: var(--hpl-indigo-100); }

/* Radius */
.single-product .rounded-lg { border-radius: .5rem; }
.single-product .rounded-xl { border-radius: .75rem; }
.single-product .rounded-2xl { border-radius: 1rem; }
.single-product .rounded-full { border-radius: 9999px; }
.single-product .rounded-l-xl { border-top-left-radius: .75rem; border-bottom-left-radius: .75rem; }
.single-product .rounded-bl-full { border-bottom-left-radius: 9999px; }

/* Shadows */
.single-product .shadow-sm {
  box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 2px 10px rgba(88,28,135,.025);
}
.single-product .shadow-inner {
  box-shadow: inset 0 2px 4px rgba(15,23,42,.06);
}

/* Gradient engine */
.single-product .bg-gradient-to-l,
.single-product .bg-gradient-to-br {
  --hpl-gradient-from: transparent;
  --hpl-gradient-via: transparent;
  --hpl-gradient-to: transparent;
}

.single-product .bg-gradient-to-l {
  background-image: linear-gradient(to left,
    var(--hpl-gradient-from),
    var(--hpl-gradient-via, var(--hpl-gradient-from)),
    var(--hpl-gradient-to));
}

.single-product .bg-gradient-to-br {
  background-image: linear-gradient(to bottom right,
    var(--hpl-gradient-from),
    var(--hpl-gradient-via, var(--hpl-gradient-from)),
    var(--hpl-gradient-to));
}

/* Hapoomeo orange/amber gradients -> purple/lilac */
.single-product .from-orange-50,
.single-product .from-amber-50 { --hpl-gradient-from: var(--hpl-purple-50); }
.single-product .via-amber-50 { --hpl-gradient-via: #f7f2ff; }
.single-product .to-white { --hpl-gradient-to: #fff; }
.single-product .from-white { --hpl-gradient-from: #fff; }
.single-product .from-slate-50 { --hpl-gradient-from: var(--hpl-slate-50); }
.single-product .from-emerald-50 { --hpl-gradient-from: var(--hpl-emerald-50); }
.single-product .from-sky-50 { --hpl-gradient-from: var(--hpl-sky-50); }
.single-product .from-violet-50 { --hpl-gradient-from: var(--hpl-violet-50); }
.single-product .from-rose-50 { --hpl-gradient-from: var(--hpl-rose-50); }
.single-product .from-indigo-50 { --hpl-gradient-from: var(--hpl-indigo-50); }
.single-product .via-white { --hpl-gradient-via: #fff; }
.single-product .to-emerald-50 { --hpl-gradient-to: var(--hpl-emerald-50); }
.single-product .to-sky-50 { --hpl-gradient-to: var(--hpl-sky-50); }
.single-product .to-violet-50 { --hpl-gradient-to: var(--hpl-violet-50); }
.single-product .to-rose-50 { --hpl-gradient-to: var(--hpl-rose-50); }
.single-product .to-amber-50 { --hpl-gradient-to: var(--hpl-purple-50); }
.single-product .to-violet-50 { --hpl-gradient-to: var(--hpl-violet-50); }

/* Ensure section cards keep clean spacing within WooCommerce content */
.single-product article.max-w-4xl > header,
.single-product article.max-w-4xl > section,
.single-product article.max-w-4xl > div {
  width: 100%;
}

.single-product article.max-w-4xl strong {
  color: inherit;
}

/* Preserve white text if future imported blocks use purple background */
.single-product [class*="bg-purple-"],
.single-product [class*="bg-violet-700"],
.single-product [class*="bg-violet-800"],
.single-product [class*="bg-violet-900"] {
  --hpl-on-purple: #fff;
}

.single-product [class*="bg-purple-"] .text-white,
.single-product [class*="bg-violet-700"] .text-white,
.single-product [class*="bg-violet-800"] .text-white,
.single-product [class*="bg-violet-900"] .text-white {
  color: #fff !important;
}

/* Responsive utilities used by Hapoomeo product content */
@media (min-width: 640px) {
  .single-product .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-product .sm\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 768px) {
  .single-product .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-product .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .single-product .md\:col-span-1 { grid-column: span 1 / span 1; }
  .single-product .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
}

/* Mobile refinements */
@media (max-width: 767px) {
  .single-product article.max-w-4xl {
    line-height: 1.9;
  }

  .single-product article.max-w-4xl .p-5 {
    padding: 1rem;
  }

  .single-product article.max-w-4xl .text-xl {
    font-size: 1.125rem;
    line-height: 1.7;
  }

  .single-product article.max-w-4xl .text-lg {
    font-size: 1rem;
    line-height: 1.6;
  }

  .single-product article.max-w-4xl .text-justify {
    text-align: right;
  }
}
