/*
============================================================
 DANTHAI.SHOP
 Global Theme CSS
============================================================
*/

:root {

    /* =====================================================
       BRAND COLORS
    ===================================================== */

    --primary: #028DF6;
    --primary-dark: #063DA8;
    --primary-deep: #03145F;

    --primary-light: #EDF6FF;
    --primary-soft: #F5FAFF;

    /* =====================================================
       BACKGROUND
    ===================================================== */

    --bg: #F4F7FB;
    --surface: #FFFFFF;
    --surface-soft: #F8FBFF;

    /* =====================================================
       TEXT
    ===================================================== */

    --text: #172033;
    --text-secondary: #6B7280;
    --text-muted: #94A3B8;

    /* =====================================================
       BORDER
    ===================================================== */

    --border: #E7EDF5;
    --border-light: #EDF1F7;

    /* =====================================================
       STATUS
    ===================================================== */

    --success: #22C55E;
    --success-light: #ECFDF3;

    --warning: #F59E0B;
    --warning-light: #FFF7E6;

    --danger: #EF4444;
    --danger-light: #FEF2F2;

    --info: #028DF6;
    --info-light: #EDF6FF;

    /* =====================================================
       RADIUS
    ===================================================== */

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 25px;
    --radius-pill: 999px;

    /* =====================================================
       SHADOW
    ===================================================== */

    --shadow-xs:
        0 2px 8px rgba(0, 0, 0, .04);

    --shadow-sm:
        0 5px 18px rgba(0, 0, 0, .05);

    --shadow-md:
        0 12px 30px rgba(0, 0, 0, .08);

    --shadow-lg:
        0 18px 45px rgba(0, 0, 0, .12);

    --shadow-primary:
        0 15px 35px rgba(2, 141, 246, .12);

    /* =====================================================
       TRANSITION
    ===================================================== */

    --transition:
        .25s ease;

}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    margin: 0;

    padding: 0;

    font-family:
        'Noto Sans Thai',
        sans-serif;

    background: var(--bg);

    color: var(--text);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

}


/* =========================================================
   LINKS
========================================================= */

a {

    color: inherit;

}


a:hover {

    color: inherit;

}


/* =========================================================
   IMAGES
========================================================= */

img {

    max-width: 100%;

    height: auto;

}


/* =========================================================
   CONTAINER
========================================================= */

.dan-container {

    width: min(
        1200px,
        calc(100% - 30px)
    );

    margin-left: auto;

    margin-right: auto;

}


/* =========================================================
   GLOBAL SECTION
========================================================= */

.dan-section {

    padding: 70px 0;

}


.dan-section-sm {

    padding: 45px 0;

}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {

    font-size: 28px;

    font-weight: 800;

    line-height: 1.3;

    color: var(--text);

    margin-bottom: 8px;

}


.section-description {

    color: var(--text-secondary);

    margin-bottom: 30px;

}


/* =========================================================
   PAGE HEADER
========================================================= */

.page-header {

    background:

        radial-gradient(
            circle at 85% 20%,
            rgba(255,255,255,.18),
            transparent 25%
        ),

        linear-gradient(
            135deg,
            var(--primary-deep) 0%,
            var(--primary-dark) 50%,
            var(--primary) 100%
        );

    color: #fff;

    padding: 55px 0;

    position: relative;

    overflow: hidden;

}


.page-header::before {

    content: "";

    position: absolute;

    width: 380px;

    height: 380px;

    background:
        rgba(255,255,255,.06);

    border-radius: 50%;

    top: -220px;

    right: -80px;

}


.page-header::after {

    content: "";

    position: absolute;

    width: 260px;

    height: 260px;

    background:
        rgba(255,255,255,.04);

    border-radius: 50%;

    bottom: -180px;

    left: -80px;

}


.page-header-content {

    position: relative;

    z-index: 2;

}


.page-header-title {

    margin: 0;

    font-size: clamp(
        30px,
        5vw,
        48px
    );

    font-weight: 800;

}


.page-header-description {

    margin-top: 10px;

    margin-bottom: 0;

    color:
        rgba(255,255,255,.82);

}


