
/* =========================================================
   PROJECT CONTENT STYLES
   Customer Shopping Behavior Analysis
   ========================================================= */

/* ---------- 1. Page foundation ---------- */

.customer-shopping-page {
    --project-bg: #f6f7fb;
    --project-surface: #ffffff;
    --project-text: #172033;
    --project-muted: #667085;
    --project-border: #e4e7ec;
    --project-primary: #635bff;
    --project-primary-dark: #4f46e5;
    --project-soft: #eeedff;
    --project-radius: 18px;
    --project-shadow: 0 8px 28px rgba(16, 24, 40, 0.06);

    color: var(--project-text);
    background: var(--project-bg);
    font-family: "Inter", sans-serif;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.customer-shopping-page *,
.customer-shopping-page *::before,
.customer-shopping-page *::after {
    box-sizing: border-box;
}

.customer-shopping-page .container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.customer-shopping-page h1,
.customer-shopping-page h2,
.customer-shopping-page h3,
.customer-shopping-page h4,
.customer-shopping-page p {
    margin-top: 0;
}

.customer-shopping-page h1,
.customer-shopping-page h2,
.customer-shopping-page h3,
.customer-shopping-page h4 {
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.customer-shopping-page h2 {
    margin-bottom: 16px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
}

.customer-shopping-page h3 {
    font-size: 1.12rem;
    font-weight: 750;
}

.customer-shopping-page p {
    color: var(--project-muted);
}

.customer-shopping-page a {
    text-decoration: none;
}

/* ---------- 2. Hero section ---------- */

.customer-shopping-page .project-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(76px, 10vw, 124px) 0 88px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(129, 140, 248, 0.32),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 100%,
            rgba(45, 212, 191, 0.13),
            transparent 34%
        ),
        linear-gradient(135deg, #111827 0%, #1e1b4b 55%, #312e81 100%);
}

.customer-shopping-page .project-hero::after {
    position: absolute;
    z-index: -1;
    right: -110px;
    bottom: -220px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    box-shadow:
        0 0 0 40px rgba(255, 255, 255, 0.025),
        0 0 0 80px rgba(255, 255, 255, 0.025);
    content: "";
    pointer-events: none;
}

.customer-shopping-page .project-hero .container {
    position: relative;
    z-index: 1;
}

.customer-shopping-page .project-hero .project-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #c4b5fd;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.customer-shopping-page .project-hero .project-label::before {
    width: 25px;
    height: 2px;
    background: #a5b4fc;
    content: "";
}

.customer-shopping-page .project-hero h1 {
    max-width: 900px;
    margin-bottom: 24px;
    color: #ffffff;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.08;
}

.customer-shopping-page .project-hero .container > p:not(.project-label) {
    max-width: 730px;
    margin-bottom: 32px;
    color: #d1d5e5;
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.9;
}

/* ---------- 3. Action buttons ---------- */

.customer-shopping-page .dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.customer-shopping-page .dashboard-actions .btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 21px;
    border: 1px solid var(--project-primary);
    border-radius: 10px;
    background: var(--project-primary);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.customer-shopping-page .dashboard-actions .btn:hover {
    transform: translateY(-2px);
    border-color: var(--project-primary-dark);
    background: var(--project-primary-dark);
    box-shadow: 0 8px 20px rgba(99, 91, 255, 0.22);
}

.customer-shopping-page .dashboard-actions .btn:focus-visible {
    outline: 3px solid #a5b4fc;
    outline-offset: 4px;
}

.customer-shopping-page .project-hero .dashboard-actions .btn {
    border-color: #ffffff;
    background: #ffffff;
    color: #312e81;
}

.customer-shopping-page .project-hero .dashboard-actions .btn:hover {
    border-color: #e0e7ff;
    background: #e0e7ff;
}

