:root {
    --tkn-navy: #0C1C2C;
    --tkn-navy-light: #172A3D;
    --tkn-text: #171717;
    --tkn-text-light: #676767;
    --tkn-border: #E5E7EA;
    --tkn-bg-light: #F6F7F8;
    --tkn-white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--tkn-text);
    background: var(--tkn-white);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1360px, calc(100% - 64px));
    margin: 0 auto;
}


/* =========================
   TOP BAR
========================= */

.topbar {
    height: 32px;
    background: var(--tkn-navy);
    color: var(--tkn-white);
    font-size: 13px;
}

.topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar a:hover {
    opacity: 0.8;
}


/* =========================
   MAIN HEADER
========================= */

.main-header {
    background: var(--tkn-white);
    border-bottom: 1px solid var(--tkn-border);
}

.main-header-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 28px;
}


/* =========================
   LOGO
========================= */

.site-logo {
    flex: 0 0 auto;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--tkn-navy);
}


/* =========================
   NAVIGATION
========================= */

.main-navigation {
    flex: 0 0 auto;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: 30px 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--tkn-text);
}

.primary-menu > li > a:hover {
    color: var(--tkn-navy);
}


/* =========================
   SEARCH
========================= */

.header-search {
    flex: 1;
    min-width: 220px;
}

.header-search form {
    position: relative;
    width: 100%;
}

.header-search label {
    display: block;
    width: 100%;
}

.header-search .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header-search input[type="search"] {
    width: 100%;
    height: 44px;
    padding: 0 46px 0 16px;
    border: 1px solid var(--tkn-border);
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    background: var(--tkn-bg-light);
}

.header-search input[type="search"]:focus {
    border-color: var(--tkn-navy);
    background: var(--tkn-white);
}

.header-search input[type="submit"] {
    height: 44px;
    padding: 0 15px;
    border: 0;
    border-radius: 0 5px 5px 0;
    background: var(--tkn-navy);
    color: var(--tkn-white);
    cursor: pointer;
}


/* =========================
   CART
========================= */

.header-cart {
    position: relative;
    flex: 0 0 auto;
    font-size: 23px;
}

.cart-count {
    position: absolute;
    top: -9px;
    right: -11px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tkn-navy);
    color: var(--tkn-white);
    font-size: 11px;
    font-weight: 600;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {
    .container {
        width: min(100% - 40px, 1360px);
    }

    .main-navigation {
        display: none;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
    .container {
        width: calc(100% - 32px);
    }

    .topbar {
        display: none;
    }

    .main-header-inner {
        min-height: 70px;
        gap: 16px;
    }

    .site-logo {
        font-size: 26px;
    }

    .header-search {
        display: none;
    }

    .header-cart {
        margin-left: auto;
    }
}