/* =========================
   DESIGN SYSTEM – LEE FAMILY MAKIT
   Blue & White theme
========================= */
:root {
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-hero-overlay: rgba(15, 23, 42, 0.45);

    --border-soft: #e5e7eb;

    --text-main: #0f172a;
    --text-muted: #6b7280;
    --text-link: #2563eb;
    --text-danger: #dc2626;

    --accent: #2563eb;        /* BLUE */
    --accent-dark: #1d4ed8;   /* darker blue */
    --accent-soft: #dbeafe;   /* light blue background */

    --success: #16a34a;
    --warning: #facc15;
    --danger: #ef4444;
}

/* =========================
   GLOBAL RESET
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
}

/* =========================
   HEADER & NAV
========================= */
.main-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-soft);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
}

/* Logo + nav group */
.logo-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.logo-text {
    font-weight: 800;
    font-size: 18px;
    color: var(--accent-dark);
}

/* Navigation */
.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Search bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.search-bar input {
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
    outline: none;
    width: 210px;
    font-size: 14px;
    background-color: #ffffff;
}

.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.search-bar button {
    padding: 7px 12px;
    background-color: var(--accent);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.search-bar button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
}

/* Search suggestions */
#suggestions {
    position: absolute;
    top: 115%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    z-index: 40;
    max-height: 260px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-main);
}

.suggestion-item:hover {
    background-color: #f9fafb;
}

/* User actions (login, register, orders, cart) */
.user-actions {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.user-actions a {
    color: var(--text-link);
    text-decoration: none;
    font-weight: 500;
}

.user-actions a:hover {
    text-decoration: underline;
}

#cart-count {
    font-weight: 700;
    color: var(--accent-dark);
}

/* =========================
   GENERAL TITLES & LAYOUT
========================= */
h1, h2, h3 {
    margin: 16px 0 10px;
    font-weight: 700;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 20px;
}

.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* =========================
   HERO
========================= */
.hero {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: background-image 0.8s ease-in-out;
    margin: 16px auto 12px;
    max-width: 1200px;
    border-radius: 14px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,23,42,0.70), rgba(15,23,42,0.25));
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 32px;
    transform: translateY(-50%);
    color: #ffffff;
    text-align: left;
}

.hero-text h2 {
    font-size: 26px;
    margin-bottom: 6px;
}

.hero-text p {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
}

/* =========================
   CATEGORY BAR
========================= */
.categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px 4px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.categories button {
    background-color: #f9fafb;
    border: 1px solid var(--border-soft);
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    color: var(--text-main);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.categories button:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent-dark);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

/* =========================
   HOME SECTIONS (New / Best / All)
========================= */
.home-section {
    max-width: 1300px;
    margin: 12px auto 24px;
    padding: 0 16px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 18px;
}

/* Product grid */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Product card */
.product {
    width: 220px;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    transition: transform 0.17s ease, box-shadow 0.17s ease, border-color 0.17s ease;
}

.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12);
    border-color: var(--accent-soft);
}

.product img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 8px;
    background-color: #fff;
}

.product a {
    text-decoration: none;
    color: var(--text-main);
    display: block;
}

.product-name {
    margin: 4px 0 2px;
    font-size: 14px;
    font-weight: 600;
    min-height: 34px;
}

.price-now {
    font-size: 15px;
    font-weight: 700;
    margin-top: 4px;
    color: var(--text-main);
}

.price-old {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.stock-out-small {
    color: var(--text-danger);
    font-size: 12px;
    margin-top: 3px;
}

/* Badges NEW / PROMO */
.card-top {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    z-index: 5;
}

.badge-new {
    background: var(--success);
}

.badge-promo {
    width: 64px;
    height: 64px;
    background: #d40505;
    color: #fff;
    font-size: 13px;
    font-weight: 800;

    display: flex;
    align-items: center;
    justify-content: center;

    clip-path: polygon(
        50% 0%,
        95% 35%,
        78% 100%,
        22% 100%,
        5% 35%
    );

    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.35);
}
.badge-promo {
    animation: promoBlink 1.2s infinite;
}

