/* =========================================================
   MEKSETU MARKETPLACE - MAIN CSS
   Theme: Navy + Orange + White
   Responsive: Desktop / Laptop / Tablet / Mobile
========================================================= */

:root {
    --navy: #073657;
    --navy-dark: #052b48;
    --orange: #f57b12;
    --text: #102f49;
    --muted: #66788a;
    --border: #e4ebf0;
    --light: #f6f9fb;
    --cream: #fff8ed;
    --shadow: 0 14px 40px rgba(7, 54, 87, 0.10);
    --radius: 18px;
}

/* =========================================================
   BASIC
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container,
.section {
    width: min(1400px, 92%);
    margin: auto;
}

/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    min-height: 34px;
    background: var(--navy-dark);
    color: #fff;
    padding: 7px 4%;
    font-size: 12px;

    display: flex;
    align-items: center;
    gap: 8px;
}

.toplinks {
    margin-left: auto;
    display: flex;
    gap: 22px;
}

.toplinks a:hover {
    text-decoration: underline;
}

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

.header {
    min-height: 92px;
    padding: 12px 4%;
    background: #fff;
    border-bottom: 1px solid #edf1f4;

    display: flex;
    align-items: center;
    gap: 24px;

    position: relative;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    width: 168px;
    max-height: 58px;
    height: auto;
    object-fit: contain;
}

/* SEARCH */

.search {
    height: 48px;
    max-width: 760px;
    flex: 1;

    display: flex;

    border: 1px solid #d7e1e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: var(--text);
}

.search select {
    border: 0;
    border-left: 1px solid #e1e6eb;
    padding: 0 12px;
    outline: 0;
    color: var(--text);
    background: #fff;
}

