/* =========================================================
   PJ MARKET
   PREMIUM E-COMMERCE DESIGN SYSTEM
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f8fa;
    color: #172033;
    line-height: 1.6;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);

    border-bottom: 1px solid #e8ebf0;

    box-shadow:
        0 4px 20px rgba(20, 30, 50, 0.04);
}

.nav {
    min-height: 76px;

    display: flex;
    align-items: center;

    gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #172033;

    font-size: 22px;
    font-weight: 900;

    letter-spacing: -0.7px;
}

.logo b {
    color: #2563eb;
}

.logo-mark {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1747b5
        );

    color: #ffffff;

    font-size: 12px;
    font-weight: 900;

    box-shadow:
        0 8px 22px rgba(37, 99, 235, 0.22);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav-menu {
    display: flex;

    gap: 27px;

    margin-left: auto;
}

.nav-menu a {
    position: relative;

    color: #667085;

    font-size: 14px;
    font-weight: 600;

    transition: 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2563eb;
}

.nav-menu a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -10px;

    height: 2px;

    border-radius: 5px;

    background: #2563eb;
}


/* =========================================================
   NAV ACTIONS
   ========================================================= */

.nav-actions {
    display: flex;
    align-items: center;

    gap: 9px;
}

.icon-btn,
.cart-btn {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e1e5eb;

    border-radius: 11px;

    background: #ffffff;

    color: #344054;

    transition: 0.2s;
}

.icon-btn:hover,
.cart-btn:hover {
    border-color: #b8c7e6;

    background: #f4f7ff;

    color: #2563eb;
}

.cart-btn {
    position: relative;
}

#cartCount {
    position: absolute;

    top: -7px;
    right: -7px;

    min-width: 19px;
    height: 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #2563eb;

    color: #ffffff;

    font-size: 10px;
    font-weight: bold;
}

.login-btn {
    padding: 10px 16px;

    border-radius: 10px;

    border: 1px solid #dbe1ea;

    background: #ffffff;

    color: #344054;

    font-size: 13px;
    font-weight: 700;

    transition: 0.2s;
}

.login-btn:hover {
    border-color: #2563eb;

    color: #2563eb;

    background: #f5f8ff;
}


/* =========================================================
   SEARCH OVERLAY
   ========================================================= */

.search-overlay {
    position: fixed;

    inset: 0;

    z-index: 3000;

    display: none;

    justify-content: center;
    align-items: flex-start;

    padding-top: 110px;

    background: rgba(15, 23, 42, 0.48);

    backdrop-filter: blur(10px);
}

.search-overlay.active {
    display: flex;
}

.search-box {
    position: relative;

    width: 90%;
    max-width: 650px;

    padding: 32px;

    border: 1px solid #e2e7ef;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.18);
}

.search-box h2 {
    margin: 8px 0 20px;

    color: #172033;
}

.search-box input {
    width: 100%;

    padding: 15px 16px;

    outline: none;

    color: #172033;

    border: 1px solid #d9dee7;

    border-radius: 11px;

    background: #f8fafc;

    transition: 0.2s;
}

.search-box input:focus {
    border-color: #2563eb;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.08);
}

.close-search {
    position: absolute;

    top: 13px;
    right: 18px;

    border: 0;

    background: none;

    color: #667085;

    font-size: 30px;

    transition: 0.2s;
}

.close-search:hover {
    color: #172033;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 650px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(37, 99, 235, 0.08),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #ffffff,
            #f7f9fc
        );
}

.hero-grid {
    display: grid;

    grid-template-columns:
        1.05fr 0.95fr;

    gap: 55px;

    align-items: center;
}

.hero-badge {
    display: inline-block;

    padding: 8px 14px;

    border: 1px solid #d9e3fa;

    border-radius: 50px;

    background: #f3f7ff;

    color: #2563eb;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.4px;
}

.hero h1 {
    max-width: 700px;

    margin-top: 22px;

    color: #101828;

    font-size: clamp(44px, 6vw, 74px);

    line-height: 0.99;

    letter-spacing: -4px;
}

.hero h1 span {
    color: #2563eb;
}

.hero p {
    max-width: 580px;

    margin-top: 25px;

    color: #667085;

    font-size: 17px;
}

.hero-buttons {
    display: flex;

    gap: 12px;

    margin-top: 30px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 13px 21px;

    border-radius: 11px;

    font-size: 14px;
    font-weight: 800;

    transition: 0.25s;
}

.primary {
    color: #ffffff;

    background: #2563eb;

    box-shadow:
        0 10px 28px rgba(37, 99, 235, 0.2);
}

.primary:hover {
    transform: translateY(-2px);

    background: #1d4ed8;

    box-shadow:
        0 14px 32px rgba(37, 99, 235, 0.25);
}

.secondary {
    color: #344054;

    background: #ffffff;

    border: 1px solid #dce2ea;
}

.secondary:hover {
    transform: translateY(-2px);

    border-color: #b7c8e8;

    background: #f8faff;

    color: #2563eb;
}


/* =========================================================
   TRUST ROW
   ========================================================= */

.trust-row {
    display: flex;

    gap: 38px;

    margin-top: 45px;
}

.trust-item {
    display: flex;

    flex-direction: column;
}

.trust-item strong {
    color: #172033;

    font-size: 20px;
}

.trust-item span {
    color: #8a94a6;

    font-size: 12px;
}


/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual {
    min-height: 470px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.glow {
    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: #2563eb;

    filter: blur(120px);

    opacity: 0.08;
}

.hero-product {
    width: 370px;
    height: 440px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: column;

    overflow: hidden;

    border: 1px solid #e0e6ef;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f1f5f9
        );

    box-shadow:
        0 30px 80px rgba(30, 50, 80, 0.12);
}

.hero-product-icon {
    width: 210px;
    height: 210px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #eaf1ff,
            #dbe7ff
        );

    font-size: 65px;

    box-shadow:
        0 20px 60px rgba(37, 99, 235, 0.12);
}

.hero-product-text {
    display: flex;

    flex-direction: column;

    align-items: center;

    margin-top: 25px;
}

.hero-product-text span {
    color: #2563eb;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 2px;
}

.hero-product-text strong {
    margin-top: 5px;

    color: #172033;

    font-size: 22px;
}

.hero-product-text small {
    color: #8a94a6;
}

.floating-tag {
    position: absolute;

    padding: 9px 13px;

    border: 1px solid #e0e5ed;

    border-radius: 50px;

    background: #ffffff;

    color: #344054;

    font-size: 11px;

    box-shadow:
        0 8px 25px rgba(30, 50, 80, 0.08);
}

.tag-1 {
    top: 35px;
    left: 25px;
}

.tag-2 {
    right: 25px;
    bottom: 45px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 90px 0;

    background: #ffffff;
}

.section-heading {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 28px;
}

.section-heading.center {
    display: block;

    text-align: center;
}

.section-heading h2 {
    margin-top: 7px;

    color: #101828;

    font-size: 34px;

    letter-spacing: -1.5px;
}

.section-heading p {
    margin-top: 10px;

    color: #667085;
}

.section-heading > a,
.view-all {
    border: 0;

    background: none;

    color: #2563eb;

    font-weight: bold;

    cursor: pointer;
}

.section-heading > a:hover,
.view-all:hover {
    color: #1d4ed8;
}

.section-label {
    color: #2563eb;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 2px;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 15px;
}

.category-card {
    min-height: 165px;

    padding: 25px;

    text-align: left;

    border: 1px solid #e5e9ef;

    border-radius: 17px;

    background: #ffffff;

    color: #172033;

    box-shadow:
        0 5px 20px rgba(20, 30, 50, 0.04);

    transition: 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);

    border-color: #c8d6f2;

    background: #fbfdff;

    box-shadow:
        0 16px 35px rgba(30, 60, 100, 0.09);
}

.category-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 13px;

    background: #f1f5ff;

    color: #2563eb;

    font-size: 23px;
}

.category-card h3 {
    color: #172033;

    font-size: 16px;
}

.category-card p {
    margin-top: 3px;

    color: #8a94a6;

    font-size: 12px;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.products-section {
    background: #f7f9fc;
}

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.product-card {
    overflow: hidden;

    border: 1px solid #e3e7ed;

    border-radius: 17px;

    background: #ffffff;

    box-shadow:
        0 5px 20px rgba(20, 30, 50, 0.04);

    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);

    border-color: #cbd7ee;

    box-shadow:
        0 18px 40px rgba(30, 50, 80, 0.10);
}

.product-image {
    aspect-ratio: 1 / 1;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #eef2f7
        );
} .product-image img {
    width: 100%;
    height: 100%;
    padding: 18px;
    display: block;
    object-fit: contain;
    object-position: center;
}

.product-placeholder {
    font-size: 55px;
}

.product-badge {
    position: absolute;

    top: 12px;
    left: 12px;

    padding: 5px 9px;

    border-radius: 50px;

    background: #2563eb;

    color: #ffffff;

    font-size: 9px;
    font-weight: 900;
}

.product-body {
    padding: 17px;
}

.product-category {
    color: #8a94a6;

    font-size: 11px;
}

.product-name {
    margin-top: 5px;

    color: #172033;

    font-size: 16px;
}

.product-description {
    margin-top: 5px;

    color: #7b8495;

    font-size: 12px;
}

.product-bottom {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-top: 18px;
}

.price-not-set {
    color: #8a94a6;

    font-size: 12px;
}

.add-cart {
    width: 36px;
    height: 36px;

    border: 1px solid #dce3ed;

    border-radius: 9px;

    background: #f8fafc;

    color: #344054;

    font-size: 20px;

    transition: 0.2s;
}

.add-cart:hover {
    border-color: #2563eb;

    background: #2563eb;

    color: #ffffff;
}


/* =========================================================
   WHY US
   ========================================================= */

.why-section {
    background: #ffffff;
}

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-top: 35px;
}

.feature-card {
    padding: 26px;

    border: 1px solid #e5e9ef;

    border-radius: 17px;

    background: #ffffff;

    box-shadow:
        0 5px 20px rgba(20, 30, 50, 0.04);

    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);

    border-color: #cbd7ee;

    box-shadow:
        0 15px 35px rgba(30, 50, 80, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border-radius: 13px;

    background: #f1f5ff;

    font-size: 25px;
}

.feature-card h3 {
    color: #172033;

    font-size: 16px;
}

.feature-card p {
    margin-top: 7px;

    color: #7d8798;

    font-size: 13px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding-top: 60px;

    border-top: 1px solid #e3e7ed;

    background: #101828;

    color: #ffffff;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 40px;

    padding-bottom: 50px;
}

.footer .logo {
    color: #ffffff;
}

.footer .logo b {
    color: #60a5fa;
}

.footer p {
    margin-top: 15px;

    color: #98a2b3;

    font-size: 13px;
}