.customer-shopping-page .project-hero .dashboard-actions .btn.secondary {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.customer-shopping-page .project-hero .dashboard-actions .btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ---------- 4. Main project area ---------- */

.customer-shopping-page .project-details {
    padding: 36px 0 90px;
    background: var(--project-bg);
}

.customer-shopping-page .sales-section {
    margin-bottom: 28px;
    padding: clamp(26px, 4vw, 48px);
    border: 1px solid var(--project-border);
    border-radius: var(--project-radius);
    background: var(--project-surface);
    box-shadow: var(--project-shadow);
}

.customer-shopping-page .sales-section:last-child {
    margin-bottom: 0;
}

.customer-shopping-page .sales-section > .project-label,
.customer-shopping-page .readme-box > .project-label {
    margin-bottom: 13px;
    color: var(--project-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.customer-shopping-page .overview-subtitle {
    max-width: 780px;
    margin-bottom: 28px;
    color: var(--project-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.customer-shopping-page .readme-box {
    max-width: 100%;
}

.customer-shopping-page .readme-box > p:not(.project-label) {
    line-height: 1.9;
}

.customer-shopping-page .section-title {
    margin-top: 32px;
    margin-bottom: 16px;
}

/* ---------- 5. Business questions and recommendations ---------- */

.customer-shopping-page ul.key-insights {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.customer-shopping-page ul.key-insights li {
    position: relative;
    padding: 14px 16px 14px 43px;
    border: 1px solid var(--project-border);
    border-radius: 11px;
    background: var(--project-bg);
    color: var(--project-text);
    line-height: 1.7;
}

.customer-shopping-page ul.key-insights li::before {
    position: absolute;
    top: 14px;
    left: 16px;
    color: var(--project-primary);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00c";
}

/* ---------- 6. Project workflow ---------- */

.customer-shopping-page .flow-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.customer-shopping-page .flow-step {
    position: relative;
    min-width: 0;
    padding: 23px 18px;
    border: 1px solid var(--project-border);
    border-radius: 15px;
    background: var(--project-bg);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.customer-shopping-page .flow-step:hover {
    transform: translateY(-4px);
    border-color: #c7d2fe;
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.07);
}

.customer-shopping-page .flow-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 13px;
    background: var(--project-soft);
    font-size: 1.45rem;
}

.customer-shopping-page .flow-step h4 {
    margin-bottom: 10px;
    color: var(--project-text);
    font-size: 0.98rem;
    letter-spacing: -0.02em;
}

.customer-shopping-page .flow-step p {
    margin-bottom: 0;
    font-size: 0.88rem;
    line-height: 1.75;
}

/* ---------- 7. KPI cards ---------- */

.customer-shopping-page .kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.customer-shopping-page .kpi-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 26px 22px;
    border: 1px solid var(--project-border);
    border-radius: 15px;
    background: var(--project-surface);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.customer-shopping-page .kpi-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--project-primary),
        #22d3ee
    );
    content: "";
}

.customer-shopping-page .kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(16, 24, 40, 0.08);
}

.customer-shopping-page .kpi-card h3 {
    margin-bottom: 16px;
    color: var(--project-muted);
    font-size: 0.88rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.6;
}

.customer-shopping-page .kpi-card p {
    margin-bottom: 0;
    color: var(--project-text);
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* ---------- 8. Findings cards ---------- */

/* The findings section uses a div with class="key-insights". */
.customer-shopping-page div.key-insights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 26px 0;
}

.customer-shopping-page div.key-insights > div {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--project-border);
    border-radius: 14px;
    background: var(--project-bg);
    transition:
        transform 180ms ease,
        border-color 180ms ease;
}

.customer-shopping-page div.key-insights > div:hover {
    transform: translateY(-3px);
    border-color: #c7d2fe;
}

.customer-shopping-page div.key-insights h3 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--project-text);
    font-size: 1.05rem;
}

.customer-shopping-page div.key-insights h3::before {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--project-primary);
    content: "";
}

.customer-shopping-page div.key-insights p {
    margin-bottom: 0;
    font-size: 0.94rem;
    line-height: 1.85;
}

/* ---------- 9. Tools and technologies ---------- */

.customer-shopping-page .tools-logos {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.customer-shopping-page .tool-item {
    display: flex;
    min-width: 0;
    min-height: 145px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 12px;
    border: 1px solid var(--project-border);
    border-radius: 14px;
    background: var(--project-surface);
    text-align: center;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.customer-shopping-page .tool-item:hover {
    transform: translateY(-4px);
    border-color: #c7d2fe;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.06);
}

.customer-shopping-page .tool-item img {
    display: block;
    width: 52px;
    height: 52px;
    max-width: 100%;
    object-fit: contain;
}

.customer-shopping-page .tool-item span {
    color: var(--project-text);
    font-size: 0.88rem;
    font-weight: 700;
}

/* ---------- 10. Dashboard preview ---------- */

.customer-shopping-page .dashboard-image {
    overflow: hidden;
    margin-top: 28px;
    border: 1px solid var(--project-border);
    border-radius: 15px;
    background: var(--project-surface);
    box-shadow: 0 14px 35px rgba(16, 24, 40, 0.09);
}

.customer-shopping-page .dashboard-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 780px;
    object-fit: contain;
    object-position: center;
}

/* ---------- 11. Project resources ---------- */

.customer-shopping-page #dashboard {
    scroll-margin-top: 100px;
}

