/* LUXE FASHION — Custom Styles */

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #0F0F0F;
    background: #FFFFFF;
}

/* ─── Typography ───────────────────────────────────────────────────────────── */
.font-serif { font-family: 'Cormorant Garamond', Georgia, serif; }

h1, h2, h3 { line-height: 1.2; }

/* ─── Luxury Animations ─────────────────────────────────────────────────────── */
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp   { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse-soft { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.animate-fade-in  { animation: fadeIn  0.4s ease forwards; }
.animate-slide-up { animation: slideUp 0.4s ease forwards; }
.animate-slide-down { animation: slideDown 0.3s ease forwards; }
.animate-pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }

/* ─── Product Card ──────────────────────────────────────────────────────────── */
.product-card img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover img { transform: scale(1.04); }

/* ─── Form Elements ─────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.875rem 2rem;
    transition: background 0.2s ease;
}
.btn-primary:hover { background: #1a1a1a; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    color: #000;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.875rem 2rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { background: #000; color: #fff; }

/* ─── Line Clamp ─────────────────────────────────────────────────────────────── */
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* ─── Scrollbar (thin) ──────────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #a3a3a3; }

/* ─── RTL Support ───────────────────────────────────────────────────────────── */
[dir="rtl"] .font-serif  { font-family: 'Noto Serif Arabic', serif; }
[dir="rtl"] .text-right  { text-align: left; }
[dir="rtl"] .text-left   { text-align: right; }
[dir="rtl"] .ml-auto     { margin-left: 0; margin-right: auto; }
[dir="rtl"] .mr-auto     { margin-right: 0; margin-left: auto; }

/* ─── Loading State ─────────────────────────────────────────────────────────── */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}
.loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 16px; height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Product Image Gallery ─────────────────────────────────────────────────── */
#main-image {
    transition: transform 0.3s ease;
    transform-origin: center;
}

/* ─── Luxury Toast ──────────────────────────────────────────────────────────── */
.lx-toast {
    backdrop-filter: blur(8px);
}

/* ─── Admin Panel Overrides ─────────────────────────────────────────────────── */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}
.sidebar-link:hover  { color: #fff; background: rgba(255,255,255,0.1); }
.sidebar-link.active { color: #fff; background: rgba(255,255,255,0.15); }

/* ─── Has checked utility (for radio selectors) ─────────────────────────────── */
.has-\[\:checked\]\:border-black:has(:checked) { border-color: #000; }
.has-\[\:checked\]\:bg-gray-50:has(:checked)   { background: #f9fafb; }

/* ─── Prose ─────────────────────────────────────────────────────────────────── */
.prose { max-width: none; }
.prose p  { margin-bottom: 0.75rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 0.75rem; }
.prose li { margin-bottom: 0.25rem; }

/* ─── Alpine.js: hide elements before init ──────────────────────────────────── */
[x-cloak] { display: none !important; }