.footer h4 {
    margin-bottom: 15px;

    color: #ffffff;
}

.footer-grid > div:not(:first-child) {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.footer-grid a:not(.logo) {
    color: #98a2b3;

    font-size: 13px;

    transition: 0.2s;
}

.footer-grid a:hover {
    color: #60a5fa;
}

.footer-bottom {
    padding: 20px;

    border-top: 1px solid #253047;

    color: #667085;

    text-align: center;

    font-size: 12px;
}


/* =========================================================
   PROFILE PAGE
   ========================================================= */

.profile-page {
    min-height: 75vh;

    padding: 70px 20px;

    display: flex;

    justify-content: center;
    align-items: flex-start;

    background: #f7f9fc;
}

.profile-card {
    width: 100%;
    max-width: 600px;

    padding: 40px;

    border-radius: 22px;

    background: #ffffff;

    border: 1px solid #e3e7ed;

    box-shadow:
        0 15px 45px rgba(30, 50, 80, 0.08);
}

.profile-icon {
    width: 80px;
    height: 80px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 35px;

    background: #eef4ff;

    border: 1px solid #d5e1fa;
}

.profile-card h1 {
    text-align: center;

    color: #172033;

    margin: 0;

    font-size: 32px;
}

.profile-subtitle {
    text-align: center;

    color: #7b8495;

    margin: 8px 0 30px;
}

.profile-info {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.profile-row {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 16px;

    border-radius: 12px;

    background: #f8fafc;

    border: 1px solid #e5e9ef;
}

.profile-label {
    color: #7b8495;
}

.profile-row strong {
    color: #172033;

    text-align: right;

    word-break: break-word;
}

.profile-actions {
    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 30px;
}

.profile-action-btn,
.profile-logout-btn {
    width: 100%;

    box-sizing: border-box;

    padding: 14px;

    border-radius: 11px;

    text-align: center;

    text-decoration: none;

    font-weight: 600;

    cursor: pointer;

    font-family: inherit;

    font-size: 15px;

    transition: 0.2s;
}

.profile-action-btn {
    color: #ffffff;

    background: #2563eb;

    border: none;
}

.profile-action-btn:hover {
    background: #1d4ed8;
}

.profile-action-btn.secondary {
    color: #344054;

    background: #ffffff;

    border: 1px solid #dce3ed;
}

.profile-action-btn.secondary:hover {
    color: #2563eb;

    border-color: #b8c8e6;

    background: #f7faff;
}

.profile-logout-btn {
    color: #dc2626;

    background: #fff7f7;

    border: 1px solid #f1cccc;
}

.profile-logout-btn:hover {
    background: #fff0f0;

    border-color: #e7a9a9;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

    .nav-menu {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 70px 0;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-row {
        justify-content: center;
    }

    .category-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .feature-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 650px) {

    .container {
        width: 94%;
    }

    .login-btn {
        display: none;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 48px;

        letter-spacing: -2.5px;
    }

    .hero-product {
        width: 290px;
        height: 360px;
    }

    .hero-product-icon {
        width: 180px;
        height: 180px;
    }

    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .section {
        padding: 70px 0;
    }
}


@media (max-width: 430px) {

    .nav {
        gap: 10px;
    }

    .logo {
        font-size: 19px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .nav-actions {
        margin-left: auto;
    }

    .hero h1 {
        font-size: 41px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .trust-row {
        gap: 22px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;

        gap: 15px;

        flex-direction: column;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .profile-page {
        padding: 40px 15px;
    }

    .profile-card {
        padding: 25px 18px;
    }

    .profile-card h1 {
        font-size: 26px;
    }

    .profile-row {
        flex-direction: column;

        gap: 6px;
    }

    .profile-row strong {
        text-align: left;
    }
}/* =========================================================
   PJ MARKET
   PREMIUM PRODUCTS PAGE
   ========================================================= */


/* =========================================================
   PRODUCTS PAGE
   ========================================================= */

.products-page {
    padding: 82px 0 110px;
    min-height: 70vh;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.products-page-header {
    margin-bottom: 48px;
}


.products-page-header h1 {
    margin-top: 12px;
    font-size: clamp(40px, 6vw, 62px);
    line-height: 1.05;
    letter-spacing: -2.8px;
    font-weight: 800;
}


.products-page-header p {
    max-width: 650px;
    margin: 17px auto 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.75;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e7eaf0;
}


/* =========================================================
   FILTER BAR
   ========================================================= */

.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}


.filter-btn {
    appearance: none;
    border: 1px solid #e1e5ec;
    background: #ffffff;
    color: #667085;
    padding: 10px 17px;
    min-height: 41px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}


.filter-btn:hover {
    color: #2563eb;
    border-color: #b9cdfb;
    background: #f8fbff;
    transform: translateY(-1px);
}


.filter-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;

    box-shadow:
        0 7px 18px rgba(37, 99, 235, .18);
}


.filter-btn.active:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
}


/* =========================================================
   PRODUCT COUNT
   ========================================================= */

.product-count {
    flex-shrink: 0;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}


.product-count strong {
    color: #172033;
    font-weight: 800;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.products-page-grid {
    align-items: stretch;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.products-page-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e8ebf1;
    border-radius: 18px;

    box-shadow:
        0 4px 16px rgba(16, 24, 40, .045);

    opacity: 0;

    animation:
        productCardReveal .55s cubic-bezier(.22, 1, .36, 1)
        var(--card-delay)
        forwards;

    transition:
        transform .3s cubic-bezier(.22, 1, .36, 1),
        box-shadow .3s ease,
        border-color .3s ease;
}


.products-page-card:hover {
    transform: translateY(-6px);

    border-color: #d9e2f4;

    box-shadow:
        0 18px 45px rgba(16, 24, 40, .10);
}


@keyframes productCardReveal {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   PRODUCT LINK
   ========================================================= */

.products-page-card .product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.products-page-card .product-image {
    position: relative;
    height: 280px;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #eef2f7
        );
}


.products-page-card .product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .55s cubic-bezier(.22, 1, .36, 1);
}


.products-page-card:hover .product-image img {
    transform: scale(1.045);
}


/* =========================================================
   IMAGE OVERLAY
   ========================================================= */

.product-image-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            to top,
            rgba(15, 23, 42, .28),
            rgba(15, 23, 42, 0)
        );

    opacity: 0;

    transition:
        opacity .3s ease;
}


.product-image-overlay span {
    padding: 9px 15px;

    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;

    background: rgba(255, 255, 255, .94);
    color: #172033;

    font-size: 12px;
    font-weight: 800;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .12);

    transform: translateY(7px);

    transition:
        transform .3s ease;
}


.products-page-card:hover .product-image-overlay {
    opacity: 1;
}


.products-page-card:hover .product-image-overlay span {
    transform: translateY(0);
}


/* =========================================================
   PRODUCT BADGE
   ========================================================= */

.products-page-card .product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;

    display: inline-flex;
    align-items: center;

    min-height: 28px;
    padding: 5px 10px;

    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 999px;

    background: rgba(255, 255, 255, .94);
    color: #2563eb;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .2px;

    box-shadow:
        0 5px 16px rgba(16, 24, 40, .10);

    backdrop-filter: blur(8px);
}


/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.products-page-card .product-info {
    padding: 19px 18px 5px;
}


.product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 8px;
}


.product-category {
    color: #2563eb;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .65px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.product-stock {
    flex-shrink: 0;

    font-size: 10px;
    font-weight: 700;
}


.product-stock.in-stock {
    color: #16a34a;
}


.product-stock.out-stock {
    color: #dc2626;
}


.products-page-card .product-info h3 {
    margin: 0;

    color: #172033;

    font-size: 18px;
    line-height: 1.35;

    font-weight: 800;

    letter-spacing: -.35px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


.products-page-card .product-info p {
    margin: 9px 0 0;

    color: #667085;

    font-size: 13px;
    line-height: 1.6;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   PRODUCT PRICE
   ========================================================= */

.product-price-row {
    margin-top: 15px;
}


.product-pricing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 9px;
}


.product-current-price {
    color: #172033;

    font-size: 20px;
    line-height: 1;

    font-weight: 900;

    letter-spacing: -.4px;
}


.product-old-price {
    color: #98a2b3;

    font-size: 12px;
    font-weight: 600;

    text-decoration: line-through;
}


/* =========================================================
   PRODUCT ACTION
   ========================================================= */

.product-card-actions {
    margin-top: auto;
    padding: 14px 18px 18px;
}


.products-page-card .add-to-cart-btn {
    width: 100%;
    min-height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 0;
    border-radius: 11px;

    cursor: pointer;

    font-size: 13px;
    font-weight: 800;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.products-page-card .add-to-cart-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 22px rgba(37, 99, 235, .20);
}


.products-page-card .add-to-cart-btn:active {
    transform: translateY(0);
}


.products-page-card .add-to-cart-btn:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
    box-shadow: none;
}


.cart-button-icon {
    font-size: 14px;
    line-height: 1;
}


.cart-added {
    background: #16a34a !important;
    box-shadow:
        0 8px 22px rgba(22, 163, 74, .20) !important;
}


.cart-added .cart-button-icon {
    animation:
        cartCheckPop .35s ease;
}


@keyframes cartCheckPop {

    0% {
        transform: scale(.7);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }

}


/* =========================================================
   LOADING STATE
   ========================================================= */

.products-loading,
.products-error,
.products-empty {
    grid-column: 1 / -1;

    min-height: 330px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 50px 25px;

    text-align: center;

    border: 1px dashed #d9dee8;
    border-radius: 18px;

    background: #ffffff;
}


.products-loading h3,
.products-error h3,
.products-empty h3 {
    margin: 15px 0 0;

    color: #172033;

    font-size: 20px;
    font-weight: 800;
}


.products-loading p,
.products-error p,
.products-empty p {
    max-width: 450px;

    margin: 8px 0 0;

    color: #667085;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   LOADER
   ========================================================= */

.products-loader {
    width: 38px;
    height: 38px;

    border: 3px solid #e7edf8;
    border-top-color: #2563eb;

    border-radius: 50%;

    animation:
        productsSpin .8s linear infinite;
}


@keyframes productsSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   STATE ICON
   ========================================================= */

.products-state-icon {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #f1f5ff;

    font-size: 27px;
}


/* =========================================================
   RETRY BUTTON
   ========================================================= */

.products-retry-btn {
    margin-top: 20px;

    padding: 10px 18px;

    border: 0;
    border-radius: 9px;

    background: #2563eb;
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.products-retry-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, .18);
}


/* =========================================================
   PRODUCT NOTIFICATION
   ========================================================= */

