/*
 * Sple Store — Utility Classes
 * Replaces Tailwind CDN for production performance.
 * Covers every utility class used across all theme templates.
 * ~15KB vs Tailwind CDN ~100KB+. No JS runtime. No render-blocking.
 */

/* ── Display ────────────────────────────────────────────────── */
.block        { display: block; }
.inline-block { display: inline-block; }
.inline       { display: inline; }
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }
.hidden       { display: none !important; }

/* ── Flex Direction ─────────────────────────────────────────── */
.flex-col  { flex-direction: column; }
.flex-row  { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

/* ── Flex Alignment ─────────────────────────────────────────── */
.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }

.self-start   { align-self: flex-start; }
.self-center  { align-self: center; }
.self-end     { align-self: flex-end; }

/* ── Grid ───────────────────────────────────────────────────── */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.col-span-2  { grid-column: span 2 / span 2; }

/* ── Gap ────────────────────────────────────────────────────── */
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* ── Size ───────────────────────────────────────────────────── */
.w-full   { width: 100%; }
.w-screen { width: 100vw; }
.w-auto   { width: auto; }
.h-full   { height: 100%; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.min-h-0 { min-height: 0; }
.max-w-xs  { max-width: 20rem; }
.max-w-sm  { max-width: 24rem; }
.max-w-md  { max-width: 28rem; }
.max-w-lg  { max-width: 32rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-full { max-width: 100%; }

/* ── Position ───────────────────────────────────────────────── */
.static   { position: static; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }

.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.inset-y-0 { top: 0; bottom: 0; }

.top-0  { top: 0; }
.top-2  { top: 0.5rem; }
.top-3  { top: 0.75rem; }
.top-4  { top: 1rem; }
.top-6  { top: 1.5rem; }
.top-1\/2 { top: 50%; }

.right-0  { right: 0; }
.right-2  { right: 0.5rem; }
.right-3  { right: 0.75rem; }
.right-4  { right: 1rem; }
.right-6  { right: 1.5rem; }

.bottom-0  { bottom: 0; }
.bottom-2  { bottom: 0.5rem; }
.bottom-3  { bottom: 0.75rem; }
.bottom-4  { bottom: 1rem; }
.bottom-6  { bottom: 1.5rem; }

.left-0  { left: 0; }
.left-2  { left: 0.5rem; }
.left-3  { left: 0.75rem; }
.left-4  { left: 1rem; }
.left-6  { left: 1.5rem; }

/* ── Z-Index ────────────────────────────────────────────────── */
.z-0  { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ── Overflow ───────────────────────────────────────────────── */
.overflow-hidden  { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-auto    { overflow: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto  { overflow-y: auto; }

/* ── Object Fit ─────────────────────────────────────────────── */
.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-center  { object-position: center; }
.object-top     { object-position: top; }

/* ── Padding ────────────────────────────────────────────────── */
.p-0  { padding: 0; }
.p-1  { padding: 0.25rem; }
.p-2  { padding: 0.5rem; }
.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-0  { padding-top: 0; padding-bottom: 0; }
.py-1  { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2  { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3  { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4  { padding-top: 1rem; padding-bottom: 1rem; }
.py-5  { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6  { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8  { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }

.pt-0  { padding-top: 0; }
.pt-2  { padding-top: 0.5rem; }
.pt-4  { padding-top: 1rem; }
.pt-6  { padding-top: 1.5rem; }
.pt-8  { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }

.pb-0  { padding-bottom: 0; }
.pb-2  { padding-bottom: 0.5rem; }
.pb-4  { padding-bottom: 1rem; }
.pb-6  { padding-bottom: 1.5rem; }
.pb-8  { padding-bottom: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-28 { padding-bottom: 7rem; }

/* ── Margin ─────────────────────────────────────────────────── */
.m-0  { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }

.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.mr-2 { margin-right: 0.5rem; }

/* ── Typography: Size ───────────────────────────────────────── */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;     line-height: 1; }
.text-6xl  { font-size: 3.75rem;  line-height: 1; }
.text-7xl  { font-size: 4.5rem;   line-height: 1; }

/* ── Typography: Alignment ──────────────────────────────────── */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ── Typography: Weight ─────────────────────────────────────── */
.font-thin       { font-weight: 100; }
.font-light      { font-weight: 300; }
.font-normal     { font-weight: 400; }
.font-medium     { font-weight: 500; }
.font-semibold   { font-weight: 600; }
.font-bold       { font-weight: 700; }
.font-extrabold  { font-weight: 800; }

/* ── Typography: Style & Transform ─────────────────────────── */
.italic    { font-style: italic; }
.not-italic { font-style: normal; }
.uppercase  { text-transform: uppercase; }
.lowercase  { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }
.underline  { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.no-underline { text-decoration: none; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Letter Spacing ─────────────────────────────────────────── */
.tracking-tight   { letter-spacing: -0.05em; }
.tracking-normal  { letter-spacing: 0em; }
.tracking-wide    { letter-spacing: 0.025em; }
.tracking-wider   { letter-spacing: 0.05em; }
.tracking-widest  { letter-spacing: 0.1em; }

/* ── Line Height ────────────────────────────────────────────── */
.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.25; }
.leading-snug    { line-height: 1.375; }
.leading-normal  { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose   { line-height: 2; }

/* ── Border Radius ──────────────────────────────────────────── */
.rounded-none { border-radius: 0; }
.rounded-sm   { border-radius: 0.125rem; }
.rounded      { border-radius: 0.25rem; }
.rounded-md   { border-radius: 0.375rem; }
.rounded-lg   { border-radius: 0.5rem; }
.rounded-xl   { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* ── Border ─────────────────────────────────────────────────── */
.border   { border-width: 1px; border-style: solid; }
.border-0 { border: none; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-y { border-top-width: 1px; border-top-style: solid; border-bottom-width: 1px; border-bottom-style: solid; }
.border-x { border-left-width: 1px; border-left-style: solid; border-right-width: 1px; border-right-style: solid; }

/* ── Outline ────────────────────────────────────────────────── */
.outline-none { outline: none; }

/* ── Cursor ─────────────────────────────────────────────────── */
.cursor-pointer     { cursor: pointer; }
.cursor-default     { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-move        { cursor: move; }
.select-none        { user-select: none; }

/* ── Opacity ────────────────────────────────────────────────── */
.opacity-0   { opacity: 0; }
.opacity-25  { opacity: 0.25; }
.opacity-50  { opacity: 0.5; }
.opacity-75  { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ── Pointer Events ─────────────────────────────────────────── */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* ── Transform & Transition ─────────────────────────────────── */
.scale-105    { transform: scale(1.05); }
.scale-110    { transform: scale(1.1); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.rotate-180   { transform: rotate(180deg); }

/* ── Backdrop Filter ────────────────────────────────────────── */
.backdrop-blur    { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px);  -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-lg { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

/* ── Aspect Ratio ───────────────────────────────────────────── */
.aspect-square  { aspect-ratio: 1 / 1; }
.aspect-video   { aspect-ratio: 16 / 9; }
.aspect-\[3\/4\] { aspect-ratio: 3 / 4; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }

/* ── List ───────────────────────────────────────────────────── */
.list-none  { list-style: none; }
.list-disc  { list-style: disc; }

/* ── Ring (focus) ───────────────────────────────────────────── */
.ring-1 { box-shadow: 0 0 0 1px hsl(var(--ring)); }
.ring-2 { box-shadow: 0 0 0 2px hsl(var(--ring)); }

/* ── Group Hover ────────────────────────────────────────────── */
.group { /* parent marker — no styles */ }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-105   { transform: scale(1.05); }
.group:hover .group-hover\:opacity-0   { opacity: 0; }

/* ── Hover States ───────────────────────────────────────────── */
.hover\:text-foreground:hover      { color: hsl(var(--foreground)); }
.hover\:text-muted-foreground:hover { color: hsl(var(--muted-foreground)); }
.hover\:text-accent:hover          { color: hsl(var(--accent)); }
.hover\:text-gold:hover            { color: hsl(var(--gold)); }
.hover\:text-primary-foreground:hover { color: hsl(var(--primary-foreground)); }
.hover\:bg-primary\/10:hover       { background-color: hsl(var(--primary) / 0.1); }
.hover\:bg-accent:hover            { background-color: hsl(var(--accent)); }
.hover\:opacity-80:hover           { opacity: 0.8; }
.hover\:opacity-100:hover          { opacity: 1; }
.hover\:scale-105:hover            { transform: scale(1.05); }
.hover\:underline:hover            { text-decoration: underline; }
.hover\:border-accent:hover        { border-color: hsl(var(--accent)); }

/* ── Focus States ───────────────────────────────────────────── */
.focus\:outline-none:focus         { outline: none; }
.focus\:border-accent:focus        { border-color: hsl(var(--accent)); }

/* ── Green (for WhatsApp) ───────────────────────────────────── */
.bg-green-500  { background-color: #22c55e; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }

/* ── Red (destructive) ──────────────────────────────────────── */
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE: sm (≥640px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {

    .sm\:block        { display: block; }
    .sm\:inline-block { display: inline-block; }
    .sm\:inline       { display: inline; }
    .sm\:flex         { display: flex; }
    .sm\:grid         { display: grid; }
    .sm\:hidden       { display: none !important; }

    .sm\:flex-row     { flex-direction: row; }
    .sm\:flex-col     { flex-direction: column; }
    .sm\:flex-wrap    { flex-wrap: wrap; }

    .sm\:items-center { align-items: center; }

    .sm\:grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .sm\:gap-4  { gap: 1rem; }
    .sm\:gap-6  { gap: 1.5rem; }

    .sm\:py-20  { padding-top: 5rem; padding-bottom: 5rem; }
    .sm\:p-3    { padding: 0.75rem; }
    .sm\:px-6   { padding-left: 1.5rem; padding-right: 1.5rem; }

    .sm\:text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-xl   { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:text-2xl  { font-size: 1.5rem; line-height: 2rem; }
    .sm\:text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }

    .sm\:top-3   { top: 0.75rem; }
    .sm\:right-3 { right: 0.75rem; }
    .sm\:left-3  { left: 0.75rem; }

    .sm\:mb-4  { margin-bottom: 1rem; }
    .sm\:mb-6  { margin-bottom: 1.5rem; }
    .sm\:mb-14 { margin-bottom: 3.5rem; }
    .sm\:mt-6  { margin-top: 1.5rem; }

    .sm\:max-w-md  { max-width: 28rem; }
    .sm\:max-w-lg  { max-width: 32rem; }

    .sm\:w-auto { width: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE: lg (≥1024px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

    .lg\:block        { display: block; }
    .lg\:flex         { display: flex; }
    .lg\:grid         { display: grid; }
    .lg\:hidden       { display: none !important; }
    .lg\:inline-block { display: inline-block; }

    .lg\:flex-row  { flex-direction: row; }

    .lg\:grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-2   { grid-column: span 2 / span 2; }

    .lg\:gap-6  { gap: 1.5rem; }
    .lg\:gap-8  { gap: 2rem; }
    .lg\:gap-12 { gap: 3rem; }

    .lg\:px-8  { padding-left: 2rem; padding-right: 2rem; }
    .lg\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
    .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .lg\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
    .lg\:p-6   { padding: 1.5rem; }
    .lg\:p-8   { padding: 2rem; }
    .lg\:pb-28 { padding-bottom: 7rem; }

    .lg\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .lg\:text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
    .lg\:text-xl   { font-size: 1.25rem; line-height: 1.75rem; }
    .lg\:text-2xl  { font-size: 1.5rem; line-height: 2rem; }
    .lg\:text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
    .lg\:text-4xl  { font-size: 2.25rem; line-height: 2.5rem; }
    .lg\:text-5xl  { font-size: 3rem; line-height: 1; }

    .lg\:mb-6  { margin-bottom: 1.5rem; }
    .lg\:mb-8  { margin-bottom: 2rem; }
    .lg\:mb-14 { margin-bottom: 3.5rem; }
    .lg\:mt-8  { margin-top: 2rem; }
    .lg\:mt-12 { margin-top: 3rem; }

    .lg\:max-w-2xl { max-width: 42rem; }
    .lg\:max-w-3xl { max-width: 48rem; }
    .lg\:max-w-4xl { max-width: 56rem; }

    .lg\:items-center { align-items: center; }
    .lg\:justify-between { justify-content: space-between; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE: xl (≥1280px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
    .xl\:block  { display: block; }
    .xl\:flex   { display: flex; }
    .xl\:hidden { display: none !important; }
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .xl\:px-0  { padding-left: 0; padding-right: 0; }
}
