/* ============================================================
   Oravine — Public site visual enhancement layer
   Scoped entirely to .oravine-site so the admin is untouched.
   Layers premium depth, motion and polish on top of the
   compiled Tailwind utilities already in the markup.
   ============================================================ */

.oravine-site {
    --os-green: var(--oravine-green, #9ab61a);
    --os-green-dark: #7f9a13;
    --os-green-deep: #5f7410;
    --os-ink: var(--oravine-dark, #1f2937);
    --os-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
    --os-shadow-md: 0 10px 25px -5px rgba(16, 24, 40, 0.08), 0 8px 10px -6px rgba(16, 24, 40, 0.05);
    --os-shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
    --os-shadow-green: 0 10px 24px -6px rgba(154, 182, 26, 0.45);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

/* Respect reduced-motion preferences everywhere below. */
@media (prefers-reduced-motion: reduce) {
    .oravine-site * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Links never show an underline decoration on the public site
   (overrides Tailwind hover:underline utilities such as the "back" links). */
.oravine-site a,
.oravine-site a:hover,
.oravine-site a:focus,
.oravine-site a:active {
    text-decoration: none;
}

/* ---------- Typography polish ---------- */

.oravine-site h1 {
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.oravine-site h2 {
    letter-spacing: -0.02em;
}

.oravine-site h3 {
    letter-spacing: -0.01em;
}

/* Section eyebrow / heading accent: an underline shimmer beneath centered H2s */
.oravine-site .text-center > h2 {
    position: relative;
    display: inline-block;
}

.oravine-site .text-center > h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.7rem;
    transform: translateX(-50%);
    width: 3.25rem;
    height: 0.2rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--os-green), var(--os-green-deep));
    opacity: 0.9;
}

/* ---------- Buttons: premium gradient + lift + sheen ---------- */

.oravine-site .btn-primary,
.oravine-site .btn-secondary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease,
                background-color 0.25s ease,
                color 0.25s ease;
    will-change: transform;
}

.oravine-site .btn-primary {
    background-image: linear-gradient(135deg, #acc62a 0%, var(--os-green) 45%, var(--os-green-dark) 100%);
    box-shadow: var(--os-shadow-green);
    border: none;
}

.oravine-site .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -8px rgba(154, 182, 26, 0.55);
    color: #fff;
}

.oravine-site .btn-primary:active {
    transform: translateY(0);
}

/* Sweeping sheen on hover */
.oravine-site .btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.4) 50%, transparent 75%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.oravine-site .btn-primary:hover::before {
    transform: translateX(120%);
}

.oravine-site .btn-secondary {
    backdrop-filter: blur(4px);
}

.oravine-site .btn-secondary:hover {
    transform: translateY(-2px);
    background-color: var(--os-green);
    color: #fff;
    box-shadow: var(--os-shadow-green);
}

/* ---------- Cards: soft elevation + smooth hover lift ---------- */

