/* ==========================================================================
   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
   -------------------------------------------------------------------------- */
.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;
}

/* --------------------------------------------------------------------------
   pk2f-fadein — global content-block fade-in-on-load system
   -------------------------------------------------------------------------- */
.pk2f-fadein {
    opacity: 0;
}
.pk2f-fadein.pk2f-fadein-visible {
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}


/* ==========================================================================
   GLOBAL HOME WIDGET LAYOUT SYSTEM (Master Rules for ALL Widgets)
   ========================================================================== */

/* 1. Main Section Container (Is se sare widgets ki top/bottom spacing 1 jaga se set hogi) */
.pk2f-widget-section {
    margin-bottom: 2.5rem; /* Standard Spacing: Saare widgets ka gap yahan se control hoga */
    width: 100%;
}

/* 2. Global Widget Heading Alignment & Spacing */
.pk2f-widget-heading {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 23px;
}

.pk2f-home-heading {
    text-align: center;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-size: 27px;
    color: var(--pk2f-text);
}

/* 3. Header Action Wrapper (Title + View All Link ke liye) */
.pk2f-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.pk2f-widget-header .pk2f-widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--pk2f-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pk2f-widget-header .pk2f-widget-action {
    font-size: 13px;
    font-weight: 500;
    color: var(--pk2f-accent);
    text-decoration: none;
}

.pk2f-widget-header .pk2f-widget-action:hover {
    text-decoration: underline;
}

.pk2f-widget-body {
    width: 100%;
}