.search button {
    width: 62px;
    border: 0;
    background: var(--orange);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* HEADER ACTIONS */

.actions {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 18px;

    white-space: nowrap;
    font-size: 14px;
}

.actions a:hover {
    color: var(--orange);
}

/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.nav {
    min-height: 52px;
    padding: 0 4%;

    display: flex;
    align-items: center;
    gap: 27px;

    background: var(--navy);
    color: #fff;

    font-size: 14px;

    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav a {
    padding: 16px 0;
    opacity: 0.96;
}

.nav a:hover {
    color: #ffd4ad;
}

.nav a:first-child {
    font-weight: 800;
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.mobile-toggle {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border: 1px solid #d8e1e8;
    border-radius: 9px;

    background: #fff;
    color: var(--navy);

    font-size: 21px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

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

.hero {
    width: 100%;
    background: #edf6fa;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;

    aspect-ratio: 16 / 7.6;

    min-height: 320px;
    max-height: 590px;

    background: #edf6fa;
}

.hero-slide {
    position: absolute;
    inset: 0;

    opacity: 0;

    transition: opacity 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* HERO DOTS */

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;

    transform: translateX(-50%);

    display: flex;
    gap: 8px;

    z-index: 5;
}

.hero-dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.6);

    cursor: pointer;
}

.hero-dot.active {
    background: var(--orange);
    transform: scale(1.25);
}

/* HERO TEXT */

.hero-overlay {
    position: absolute;

    left: 5%;
    bottom: 8%;

    z-index: 4;

    width: min(420px, 90%);

    padding: 22px 24px;

    background: rgba(255, 255, 255, 0.92);

    backdrop-filter: blur(6px);

    border-radius: 16px;

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

.hero-overlay h1 {
    margin: 0 0 10px;

    font-size: clamp(28px, 3.2vw, 50px);
    line-height: 1.03;
}

.hero-overlay h1 span {
    color: var(--orange);
}

.hero-overlay p {
    margin: 0 0 16px;
    font-size: 15px;
}

.hero-overlay .btn {
    margin-right: 7px;
    margin-bottom: 5px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    min-height: 44px;
    padding: 11px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

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

    color: #fff;

    font-weight: 800;

    cursor: pointer;

    transition: 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.97);
}

.btn.alt {
    background: #fff;
    color: var(--navy);
    border-color: #c9d6df;
}

/* =========================================================
   STATS
========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    padding: 20px 5%;

    background: #fff;

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

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.stat {
    padding: 4px 12px;

    text-align: center;

    border-right: 1px solid #dfe6eb;
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;

    font-size: 24px;

    color: var(--navy);
}

.stat span {
    font-size: 13px;
    color: var(--muted);
}

/* =========================================================
   COMMON SECTIONS
========================================================= */

.section {
    padding: 48px 0;
}

.sectionhead {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-bottom: 20px;
}

.sectionhead h1,
.sectionhead h2 {
    margin: 0;
}

.sectionhead h2 {
    font-size: 30px;
}

.sectionhead a {
    color: var(--orange);
    font-weight: 800;
}

/* =========================================================
   CATEGORIES
========================================================= */

.categories {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 18px;
}

.cat {
    overflow: hidden;

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

    background: #fff;

    text-align: center;
    font-weight: 800;

    box-shadow: 0 3px 12px rgba(7, 54, 87, 0.04);

    transition: 0.2s;
}

.cat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.cat img {
    width: 100%;
    aspect-ratio: 1.25 / 1;

    object-fit: cover;
}

.cat span {
    display: block;
    padding: 11px 7px;

    font-size: 13px;
}

/* =========================================================
   PRODUCTS
========================================================= */

.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #fff;

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

    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card > a:first-child {
    background: #f4f7f9;
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;
}

.cardbody {
    flex: 1;

    padding: 15px;

    display: flex;
    flex-direction: column;
}

.cardbody h3 {
    margin: 5px 0;

    font-size: 17px;
}

.cardbody .btn {
    width: max-content;
    margin-top: auto;
}

.price {
    margin: 8px 0;

    font-size: 20px;
    font-weight: 900;

    color: var(--navy);
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

/* =========================================================
   TWO COLUMN PANELS
========================================================= */

.twocol {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 22px;
}

.panel {
    padding: 30px;

    background: var(--cream);

    border: 1px solid #f0e1cd;
    border-radius: 18px;
}

.panel.dark {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.panel h2 {
    margin-top: 0;
    font-size: 28px;
}

.panel.dark .btn {
    background: var(--orange);
    border-color: var(--orange);
}

/* =========================================================
   VIDEO SECTION
========================================================= */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.video {
    overflow: hidden;

    background: var(--navy-dark);

    color: #fff;

    border-radius: 16px;

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

.video video {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    object-fit: cover;

    background: #000;
}

.video .pad {
    padding: 16px;
}

.video .pad b {
    font-size: 17px;
}

.video .pad p {
    margin-bottom: 0;

    color: #d7e3eb;

    font-size: 13px;
}

.video-placeholder {
    aspect-ratio: 16 / 9;

    display: grid;
    place-items: center;

    padding: 20px;

    background: linear-gradient(
        135deg,
        #083b60,
        #f57b12
    );

    color: #fff;

    font-weight: 900;
    text-align: center;
}

/* =========================================================
   REVIEWS
========================================================= */

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.review {
    padding: 22px;

    background: #fff;

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

    box-shadow: 0 3px 14px rgba(7, 54, 87, 0.04);
}

.review h3 {
    margin: 7px 0 0;
}

.review p {
    margin-bottom: 0;
}

.stars {
    color: var(--orange);

    font-size: 18px;

    letter-spacing: 1px;
}

/* =========================================================
   HOW MEKSETU WORKS
========================================================= */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.step {
    padding: 24px;

    text-align: center;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 16px;
}

.step > b {
    width: 44px;
    height: 44px;

    margin: 0 auto 12px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--orange);
    color: #fff;

    font-size: 18px;
}

.step h3 {
    margin: 5px 0;
}

.step p {
    color: var(--muted);
    font-size: 14px;
}

/* =========================================================
   MAKER BANNER
========================================================= */

.maker-banner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;

    gap: 25px;

    align-items: center;

    padding: 35px;

    background: linear-gradient(
        120deg,
        #fff8ed,
        #edf7fb
    );

    border: 1px solid var(--border);
    border-radius: 22px;
}

.maker-banner h2 {
    margin: 0 0 10px;

    font-size: 36px;
}

.maker-banner p {
    color: #53697a;
}

.maker-art {
    min-height: 240px;

    border-radius: 18px;

    background: url("../img/hero-2.jpg")
        center / cover
        no-repeat;
}

/* =========================================================
   FORMS
========================================================= */

.formbox {
    max-width: 760px;

    margin: 40px auto;

    padding: 30px;

    background: #fff;

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

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

.formbox input,
.formbox textarea,
.formbox select {
    width: 100%;

    margin: 7px 0 15px;

    padding: 12px 13px;

    border: 1px solid #ccd7df;
    border-radius: 9px;

    outline: 0;
}

.formbox input:focus,
.formbox textarea:focus,
.formbox select:focus {
    border-color: var(--orange);

    box-shadow:
        0 0 0 3px
        rgba(245, 123, 18, 0.10);
}

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

.table {
    width: 100%;

    border-collapse: collapse;

    background: #fff;
}

.table th,
.table td {
    padding: 12px;

    text-align: left;

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

/* =========================================================
   ADMIN
========================================================= */

.adminnav {
    display: flex;
    flex-wrap: wrap;

    gap: 20px;

    padding: 14px 4%;

    background: var(--navy-dark);

    color: #fff;
}

.adminnav a {
    font-size: 14px;
}

.notice {
    margin-bottom: 15px;

    padding: 13px 15px;

    background: #eef7ff;

    border: 1px solid #d7e9f7;
    border-radius: 10px;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    margin-top: 30px;

    padding: 45px 5% 18px;

    background: var(--navy-dark);

    color: #fff;
}

.footergrid {
    width: min(1400px, 100%);
    margin: auto;

    display: grid;

    grid-template-columns:
        2fr repeat(4, 1fr);

    gap: 35px;
}

.footerlogo {
    width: 175px;
    height: auto;

    margin-bottom: 10px;
}

.footer a {
    display: block;

    margin: 9px 0;

    color: #dce8ef;

    font-size: 13px;
}

.footer a:hover {
    color: #fff;
}

.copyright {
    width: min(1400px, 100%);

    margin: 30px auto 0;

    padding-top: 15px;

    display: flex;
    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid #31536b;

    font-size: 12px;
}

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

.empty {
    padding: 40px;

    text-align: center;

    border: 1px dashed #cfdbe3;
    border-radius: 16px;

    color: var(--muted);
}


/* =========================================================
   LAPTOP / TABLET
========================================================= */

@media (max-width: 1100px) {

    .header {
        gap: 14px;
    }

    .brand img {
        width: 145px;
    }

    .actions {
        gap: 12px;
    }

    .nav {
        gap: 21px;
    }

    .categories {
        grid-template-columns: repeat(4, 1fr);
    }

    .products {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 15px;
    }

    .stat:nth-child(3) {
        border-right: 0;
    }

    .stat:nth-child(4),
    .stat:nth-child(5) {
        border-top: 1px solid var(--border);
        padding-top: 14px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 820px) {

    .topbar {
        padding: 7px 4%;
    }

    .toplinks {
        gap: 12px;
    }

    .header {
        flex-wrap: wrap;
        padding: 10px 4%;
    }

    .brand img {
        width: 150px;
        height: 52px;
    }

    .actions {
        margin-left: auto;
    }

    .search {
        order: 4;
        flex-basis: 100%;
        max-width: none;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .mobile-menu {
        display: none;

        position: relative;
        z-index: 19;

        padding: 10px 4%;

        background: var(--navy);

        color: #fff;
    }

    .mobile-menu.open {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-menu a {
        padding: 11px 5px;

        border-bottom: 1px solid
            rgba(255, 255, 255, 0.1);
    }

    .hero-slider {
        aspect-ratio: 16 / 8.5;
        min-height: 280px;
    }

    .hero-overlay {
        left: 4%;
        bottom: 7%;

        max-width: 48%;

        padding: 16px;
    }

    .hero-overlay h1 {
        font-size: 30px;
    }

    .hero-overlay p {
        font-size: 13px;
    }

    .twocol,
    .maker-banner {
        grid-template-columns: 1fr;
    }

    .maker-art {
        min-height: 220px;
    }

    .video-grid,
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footergrid {
        grid-template-columns: 1fr 1fr;
    }
}


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

@media (max-width: 560px) {

    .topbar {
        font-size: 11px;
    }

    .toplinks {
        display: none;
    }

    .header {
        min-height: 80px;
    }

    .brand img {
        width: 130px;
        height: 45px;
    }

    .actions {
        gap: 7px;
    }

    .actions a {
        width: 34px;
        height: 34px;

        display: grid;
        place-items: center;

        border: 1px solid #dbe3e8;
        border-radius: 8px;

        font-size: 18px;
    }

    .actions a span {
        display: none;
    }

    .mobile-toggle {
        width: 38px;
        height: 38px;
    }

    .search {
        height: 44px;
    }

    .search select {
        max-width: 115px;
        font-size: 12px;
    }

    .search button {
        width: 52px;
    }

    .mobile-menu.open {
        grid-template-columns: 1fr 1fr;
    }

    /* HERO */

    .hero-slider {
        aspect-ratio: 4 / 3;
        min-height: 250px;
    }

    .hero-slide img {
        object-position: center;
    }

    .hero-overlay {
        left: 4%;
        right: 4%;
        bottom: 5%;

        width: auto;
        max-width: none;

        padding: 13px 15px;
    }

    .hero-overlay h1 {
        font-size: 25px;
    }

    .hero-overlay p {
        display: none;
    }

    .hero-overlay .btn {
        min-height: 38px;

        padding: 8px 12px;

        font-size: 12px;
    }

    /* STATS */

    .stats {
        grid-template-columns: repeat(2, 1fr);

        padding: 15px 4%;

        gap: 0;
    }

    .stat {
        padding: 12px 5px !important;

        border-right: 1px solid var(--border) !important;
        border-bottom: 1px solid var(--border);
    }

    .stat:nth-child(2n) {
        border-right: 0 !important;
    }

    .stat:nth-child(n + 5) {
        border-bottom: 0;
    }

    .stat strong {
        font-size: 20px;
    }

    /* SECTIONS */

    .section {
        padding: 34px 0;
    }

    .sectionhead h2 {
        font-size: 24px;
    }

    /* CATEGORY */

    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* PRODUCTS */

    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cardbody {
        padding: 12px;
    }

    .cardbody h3 {
        font-size: 14px;
    }

    .price {
        font-size: 17px;
    }

    .cardbody .btn {
        width: 100%;

        min-height: 38px;

        padding: 8px;

        font-size: 12px;
    }

    /* VIDEOS */

    .video-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    /* STEPS */

    .steps {
        grid-template-columns: 1fr;
    }

    /* PANELS */

    .panel {
        padding: 23px;
    }

    .maker-banner {
        padding: 23px;
    }

    .maker-banner h2 {
        font-size: 28px;
    }

    /* FOOTER */

    .footergrid {
        grid-template-columns: 1fr;
    }

    .copyright {
        display: block;
    }

    .copyright span {
        display: block;
        margin-top: 8px;
    }
}/* =========================================================
   MEKSETU VIDEO STORIES
========================================================= */

.meksetu-video-section {
    position: relative;
}

.video-section-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.video-section-intro {
    margin: 8px 0 0;
    color: #617585;
    font-size: 15px;
    line-height: 1.6;
    max-width: 700px;
}

.meksetu-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.meksetu-video-card {
    background: var(--navy2);
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 15px 40px rgba(7, 54, 87, .14);
    transition: transform .25s ease, box-shadow .25s ease;
}

.meksetu-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(7, 54, 87, .20);
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #061c2d;
    overflow: hidden;
}

.video-player video,
.video-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.meksetu-video-card .pad {
    padding: 20px;
}

.video-type {
    display: inline-block;
    margin-bottom: 8px;
    color: #ff8a20;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .10em;
}

.meksetu-video-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.3;
}

.meksetu-video-card p {
    margin: 0;
    color: #d8e5ed;
    font-size: 14px;
    line-height: 1.6;
}

.meksetu-video-card .video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: linear-gradient(
        135deg,
        #083b60 0%,
        #154e70 45%,
        #f57b12 100%
    );
}

.video-placeholder > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.placeholder-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 50%;
    font-size: 20px;
    margin-bottom: 8px;
}

.video-placeholder strong {
    font-size: 17px;
    font-weight: 900;
}

.video-placeholder small {
    font-size: 13px;
    opacity: .9;
}

@media (max-width: 900px) {
    .meksetu-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .meksetu-video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .meksetu-video-card {
        border-radius: 16px;
    }

    .meksetu-video-card .pad {
        padding: 16px;
    }

    .meksetu-video-card h3 {
        font-size: 18px;
    }

    .video-section-intro {
        font-size: 14px;
    }

    .sectionhead {
        align-items: flex-start;
        flex-direction: column;
    }
}