@keyframes promoBlink {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================
   BUTTONS
========================= */
button {
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.checkout-btn {
    padding: 10px 20px;
    background-color: var(--success);
    border-radius: 999px;
}

.checkout-btn:hover {
    background-color: #15803d;
}

/* Disabled */
.btn-disabled {
    background-color: #9ca3af !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* =========================
   PRODUCT PAGE
========================= */
.product-page {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Gallery */
.product-gallery {
    position: relative;
    flex: 1 1 360px;
}

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.product-main-image {
    width: 100%;
    max-width: 460px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
    object-fit: contain;
    padding: 10px;
}

.product-thumbs {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.product-thumbs img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    object-fit: cover;
    cursor: pointer;
    background: #f9fafb;
}

.product-thumbs img:hover {
    border-color: var(--accent);
}

/* Summary */
.product-summary {
    flex: 1 1 360px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 16px 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.product-title {
    font-size: 22px;
    margin-bottom: 4px;
}

.product-category {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 8px 0 10px;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-dark);
}

.product-old-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-stock-line {
    font-size: 14px;
    margin-bottom: 10px;
}

.stock-out {
    color: var(--text-danger);
    font-weight: 700;
}

/* description + similar */
.product-description-block,
.product-similar-block {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 14px 16px 16px;
}

.product-description-block h2,
.product-similar-block h2 {
    font-size: 17px;
    margin-bottom: 8px;
}

/* similar grid */
.similar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.similar-item {
    width: 200px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 8px;
    background: #ffffff;
    position: relative;
}

.similar-item img {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    object-fit: cover;
}

.similar-item h3 {
    font-size: 13px;
    margin: 6px 0 4px;
}

.similar-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-dark);
    margin: 0;
}

.similar-out {
    color: var(--text-danger);
    font-size: 12px;
    margin-top: 3px;
}

/* =========================
   CART & CHECKOUT
========================= */
#cart-items .product {
    width: 100%;
    max-width: 600px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

#cart-items .product img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

/* Form controls */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="time"],
select,
textarea {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    width: 100%;
    max-width: 400px;
    outline: none;
    background-color: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

/* Summary box (checkout) */
#order-summary {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

/* =========================
   TABLES (used also in ADMIN)
========================= */
table {
    border-collapse: collapse;
    font-size: 14px;
    width: 100%;
    background-color: #ffffff;
}

th, td {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* Links inside tables/admin */
table a {
    color: var(--text-link);
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

/* =========================
   ADMIN PAGES (generic styling)
========================= */
body > h1 {
    max-width: 1100px;
    margin: 20px auto 10px;
    padding: 0 16px;
}

body > p {
    max-width: 1100px;
    margin: 0 auto 10px;
    padding: 0 16px;
}

body > table {
    max-width: 1100px;
    margin: 10px auto 30px;
}

/* Admin nav links line (like Orders | Products | Stats | Logout) */
body > p a {
    margin-right: 8px;
}

/* =========================
   AUTH PAGES (login / register)
========================= */
form {
    margin-top: 8px;
}

form[method="post"] {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 16px;
    max-width: 420px;
}

label {
    font-size: 14px;
    font-weight: 500;
}

/* =========================
   FOOTER
========================= */
footer {
    background-color: #0f172a;
    color: #e5e7eb;
    text-align: center;
    padding: 14px;
    margin-top: 30px;
    font-size: 13px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .main-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
    }

    .logo-nav {
        width: 100%;
        justify-content: space-between;
    }

    .search-bar {
        order: 3;
        width: 100%;
    }

    .search-bar input {
        width: 100%;
    }

    .product-top {
        flex-direction: column;
    }

    .product,
    .similar-item {
        width: calc(50% - 8px);
    }
}

@media (max-width: 600px) {
    .product,
    .similar-item {
        width: 100%;
    }

    .categories {
        padding: 8px;
    }

    .main-header {
        padding: 8px;
    }

    body > h1,
    body > p,
    body > table {
        padding: 0 8px;
    }
}
/* =========================
   UI UPGRADE PACK
========================= */

/* smoother */
html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.5;
}

/* better spacing for pages */
.page-container,
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* header polish */
.main-header {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.logo-text {
    letter-spacing: 0.2px;
}

.user-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* search */
.search-bar {
    min-width: 250px;
}

.search-bar input {
    transition: all 0.2s ease;
}

.search-bar button {
    border-radius: 8px;
}

/* hero */
.hero {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.hero-text h2 {
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.15;
}

.hero-text p {
    font-size: 16px;
}

/* section spacing */
.home-section {
    margin-top: 20px;
}

.section-title h2 {
    font-size: 22px;
    font-weight: 800;
}

/* product cards */
.product {
    border-radius: 16px;
    padding: 12px;
    width: 230px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.product img {
    height: 180px;
    border-radius: 12px;
    transition: transform 0.25s ease;
}

.product:hover img {
    transform: scale(1.03);
}

.product-name {
    font-size: 15px;
    line-height: 1.35;
}

.price-now,
.product-price,
.similar-price {
    letter-spacing: 0.2px;
}

.badge {
    font-size: 11px;
    padding: 4px 8px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* forms */
form[method="post"] {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="time"],
select,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

input:focus,
select:focus,
textarea:focus {
    transform: translateY(-1px);
}

/* buttons */
button,
.checkout-btn,
.btn-buy {
    border-radius: 10px;
    padding: 10px 16px;
}

.btn-buy {
    width: 100%;
    max-width: 320px;
    font-size: 15px;
}

/* cart item nicer */
#cart-items .product {
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

/* order summary */
#order-summary {
    max-width: 460px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

#order-summary p {
    margin: 8px 0;
}

/* product page */
.product-main-image {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.product-summary {
    border-radius: 16px;
}

.product-description-block,
.product-similar-block {
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.similar-item {
    width: 210px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.similar-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.10);
}

/* footer */
footer {
    margin-top: 50px;
}

/* toast */
.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #111827;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
    z-index: 9999;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* mobile */
@media (max-width: 900px) {
    .main-header {
        align-items: flex-start;
    }

    .logo-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .main-nav a {
        margin-left: 0;
        margin-right: 14px;
    }

    .search-bar {
        width: 100%;
        min-width: 0;
    }

    .search-bar input {
        flex: 1;
    }

    .user-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 4px;
    }

    .product-grid,
    .similar-grid {
        gap: 12px;
    }

    .product,
    .similar-item {
        width: calc(50% - 6px);
    }

    .hero {
        height: 220px;
    }

    .hero-text {
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 600px) {
    .logo-text {
        font-size: 16px;
    }

    .hero {
        height: 190px;
        border-radius: 12px;
    }

    .hero-text h2 {
        font-size: 22px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .product,
    .similar-item {
        width: 100%;
    }

    .product img {
        height: 200px;
    }

    .section-title h2 {
        font-size: 19px;
    }

    button,
    .checkout-btn,
    .btn-buy {
        width: 100%;
    }
    
}
/* =========================
   CART PAGE UPGRADE
========================= */
.cart-page,
.confirmation-page {
    max-width: 1100px;
    margin: 24px auto 40px;
    padding: 0 16px;
}

.cart-title,
.confirmation-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cart-subtitle,
.confirmation-subtitle {
    color: var(--text-muted);
    margin-bottom: 20px;
}

#cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.cart-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.cart-card img {
    width: 95px;
    height: 95px;
    border-radius: 12px;
    object-fit: cover;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.cart-card-info {
    flex: 1;
}

.cart-card-info h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.cart-card-price,
.cart-card-subtotal {
    font-size: 14px;
    color: var(--text-main);
    margin: 4px 0;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.qty-box button {
    border: none;
    background: #f3f4f6;
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 0;
    box-shadow: none;
}

.qty-box button:hover {
    background: #e5e7eb;
    transform: none;
}

.qty-value {
    min-width: 42px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

.remove-btn {
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 999px;
    padding: 8px 14px;
}

.remove-btn:hover {
    background: #fecaca;
    color: #991b1b;
    box-shadow: none;
}

.cart-summary-card {
    max-width: 420px;
    margin-left: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.cart-summary-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 15px;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    font-size: 18px;
    font-weight: 800;
}

.cart-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.back-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--text-link);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* =========================
   CONFIRMATION PAGE UPGRADE
========================= */
.confirmation-success-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
    max-width: 760px;
}

.confirmation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dcfce7;
    color: #166534;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.confirmation-order-id {
    font-size: 18px;
    margin-bottom: 16px;
}

.confirmation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

.confirmation-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
}

.confirmation-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
}

.confirmation-box p,
.confirmation-box pre {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--text-main);
}

.confirmation-box pre {
    white-space: pre-wrap;
    background: transparent;
    border: none;
    padding: 0;
}

.confirmation-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-secondary-link {
    display: inline-block;
    text-decoration: none;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
}

.btn-secondary-link:hover {
    background: #dbeafe;
}

.btn-primary-link {
    display: inline-block;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
}

.btn-primary-link:hover {
    background: var(--accent-dark);
}

.empty-cart-box {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 700px) {
    .cart-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-card img {
        width: 100%;
        max-width: 220px;
        height: auto;
    }

    .confirmation-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary-card {
        max-width: 100%;
        margin-left: 0;
    }
}
/* =========================
   TOP INFO BAR
========================= */
.top-bar {
    background: #0f172a;
    color: #e5e7eb;
    font-size: 12px;
    padding: 6px 16px;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.top-left,
.top-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.top-bar a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
}

.top-bar a:hover {
    text-decoration: underline;
}

.top-icon {
    margin-right: 4px;
}

/* mobile */
@media (max-width: 600px) {
    .top-bar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
.icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.top-right a img {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.top-right a img:hover {
    transform: scale(1.2);
}
/* =========================
   FOOTER PRO
========================= */
.site-footer {
    background: #0f172a;
    color: #e5e7eb;
    margin-top: 50px;
    padding-top: 36px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h3 {
    font-size: 16px;
    margin-bottom: 14px;
    color: #ffffff;
}

.footer-col a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #cbd5e1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding: 14px 16px;
    font-size: 13px;
    color: #94a3b8;
}

/* responsive */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}
.about-page {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 16px;
}

.about-page h1 {
    font-size: 30px;
    margin-bottom: 16px;
}

.about-page h2 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 22px;
}

.about-page p {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

.why-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
}

.why-card {
    flex: 1 1 220px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.why-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}
/* =========================
   TEAM / CEO SECTION
========================= */
.team-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.team-card {
    flex: 1 1 260px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.team-card img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10%;
    margin-bottom: 12px;
}

.team-card h3 {
    margin-bottom: 4px;
    font-size: 18px;
}

.team-card .role {
    font-size: 13px;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 8px;
}

.team-card .desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}
.contact-page {
    max-width: 1100px;
    margin: 30px auto 40px;
    padding: 0 16px;
}

.contact-page h1 {
    font-size: 30px;
    margin-bottom: 10px;
}

.contact-intro {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
}

.contact-info-card,
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.contact-info-card h2,
.contact-form-card h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 22px;
}

.contact-info-card p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #374151;
}