#pjProductNotification {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 99999;

    display: flex;
    align-items: center;
    gap: 10px;

    max-width: min(390px, calc(100vw - 40px));

    padding: 12px 16px;

    border: 1px solid #dfe5ee;
    border-radius: 13px;

    background: rgba(255, 255, 255, .97);
    color: #172033;

    box-shadow:
        0 18px 45px rgba(16, 24, 40, .15);

    font-size: 13px;
    font-weight: 700;

    opacity: 0;
    pointer-events: none;

    transform:
        translateY(15px)
        scale(.97);

    transition:
        opacity .25s ease,
        transform .25s ease;

    backdrop-filter: blur(12px);
}


#pjProductNotification.show {
    opacity: 1;
    transform:
        translateY(0)
        scale(1);
}


.product-notification-icon {
    width: 25px;
    height: 25px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dcfce7;
    color: #16a34a;

    font-size: 12px;
    font-weight: 900;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .products-page {
        padding-top: 65px;
    }


    .products-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }


    .product-count {
        order: -1;
    }


    .products-page-card .product-image {
        height: 250px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .products-page {
        padding:
            50px 0
            75px;
    }


    .products-page-header {
        margin-bottom: 32px;
    }


    .products-page-header h1 {
        font-size: 39px;
        letter-spacing: -1.8px;
    }


    .products-page-header p {
        font-size: 14px;
        line-height: 1.65;
    }


    .products-toolbar {
        margin-bottom: 22px;
        padding-bottom: 15px;
    }


    .filter-bar {
        width: 100%;
        gap: 7px;
    }


    .filter-btn {
        padding:
            9px 13px;

        min-height: 38px;

        font-size: 12px;
    }


    .product-count {
        font-size: 12px;
    }


    .products-page-card {
        border-radius: 15px;
    }


    .products-page-card .product-image {
        height: 230px;
    }


    .products-page-card .product-info {
        padding:
            16px 15px 5px;
    }


    .products-page-card .product-info h3 {
        font-size: 17px;
    }


    .products-page-card .product-info p {
        font-size: 12px;
    }


    .product-current-price {
        font-size: 19px;
    }


    .product-card-actions {
        padding:
            12px 15px 15px;
    }


    .products-page-card .add-to-cart-btn {
        min-height: 43px;
    }


    /* Disable image overlay on touch-sized screens */
    .product-image-overlay {
        display: none;
    }


    #pjProductNotification {
        right: 15px;
        bottom: 15px;
        left: 15px;

        max-width: none;
    }

}


/* =========================================================
   REDUCED MOTION
   Accessibility
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .products-page-card {
        animation: none;
        opacity: 1;
    }


    .products-loader {
        animation: none;
    }


    .products-page-card,
    .products-page-card .product-image img,
    .filter-btn,
    .add-to-cart-btn,
    #pjProductNotification {
        transition: none;
    }

}/* =========================================================
   PJ MARKET — PREMIUM PRODUCT DETAILS
========================================================= */

.details-page {
    padding: 42px 0 100px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 28px;
    color: #667085;
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease, transform .2s ease;
}

.back-link:hover {
    color: #2563eb;
    transform: translateX(-2px);
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 54px;
    align-items: start;
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.details-image {
    min-height: 540px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e4e7ec;
    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f5f7fa
        );

    box-shadow:
        0 20px 55px rgba(16, 24, 40, .08);

    animation: detailsImageReveal .5s ease both;
}

@keyframes detailsImageReveal {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.details-product-image {
    width: 100%;
    height: 540px;
    padding: 42px;
    display: block;
    object-fit: contain;

    transition:
        transform .45s ease;
}

.details-image:hover .details-product-image {
    transform: scale(1.035);
}

.details-image-icon {
    width: 180px;
    height: 180px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eef4ff;

    color: #2563eb;

    font-size: 60px;
}
/* =========================================================
   PRODUCT IMAGE GALLERY
========================================================= */

.product-gallery {
    width: 100%;
}

.product-main-image-wrap {
    width: 100%;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px 16px;
    flex-wrap: wrap;
}

.product-image-thumbnail {
    width: 72px;
    height: 72px;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: .2s ease;
}

.product-image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.product-image-thumbnail:hover {
    border-color: #98a2b3;
    transform: translateY(-2px);
}

.product-image-thumbnail.active {
    border-color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .18);
}

.product-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef4ff;
    font-size: 24px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .details-image {
        min-height: auto;
    }

    .product-main-image-wrap {
        min-height: 330px;
    }

    .details-product-image {
        height: 330px;
        padding: 25px;
    }

    .product-image-thumbnail {
        width: 60px;
        height: 60px;
    }

}

/* =========================================================
   PRODUCT BADGE
========================================================= */

.details-product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;

    padding: 8px 12px;

    border-radius: 999px;

    background: #2563eb;
    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, .22);
}


/* =========================================================
   PRODUCT CONTENT
========================================================= */

.details-content {
    padding-top: 8px;

    animation:
        detailsContentReveal .55s ease both;
}