/* =========================================================
   HERO
========================================================= */

.hero {

    background:

        radial-gradient(
            circle at 85% 20%,
            rgba(255,255,255,.18),
            transparent 25%
        ),

        linear-gradient(
            135deg,
            var(--primary-deep) 0%,
            var(--primary-dark) 50%,
            var(--primary) 100%
        );

    color: #fff;

    min-height: 470px;

    position: relative;

    overflow: hidden;

}


.hero::before {

    content: "";

    position: absolute;

    width: 450px;

    height: 450px;

    background:
        rgba(255,255,255,.06);

    border-radius: 50%;

    top: -220px;

    right: -100px;

}


.hero::after {

    content: "";

    position: absolute;

    width: 300px;

    height: 300px;

    background:
        rgba(255,255,255,.04);

    border-radius: 50%;

    bottom: -180px;

    left: -100px;

}


.hero-content {

    position: relative;

    z-index: 2;

}


.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 16px;

    border-radius: var(--radius-pill);

    background:
        rgba(255,255,255,.13);

    border:
        1px solid rgba(255,255,255,.20);

    font-size: 14px;

    font-weight: 600;

}


.hero-title {

    font-size:
        clamp(40px, 6vw, 72px);

    font-weight: 800;

    line-height: 1.1;

}


.hero-title span {

    color: #8ED4FF;

}


.hero-description {

    max-width: 650px;

    font-size: 18px;

    line-height: 1.8;

    color:
        rgba(255,255,255,.84);

}


.hero-card {

    background:
        rgba(255,255,255,.12);

    border:
        1px solid rgba(255,255,255,.20);

    backdrop-filter: blur(15px);

    -webkit-backdrop-filter: blur(15px);

    border-radius: var(--radius-xl);

}


.hero-icon {

    width: 75px;

    height: 75px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #fff;

    color: #056FD5;

    border-radius: var(--radius-lg);

    font-size: 30px;

}


/* =========================================================
   STATUS
========================================================= */

.status-dot {

    width: 10px;

    height: 10px;

    background: #42E88A;

    border-radius: 50%;

    display: inline-block;

    flex-shrink: 0;

    box-shadow:
        0 0 12px #42E88A;

}


/* =========================================================
   CARD
========================================================= */

.dan-card {

    background: var(--surface);

    border:
        1px solid var(--border-light);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);

}


.dan-card:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow-md);

}


/* =========================================================
   MENU CARD
========================================================= */

.menu-card {

    background: var(--surface);

    border:
        1px solid var(--border-light);

    border-radius: var(--radius-lg);

    transition:
        transform var(--transition),
        box-shadow var(--transition);

}


.menu-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 15px 35px rgba(0,0,0,.10);

}


/* =========================================================
   MENU ICON
========================================================= */

.menu-icon {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 23px;

    flex-shrink: 0;

}


/* =========================================================
   CUSTOMER CARD
========================================================= */

.customer-card {

    background:

        linear-gradient(
            135deg,
            #FFFFFF,
            #F5FAFF
        );

    border:
        1px solid #E4EFFA;

    border-radius: var(--radius-lg);

    transition:
        transform var(--transition),
        box-shadow var(--transition);

}


.customer-card:hover {

    transform: translateY(-6px);

    box-shadow: var(--shadow-primary);

}


.customer-card .menu-icon {

    background: var(--primary);

    color: #fff;

}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {

    background: var(--surface);

    border:
        1px solid var(--border-light);

    border-radius: var(--radius-lg);

    overflow: hidden;

    height: 100%;

    transition:
        transform var(--transition),
        box-shadow var(--transition);

}


.product-card:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow-md);

}


.product-image {

    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    background:
        var(--surface-soft);

}


.product-body {

    padding: 20px;

}


.product-title {

    font-size: 17px;

    font-weight: 700;

    line-height: 1.5;

    color: var(--text);

}


.product-price {

    color: var(--primary);

    font-size: 22px;

    font-weight: 800;

}


/* =========================================================
   INFO BOX
========================================================= */