.customer-shopping-page .sales-section .dashboard-actions {
    margin-top: 24px;
}

/* ---------- 12. Dark mode ---------- */

body.dark-mode .customer-shopping-page {
    --project-bg: #111827;
    --project-surface: #1f2937;
    --project-text: #f3f4f6;
    --project-muted: #b0bac9;
    --project-border: #374151;
    --project-primary: #a5b4fc;
    --project-primary-dark: #818cf8;
    --project-soft: #312e81;
    --project-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

body.dark-mode .customer-shopping-page .dashboard-actions .btn {
    color: #111827;
}

body.dark-mode .customer-shopping-page .project-hero .dashboard-actions .btn {
    background: #ffffff;
    color: #312e81;
}

body.dark-mode .customer-shopping-page .project-hero .dashboard-actions .btn.secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

body.dark-mode .customer-shopping-page .flow-step,
body.dark-mode .customer-shopping-page ul.key-insights li,
body.dark-mode .customer-shopping-page div.key-insights > div {
    background: #182230;
}

body.dark-mode .customer-shopping-page .kpi-card,
body.dark-mode .customer-shopping-page .tool-item {
    background: var(--project-surface);
}

body.dark-mode .customer-shopping-page .flow-step:hover,
body.dark-mode .customer-shopping-page div.key-insights > div:hover,
body.dark-mode .customer-shopping-page .tool-item:hover {
    border-color: #6366f1;
}

body.dark-mode .customer-shopping-page .dashboard-image {
    background: #ffffff;
}

/* ---------- 13. Tablet layouts ---------- */

@media (max-width: 1000px) {
    .customer-shopping-page .flow-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .customer-shopping-page .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-shopping-page .tools-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------- 14. Mobile layouts ---------- */

@media (max-width: 640px) {
    .customer-shopping-page .container {
        width: min(100% - 32px, 1160px);
    }

    .customer-shopping-page .project-hero {
        padding: 68px 0 64px;
    }

    .customer-shopping-page .project-hero h1 {
        font-size: clamp(2.15rem, 10vw, 3.2rem);
    }

    .customer-shopping-page .project-hero .container > p:not(.project-label) {
        font-size: 1rem;
    }

    .customer-shopping-page .project-details {
        padding: 20px 0 48px;
    }

    .customer-shopping-page .sales-section {
        margin-bottom: 18px;
        padding: 24px 18px;
        border-radius: 14px;
    }

    .customer-shopping-page .flow-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .customer-shopping-page .flow-step {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        column-gap: 14px;
        align-items: start;
        padding: 18px;
    }

    .customer-shopping-page .flow-icon {
        grid-row: span 2;
        width: 46px;
        height: 46px;
        margin-bottom: 0;
    }

    .customer-shopping-page .flow-step h4 {
        margin: 2px 0 7px;
    }

    .customer-shopping-page .flow-step p {
        grid-column: 2;
    }

    .customer-shopping-page .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .customer-shopping-page .kpi-card {
        padding: 20px 15px;
    }

    .customer-shopping-page .kpi-card h3 {
        font-size: 0.8rem;
    }

    .customer-shopping-page .kpi-card p {
        font-size: clamp(1.25rem, 6vw, 1.7rem);
    }

    .customer-shopping-page div.key-insights {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .customer-shopping-page div.key-insights > div {
        padding: 20px;
    }

    .customer-shopping-page .tools-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .customer-shopping-page .tool-item {
        min-height: 125px;
        padding: 16px 10px;
    }

    .customer-shopping-page .tool-item img {
        width: 44px;
        height: 44px;
    }

    .customer-shopping-page .dashboard-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-shopping-page .dashboard-actions .btn {
        width: 100%;
    }
}

/* ---------- 15. Reduced motion accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    .customer-shopping-page *,
    .customer-shopping-page *::before,
    .customer-shopping-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* ==========================================
   2. EXPENSE ANALYSIS
========================================== */

/* .expense-analysis-page {
  
} */


/* ==========================================
   3. CUSTOMER ANALYSIS
========================================== */

/* .customer-analysis-page {
   }
 */

/* ==========================================
   4. SALES ANALYSIS
========================================== */

/* .sales-analysis-page { */
    /* Sales Analysis styles */
/* } */