@keyframes detailsContentReveal {

    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.details-category {
    display: inline-block;

    color: #2563eb;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.details-title {
    margin: 10px 0 0;

    color: #101828;

    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;

    letter-spacing: -1.8px;
}

.details-description {
    margin-top: 20px;

    max-width: 650px;

    color: #667085;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   PRICE
========================================================= */

.details-price {
    margin-top: 25px;
    padding: 20px;

    border: 1px solid #e4e7ec;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(16, 24, 40, .045);
}

.details-price-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.price-main {
    color: #101828;

    font-size: 30px;
    font-weight: 900;
}

.compare-price {
    color: #98a2b3;

    font-size: 15px;

    text-decoration: line-through;
}

.discount-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 7px;

    background: #ecfdf3;
    color: #039855;

    font-size: 11px;
    font-weight: 800;
}

.stock-status {
    margin-top: 9px;

    font-size: 13px;
    font-weight: 700;
}

.stock-available {
    color: #039855;
}

.stock-low {
    color: #d97706;
}

.stock-out {
    color: #dc2626;
}

.details-price-note {
    margin-top: 9px;

    color: #98a2b3;

    font-size: 12px;
}


/* =========================================================
   QUANTITY
========================================================= */

.quantity-area {
    margin-top: 22px;
}

.quantity-label {
    display: block;

    margin-bottom: 9px;

    color: #475467;

    font-size: 13px;
    font-weight: 700;
}

.quantity-control {
    display: inline-flex;
    align-items: center;

    overflow: hidden;

    border: 1px solid #d0d5dd;
    border-radius: 11px;

    background: #ffffff;
}

.quantity-control button {
    width: 43px;
    height: 43px;

    border: 0;

    background: #f8fafc;
    color: #344054;

    cursor: pointer;

    font-size: 19px;

    transition:
        background .2s ease,
        color .2s ease;
}

.quantity-control button:hover {
    background: #eef4ff;
    color: #2563eb;
}

.quantity-control input {
    width: 52px;
    height: 43px;

    border: 0;
    outline: 0;

    background: #ffffff;
    color: #101828;

    text-align: center;

    font-size: 14px;
    font-weight: 800;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.details-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-top: 22px;
}

.details-cart-btn,
.buy-btn {
    min-height: 52px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.details-cart-btn {
    border: 1px solid #d0d5dd;

    background: #ffffff;
    color: #1d2939;
}

.details-cart-btn:hover:not(:disabled) {
    background: #f8fafc;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(16, 24, 40, .08);
}

.buy-btn {
    border: 1px solid #2563eb;

    background: #2563eb;
    color: #ffffff;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, .18);
}

.buy-btn:hover:not(:disabled) {
    background: #1d4ed8;

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(37, 99, 235, .22);
}

.details-cart-btn:disabled,
.buy-btn:disabled {
    opacity: .5;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   SERVICE INFORMATION
========================================================= */

.details-service-box {
    margin-top: 25px;

    display: grid;

    gap: 11px;

    padding: 17px;

    border: 1px solid #e4e7ec;
    border-radius: 16px;

    background: #f8fafc;
}

.details-service-item {
    display: flex;
    align-items: center;

    gap: 12px;
}

.details-service-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #ffffff;

    border: 1px solid #e4e7ec;
}

.details-service-item strong {
    display: block;

    color: #344054;

    font-size: 13px;
}

.details-service-item span {
    display: block;

    margin-top: 2px;

    color: #667085;

    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   PRODUCT META
========================================================= */

.info-list {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 11px;

    margin-top: 15px;
}

.info-box {
    padding: 14px;

    border: 1px solid #e4e7ec;
    border-radius: 12px;

    background: #ffffff;
}

.info-box span {
    display: block;

    color: #98a2b3;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .6px;
}

.info-box strong {
    display: block;

    margin-top: 5px;

    color: #344054;

    font-size: 13px;
}


/* =========================================================
   DESCRIPTION / REVIEW SECTIONS
========================================================= */

.product-content-section,
.reviews-section,
.related-section {
    margin-top: 65px;
}

.product-content-section,
.reviews-section {
    padding: 30px;

    border: 1px solid #e4e7ec;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 12px 35px rgba(16, 24, 40, .045);
}

.details-section-heading {
    margin-bottom: 20px;
}

.details-section-heading .section-label {
    display: block;

    margin-bottom: 7px;

    color: #2563eb;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.section-title {
    margin: 0;

    color: #101828;

    font-size: 24px;
    letter-spacing: -.5px;
}

.full-description {
    color: #667085;

    font-size: 14px;
    line-height: 1.85;

    white-space: pre-line;
}


/* =========================================================
   REVIEWS
========================================================= */

.reviews-summary {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 24px;
}

.big-rating {
    color: #101828;

    font-size: 32px;
    font-weight: 900;
}

.review-summary-stars {
    color: #f59e0b;

    font-size: 16px;
    letter-spacing: 2px;
}

.review-count {
    margin-top: 3px;

    color: #98a2b3;

    font-size: 12px;
}

.reviews-list {
    display: grid;
    gap: 12px;
}

.no-reviews {
    padding: 30px;

    text-align: center;

    border: 1px dashed #d0d5dd;
    border-radius: 14px;

    background: #f8fafc;

    color: #667085;
}

.no-reviews-icon {
    margin-bottom: 8px;

    font-size: 28px;
}

.no-reviews strong {
    display: block;

    color: #344054;

    font-size: 14px;
}

.no-reviews p {
    margin-top: 5px;

    font-size: 12px;
}


/* =========================================================
   REVIEW FORM
========================================================= */

.review-form {
    margin-top: 28px;

    padding-top: 25px;

    border-top: 1px solid #eaecf0;
}

.review-form h3 {
    margin-bottom: 10px;

    color: #101828;

    font-size: 17px;
}

.review-login-note {
    color: #667085;

    font-size: 13px;
}


/* =========================================================
   RELATED PRODUCTS
========================================================= */

.related-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.related-card {
    overflow: hidden;

    border: 1px solid #e4e7ec;
    border-radius: 16px;

    background: #ffffff;

    color: inherit;

    text-decoration: none;

    box-shadow:
        0 8px 25px rgba(16, 24, 40, .045);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.related-card:hover {
    transform: translateY(-5px);

    border-color: #c7d7fe;

    box-shadow:
        0 16px 35px rgba(16, 24, 40, .10);
}

.related-image-wrap {
    position: relative;

    height: 210px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8fafc;

    overflow: hidden;
}

.related-product-image {
    width: 100%;
    height: 100%;

    padding: 20px;

    object-fit: contain;

    transition:
        transform .35s ease;
}

.related-card:hover .related-product-image {
    transform: scale(1.05);
}

.related-product-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 45px;

    color: #2563eb;
}

.related-badge {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 2;

    padding: 5px 8px;

    border-radius: 999px;

    background: #2563eb;
    color: #ffffff;

    font-size: 9px;
    font-weight: 800;
}

.related-card-info {
    padding: 15px;
}

.related-category {
    display: block;

    color: #667085;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.related-card h3 {
    margin-top: 6px;

    color: #101828;

    font-size: 14px;
    line-height: 1.4;
}

.related-price-row {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-top: 9px;
}

.related-price-row strong {
    color: #2563eb;

    font-size: 15px;
}

.related-price-row span {
    color: #98a2b3;

    font-size: 11px;

    text-decoration: line-through;
}


/* =========================================================
   LOADING
========================================================= */

.product-details-loading {
    min-height: 500px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 14px;

    border: 1px solid #e4e7ec;
    border-radius: 28px;

    background: #ffffff;
}

.product-details-loading p {
    color: #98a2b3;

    font-size: 13px;
}

.details-loading-spinner {
    width: 35px;
    height: 35px;

    border: 3px solid #e4e7ec;
    border-top-color: #2563eb;

    border-radius: 50%;

    animation:
        detailsSpin .75s linear infinite;
}

@keyframes detailsSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   ERROR / NOT FOUND
========================================================= */

.details-state {
    padding: 90px 20px;

    text-align: center;

    border: 1px solid #e4e7ec;
    border-radius: 24px;

    background: #ffffff;
}

.details-state-icon {
    font-size: 48px;
}

.details-state h2 {
    margin-top: 14px;

    color: #101828;

    font-size: 24px;
}

.details-state p {
    margin-top: 8px;

    color: #667085;

    font-size: 13px;
}

.details-state-btn {
    display: inline-flex;

    margin-top: 22px;

    padding: 12px 19px;

    border-radius: 10px;

    border: 0;

    background: #2563eb;
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;
}


/* =========================================================
   NOTIFICATION
========================================================= */

.product-details-notification {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 99999;

    max-width: 340px;

    padding: 13px 18px;

    border-radius: 12px;

    background: #101828;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    box-shadow:
        0 15px 35px rgba(16, 24, 40, .20);

    opacity: 0;

    transform: translateY(12px);

    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.product-details-notification.show {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .details-grid {
        grid-template-columns: 1fr;

        gap: 32px;
    }

    .details-image {
        min-height: 470px;
    }

    .details-product-image {
        height: 470px;
    }

    .related-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .details-page {
        padding:
            30px 0 70px;
    }

    .back-link {
        margin-bottom: 20px;
    }

    .details-image {
        min-height: 320px;

        border-radius: 20px;
    }

    .details-product-image {
        height: 320px;

        padding: 25px;
    }

    .details-title {
        font-size: 36px;

        letter-spacing: -1.2px;
    }

    .details-description {
        font-size: 14px;
    }

    .price-main {
        font-size: 26px;
    }

    .details-actions {
        grid-template-columns: 1fr;
    }

    .info-list {
        grid-template-columns: 1fr 1fr;
    }

    .product-content-section,
    .reviews-section {
        padding: 20px;

        border-radius: 16px;
    }

    .section-title {
        font-size: 21px;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;

        gap: 11px;
    }

    .related-image-wrap {
        height: 150px;
    }

    .related-product-image {
        padding: 12px;
    }

    .related-card-info {
        padding: 11px;
    }

    .related-card h3 {
        font-size: 12px;
    }

    .related-price-row strong {
        font-size: 13px;
    }

    .details-service-item span {
        font-size: 10px;
    }

    .product-details-loading {
        min-height: 350px;
    }

}


@media (max-width: 380px) {

    .info-list {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .details-image,
    .details-content,
    .details-loading-spinner {
        animation: none;
    }

    .details-product-image,
    .related-product-image,
    .related-card,
    .buy-btn,
    .details-cart-btn {
        transition: none;
    }

}/* =====================================================
   PJ MARKET
   PREMIUM CART PAGE
   ===================================================== */

.cart-page {
    padding: 72px 0 100px;
    min-height: 70vh;
}

.cart-header {
    margin-bottom: 34px;
}

.cart-header h1 {
    margin: 8px 0 0;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.8px;
}

.cart-header-text {
    margin-top: 12px;
    max-width: 620px;
    color: #667085;
    font-size: 15px;
    line-height: 1.7;
}


/* =====================================================
   LAYOUT
   ===================================================== */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .72fr);
    gap: 28px;
    align-items: start;
}

.cart-items-wrapper {
    min-width: 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* =====================================================
   CART ITEM
   ===================================================== */

.cart-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;

    padding: 17px;

    background: #ffffff;
    border: 1px solid #e7eaf0;
    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(16, 24, 40, .045);

    animation: cartItemReveal .42s ease both;
    animation-delay: var(--cart-item-delay);
}

@keyframes cartItemReveal {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.cart-item:hover {
    border-color: #d8deea;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .07);
}


/* =====================================================
   PRODUCT IMAGE
   ===================================================== */

.cart-item-image {
    width: 104px;
    height: 104px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f5f7fa;
    border: 1px solid #edf0f4;
    border-radius: 15px;

    text-decoration: none;
}

.cart-product-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .35s ease;
}

.cart-item:hover .cart-product-image {
    transform: scale(1.04);
}

.cart-product-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    font-size: 38px;
}


/* =====================================================
   PRODUCT INFORMATION
   ===================================================== */

.cart-item-main {
    min-width: 0;
}

.cart-item-category {
    display: block;

    margin-bottom: 5px;

    color: #667085;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .9px;
}

.cart-item-name {
    display: block;

    color: #172033;

    font-size: 17px;
    font-weight: 750;
    line-height: 1.35;

    text-decoration: none;

    transition:
        color .2s ease;
}

.cart-item-name:hover {
    color: #2563eb;
}

.cart-item-price {
    margin-top: 5px;

    color: #2563eb;

    font-size: 14px;
    font-weight: 700;
}


/* =====================================================
   QUANTITY
   ===================================================== */

.quantity-area {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 13px;
}

.quantity-label {
    color: #98a2b3;
    font-size: 11px;
    font-weight: 600;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;

    height: 34px;

    overflow: hidden;

    border: 1px solid #dfe3ea;
    border-radius: 9px;

    background: #ffffff;
}

.quantity-controls button {
    width: 34px;
    height: 34px;

    border: 0;

    background: #f8fafc;
    color: #172033;

    font-size: 17px;
    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.quantity-controls button:hover:not(:disabled) {
    background: #eef4ff;
    color: #2563eb;
}

.quantity-controls button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.quantity-controls span {
    min-width: 35px;

    text-align: center;

    color: #172033;

    font-size: 13px;
    font-weight: 700;
}

.stock-hint {
    color: #98a2b3;
    font-size: 10px;
}


/* =====================================================
   REMOVE
   ===================================================== */

.remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    margin-top: 10px;

    padding: 0;

    border: 0;
    background: transparent;

    color: #98a2b3;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition:
        color .2s ease;
}

.remove-btn span {
    font-size: 15px;
    line-height: 1;
}

.remove-btn:hover {
    color: #dc3545;
}


/* =====================================================
   ITEM TOTAL
   ===================================================== */

.cart-item-total {
    min-width: 100px;

    text-align: right;
}

.cart-item-total span {
    display: block;

    margin-bottom: 5px;

    color: #98a2b3;

    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.cart-item-total strong {
    color: #172033;

    font-size: 16px;
    font-weight: 800;
}


/* =====================================================
   SUMMARY
   ===================================================== */

.cart-summary {
    position: sticky;
    top: 100px;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #e4e8ef;
    border-radius: 20px;

    box-shadow: 0 12px 35px rgba(16, 24, 40, .07);
}

.cart-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 24px;
}

.summary-label {
    display: block;

    margin-bottom: 5px;

    color: #2563eb;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.cart-summary h2 {
    margin: 0;

    color: #172033;

    font-size: 21px;
    letter-spacing: -.3px;
}

.summary-bag-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eff6ff;

    font-size: 19px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 13px 0;

    color: #667085;

    font-size: 13px;
}

.summary-row strong {
    color: #172033;
    font-weight: 750;
}

.shipping-summary-row > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.shipping-summary-row small {
    color: #98a2b3;
    font-size: 10px;
}

.summary-divider {
    height: 1px;

    margin: 7px 0 4px;

    background: #edf0f4;
}

.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 16px;

    color: #172033;

    font-size: 16px;
}

.total-row strong {
    font-size: 21px;
}


/* =====================================================
   CHECKOUT BUTTON
   ===================================================== */

.checkout-btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 22px;
    padding: 14px 17px;

    border: 0;
    border-radius: 11px;

    background: #2563eb;
    color: #ffffff;

    font-size: 13px;
    font-weight: 750;

    cursor: pointer;

    box-shadow: 0 7px 18px rgba(37, 99, 235, .2);

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.checkout-btn:hover {
    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow: 0 10px 24px rgba(37, 99, 235, .25);
}

.checkout-btn:active {
    transform: translateY(0);
}


/* =====================================================
   CONTINUE SHOPPING
   ===================================================== */

.continue-shopping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 16px;

    color: #667085;

    font-size: 12px;
    font-weight: 650;

    text-decoration: none;

    transition:
        color .2s ease;
}

.continue-shopping:hover {
    color: #2563eb;
}


/* =====================================================
   TRUST
   ===================================================== */

.cart-trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-top: 22px;
    padding-top: 18px;

    border-top: 1px solid #edf0f4;
}

.cart-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 9px 5px;

    border-radius: 9px;

    background: #f8fafc;
}

.cart-trust-item span {
    font-size: 13px;
}

.cart-trust-item small {
    color: #667085;
    font-size: 9px;
    font-weight: 600;
}


/* =====================================================
   EMPTY CART
   ===================================================== */

.empty-cart {
    padding: 65px 25px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e5e9ef;
    border-radius: 20px;

    box-shadow: 0 8px 25px rgba(16, 24, 40, .045);

    animation: cartEmptyReveal .4s ease both;
}