.info-box {

    background: var(--surface);

    border-radius: var(--radius-lg);

    border:
        1px solid var(--border-light);

    padding: 25px;

    height: 100%;

    box-shadow: var(--shadow-sm);

}


.info-icon {

    width: 50px;

    height: 50px;

    border-radius: 15px;

    background: var(--primary-light);

    color: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    margin-bottom: 15px;

}


/* =========================================================
   BUTTON
========================================================= */

.dan-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 44px;

    padding:
        10px 20px;

    border-radius: var(--radius-md);

    border: 1px solid transparent;

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);

}


.dan-btn:hover {

    transform: translateY(-2px);

}


.dan-btn-primary {

    color: #fff;

    background:

        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    box-shadow:
        0 8px 20px
        rgba(2,141,246,.20);

}


.dan-btn-primary:hover {

    color: #fff;

    box-shadow:
        0 12px 28px
        rgba(2,141,246,.28);

}


.dan-btn-light {

    color: var(--primary-dark);

    background: #fff;

}


.dan-btn-outline {

    color: var(--primary);

    background: #fff;

    border-color: var(--primary);

}


.dan-btn-danger {

    color: #fff;

    background: var(--danger);

}


/* =========================================================
   BADGE
========================================================= */

.dan-badge {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding:
        5px 10px;

    border-radius: var(--radius-pill);

    font-size: 13px;

    font-weight: 700;

}


.dan-badge-primary {

    background: var(--primary-light);

    color: var(--primary);

}


.dan-badge-success {

    background: var(--success-light);

    color: #15803D;

}


.dan-badge-warning {

    background: var(--warning-light);

    color: #B45309;

}


.dan-badge-danger {

    background: var(--danger-light);

    color: #B91C1C;

}


/* =========================================================
   FORM
========================================================= */

.dan-form-control {

    width: 100%;

    min-height: 46px;

    padding:
        10px 14px;

    background: #fff;

    border:
        1px solid var(--border);

    border-radius: var(--radius-md);

    color: var(--text);

    font-family: inherit;

    font-size: 15px;

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);

}


.dan-form-control:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(2,141,246,.10);

}


.dan-form-label {

    display: block;

    margin-bottom: 7px;

    color: var(--text);

    font-size: 14px;

    font-weight: 700;

}


/* =========================================================
   SEARCH
========================================================= */

.dan-search {

    position: relative;

}


.dan-search input {

    width: 100%;

    height: 46px;

    padding:
        10px 15px 10px 44px;

    border:
        1px solid var(--border);

    border-radius: var(--radius-pill);

    background: #fff;

    outline: none;

    font-family: inherit;

}


.dan-search i {

    position: absolute;

    left: 16px;

    top: 50%;

    transform: translateY(-50%);

    color: var(--text-muted);

}


/* =========================================================
   TABLE
========================================================= */

.dan-table-wrapper {

    width: 100%;

    overflow-x: auto;

    background: #fff;

    border:
        1px solid var(--border-light);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

}


.dan-table {

    width: 100%;

    border-collapse: collapse;

    min-width: 650px;

}


.dan-table th {

    padding: 14px 16px;

    background: var(--surface-soft);

    color: var(--text);

    font-size: 14px;

    font-weight: 800;

    text-align: left;

    white-space: nowrap;

}


.dan-table td {

    padding: 14px 16px;

    border-top:
        1px solid var(--border-light);

    color: var(--text-secondary);

    font-size: 14px;

}


/* =========================================================
   ALERT
========================================================= */

.dan-alert {

    padding: 14px 16px;

    border-radius: var(--radius-md);

    border: 1px solid transparent;

}


.dan-alert-info {

    background: var(--info-light);

    border-color: #CDE9FF;

    color: #075985;

}


.dan-alert-success {

    background: var(--success-light);

    border-color: #BBF7D0;

    color: #166534;

}


.dan-alert-warning {

    background: var(--warning-light);

    border-color: #FDE68A;

    color: #92400E;

}


.dan-alert-danger {

    background: var(--danger-light);

    border-color: #FECACA;

    color: #991B1B;

}


/* =========================================================
   EMPTY STATE
========================================================= */

