/* The Nut Company - PHP Version Styles */
/* Based on TailwindCSS v4 with custom CSS variables */

/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: oklch(0.9818 0.0054 95.0986);
    --foreground: oklch(0.3438 0.0269 95.7226);
    --card: oklch(0.9818 0.0054 95.0986);
    --card-foreground: oklch(0.1908 0.0020 106.5859);
    --popover: oklch(1.0000 0 0);
    --popover-foreground: oklch(0.2671 0.0196 98.9390);
    --primary: oklch(0.6171 0.1375 39.0427);
    --primary-foreground: oklch(1.0000 0 0);
    --secondary: oklch(0.9245 0.0138 92.9892);
    --secondary-foreground: oklch(0.4334 0.0177 98.6048);
    --muted: oklch(0.9341 0.0153 90.2390);
    --muted-foreground: oklch(0.6059 0.0075 97.4233);
    --accent: oklch(0.9245 0.0138 92.9892);
    --accent-foreground: oklch(0.2671 0.0196 98.9390);
    --destructive: oklch(0.6368 0.2078 25.3313);
    --destructive-foreground: oklch(1.0000 0 0);
    --border: oklch(0.8847 0.0069 97.3627);
    --input: oklch(0.7621 0.0156 98.3528);
    --ring: oklch(0.6171 0.1375 39.0427);
    --radius: 0.5rem;
    --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

