/* Google Fonts loaded via <link> in header.php for non-blocking delivery */

/* Retrade heading fonts */
@font-face {
    font-family: 'Retrade';
    src: url('../Font/Retrade/Retrade-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Retrade';
    src: url('../Font/Retrade/Retrade-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Retrade';
    src: url('../Font/Retrade/Retrade-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Retrade';
    src: url('../Font/Retrade/Retrade-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Retrade';
    src: url('../Font/Retrade/Retrade-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Retrade';
    src: url('../Font/Retrade/Retrade-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Retrade';
    src: url('../Font/Retrade/Retrade-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Retrade';
    src: url('../Font/Retrade/Retrade-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Retrade';
    src: url('../Font/Retrade/Retrade-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* Jeko body fonts */
@font-face {
    font-family: 'Jeko';
    src: url('../Font/jeko/jekodemo-extralight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Jeko';
    src: url('../Font/jeko/jekodemo-medium.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Jeko';
    src: url('../Font/jeko/jekodemo-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Jeko';
    src: url('../Font/jeko/jekodemo-extrabold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Jeko';
    src: url('../Font/jeko/jekodemo-extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
html.fonts-loaded {
    opacity: 1;
}

/* Custom scrollbar matching Nivora design */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #ff7f50;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e06334;
}

/* Custom text selection highlights */
::selection {
    background-color: #ff7f50;
    color: #ffffff;
}
::-moz-selection {
    background-color: #ff7f50;
    color: #ffffff;
}

body {
    font-family: 'Jeko', 'Inter', sans-serif;
    background-color: #fafafa;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Retrade', sans-serif !important;
    font-weight: 500 !important;
}

/* Custom button hover scale shadow */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hover-lift:hover {
    transform: translateY(-2px);
}

/* Custom gradient for hero background */
.gradient-hero {
    background: linear-gradient(135deg, #15803d 0%, #a3e635 100%);
}

/* Base style reset for input numbers */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type=number] {
    -moz-appearance: textfield;
}

/* Zoom effect on hover */
.img-zoom {
    transition: transform 0.5s ease;
}
.group:hover .img-zoom {
    transform: scale(1.06);
}

/* ScrollTrigger Animation Classes */
.reveal-el {
    opacity: 0;
    transform: translateY(20px);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-none {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Product card headings use Jeko body font instead of Retrade */
.product-card h3 {
    font-family: 'Jeko', sans-serif !important;
}

/* Hide elements with x-cloak until Alpine.js initializes */
[x-cloak] {
    display: none !important;
}