@keyframes cartEmptyReveal {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.empty-cart-visual {
    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 22px;

    background: #eff6ff;
}

.empty-cart-icon {
    font-size: 34px;
}

.empty-cart-label {
    color: #2563eb;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1px;
}

.empty-cart h2 {
    margin: 8px 0 0;

    color: #172033;

    font-size: 23px;
}

.empty-cart p {
    max-width: 420px;

    margin: 9px auto 0;

    color: #667085;

    font-size: 13px;
    line-height: 1.7;
}

.continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 24px;
    padding: 12px 18px;

    border-radius: 10px;

    background: #172033;
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform .2s ease,
        background .2s ease;
}

.continue-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}


/* =====================================================
   LOADING
   ===================================================== */

.cart-page-loading {
    min-height: 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;

    background: #ffffff;

    border: 1px solid #e5e9ef;
    border-radius: 18px;

    color: #667085;

    font-size: 12px;
}

.cart-loading-spinner {
    width: 28px;
    height: 28px;

    border: 3px solid #e7edf7;
    border-top-color: #2563eb;

    border-radius: 50%;

    animation: cartSpin .7s linear infinite;
}

@keyframes cartSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =====================================================
   NOTIFICATION
   ===================================================== */

.cart-notification {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 10px;

    max-width: calc(100vw - 44px);

    padding: 12px 16px;

    background: #172033;
    color: #ffffff;

    border-radius: 12px;

    box-shadow: 0 12px 30px rgba(16, 24, 40, .18);

    opacity: 0;
    transform: translateY(12px);

    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.cart-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.cart-notification-icon {
    width: 23px;
    height: 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #22c55e;

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
}

.cart-notification-message {
    font-size: 12px;
    font-weight: 600;
}


/* =====================================================
   ACTIVE CART
   ===================================================== */

.cart-btn-active {
    border-color: #dbe7ff !important;
    background: #eff6ff !important;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 950px) {

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 650px) {

    .cart-page {
        padding: 48px 0 70px;
    }

    .cart-header {
        margin-bottom: 25px;
    }

    .cart-header h1 {
        font-size: 34px;
        letter-spacing: -1.2px;
    }

    .cart-header-text {
        font-size: 13px;
    }

    .cart-item {
        grid-template-columns: 78px minmax(0, 1fr);

        gap: 14px;

        padding: 13px;
    }

    .cart-item-image {
        width: 78px;
        height: 78px;
    }

    .cart-product-icon {
        font-size: 29px;
    }

    .cart-item-name {
        font-size: 15px;
    }

    .cart-item-total {
        grid-column: 2;

        min-width: 0;

        margin-top: -4px;

        text-align: left;
    }

    .cart-item-total span {
        display: inline-block;
        margin-right: 6px;
        margin-bottom: 0;
    }

    .quantity-area {
        flex-wrap: wrap;
    }

    .cart-summary {
        padding: 21px;
    }

    .cart-trust-row {
        grid-template-columns: 1fr 1fr;
    }

}


/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media (max-width: 420px) {

    .cart-item {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
    }

    .cart-item-image {
        width: 64px;
        height: 64px;
    }

    .cart-item-category {
        font-size: 8px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .quantity-label {
        display: none;
    }

    .cart-item-total {
        grid-column: 1 / -1;

        padding-top: 9px;

        border-top: 1px solid #edf0f4;
    }

    .empty-cart {
        padding: 50px 18px;
    }

    .cart-notification {
        right: 14px;
        bottom: 14px;
        left: 14px;

        max-width: none;
    }

}


/* =====================================================
   REDUCED MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    .cart-item,
    .empty-cart,
    .cart-page-loading {
        animation: none;
    }

    .cart-product-image,
    .checkout-btn,
    .continue-btn {
        transition: none;
    }

}/* =========================================================
   PJ MARKET — PREMIUM AUTHENTICATION SYSTEM
   LOGIN + SIGNUP
========================================================= */

.auth-page {
    position: relative;
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 65px 20px;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(37, 99, 235, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(99, 102, 241, 0.10),
            transparent 30%
        );
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-orb-one {
    width: 270px;
    height: 270px;
    top: -100px;
    left: -90px;
    background: rgba(37, 99, 235, 0.08);
    animation: authFloatOne 9s ease-in-out infinite;
}

.auth-orb-two {
    width: 230px;
    height: 230px;
    right: -80px;
    bottom: -90px;
    background: rgba(99, 102, 241, 0.08);
    animation: authFloatTwo 11s ease-in-out infinite;
}

@keyframes authFloatOne {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 20px);
    }
}

@keyframes authFloatTwo {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-25px, -25px);
    }
}


/* =========================================================
   AUTH CARD
========================================================= */

.auth-card {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 455px;

    padding: 38px;

    background: rgba(255, 255, 255, 0.95);

    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;

    box-shadow:
        0 25px 70px rgba(15, 23, 42, 0.10),
        0 5px 20px rgba(37, 99, 235, 0.05);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    animation: authCardIn 0.55s ease both;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   AUTH BRAND
========================================================= */

.auth-brand {
    width: 58px;
    height: 58px;

    margin: 0 auto 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;

    box-shadow:
        0 12px 28px rgba(37, 99, 235, 0.25);
}


/* =========================================================
   AUTH TITLE
========================================================= */

.auth-card h1 {
    margin: 0;

    text-align: center;

    font-size: 29px;
    line-height: 1.2;

    color: #172033;

    letter-spacing: -0.7px;
}

.auth-subtitle {
    margin: 9px 0 28px;

    text-align: center;

    color: #667085;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   FORM
========================================================= */

.auth-form-group {
    margin-bottom: 17px;
}

.auth-form-group label {
    display: block;

    margin-bottom: 8px;

    color: #344054;

    font-size: 13px;
    font-weight: 650;
}


/* =========================================================
   INPUT
========================================================= */

.auth-input-wrap {
    position: relative;
}

.auth-input {
    width: 100%;
    height: 49px;

    box-sizing: border-box;

    padding: 0 15px;

    border: 1px solid #d9dee8;
    border-radius: 12px;

    outline: none;

    background: #ffffff;
    color: #172033;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.auth-input::placeholder {
    color: #98a2b3;
}

.auth-input:hover {
    border-color: #b9c3d3;
}

.auth-input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10);

    transform: translateY(-1px);
}

.password-input {
    padding-right: 52px;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;

    right: 7px;
    top: 6px;

    width: 36px;
    height: 36px;

    border: none;
    border-radius: 9px;

    background: transparent;

    color: #667085;

    cursor: pointer;

    font-size: 16px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.password-toggle:hover {
    background: #f2f4f7;
    color: #2563eb;
}


/* =========================================================
   FORGOT PASSWORD
========================================================= */

.forgot-link {
    display: block;

    width: fit-content;

    margin: 8px 0 0 auto;

    color: #2563eb;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}


/* =========================================================
   PASSWORD STRENGTH
========================================================= */

.password-strength {
    margin-top: 9px;
}

.strength-bars {
    display: flex;
    gap: 4px;
}

.strength-bar {
    flex: 1;

    height: 4px;

    border-radius: 20px;

    background: #eaecf0;

    transition:
        background 0.25s ease;
}

.strength-text {
    margin-top: 6px;

    color: #98a2b3;

    font-size: 11px;
}


/* =========================================================
   PASSWORD MATCH
========================================================= */

.password-match {
    min-height: 17px;

    margin-top: 6px;

    font-size: 11px;
}

.password-match.valid {
    color: #027a48;
}

.password-match.invalid {
    color: #b42318;
}


/* =========================================================
   AUTH BUTTON
========================================================= */

.auth-button {
    position: relative;

    width: 100%;
    height: 52px;

    margin-top: 5px;

    border: none;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.auth-button::after {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 60%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.20),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.6s ease;
}

.auth-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(37, 99, 235, 0.27);
}

.auth-button:hover::after {
    left: 140%;
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button:disabled {
    cursor: not-allowed;
    opacity: 0.75;
    transform: none;
}

.auth-button.loading {
    pointer-events: none;
}


/* =========================================================
   LOADING SPINNER
========================================================= */

.auth-spinner {
    display: inline-block;

    width: 17px;
    height: 17px;

    margin-right: 8px;

    vertical-align: -3px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: authSpin 0.7s linear infinite;
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   AUTH MESSAGE
========================================================= */

.auth-message {
    display: none;

    margin-top: 16px;

    padding: 12px 14px;

    border-radius: 11px;

    font-size: 13px;
    line-height: 1.5;

    animation: authMessageIn 0.25s ease both;
}

.auth-message.show {
    display: block;
}

@keyframes authMessageIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-message.error {
    color: #b42318;

    background: #fef3f2;

    border: 1px solid #fecdca;
}

.auth-message.success {
    color: #027a48;

    background: #ecfdf3;

    border: 1px solid #abefc6;
}


/* =========================================================
   LOGIN / SIGNUP SWITCH
========================================================= */

.auth-switch {
    margin-top: 23px;

    text-align: center;

    color: #667085;

    font-size: 13px;
}

.auth-switch a {
    color: #2563eb;

    font-weight: 700;

    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .auth-page {
        min-height: calc(100vh - 120px);

        padding: 45px 15px;
    }

    .auth-card {
        padding: 30px 22px;

        border-radius: 20px;
    }

    .auth-card h1 {
        font-size: 25px;
    }

    .auth-brand {
        width: 54px;
        height: 54px;

        border-radius: 15px;
    }

    .auth-orb-one {
        width: 190px;
        height: 190px;
    }

    .auth-orb-two {
        width: 170px;
        height: 170px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .auth-card,
    .auth-orb-one,
    .auth-orb-two {
        animation: none;
    }

    .auth-button,
    .auth-input,
    .password-toggle,
    .strength-bar {
        transition: none;
    }
}/* =========================================================
   PJ MARKET — PREMIUM HEADER ACCOUNT AREA
========================================================= */

.header-account {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logged-in account */
.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
}

.header-user:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
}

/* Avatar */
.header-user-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.22);
}

/* Name + account text */
.header-user-info {
    min-width: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.header-user-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
}

.header-user-name {
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #172033;
    font-size: 14px;
    font-weight: 750;
}

/* Logout button */
.header-logout-btn {
    height: 36px;
    padding: 0 13px;
    border: 1px solid #fee2e2;
    border-radius: 10px;
    background: #fff7f7;
    color: #dc2626;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.header-logout-btn:hover {
    background: #fee2e2;
    border-color: #fecaca;
    transform: translateY(-1px);
}

.header-logout-btn:active {
    transform: translateY(0);
}

/* Login / Signup buttons when logged out */
.header-auth-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-login-btn,
.header-signup-btn {
    height: 40px;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.header-login-btn {
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.header-login-btn:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #f8fbff;
}

.header-signup-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border: 1px solid transparent;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.20);
}

