/* ==========================================================================
   PK2Shop Frontend Master Stylesheet — STRUCTURE ONLY
   Used by: app/Views/ecom/layouts/frontend-master.php
   Prefix: pk2f- (frontend equivalent of admin's pk2- prefix)
   Note: Storefront uses direct hex values, not CSS variables like admin

   RULE: This file holds ONLY global reset, root variables, and base
   structure (body, content wrapper, lazyfade system). Component-specific
   styles (header, footer, widgets, product-grid, etc.) each get their
   own dedicated CSS file — never added here.

   FONT RULE: Site-wide font is defined ONCE here via --pk2f-font.
   Every component must use var(--pk2f-font) — never hardcode a
   font-family in a component CSS file.
   ========================================================================== */

:root {
    --pk2f-primary: #1a1a1a;
    --pk2f-accent: #c9a15a;
    --pk2f-bg: #ffffff;
    --pk2f-text: #222222;

    /* Site-wide font — loaded via ecom/imports/font_import in frontend-master.php <head> */
    --pk2f-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--pk2f-font);
    background: var(--pk2f-bg);
    color: var(--pk2f-text);
}

.pk2f-content {
    min-height: 60vh;
}

/* --------------------------------------------------------------------------
   pk2f-lazyfade — global lazy image fade-in system
   Trigger: img.pk2f-lazyfade[data-src]
   JS in frontend-master.php sets src from data-src and adds pk2f-loaded on load
   -------------------------------------------------------------------------- */
.pk2f-lazyfade {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.pk2f-lazyfade.pk2f-loaded {
    opacity: 1;
}

.pk2f-announcement {
    background-color: #222;
    color: #fff;
    font-size: 14px;
    padding: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: .5s fadeIn;
    text-align: center;
    /* font-family removed — inherits var(--pk2f-font) from body */
}


/* --------------------------------------------------------------------------
   pk2f-fadein — global content-block fade-in-on-load system
   Trigger: any element with class pk2f-fadein
   JS in frontend-master.php adds pk2f-fadein-visible shortly after load
   Usage: <div class="container pk2f-fadein"> ... </div>
   -------------------------------------------------------------------------- */
.pk2f-fadein {
    opacity: 0;
}
.pk2f-fadein.pk2f-fadein-visible {
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}