.contact-info-card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

.contact-form {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    box-shadow: none !important;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    margin-top: 14px;
    font-weight: 600;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    max-width: 100%;
}

.contact-form button {
    margin-top: 16px;
}

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
.faq h3 {
    margin-top: 16px;
    font-size: 16px;
}

.faq p {
    margin-bottom: 10px;
    color: #555;
}
.account-page {
    max-width: 1100px;
    margin: 30px auto 40px;
    padding: 0 16px;
}

.account-intro {
    color: #6b7280;
    margin-bottom: 20px;
}

.account-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.account-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.account-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 22px;
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.account-label {
    font-weight: 700;
    color: #374151;
}

.account-value {
    color: #111827;
    text-align: right;
}

.account-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-btn-link {
    display: block;
    text-decoration: none;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.2s ease;
}

.account-btn-link:hover {
    background: #dbeafe;
}

.logout-link {
    background: #fee2e2;
    color: #b91c1c;
}

.logout-link:hover {
    background: #fecaca;
}

@media (max-width: 800px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-info-row {
        flex-direction: column;
        gap: 6px;
    }

    .account-value {
        text-align: left;
    }
}
.payment-methods {
    margin-top: 20px;
    text-align: center;
}

.payment-title {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
    font-weight: 600;
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.payment-logos img {
    height: 60px;
    object-fit: contain;
    background: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease;
}

.payment-logos img:hover {
    transform: scale(1.05);
}
.option-block {
    margin: 14px 0 18px;
}

.option-list,
.color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.option-btn,
.color-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.option-btn:hover,
.color-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.option-btn.active,
.color-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
}
.option-block {
    margin: 14px 0 18px;
}