/* Base depth for the card pattern (rounded-2xl blocks) */
.oravine-site .rounded-2xl {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

/* Bordered cards get a real shadow instead of a flat outline */
.oravine-site .rounded-2xl.border {
    box-shadow: var(--os-shadow-sm);
}

/* Interactive cards (links, or cards with hover utilities) lift on hover */
.oravine-site a.rounded-2xl:hover,
.oravine-site .rounded-2xl.group:hover,
.oravine-site .rounded-2xl.border:hover {
    transform: translateY(-6px);
    box-shadow: var(--os-shadow-lg);
    border-color: rgba(154, 182, 26, 0.45);
}

/* Product/feature imagery zoom a touch more smoothly */
.oravine-site .rounded-2xl img {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Hero: layered gradient mesh backdrop ---------- */

.oravine-site main > section:first-child {
    background:
        radial-gradient(60rem 40rem at 85% -10%, rgba(154, 182, 26, 0.16), transparent 60%),
        radial-gradient(48rem 36rem at -10% 10%, rgba(154, 182, 26, 0.10), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, var(--oravine-light, #f8fce1) 100%);
}

.oravine-site main > section:first-child h1 {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
}

/* Gradient text on the highlighted hero word */
.oravine-site main > section:first-child h1 .text-oravine-green {
    background: linear-gradient(120deg, var(--os-green), var(--os-green-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Pillars / feature icon tiles ---------- */

/* The icon blocks on the home pillars become soft branded tiles */
.oravine-site .text-center.p-6.rounded-2xl > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(154, 182, 26, 0.16), rgba(154, 182, 26, 0.06));
    box-shadow: inset 0 0 0 1px rgba(154, 182, 26, 0.18);
    transition: transform 0.3s ease;
    color: var(--os-green-deep);
}

.oravine-site .text-center.p-6.rounded-2xl > span:first-child svg {
    width: 1.75rem;
    height: 1.75rem;
}

.oravine-site .text-center.p-6.rounded-2xl:hover > span:first-child {
    transform: scale(1.08) rotate(-3deg);
}

/* Solution chips: small branded icon badge */
.oravine-site .solution-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    border-radius: 0.85rem;
    background: #fff;
    color: var(--os-green-deep);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.oravine-site .solution-icon svg {
    width: 1.3rem;
    height: 1.3rem;
}

.oravine-site a:hover .solution-icon {
    transform: scale(1.05);
    background: var(--os-green);
    color: #fff;
}

/* ---------- Section rhythm ---------- */

.oravine-site section {
    position: relative;
}

/* ---------- Header: glassy, animated nav links, scroll shadow ---------- */

.oravine-site header {
    transition: box-shadow 0.3s ease, background-color 0.3s ease, height 0.3s ease;
}

.oravine-site header.is-scrolled {
    box-shadow: 0 6px 24px -10px rgba(16, 24, 40, 0.22);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
}

/* Animated underline on desktop nav links */
.oravine-site header nav a {
    position: relative;
}

.oravine-site header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 0.13rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--os-green), var(--os-green-deep));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.oravine-site header nav a:hover::after,
.oravine-site header nav a.text-oravine-green::after {
    transform: scaleX(1);
}

/* ---------- Footer polish ---------- */

.oravine-site footer {
    background-image:
        radial-gradient(40rem 20rem at 80% 0%, rgba(154, 182, 26, 0.12), transparent 60%),
        linear-gradient(180deg, #1b2430 0%, var(--oravine-dark, #1f2937) 100%);
}

.oravine-site footer a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.oravine-site footer ul a:hover {
    transform: translateX(3px);
    display: inline-block;
}

/* Social icon buttons become subtle pill chips */
.oravine-site footer .flex.space-x-4 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.oravine-site footer .flex.space-x-4 a:hover {
    background: var(--os-green);
    color: #fff !important;
    transform: translateY(-3px);
    border-color: transparent;
}

/* ---------- Inputs: friendlier focus rings ---------- */

.oravine-site input,
.oravine-site textarea,
.oravine-site select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oravine-site input:focus,
.oravine-site textarea:focus,
.oravine-site select:focus {
    box-shadow: 0 0 0 4px rgba(154, 182, 26, 0.15);
}

/* ---------- Category / filter pills ---------- */

.oravine-site button.rounded-full {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.oravine-site button.rounded-full:hover {
    transform: translateY(-1px);
}

/* ---------- Scroll-reveal motion ---------- */

.oravine-site [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.oravine-site [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger children when a container is revealed */
.oravine-site [data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.oravine-site [data-reveal-stagger].is-visible > * {
    opacity: 1;
    transform: none;
}

.oravine-site [data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.oravine-site [data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.oravine-site [data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.oravine-site [data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.oravine-site [data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.40s; }

/* ========================================================
   Product page — unified ps-toolbar + product-card grid
   ======================================================== */

/* ── Toolbar container ── */
/* One rounded card holding search | pills | sort all in a row.
   On mobile the search stacks above pills+sort. */
.oravine-site .ps-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px -4px rgba(16, 24, 40, 0.09);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oravine-site .ps-toolbar:focus-within {
    border-color: rgba(154, 182, 26, 0.55);
    box-shadow: 0 0 0 3px rgba(154, 182, 26, 0.12),
                0 4px 20px -4px rgba(16, 24, 40, 0.1);
}

/* ── Search section ── */
.oravine-site .ps-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 100%;                  /* full row on mobile */
    min-width: 0;
    border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .oravine-site .ps-field {
        flex: 1 1 auto;              /* grows on desktop */
        border-bottom: none;
        border-right: 1px solid #e5e7eb;
    }
}

.oravine-site .ps-icon {
    position: absolute;
    left: 1.1rem;
    display: flex;
    align-items: center;
    color: #9ca3af;
    pointer-events: none;
}

.oravine-site .ps-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.oravine-site .ps-input {
    width: 100%;
    padding: 0.9rem 2.75rem 0.9rem 2.6rem;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    color: #1f2937;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.oravine-site .ps-input::placeholder { color: #b0b8c4; }

.oravine-site .ps-input::-webkit-search-cancel-button,
.oravine-site .ps-input::-webkit-search-decoration { display: none; }

/* × clear button */
.oravine-site .ps-clear {
    position: absolute;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease,
                transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.oravine-site .ps-clear svg { width: 0.75rem; height: 0.75rem; }

.oravine-site .ps-clear:hover {
    background: var(--os-green, #9ab61a);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

/* ── Category pills section (horizontally scrollable) ── */
.oravine-site .ps-cats {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 0.875rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.oravine-site .ps-cats::-webkit-scrollbar { display: none; }

/* ── Category pills ── */
.oravine-site .cat-pill {
    padding: 0.35rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1.5px solid #e5e7eb;
    background: transparent;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.18s ease, color 0.18s ease,
                border-color 0.18s ease, box-shadow 0.18s ease;
}

.oravine-site .cat-pill:hover {
    background: rgba(154, 182, 26, 0.10);
    color: var(--os-green-deep, #5f7410);
    border-color: rgba(154, 182, 26, 0.4);
}

.oravine-site .cat-pill.is-active {
    background: var(--os-green, #9ab61a);
    color: #fff;
    border-color: var(--os-green, #9ab61a);
    box-shadow: 0 2px 8px -1px rgba(154, 182, 26, 0.45);
}

/* ── Sort dropdown ── */
.oravine-site .ps-sort {
    flex-shrink: 0;
    padding: 0.9rem 2.25rem 0.9rem 1rem;
    border: none;
    border-left: 1px solid #e5e7eb;
    background-color: #fafafa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    outline: none;
    transition: background-color 0.15s ease;
}

.oravine-site .ps-sort:focus { background-color: #f3f4f6; }

/* ── Result / total count ── */
.oravine-site .ps-count,
.oravine-site .ps-total {
    font-size: 0.8125rem;
    color: #9ca3af;
    animation: ps-fade-slide 0.25s ease;
}

.oravine-site .ps-count strong { color: var(--os-green-deep, #5f7410); font-weight: 700; }
.oravine-site .ps-count em    { font-style: italic; color: #374151; }

@keyframes ps-fade-slide {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: none; }
}

/* ── Product card ── */
.oravine-site .product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid #eaecf0;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
}

.oravine-site .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.16);
    border-color: rgba(154, 182, 26, 0.35);
}

/* Bestseller ribbon */
.oravine-site .product-badge {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    z-index: 10;
    background: var(--os-green, #9ab61a);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

/* Image section */
.oravine-site .product-img {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f6fadf 0%, #edf2d6 100%);
    overflow: hidden;
}

.oravine-site .product-img img {
    width: 68%;
    height: 68%;
    object-fit: contain;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.oravine-site .product-card:hover .product-img img {
    transform: scale(1.1);
}

/* Text body */
.oravine-site .product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem 1.25rem 1.25rem;
    gap: 0.25rem;
}

.oravine-site .product-cat {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--os-green, #9ab61a);
}

.oravine-site .product-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
    margin: 0;
}

.oravine-site .product-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0.1rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price + CTA row */
.oravine-site .product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.875rem;
    border-top: 1px solid #f3f4f6;
}

.oravine-site .price-tag {
    font-size: 1.0625rem;
    font-weight: 700;
    background: linear-gradient(120deg, var(--os-green, #9ab61a), var(--os-green-deep, #5f7410));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

/* "Where to Buy" inline link with arrow */
.oravine-site .product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--os-green-deep, #5f7410);
    transition: gap 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.oravine-site .product-cta svg {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.2s ease;
}

.oravine-site .product-card:hover .product-cta {
    color: var(--os-green, #9ab61a);
    gap: 0.5rem;
}

.oravine-site .product-card:hover .product-cta svg {
    transform: translateX(3px);
}

/* ── Empty state ── */
.oravine-site .ps-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 1rem;
    text-align: center;
    animation: ps-fade-slide 0.35s ease;
}

.oravine-site .ps-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.75rem;
    background: #f3f4f6;
    color: #c4c9d4;
    margin-bottom: 1.5rem;
}

.oravine-site .ps-empty-icon svg { width: 2.5rem; height: 2.5rem; }
.oravine-site .ps-empty-title { font-size: 1.125rem; font-weight: 600; color: #1f2937; margin: 0 0 0.5rem; }
.oravine-site .ps-empty-sub   { font-size: 0.9375rem; color: #6b7280; margin: 0 0 1.75rem; }

.oravine-site .ps-empty-btn {
    padding: 0.625rem 1.75rem;
    border-radius: 999px;
    background: var(--os-green, #9ab61a);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px -3px rgba(154, 182, 26, 0.45);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.oravine-site .ps-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -4px rgba(154, 182, 26, 0.55);
}