.header-signup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(37, 99, 235, 0.28);
}

/* Cart button */
.header-cart-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #172033;
    text-decoration: none;
    transition: all 0.25s ease;
}

.header-cart-btn:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #f8fbff;
    transform: translateY(-1px);
}

/* Cart count */
.header-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 20px;
    background: #2563eb;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile */
@media (max-width: 768px) {

    .header-user {
        padding: 5px;
        border-radius: 12px;
    }

    .header-user-info {
        display: none;
    }

    .header-user-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .header-logout-btn {
        height: 36px;
        padding: 0 10px;
        font-size: 11px;
    }

    .header-auth-actions {
        gap: 6px;
    }

    .header-login-btn,
    .header-signup-btn {
        height: 37px;
        padding: 0 10px;
        font-size: 11px;
    }

    .header-cart-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 430px) {

    .header-login-btn {
        display: none;
    }

    .header-signup-btn {
        padding: 0 11px;
    }

    .header-logout-btn {
        font-size: 0;
        width: 36px;
        padding: 0;
    }

    .header-logout-btn::before {
        content: "↪";
        font-size: 17px;
    }
}/* =========================================================
   PJ MARKET — PREMIUM CUSTOMER PROFILE
========================================================= */

.profile-page {
    min-height: calc(100vh - 160px);
    padding: 70px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background:
        radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.06), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(79, 70, 229, 0.05), transparent 30%),
        #f7f8fa;
}

.profile-card {
    width: 100%;
    max-width: 650px;
    padding: 42px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow:
        0 18px 50px rgba(15, 23, 42, 0.08),
        0 3px 10px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
    animation: profileCardEnter 0.55s ease both;
}

.profile-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
}

/* Profile icon */

.profile-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #2563eb,
        #4f46e5
    );

    color: #ffffff;
    font-size: 34px;

    box-shadow:
        0 12px 28px rgba(37, 99, 235, 0.22);

    animation: profileIconFloat 3.5s ease-in-out infinite;
}

/* Heading */

.profile-card h1 {
    margin: 0;
    color: #111827;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.profile-subtitle {
    margin: 9px 0 30px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   CUSTOMER INFORMATION
========================================================= */

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.profile-row {
    min-height: 72px;
    padding: 14px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.profile-row:hover {
    background: #ffffff;
    border-color: #bfdbfe;
    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.07);
}

/* Label */

.profile-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

/* Actual customer information */

.profile-row strong {
    color: #172033;
    font-size: 15px;
    font-weight: 750;
    text-align: right;
    word-break: break-word;
}

/* Email slightly smaller if needed */

#profileEmail {
    color: #2563eb;
}

/* Account type */

#profileRole {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 11px;
    border-radius: 999px;

    background: #eff6ff;
    color: #2563eb;

    border: 1px solid #dbeafe;

    font-size: 12px;
    font-weight: 800;
}

/* =========================================================
   PROFILE ACTIONS
========================================================= */

.profile-actions {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.profile-action-btn,
.profile-logout-btn {
    min-height: 48px;
    padding: 0 18px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 750;

    text-decoration: none;
    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

/* Continue Shopping */

.profile-action-btn {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #2563eb,
        #4f46e5
    );

    border: 1px solid transparent;

    box-shadow:
        0 7px 18px rgba(37, 99, 235, 0.18);
}

.profile-action-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 11px 25px rgba(37, 99, 235, 0.25);
}

/* Track order */

.profile-action-btn.secondary {
    color: #334155;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    box-shadow: none;
}

.profile-action-btn.secondary:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #f8fbff;
}

/* Logout */

.profile-logout-btn {
    grid-column: 1 / -1;

    color: #dc2626;
    background: #fff7f7;
    border: 1px solid #fecaca;
}

.profile-logout-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    transform: translateY(-2px);
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes profileCardEnter {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes profileIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .profile-page {
        padding: 35px 14px 50px;
    }

    .profile-card {
        padding: 28px 18px;
        border-radius: 20px;
    }

    .profile-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 29px;
    }

    .profile-card h1 {
        font-size: 25px;
    }

    .profile-subtitle {
        margin-bottom: 24px;
        font-size: 13px;
    }

    .profile-row {
        min-height: 68px;
        padding: 13px 14px;
        gap: 12px;
    }

    .profile-label {
        font-size: 10px;
    }

    .profile-row strong {
        max-width: 58%;
        font-size: 13px;
    }

    .profile-actions {
        grid-template-columns: 1fr;
    }

    .profile-action-btn,
    .profile-logout-btn {
        width: 100%;
    }

}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .profile-card,
    .profile-icon {
        animation: none;
    }

    .profile-row,
    .profile-action-btn,
    .profile-logout-btn {
        transition: none;
    }

}/* =========================================================
   PJ MARKET — PREMIUM MAIN HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;

    box-shadow:
        0 4px 18px rgba(15, 23, 42, 0.05);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Header container */

.header-container {
    width: min(1200px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 28px;
}

/* =========================================================
   LOGO
========================================================= */

.site-header .logo {
    flex-shrink: 0;

    color: #111827;
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -0.7px;

    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.site-header .logo:hover {
    color: #2563eb;
    transform: translateY(-1px);
}

/* =========================================================
   NAVIGATION
========================================================= */

.site-header .main-nav {
    display: flex;
    align-items: center;
    gap: 5px;

    flex: 1;
}

.site-header .main-nav a {
    position: relative;

    padding: 10px 13px;

    color: #475569;
    font-size: 13px;
    font-weight: 650;

    text-decoration: none;
    border-radius: 9px;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.site-header .main-nav a:hover {
    color: #2563eb;
    background: #eff6ff;
}

/* Active navigation */

.site-header .main-nav a.active {
    color: #2563eb;
    background: #eff6ff;
}

/* Small active line */

.site-header .main-nav a.active::after {
    content: "";

    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;

    height: 2px;
    border-radius: 5px;

    background: #2563eb;
}

/* =========================================================
   AUTH AREA
========================================================= */

#authArea {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex-shrink: 0;
}

/* Logged-in user area */

#authArea > * {
    display: flex;
    align-items: center;
}

/* User name link / profile link */

#authArea a {
    text-decoration: none;
}

/* If auth-ui creates user information */

#authArea .user-info,
#authArea .auth-user,
#authArea .header-user {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 5px 7px 5px 6px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 13px;

    box-shadow:
        0 3px 12px rgba(15, 23, 42, 0.05);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

#authArea .user-info:hover,
#authArea .auth-user:hover,
#authArea .header-user:hover {
    border-color: #bfdbfe;

    box-shadow:
        0 7px 20px rgba(37, 99, 235, 0.10);

    transform: translateY(-1px);
}

/* =========================================================
   USER ICON
========================================================= */

#authArea .user-icon,
#authArea .profile-icon,
#authArea .header-user-avatar {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    font-size: 16px;
    font-weight: 800;

    box-shadow:
        0 5px 13px rgba(37, 99, 235, 0.20);
}

/* =========================================================
   CUSTOMER NAME
========================================================= */

#authArea .user-name,
#authArea .profile-name,
#authArea .header-user-name {
    color: #172033;

    font-size: 13px;
    font-weight: 750;

    white-space: nowrap;
}

/* Small account label */

#authArea .user-label,
#authArea .account-label,
#authArea .header-user-label {
    color: #94a3b8;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* =========================================================
   LOGOUT BUTTON
========================================================= */

#authArea button,
#authArea .logout-btn,
#authArea .header-logout-btn {
    min-height: 34px;

    padding: 0 11px;

    margin-left: 5px;

    border: 1px solid #fee2e2;
    border-radius: 9px;

    background: #fff7f7;
    color: #dc2626;

    font-size: 11px;
    font-weight: 750;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

#authArea button:hover,
#authArea .logout-btn:hover,
#authArea .header-logout-btn:hover {
    background: #fee2e2;
    border-color: #fecaca;

    transform: translateY(-1px);
}

/* =========================================================
   CART
========================================================= */

.site-header .cart-link {
    position: relative;

    flex-shrink: 0;

    min-height: 42px;

    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    color: #334155;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 11px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.site-header .cart-link:hover {
    color: #2563eb;

    background: #f8fbff;

    border-color: #bfdbfe;

    transform: translateY(-1px);

    box-shadow:
        0 6px 17px rgba(37, 99, 235, 0.10);
}

/* Cart count */

.site-header #cartCount {
    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: #2563eb;
    color: #ffffff;

    border: 2px solid #ffffff;

    font-size: 10px;
    font-weight: 850;

    box-shadow:
        0 2px 6px rgba(37, 99, 235, 0.20);
}

/* =========================================================
   LOGGED-OUT LOGIN / SIGNUP
========================================================= */

#authArea .login-btn,
#authArea .signup-btn {
    min-height: 40px;

    padding: 0 14px;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 750;

    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

#authArea .login-btn {
    color: #334155;

    background: #ffffff;

    border: 1px solid #e2e8f0;
}

#authArea .login-btn:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #f8fbff;
}

#authArea .signup-btn {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    border: 1px solid transparent;

    box-shadow:
        0 6px 16px rgba(37, 99, 235, 0.18);
}

#authArea .signup-btn:hover {
    transform: translateY(-1px);

    box-shadow:
        0 9px 22px rgba(37, 99, 235, 0.25);
}

/* =========================================================
   MOBILE HEADER
========================================================= */

@media (max-width: 900px) {

    .header-container {
        gap: 14px;
    }

    .site-header .main-nav {
        gap: 1px;
    }

    .site-header .main-nav a {
        padding: 9px 8px;
        font-size: 12px;
    }

    #authArea .user-name,
    #authArea .profile-name,
    #authArea .header-user-name {
        max-width: 105px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

}

@media (max-width: 720px) {

    .header-container {
        width: min(100% - 22px, 600px);
        min-height: 68px;

        gap: 8px;
    }

    .site-header .logo {
        font-size: 19px;
    }

    .site-header .main-nav {
        display: none;
    }

    #authArea {
        margin-left: auto;
    }

    .site-header .cart-link {
        min-height: 38px;
        padding: 0 10px;

        font-size: 12px;
    }

}

@media (max-width: 460px) {

    .header-container {
        width: calc(100% - 16px);
        gap: 6px;
    }

    .site-header .logo {
        font-size: 18px;
    }

    #authArea .user-icon,
    #authArea .profile-icon,
    #authArea .header-user-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;

        border-radius: 9px;
    }

    #authArea .user-name,
    #authArea .profile-name,
    #authArea .header-user-name {
        display: none;
    }

    #authArea button,
    #authArea .logout-btn,
    #authArea .header-logout-btn {
        min-height: 32px;
        padding: 0 8px;

        font-size: 10px;
    }

    .site-header .cart-link {
        min-height: 36px;
        padding: 0 8px;

        font-size: 0;
    }

    .site-header .cart-link::first-letter {
        font-size: 16px;
    }

}/* =========================================================
   PJ MARKET
   PREMIUM CHECKOUT EXPERIENCE
   ========================================================= */