.option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.option-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.option-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.option-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.color-image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.color-image-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    width: 90px;
    text-align: center;
    transition: 0.2s ease;
}

.color-image-btn img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 6px;
}

.color-image-btn span {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
}

.color-image-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.color-image-btn.active {
    border-color: #1d4ed8;
    background: #dbeafe;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}
.product-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    width: 100%;
}

.product-action-buttons button {
    flex: 1;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .product-action-buttons {
        flex-direction: column;
    }

    .product-action-buttons button {
        width: 100%;
    }
}
.stock-out-small {
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.product.out-of-stock {
    opacity: 0.88;
}

.product.out-of-stock img {
    filter: grayscale(20%);
}
.btn-disabled {
    background: #9ca3af !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.8;
    pointer-events: none;
}
/* =========================
   FINAL MOBILE FIX - LEE MAKIT
========================= */

/* 1) Mobile: 2 products per row on index */
@media (max-width: 600px) {
    .product-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-grid .product {
        width: calc(50% - 5px) !important;
        padding: 8px;
    }

    .product-grid .product img {
        height: 125px;
        object-fit: contain;
    }

    .product-grid .product-name {
        font-size: 12px;
        min-height: 34px;
    }

    .product-grid .price-now {
        font-size: 13px;
    }
}

/* 2) Similar products complete on PC and mobile */
.similar-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.similar-item {
    width: 100% !important;
    overflow: visible;
}

.similar-item img {
    height: 150px;
    object-fit: contain;
    background: #fff;
}

@media (max-width: 600px) {
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .similar-item img {
        height: 120px;
    }

    .similar-item h3 {
        font-size: 12px;
        min-height: 34px;
    }
}

/* 3) Footer: 2 columns on phone */
@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
        text-align: left;
    }

    .footer-col h3 {
        font-size: 14px;
    }

    .footer-col a,
    .footer-col p {
        font-size: 12px;
    }
}