img {
    max-width: 100%;
    height: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* Layout Utilities */
.max-w-7xl {
    max-width: 80rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-xs {
    max-width: 20rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 1.25rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mr-4 {
    margin-right: 1rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.-top-2 {
    top: -0.5rem;
}

.-right-2 {
    right: -0.5rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.flex-col {
    flex-direction: column;
}

.flex-grow {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-1 {
    flex: 1 1 0%;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-x-6 {
    column-gap: 1.5rem;
}

.gap-x-8 {
    column-gap: 2rem;
}

.gap-y-10 {
    row-gap: 2.5rem;
}

.space-x-8>*+* {
    margin-left: 2rem;
}

.space-y-1>*+* {
    margin-top: 0.25rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.col-span-1 {
    grid-column: span 1 / span 1;
}

/* Display */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.top-4 {
    top: 1rem;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Sizing */
.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-12 {
    width: 3rem;
}

.w-24 {
    width: 6rem;
}

.w-full {
    width: 100%;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-24 {
    height: 6rem;
}

.h-56 {
    height: 14rem;
}

.h-auto {
    height: 100%;
}

.min-h-80 {
    min-height: 20rem;
}

.min-h-screen {
    min-height: 100vh;
}

/* Typography */
.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;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.leading-relaxed {
    line-height: 1.625;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Colors */
.bg-background {
    background-color: var(--background);
}

.bg-card {
    background-color: var(--card);
}

.bg-muted {
    background-color: var(--muted);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-primary\/10 {
    background-color: oklch(0.6171 0.1375 39.0427 / 0.1);
}

.bg-primary\/90 {
    background-color: oklch(0.6171 0.1375 39.0427 / 0.9);
}

.bg-muted\/50 {
    background-color: oklch(0.9341 0.0153 90.2390 / 0.5);
}

.bg-secondary\/80 {
    background-color: oklch(0.9245 0.0138 92.9892 / 0.8);
}

.bg-background\/80 {
    background-color: oklch(0.9818 0.0054 95.0986 / 0.8);
}

.text-foreground {
    color: var(--foreground);
}

.text-foreground\/80 {
    color: oklch(0.3438 0.0269 95.7226 / 0.8);
}

.text-card-foreground {
    color: var(--card-foreground);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.text-primary {
    color: var(--primary);
}

.text-primary-foreground {
    color: var(--primary-foreground);
}

.text-secondary-foreground {
    color: var(--secondary-foreground);
}

.text-destructive {
    color: var(--destructive);
}

.text-destructive\/80 {
    color: oklch(0.6368 0.2078 25.3313 / 0.8);
}

/* Borders */
.border {
    border-width: 1px;
    border-style: solid;
}

.border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.border-border {
    border-color: var(--border);
}

.border-transparent {
    border-color: transparent;
}

.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;
}

.rounded-t-lg {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

/* Shadows */
.shadow {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Effects */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.overflow-hidden {
    overflow: hidden;
}

.object-cover {
    object-fit: cover;
}

.object-center {
    object-position: center;
}

.opacity-90 {
    opacity: 0.9;
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.transform {
    transform: translateX(0);
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Hover States */
.hover\:text-primary:hover {
    color: var(--primary);
}

.hover\:text-primary\/80:hover {
    color: oklch(0.6171 0.1375 39.0427 / 0.8);
}

.hover\:text-destructive\/80:hover {
    color: oklch(0.6368 0.2078 25.3313 / 0.8);
}

.hover\:bg-primary\/90:hover {
    background-color: oklch(0.6171 0.1375 39.0427 / 0.9);
}

.hover\:bg-primary\/20:hover {
    background-color: oklch(0.6171 0.1375 39.0427 / 0.2);
}

.hover\:bg-secondary\/80:hover {
    background-color: oklch(0.9245 0.0138 92.9892 / 0.8);
}

.hover\:bg-accent:hover {
    background-color: var(--accent);
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.hover\:opacity-90:hover {
    opacity: 0.9;
}

.group:hover .group-hover\:opacity-90 {
    opacity: 0.9;
}

/* Focus States */
.focus\:outline-none:focus {
    outline: none;
}

/* Responsive - Small (640px) */
@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .sm\:px-3 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .sm\:py-24 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .sm\:pb-16 {
        padding-bottom: 4rem;
    }

    .sm\:mt-0 {
        margin-top: 0;
    }

    .sm\:mt-5 {
        margin-top: 1.25rem;
    }

    .sm\:mt-8 {
        margin-top: 2rem;
    }

    .sm\:mt-12 {
        margin-top: 3rem;
    }

    .sm\:ml-3 {
        margin-left: 0.75rem;
    }

    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm\:text-center {
        text-align: center;
    }

    .sm\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    .sm\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .sm\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }

    .sm\:h-72 {
        height: 18rem;
    }

    .sm\:flex {
        display: flex;
    }

    .sm\:justify-center {
        justify-content: center;
    }

    .sm\:max-w-xl {
        max-width: 36rem;
    }
}

/* Responsive - Medium (768px) */
@media (min-width: 768px) {
    .md\:hidden {
        display: none;
    }

    .md\:flex {
        display: flex;
    }

    .md\:block {
        display: block;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .md\:items-center {
        align-items: center;
    }

    .md\:justify-between {
        justify-content: space-between;
    }

    .md\:pb-20 {
        padding-bottom: 5rem;
    }

    .md\:mt-5 {
        margin-top: 1.25rem;
    }

    .md\:mt-16 {
        margin-top: 4rem;
    }

    .md\:py-4 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .md\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }

    .md\:h-96 {
        height: 24rem;
    }
}

/* Responsive - Large (1024px) */
@media (min-width: 1024px) {
    .lg\:hidden {
        display: none;
    }

    .lg\:flex {
        display: flex;
    }

    .lg\:block {
        display: block;
    }

    .lg\:grid {
        display: grid;
    }

    .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-1 {
        grid-column: span 1 / span 1;
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .lg\:gap-12 {
        gap: 3rem;
    }

    .lg\:items-center {
        align-items: center;
    }

    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .lg\:pb-28 {
        padding-bottom: 7rem;
    }

    .lg\:mt-0 {
        margin-top: 0;
    }

    .lg\:mt-20 {
        margin-top: 5rem;
    }

    .lg\:mx-0 {
        margin-left: 0;
        margin-right: 0;
    }

    .lg\:max-w-2xl {
        max-width: 42rem;
    }

    .lg\:w-full {
        width: 100%;
    }

    .lg\:w-1\/2 {
        width: 50%;
    }

    .lg\:h-80 {
        height: 20rem;
    }

    .lg\:h-full {
        height: 100%;
    }

    .lg\:p-12 {
        padding: 3rem;
    }

    .lg\:text-left {
        text-align: left;
    }

    .lg\:justify-start {
        justify-content: flex-start;
    }

    .lg\:absolute {
        position: absolute;
    }

    .lg\:inset-y-0 {
        top: 0;
        bottom: 0;
    }

    .lg\:right-0 {
        right: 0;
    }

    .lg\:aspect-none {
        aspect-ratio: auto;
    }
}

/* Responsive - XL (1280px) */
@media (min-width: 1280px) {
    .xl\:pb-32 {
        padding-bottom: 8rem;
    }

    .xl\:mt-28 {
        margin-top: 7rem;
    }

    .xl\:gap-x-8 {
        column-gap: 2rem;
    }

    .xl\:inline {
        display: inline;
    }
}

/* SVG Icons */
svg {
    flex-shrink: 0;
}

/* FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.open {
    max-height: 500px;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 300px;
}

/* Cart notification toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Empty cart state */
.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
}

/* Apply a smooth transition for the transform property */
img.w-full.h-full.object-center.object-cover {
  transition: transform 0.3s ease-in-out; /* Adjust duration and easing as needed */
}

/* Zoom the image on hover */
img.w-full.h-full.object-center.object-cover:hover {
  transform: scale(1.1); /* Zooms the image to 110% of its original size */
}