.checkout-page {
    min-height: calc(100vh - 80px);
    padding: 55px 20px 90px;
    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(37, 99, 235, 0.07),
            transparent 30%
        ),
        radial-gradient(
            circle at 100% 15%,
            rgba(99, 102, 241, 0.06),
            transparent 28%
        ),
        #f7f9fc;
}

.checkout-container {
    width: min(1180px, 100%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.checkout-header {
    margin-bottom: 32px;
    animation: checkoutFadeUp 0.55s ease both;
}

.checkout-header h1 {
    margin: 0;
    color: #101828;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1.2px;
}

.checkout-header p {
    margin: 9px 0 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.checkout-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(350px, 0.75fr);

    gap: 24px;
    align-items: start;
}


/* =========================================================
   CARDS
   ========================================================= */

.checkout-section {
    position: relative;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 20px;

    box-shadow:
        0 10px 30px rgba(16, 24, 40, 0.05),
        0 2px 6px rgba(16, 24, 40, 0.03);

    animation: checkoutFadeUp 0.6s ease both;
}

.checkout-section:first-child {
    grid-row: span 2;
}

.checkout-section:nth-child(2) {
    animation-delay: 0.08s;
}

.checkout-section:nth-child(3) {
    animation-delay: 0.16s;
}

.checkout-section h2 {
    margin: 0 0 24px;
    color: #101828;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.35px;
}

.checkout-section h2::after {
    content: "";
    display: block;

    width: 38px;
    height: 3px;

    margin-top: 9px;

    border-radius: 20px;
    background: #2563eb;
}


/* =========================================================
   CUSTOMER FORM
   ========================================================= */

.form-group {
    margin-bottom: 19px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #344054;
    font-size: 14px;
    font-weight: 650;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid #d0d5dd;
    border-radius: 12px;

    background: #ffffff;
    color: #101828;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input,
.form-group select {
    height: 50px;
    padding: 0 15px;
}

.form-group textarea {
    min-height: 115px;
    padding: 14px 15px;

    line-height: 1.55;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #98a2b3;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #98a2b3;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.09),
        0 4px 12px rgba(37, 99, 235, 0.04);
}

.form-group select:disabled {
    cursor: not-allowed;
    background: #f2f4f7;
    color: #98a2b3;
}


/* =========================================================
   PAYMENT METHOD
   ========================================================= */

.payment-methods {
    display: grid;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 13px;

    min-height: 64px;
    padding: 0 17px;

    border: 1px solid #e4e7ec;
    border-radius: 14px;

    background: #ffffff;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.payment-option:hover {
    transform: translateY(-1px);

    border-color: #b8c7e6;

    box-shadow:
        0 6px 18px rgba(16, 24, 40, 0.05);
}

.payment-option:has(input:checked) {
    border-color: #2563eb;

    background: #eff6ff;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.07),
        0 7px 18px rgba(37, 99, 235, 0.06);
}

.payment-option input {
    width: 18px;
    height: 18px;

    margin: 0;

    accent-color: #2563eb;

    cursor: pointer;
}

.payment-option span {
    color: #344054;
    font-size: 14px;
    font-weight: 650;
}


/* =========================================================
   PRODUCT SUMMARY
   ========================================================= */

#checkoutProducts {
    display: flex;
    flex-direction: column;
    gap: 11px;

    max-height: 390px;

    overflow-y: auto;

    padding-right: 4px;
}

#checkoutProducts::-webkit-scrollbar {
    width: 5px;
}

#checkoutProducts::-webkit-scrollbar-track {
    background: transparent;
}

#checkoutProducts::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 20px;
}


/* =========================================================
   INDIVIDUAL PRODUCT
   ========================================================= */

.checkout-product {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 13px;

    border: 1px solid #eaecf0;
    border-radius: 14px;

    background: #fafbfc;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.checkout-product:hover {
    background: #ffffff;
    border-color: #dbe3f0;
    transform: translateX(2px);
}


/* PRODUCT ICON */

.checkout-product-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #eef2ff
        );

    border: 1px solid #dbeafe;

    font-size: 24px;
}


/* PRODUCT INFO */

.checkout-product-info {
    display: flex;
    flex-direction: column;

    min-width: 0;

    flex: 1;
    gap: 5px;
}

.checkout-product-info strong {
    overflow: hidden;

    color: #101828;

    font-size: 14px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-product-info span {
    color: #667085;
    font-size: 12px;
}


/* PRODUCT PRICE */

.checkout-product-total {
    flex-shrink: 0;

    color: #2563eb;

    font-size: 14px;
    font-weight: 750;
}


/* =========================================================
   ORDER SUMMARY
   ========================================================= */

.checkout-summary {
    margin-top: 20px;
    padding-top: 18px;

    border-top: 1px solid #eaecf0;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 8px 0;

    color: #667085;

    font-size: 14px;
}

.summary-row strong {
    color: #344054;
    font-weight: 700;
}

.total-row {
    margin-top: 12px;
    padding-top: 18px;

    border-top: 1px dashed #d0d5dd;
}

.total-row span {
    color: #101828;

    font-size: 17px;
    font-weight: 750;
}

.total-row strong {
    color: #2563eb;

    font-size: 23px;
    font-weight: 800;
}


/* =========================================================
   PLACE ORDER
   ========================================================= */

.checkout-action {
    grid-column: 2;

    padding: 0;

    animation:
        checkoutFadeUp 0.65s ease both;

    animation-delay: 0.22s;
}

.place-order-btn {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 58px;

    padding: 0 24px;

    border: none;
    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 16px;
    font-weight: 750;

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        0 12px 28px rgba(37, 99, 235, 0.22),
        0 3px 8px rgba(37, 99, 235, 0.10);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.place-order-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.22),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.6s ease;
}

.place-order-btn:hover {
    transform: translateY(-2px);

    filter: brightness(1.03);

    box-shadow:
        0 15px 32px rgba(37, 99, 235, 0.25),
        0 5px 10px rgba(37, 99, 235, 0.12);
}

.place-order-btn:hover::before {
    left: 140%;
}

.place-order-btn:active {
    transform: translateY(0);
}

.place-order-btn:disabled {
    cursor: not-allowed;

    opacity: 0.65;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   NOTIFICATION
   ========================================================= */

.notification {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 9999;

    max-width: min(
        380px,
        calc(100vw - 40px)
    );

    padding: 14px 18px;

    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 13px;

    background: rgba(16, 24, 40, 0.95);

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.5;

    box-shadow:
        0 15px 35px rgba(16, 24, 40, 0.20);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes checkoutFadeUp {

    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .checkout-page {
        padding: 40px 16px 65px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-section:first-child {
        grid-row: auto;
    }

    .checkout-action {
        grid-column: auto;
    }

    .checkout-section {
        padding: 24px;
    }

    #checkoutProducts {
        max-height: none;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .checkout-page {
        padding: 28px 12px 50px;
    }

    .checkout-header {
        margin-bottom: 23px;
    }

    .checkout-header h1 {
        font-size: 30px;
    }

    .checkout-header p {
        font-size: 14px;
    }

    .checkout-section {
        padding: 20px 17px;
        border-radius: 17px;
    }

    .checkout-section h2 {
        font-size: 18px;
        margin-bottom: 21px;
    }

    .form-group {
        margin-bottom: 17px;
    }

    .form-group input,
    .form-group select {
        height: 48px;
        font-size: 14px;
    }

    .form-group textarea {
        font-size: 14px;
    }

    .payment-option {
        min-height: 58px;
        padding: 0 14px;
    }

    .payment-option span {
        font-size: 13px;
    }

    .checkout-product {
        padding: 11px;
    }

    .checkout-product-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 21px;
    }

    .checkout-product-info strong {
        font-size: 13px;
    }

    .checkout-product-total {
        font-size: 13px;
    }

    .summary-row {
        font-size: 13px;
    }

    .total-row span {
        font-size: 16px;
    }

    .total-row strong {
        font-size: 20px;
    }

    .place-order-btn {
        min-height: 55px;
        font-size: 15px;
    }

    .notification {
        right: 12px;
        bottom: 12px;
        max-width: calc(100vw - 24px);
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .checkout-header,
    .checkout-section,
    .checkout-action {
        animation: none;
    }

    .payment-option,
    .place-order-btn,
    .form-group input,
    .form-group select,
    .form-group textarea {
        transition: none;
    }

    .place-order-btn::before {
        display: none;
    }

}/* =========================================================
   PJ MARKET — PREMIUM ORDER TRACKING
   ========================================================= */

.tracking-page {
    min-height: calc(100vh - 80px);
    padding: 70px 20px 90px;
    background:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.06), transparent 32%),
        radial-gradient(circle at 90% 20%, rgba(14, 165, 233, 0.06), transparent 30%),
        #f7f9fc;
}

.tracking-container {
    width: min(100%, 980px);
    margin: 0 auto;
}


/* =========================
   HEADER
   ========================= */

.tracking-header {
    text-align: center;
    margin-bottom: 34px;
}

.tracking-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 13px;
}

.tracking-header h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.tracking-header p {
    max-width: 590px;
    margin: 14px auto 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================
   SEARCH CARD
   ========================= */

.tracking-search-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e5eaf1;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.tracking-search {
    display: flex;
    gap: 12px;
}

.tracking-input-wrap {
    position: relative;
    flex: 1;
}

.tracking-search-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    pointer-events: none;
}

#trackingInput {
    width: 100%;
    height: 54px;
    padding: 0 18px 0 48px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: 0.2s ease;
    box-sizing: border-box;
}

#trackingInput::placeholder {
    color: #94a3b8;
}

#trackingInput:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

.tracking-search-btn {
    min-width: 155px;
    height: 54px;
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.20);
    transition: 0.2s ease;
}

.tracking-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.27);
}

.tracking-search-btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}


/* =========================
   ERROR
   ========================= */

.tracking-error {
    display: none;
    margin-top: 13px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
}

.tracking-error.show {
    display: block;
}


/* =========================
   RESULT
   ========================= */

.tracking-result {
    display: none;
    margin-top: 24px;
}

.tracking-result.show {
    display: block;
    animation: trackingFadeUp 0.35s ease;
}

@keyframes trackingFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   ORDER CARD
   ========================= */

.tracking-order-card,
.tracking-timeline-card {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.tracking-order-card {
    padding: 28px;
}

.tracking-result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid #edf0f4;
}

.tracking-small-label {
    display: block;
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.15em;
}

.tracking-result-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 850;
}

