/* ============================================================
   Aromatic Hug — Global Stylesheet
   Pure CSS (no @apply — not compatible with Tailwind CDN)
   ============================================================ */

/* ---- Fonts ---- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif, h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #D18E50; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5A3C17; }

/* ---- Scroll Reveal Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay helpers */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ---- Hero keyframe animations ---- */
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in    { animation: fade-in    0.9s ease-in-out both; }
.animate-slide-down { animation: slide-down 0.9s ease-out both; }
.animate-slide-up   { animation: slide-up   0.9s ease-out both; }

/* ---- Toast Notification ---- */
#toast-container {
    position: fixed;
    top: 120px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    pointer-events: auto;
    animation: toast-in 0.35s ease both;
    max-width: 320px;
}

.toast.success { background: #2d6a4f; }
.toast.error   { background: #c0392b; }
.toast.info    { background: #5A3C17; }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

.toast.removing { animation: toast-out 0.3s ease both; }

/* ---- Product Cards ---- */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #fff;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.product-card:hover {
    box-shadow: 0 16px 48px rgba(90, 60, 23, 0.18);
    transform: translateY(-4px);
}

.product-card img {
    transition: transform 0.6s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

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

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Customisation Option Cards ---- */
.option-card {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    transition: border-color 0.25s, background 0.25s, transform 0.2s;
    user-select: none;
    font-size: 13px;
    font-weight: 500;
    color: #5A3C17;
    background: #fdf6ef;
}

.option-card:hover {
    border-color: #E8742A;
    background: #fff4eb;
    transform: scale(1.03);
}

.option-card.selected {
    border-color: #E8742A;
    background: #fff4eb;
    color: #E8742A;
}

/* Color swatch option */
.color-swatch-card {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    transition: border-color 0.25s, transform 0.2s;
}

.color-swatch-card:hover,
.color-swatch-card.selected {
    border-color: #E8742A;
    transform: scale(1.05);
}

/* ---- Admin Table ---- */
.admin-table th {
    background: #5A3C17;
    color: #FFE0CC;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3e8dc;
    vertical-align: middle;
    font-size: 14px;
    color: #444;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fdf6ef; }

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fade-in 0.2s ease both;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
    animation: slide-up 0.3s ease both;
}

/* ---- Aspect ratio helper ---- */
.aspect-4\/5 { aspect-ratio: 4 / 5; }
.aspect-square { aspect-ratio: 1 / 1; }

/* ---- Input focus ring ---- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 116, 42, 0.25);
    border-color: #E8742A !important;
}

/* ---- Responsive utilities ---- */
@media (max-width: 768px) {
    .hide-mobile { display: none; }
}