/* 4) Search bar size fix */
.search-bar {
    min-width: 0 !important;
}

.search-bar input {
    width: 100%;
    min-width: 0;
}

@media (max-width: 600px) {
    .search-bar {
        width: 100%;
        display: flex;
        gap: 6px;
    }

    .search-bar input {
        flex: 1;
        width: auto !important;
    }

    .search-bar button {
        width: auto !important;
        white-space: nowrap;
        padding: 8px 10px;
    }
}

/* 5) Header mobile: left logo/nav, right account/cart */
@media (max-width: 600px) {
    .main-header {
        display: grid !important;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 8px;
        padding: 8px;
    }

    .logo-nav {
        width: auto !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        justify-content: flex-start !important;
        grid-column: 1 / 2;
    }

    .logo-img {
        width: 26px;
        height: 26px;
    }

    .logo-text {
        font-size: 14px;
        white-space: nowrap;
    }

    .main-nav {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .main-nav a {
        margin: 0 !important;
        font-size: 12px;
        white-space: nowrap;
    }

    .user-actions {
        grid-column: 2 / 3;
        width: auto !important;
        justify-content: flex-end !important;
        align-items: center;
        text-align: right;
        font-size: 11px;
        gap: 4px;
    }

    .search-bar {
        grid-column: 1 / 3;
        order: unset !important;
    }
}

/* Small phones: avoid header overflow */
@media (max-width: 390px) {
    .logo-text {
        font-size: 12px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .user-actions {
        font-size: 10px;
    }
}
/* =========================
   HEADER SEARCH CLEAN
========================= */

.header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    min-width: 250px;
    width: auto;
    max-width: 100%;
}

.header-search input {
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
    outline: none;
    width: 210px;
    height: auto;
    font-size: 14px;
    background-color: #ffffff;
}

.header-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.header-search button {
    padding: 7px 12px;
    height: auto;
    background-color: var(--accent);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    width: auto;
}

.header-search button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
}