.dan-empty {

    text-align: center;

    padding: 60px 20px;

    background: #fff;

    border:
        1px dashed var(--border);

    border-radius: var(--radius-lg);

}


.dan-empty-icon {

    width: 70px;

    height: 70px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 20px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 28px;

}


/* =========================================================
   AVATAR
========================================================= */

.dan-avatar {

    width: 45px;

    height: 45px;

    border-radius: 50%;

    object-fit: cover;

    background: var(--primary-light);

    border:
        2px solid #fff;

    box-shadow: var(--shadow-xs);

}


.dan-avatar-lg {

    width: 80px;

    height: 80px;

}


/* =========================================================
   DIVIDER
========================================================= */

.dan-divider {

    width: 100%;

    height: 1px;

    background: var(--border-light);

    margin: 25px 0;

}


/* =========================================================
   TEXT UTILITIES
========================================================= */

.dan-text-primary {

    color: var(--primary) !important;

}


.dan-text-muted {

    color: var(--text-secondary) !important;

}


.dan-text-success {

    color: var(--success) !important;

}


.dan-text-danger {

    color: var(--danger) !important;

}


/* =========================================================
   BACKGROUND UTILITIES
========================================================= */

.dan-bg-primary {

    background: var(--primary) !important;

}


.dan-bg-light {

    background: var(--primary-light) !important;

}


/* =========================================================
   RADIUS UTILITIES
========================================================= */

.dan-rounded {

    border-radius: var(--radius-md) !important;

}


.dan-rounded-lg {

    border-radius: var(--radius-lg) !important;

}


.dan-rounded-xl {

    border-radius: var(--radius-xl) !important;

}


/* =========================================================
   SHADOW UTILITIES
========================================================= */

.dan-shadow-sm {

    box-shadow: var(--shadow-sm) !important;

}


.dan-shadow-md {

    box-shadow: var(--shadow-md) !important;

}


.dan-shadow-lg {

    box-shadow: var(--shadow-lg) !important;

}


/* =========================================================
   HOVER
========================================================= */

.dan-hover {

    transition:
        transform var(--transition),
        box-shadow var(--transition);

}


.dan-hover:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow-md);

}


/* =========================================================
   LOADING
========================================================= */

.dan-loading {

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            #f1f5f9 25%,
            #e2e8f0 37%,
            #f1f5f9 63%
        );

    background-size: 400% 100%;

    animation:
        danLoading 1.4s ease infinite;

}


@keyframes danLoading {

    0% {

        background-position: 100% 0;

    }

    100% {

        background-position: -100% 0;

    }

}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {

    width: 8px;

    height: 8px;

}


::-webkit-scrollbar-track {

    background: #EEF2F7;

}


::-webkit-scrollbar-thumb {

    background: #B8C4D4;

    border-radius: 20px;

}


::-webkit-scrollbar-thumb:hover {

    background: var(--primary);

}


/* =========================================================
   SELECTION
========================================================= */

::selection {

    background: var(--primary);

    color: #fff;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .dan-section {

        padding: 50px 0;

    }


    .page-header {

        padding: 40px 0;

    }


    .section-title {

        font-size: 24px;

    }


    .hero {

        min-height: auto;

    }


    .hero-title {

        font-size: 42px;

    }


    .hero-description {

        font-size: 15px;

    }


    .hero-card {

        margin-top: 20px;

    }

}


@media (max-width: 576px) {

    .dan-container {

        width:
            calc(100% - 24px);

    }


    .section-title {

        font-size: 23px;

    }


    .section-description {

        font-size: 14px;

        margin-bottom: 22px;

    }


    .hero-title {

        font-size: 38px;

    }


    .hero-badge {

        font-size: 13px;

        padding:
            7px 13px;

    }


    .hero-icon {

        width: 65px;

        height: 65px;

        font-size: 26px;

    }


    .menu-card {

        border-radius: 17px;

    }


    .info-box {

        padding: 20px;

    }


    .dan-btn {

        width: 100%;

    }

}


/* =========================================================
   REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    * {

        scroll-behavior: auto !important;

        transition: none !important;

        animation: none !important;

    }

}