.tracking-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.tracking-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}


/* =========================
   INFO GRID
   ========================= */

.tracking-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.tracking-info-item {
    padding: 20px 18px;
    border-bottom: 1px solid #edf0f4;
}

.tracking-info-item:nth-child(odd) {
    border-right: 1px solid #edf0f4;
}

.tracking-info-item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.tracking-info-wide {
    grid-column: 1 / -1;
    border-right: 0 !important;
}

.tracking-info-item span {
    display: block;
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.tracking-info-item strong {
    color: #1e293b;
    font-size: 14px;
    font-weight: 800;
}


/* =========================
   TIMELINE
   ========================= */

.tracking-timeline-card {
    margin-top: 24px;
    padding: 28px;
}

.tracking-section-title {
    margin-bottom: 30px;
}

.tracking-section-title > span {
    color: #2563eb;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.15em;
}

.tracking-section-title h2 {
    margin: 6px 0 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 850;
}

.status-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 0;
}

.status-step {
    position: relative;
    flex: 1;
    text-align: center;
}

.status-line {
    position: absolute;
    top: 17px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.status-step:last-child .status-line {
    display: none;
}

.status-dot {
    position: relative;
    z-index: 2;
    width: 34px;
    height: 34px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dbe2ea;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
    transition: 0.25s ease;
}

.status-text {
    padding: 0 6px;
}

.status-text strong {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.status-text span {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.4;
}


/* Completed */

.status-step.completed .status-dot {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.status-step.completed .status-line {
    background: #2563eb;
}

.status-step.completed .status-text strong {
    color: #334155;
}


/* Active */

.status-step.active .status-dot {
    background: #fff;
    border-color: #2563eb;
    color: #2563eb;
    box-shadow:
        0 0 0 5px rgba(37, 99, 235, 0.10),
        0 8px 20px rgba(37, 99, 235, 0.14);
    transform: scale(1.08);
}

.status-step.active .status-text strong {
    color: #2563eb;
}


/* =========================
   FOOTER
   ========================= */

.pj-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 40px 20px 20px;
}

.pj-footer-inner {
    width: min(100%, 1100px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.pj-footer-inner strong {
    color: #fff;
    font-size: 18px;
}

.pj-footer-inner p {
    margin: 8px 0 0;
    color: #94a3b8;
    font-size: 13px;
}

.pj-footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.pj-footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s ease;
}

.pj-footer-links a:hover {
    color: #fff;
}

.pj-footer-bottom {
    width: min(100%, 1100px);
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #64748b;
    font-size: 11px;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 760px) {

    .tracking-page {
        padding: 50px 15px 70px;
    }

    .tracking-search {
        flex-direction: column;
    }

    .tracking-search-btn {
        width: 100%;
    }

    .tracking-order-card,
    .tracking-timeline-card {
        padding: 21px;
        border-radius: 20px;
    }

    .tracking-result-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .tracking-info-grid {
        grid-template-columns: 1fr;
    }

    .tracking-info-item:nth-child(odd) {
        border-right: 0;
    }

    .tracking-info-item {
        border-bottom: 1px solid #edf0f4 !important;
    }

    .tracking-info-item:last-child {
        border-bottom: 0 !important;
    }

    .status-timeline {
        display: block;
    }

    .status-step {
        min-height: 74px;
        display: grid;
        grid-template-columns: 42px 1fr;
        text-align: left;
        gap: 12px;
    }

    .status-dot {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
    }

    .status-text {
        grid-column: 2;
        grid-row: 1;
        padding: 3px 0 0;
    }

    .status-line {
        width: 2px;
        height: 74px;
        top: 34px;
        left: 17px;
    }

    .status-step:last-child {
        min-height: 40px;
    }

    .pj-footer-inner {
        flex-direction: column;
    }

    .pj-footer-links {
        flex-wrap: wrap;
    }

}


@media (max-width: 460px) {

    .tracking-header h1 {
        font-size: 30px;
    }

    .tracking-search-card {
        padding: 15px;
    }

    #trackingInput,
    .tracking-search-btn {
        height: 50px;
    }

    .tracking-result-heading h2 {
        font-size: 20px;
    }

} /* =========================================================
   PJ MARKET — PREMIUM REVIEW SYSTEM
========================================================= */

.reviews-section {
    margin-top: 55px;
    padding: 34px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow:
        0 15px 45px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   REVIEW HEADER
========================================================= */

.reviews-section .details-section-heading {
    margin-bottom: 28px;
}

.reviews-section .section-label {
    display: inline-block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: #ff1744;
}

.reviews-section .section-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
}


/* =========================================================
   RATING SUMMARY
========================================================= */

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    margin-bottom: 30px;

    background:
        linear-gradient(
            135deg,
            #fff8e1,
            #ffffff
        );

    border: 1px solid #f4e3a3;
    border-radius: 18px;
}


.big-rating {
    min-width: 78px;

    font-size: 42px;
    line-height: 1;
    font-weight: 900;

    color: #111827;
}


.review-summary-stars {
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: 2px;
    color: #f59e0b;
}


.review-count {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}


/* =========================================================
   REVIEW LIST
========================================================= */

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.review-card {
    position: relative;

    padding: 21px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.review-card:hover {
    transform: translateY(-2px);

    border-color: rgba(255, 23, 68, 0.18);

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.07);
}


/* =========================================================
   REVIEW TOP
========================================================= */

.review-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}


.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}


.review-avatar {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #111827,
            #374151
        );

    color: #ffffff;
    font-size: 18px;

    box-shadow:
        0 5px 14px rgba(17, 24, 39, 0.18);
}


.review-user strong {
    display: block;

    font-size: 14px;
    font-weight: 800;
    color: #111827;
}


.review-date {
    display: block;

    margin-top: 3px;

    font-size: 12px;
    color: #9ca3af;
}


.review-rating {
    font-size: 19px;
    letter-spacing: 1px;
    color: #f59e0b;
    white-space: nowrap;
}


/* =========================================================
   REVIEW COMMENT
========================================================= */

.review-comment {
    margin: 17px 0 0;
    padding-top: 15px;

    border-top: 1px solid #f0f1f3;

    font-size: 14px;
    line-height: 1.75;
    color: #4b5563;

    word-break: break-word;
}


/* =========================================================
   NO REVIEWS
========================================================= */

.no-reviews {
    padding: 35px 20px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #fafafa,
            #ffffff
        );

    border: 1px dashed #d9dde5;
    border-radius: 18px;
}


.no-reviews-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 13px;

    border-radius: 50%;

    background: #f3f4f6;

    font-size: 25px;
}


.no-reviews strong {
    display: block;

    font-size: 15px;
    color: #111827;
}


.no-reviews p {
    margin: 7px 0 0;

    font-size: 13px;
    color: #9ca3af;
}


/* =========================================================
   WRITE REVIEW BOX
========================================================= */

.review-form {
    margin-top: 30px;
    padding: 25px;

    background: #f9fafb;

    border: 1px solid #e5e7eb;
    border-radius: 20px;
}


.review-form h3 {
    margin: 0 0 18px;

    font-size: 19px;
    font-weight: 800;
    color: #111827;
}


/* =========================================================
   STAR INPUT
========================================================= */

.star-rating-input {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}


.rating-star {
    width: 42px;
    height: 42px;

    padding: 0;

    border: none;
    background: transparent;

    font-size: 31px;
    line-height: 1;

    color: #d1d5db;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        color 0.18s ease;
}


.rating-star:hover {
    transform: scale(1.18);
    color: #f59e0b;
}


.rating-star.selected {
    color: #f59e0b;
}


.selected-rating-text {
    min-height: 19px;

    margin: 2px 0 13px;

    font-size: 12px;
    font-weight: 700;
    color: #f59e0b;
}


/* =========================================================
   COMMENT INPUT
========================================================= */

.review-comment-input {
    width: 100%;
    min-height: 125px;

    box-sizing: border-box;

    resize: vertical;

    padding: 14px 15px;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;

    color: #111827;

    background: #ffffff;

    border: 1px solid #dfe3e8;
    border-radius: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.review-comment-input::placeholder {
    color: #9ca3af;
}


.review-comment-input:focus {
    border-color: #ff1744;

    box-shadow:
        0 0 0 4px rgba(255, 23, 68, 0.08);
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.submit-review-btn {
    margin-top: 14px;

    min-width: 155px;

    padding: 12px 21px;

    border: none;
    border-radius: 12px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ff1744,
            #ff4d6d
        );

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(255, 23, 68, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}


.submit-review-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 26px rgba(255, 23, 68, 0.28);
}


.submit-review-btn:active {
    transform: translateY(0);
}


.submit-review-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* =========================================================
   LOGIN TO REVIEW
========================================================= */

.review-login-box {
    padding: 20px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 15px;
}


.review-login-box p {
    margin: 0 0 13px;

    font-size: 14px;
    color: #6b7280;
}


.review-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    color: #ffffff;

    background: #111827;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.review-login-btn:hover {
    transform: translateY(-1px);
    background: #1f2937;
}


/* =========================================================
   EXISTING REVIEW
========================================================= */

.existing-review-box {
    padding: 20px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 15px;
}


.existing-review-title {
    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 800;

    color: #16a34a;
}


.existing-review-stars {
    margin-bottom: 8px;

    font-size: 20px;
    letter-spacing: 1px;

    color: #f59e0b;
}


.existing-review-box p {
    margin: 0;

    font-size: 14px;
    line-height: 1.65;

    color: #6b7280;
}


/* =========================================================
   REVIEW ERROR
========================================================= */

.review-form .review-login-note {
    margin: 0;

    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .reviews-section {
        margin-top: 38px;
        padding: 21px 16px;
        border-radius: 20px;
    }


    .reviews-section .section-title {
        font-size: 23px;
    }


    .reviews-summary {
        padding: 18px;
        gap: 15px;
        border-radius: 16px;
    }


    .big-rating {
        min-width: 62px;
        font-size: 34px;
    }


    .review-summary-stars {
        font-size: 20px;
        letter-spacing: 1px;
    }


    .review-card {
        padding: 17px;
        border-radius: 15px;
    }


    .review-card-top {
        align-items: flex-start;
    }


    .review-rating {
        font-size: 16px;
    }


    .review-form {
        padding: 19px 15px;
        border-radius: 16px;
    }


    .rating-star {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }


    .review-comment-input {
        min-height: 115px;
    }


    .submit-review-btn {
        width: 100%;
    }

}


@media (max-width: 420px) {

    .reviews-summary {
        align-items: flex-start;
    }


    .review-card-top {
        flex-direction: column;
        gap: 10px;
    }


    .review-rating {
        padding-left: 55px;
    }


    .star-rating-input {
        gap: 1px;
    }


    .rating-star {
        width: 36px;
        font-size: 27px;
    }

}