#headerSuggestions {
    position: absolute;
    top: 115%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    z-index: 9999;
    max-height: 260px;
    overflow-y: auto;
}

#headerSuggestions .suggestion-item {
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-main);
    border-bottom: 1px solid #f1f5f9;
}

#headerSuggestions .suggestion-item:hover {
    background-color: #f9fafb;
}

@media (max-width: 600px) {
    .header-search {
        width: 100%;
        min-width: 0;
        display: flex;
        gap: 6px;
        grid-column: 1 / 3;
    }

    .header-search input {
        flex: 1;
        width: auto;
    }

    .header-search button {
        width: auto;
        white-space: nowrap;
        padding: 8px 10px;
    }
}
/* =========================
   SIMILAR PRODUCTS SLIDER
========================= */

.similar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.similar-grid {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 5px;
    flex-wrap: nowrap !important;
}

.similar-grid::-webkit-scrollbar {
    display: none;
}

.similar-item {
    min-width: 190px;
    max-width: 190px;
    flex-shrink: 0;
}

.similar-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.similar-arrow:hover {
    background: #1d4ed8;
}

@media (max-width: 768px) {

    .similar-arrow {
        display: none;
    }

    .similar-item {
        min-width: 160px;
        max-width: 160px;
    }
}
/* =========================
   FORCE HEADER LAYOUT
========================= */

.main-header{
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 12px 24px;
}

/* LEFT */

.logo-nav{
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.logo-link{
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img{
    width: 34px;
    height: 34px;
}

.logo-text{
    font-size: 18px;
    font-weight: 800;
    color: #2563eb;
}

/* NAV */

.main-nav{
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a{
    text-decoration: none;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

/* SEARCH CENTER */

.header-search{
    flex: 1;
    max-width: 430px;

    display: flex;
    align-items: center;

    position: relative;
}

.header-search input{
    flex: 1;

    height: 40px;

    border: 1px solid #d1d5db;
    border-right: none;

    border-radius: 6px 0 0 6px;

    padding: 0 14px;

    font-size: 14px;

    outline: none;

    background: #fff;
}

.header-search button{

    height: 40px;

    padding: 0 18px;

    border: none;

    background: #2563eb;

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    border-radius: 0 6px 6px 0;

    cursor: pointer;
}

.header-search button:hover{
    background: #1d4ed8;
}

/* RIGHT */

.user-actions{
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;

    white-space: nowrap;
}

.user-actions a{
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
}

/* SUGGESTIONS */

#headerSuggestions{
    position: absolute;

    top: 44px;
    left: 0;

    width: 100%;

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 8px;

    overflow: hidden;

    z-index: 99999;

    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.suggestion-item{
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover{
    background: #f5f5f5;
}

/* MOBILE */

@media(max-width:900px){

    .main-header{
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-search{
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .user-actions{
        margin-left: auto;
    }
}

@media(max-width:600px){

    .main-header{
        padding: 10px;
    }

    .logo-nav{
        gap: 12px;
    }

    .main-nav{
        gap: 10px;
    }

    .main-nav a{
        font-size: 12px;
    }

    .logo-text{
        font-size: 15px;
    }

    .user-actions{
        font-size: 11px;
        gap: 5px;
    }

    .header-search input{
        font-size: 13px;
    }

    .header-search button{
        font-size: 13px;
        padding: 0 12px;
    }
}
/* BIGGER TOP BAR */

.top-bar{
    padding: 12px 24px !important;
    font-size: 14px !important;
}

.top-bar-container{
    min-height: 42px;
}

.top-left,
.top-right{
    gap: 20px !important;
}

.top-bar a,
.top-bar span{
    font-size: 14px;
    font-weight: 600;
}

.top-bar .icon{
    width: 18px;
    height: 18px;
}

/* MOBILE */

@media(max-width:768px){

    .top-bar{
        padding: 10px 12px !important;
    }

    .top-bar a,
    .top-bar span{
       font-size: 12px;
    }

    .top-bar .icon{
        width: 15px;
        height: 15px;
    }
}
.logo-img{
    background: transparent !important;
    mix-blend-mode: multiply;
}
/* =========================================
   MODERN SEARCH POPUP
========================================= */

.modern-search-wrapper{
    flex:1;
    display:flex;
    justify-content:center;
}

.modern-search-btn{

    width:100%;
    max-width:420px;

    height:44px;

    border:none;

    border-radius:999px;

    background:#fff;

    border:1px solid #d1d5db;

    color:#6b7280;

    text-align:left;

    padding:0 18px;

    font-size:14px;

    cursor:pointer;
}

.modern-search-btn:hover{
    border-color:#2563eb;
}

/* POPUP */

.search-popup{

    position:fixed;

    inset:0;

    z-index:99999;

    opacity:0;
    pointer-events:none;

    transition:0.25s;
}

.search-popup.active{

    opacity:1;
    pointer-events:auto;
}

.search-popup-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,0.5);

    backdrop-filter:blur(3px);
}

.search-popup-box{

    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);

    width:95%;
    max-width:600px;

    background:#fff;

    border-radius:20px;

    padding:20px;

    box-shadow:0 20px 50px rgba(0,0,0,0.2);
}

/* TOP */

.search-popup-top{

    display:flex;
    gap:10px;

    margin-bottom:18px;
}

.search-popup-top input{

    flex:1;

    height:50px;

    border:1px solid #d1d5db;

    border-radius:12px;

    padding:0 16px;

    font-size:15px;

    outline:none;
}

.search-popup-top button{

    width:50px;
    height:50px;

    border:none;

    border-radius:12px;

    background:#ef4444;

    color:#fff;

    font-size:18px;
}

/* CATEGORIES */

.search-categories{

    display:flex;
    flex-wrap:wrap;

    gap:10px;

    margin-bottom:20px;
}

.search-categories button{

    border:none;

    background:#eff6ff;

    color:#2563eb;

    padding:10px 14px;

    border-radius:999px;

    font-weight:700;
}

/* RESULTS */

#modernSearchResults{

    display:flex;
    flex-direction:column;

    gap:10px;

    max-height:400px;

    overflow-y:auto;
}

.modern-search-item{

    display:flex;
    align-items:center;

    gap:12px;

    padding:10px;

    border-radius:12px;

    cursor:pointer;

    transition:0.2s;
}

.modern-search-item:hover{
    background:#f3f4f6;
}

.modern-search-item img{

    width:70px;
    height:70px;

    object-fit:cover;

    border-radius:10px;
}

.modern-search-item h4{

    font-size:14px;

    margin-bottom:4px;
}

.modern-search-item p{

    color:#2563eb;

    font-weight:700;
}

/* MOBILE */

@media(max-width:768px){

    .modern-search-wrapper{
        width:100%;
        order:3;
    }

    .modern-search-btn{
        max-width:100%;
    }

    .search-popup-box{
        width:94%;
        padding:16px;
    }
}
/* =====================================
   MODERN SEARCH
===================================== */

.modern-search-wrapper{

    flex:1;

    display:flex;
    justify-content:center;
}

.modern-search-btn{

    width:100%;
    max-width:420px;

    height:44px;

    border-radius:999px;

    border:1px solid #d1d5db;

    background:#fff;

    color:#6b7280;

    text-align:left;

    padding:0 18px;

    font-size:14px;

    font-weight:600;
}

.modern-search-btn:hover{
    border-color:#2563eb;
}

/* POPUP */

.search-popup{

    position:fixed;

    inset:0;

    z-index:99999;

    opacity:0;

    pointer-events:none;

    transition:0.25s;
}

.search-popup.active{

    opacity:1;

    pointer-events:auto;
}

.search-popup-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,0.5);

    backdrop-filter:blur(3px);
}

.search-popup-box{

    position:absolute;

    top:80px;

    left:50%;

    transform:translateX(-50%);

    width:95%;
    max-width:600px;

    background:#fff;

    border-radius:20px;

    padding:20px;

    box-shadow:0 20px 50px rgba(0,0,0,0.2);

    animation:searchDrop 0.25s ease;
}

@keyframes searchDrop{

    from{
        opacity:0;
        transform:translateX(-50%) translateY(-10px);
    }

    to{
        opacity:1;
        transform:translateX(-50%) translateY(0);
    }
}
.search-popup-overlay{

    background:rgba(0,0,0,0.15);
}
@media(max-width:768px){

    .search-popup-box{

        top:110px;

        width:94%;
    }
}
/* TOP */

.search-popup-top{

    display:flex;

    gap:10px;

    margin-bottom:18px;
}

.search-popup-top input{

    flex:1;

    height:50px;

    border:1px solid #d1d5db;

    border-radius:12px;

    padding:0 16px;

    font-size:15px;

    outline:none;
}

.search-popup-top button{

    width:50px;
    height:50px;

    border:none;

    border-radius:12px;

    background:#ef4444;

    color:#fff;

    font-size:18px;
}

/* CATEGORIES */

.search-categories{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:20px;
}

.search-categories button{

    background:#eff6ff;

    color:#2563eb;

    border:none;

    padding:10px 14px;

    border-radius:999px;

    font-weight:700;
}

/* RESULTS */

#modernSearchResults{

    display:flex;

    flex-direction:column;

    gap:10px;

    max-height:400px;

    overflow-y:auto;
}

.modern-search-item{

    display:flex;

    align-items:center;

    gap:12px;

    padding:10px;

    border-radius:12px;

    cursor:pointer;

    transition:0.2s;
}

.modern-search-item:hover{
    background:#f3f4f6;
}

.modern-search-item img{

    width:70px;
    height:70px;

    object-fit:cover;

    border-radius:10px;
}

.modern-search-item h4{

    font-size:14px;

    margin-bottom:4px;
}

.modern-search-item p{

    color:#2563eb;

    font-weight:700;
}

/* MOBILE */

@media(max-width:768px){

    .modern-search-wrapper{
        width:100%;
        order:3;
    }

    .modern-search-btn{
        max-width:100%;
    }

    .search-popup-box{
        width:94%;
        padding:16px;
    }
}
