* {
    box-sizing: border-box;
}

body {
    background: #d2d6b7;
    font-family: Arial, Helvetica, sans-serif, Geneva;
    line-height: 1.6;
    color: #222;
    scroll-behavior: smooth;
}

#page {
    width: 1200px;
    max-width: 94%;
    margin: 0 auto;
    background: #ffffff;
    border-right: 4px solid #f2b705;
    border-left: 4px solid #f2b705;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(11, 61, 46, .25);
}

header {
    color: #fff;
    background: linear-gradient(to right, #0b3d2e, #1e8a5f 55%, #0b3d2e);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1em;
    width: 1200px;
    max-width: 94%;
    margin: 0 auto;
    padding: 1.2em 1.5em;
}

header .site-logo {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    object-fit: contain;
    border: 2px solid #f2b705;
    border-radius: 50%;
    background: #fff;
}

header .header-text {
    min-width: 0;
}

header h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 2.3em;
    letter-spacing: 1px;
}

header p {
    margin: .2em 0 0;
    font-style: italic;
    color: #ffe38a;
}

.breadcrumb {
    padding: .5em 1.5em;
    background: #fff8e1;
    border-bottom: 1px solid #ecd48a;
}

.breadcrumb ol {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li+li::before {
    content: ">";
    margin: 0 .6em;
    color: #555;
}

.breadcrumb [aria-current="page"] {
    color: #555;
}

.site-navbar {
    padding: 0;
    background: #000;
}

.site-navbar .container-fluid {
    padding: 0;
}

.site-navbar .navbar-nav {
    width: 100%;
}

.site-navbar .nav-item {
    flex: 1;
}

.site-navbar .nav-link {
    padding: .8em 0;
    text-align: center;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-right: 1px solid #fff;
}

.site-navbar .nav-link:hover {
    background: #333;
    color: #fff;
}

.site-navbar .nav-link.active {
    background: #f2b705;
    color: #000;
}

@media screen and (min-width: 600px) {
    .navbar-expand-600 {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .navbar-expand-600 .navbar-toggler {
        display: none;
    }

    .navbar-expand-600 .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand-600 .navbar-nav {
        flex-direction: row;
    }
}

@media screen and (max-width: 599.98px) {

    .site-navbar,
    .site-navbar .navbar-collapse {
        background: #fff;
    }

    .site-navbar .container-fluid {
        padding: .5rem;
    }

    .site-navbar .navbar-toggler {
        border-color: #ddd;
    }

    .site-navbar .navbar-collapse {
        flex-basis: 100%;
    }

    .site-navbar .nav-item {
        flex: none;
    }

    .site-navbar .nav-link {
        padding: .65rem;
        color: #222;
        border-right: 0;
        border-bottom: 1px solid #ddd;
    }

    .site-navbar .nav-link:hover {
        background: #f8f9fa;
        color: #000;
    }

    .site-navbar .nav-item:last-child .nav-link {
        border-bottom: 0;
    }
}

h2 {
    font-family: Georgia, serif;
    font-size: 1.5em;
    color: #0b3d2e;
    margin: 0 0 .5em;
    border-bottom: 3px solid #f2b705;
    padding-bottom: .2em;
}

h3 {
    font-size: 1.1em;
    color: #555;
    margin: 0 0 .4em;
}

p {
    margin: 0 0 1em;
}

a {
    color: #0a58a8;
    font-weight: bold;
}

a:hover {
    color: #b34700;
}

img {
    max-width: 100%;
    height: auto;
}

#main img,
.item img,
.shop_box img {
    transition: transform .25s ease, box-shadow .25s ease;
}

#main img:hover,
.item img:hover,
.shop_box img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(11, 61, 46, .25);
}

figure {
    margin: 0 0 1em;
}

figcaption {
    font-size: .85em;
    font-weight: bold;
    border-top: 2px solid #0b3d2e;
    padding-top: .2em;
}

ul,
ol {
    margin: 0 0 1em;
    padding-left: 1.3em;
}

footer {
    clear: both;
    color: #fff;
    background: linear-gradient(to right, #0b3d2e, #1e8a5f 55%, #0b3d2e);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding: .8em 1.5em;
    width: 1200px;
    max-width: 94%;
    margin: 0 auto;
    font-size: .85em;
}

footer p {
    margin: 0;
}

.back-to-top {
    display: inline-block;
    flex: 0 0 auto;
    padding: .45em .8em;
    border: 1px solid #ffe38a;
    border-radius: 20px;
    color: #fff;
    background: #0b3d2e;
    text-decoration: none;
}

.back-to-top:hover {
    color: #0b3d2e;
    background: #ffe38a;
}

table {
    width: 100%;
    font-size: .9em;
    margin-bottom: 1em;
}

th,
td {
    border: 1px solid #b8c7d3;
    padding: .4em .6em;
    text-align: left;
}

th {
    background: #0b3d2e;
    color: #fff;
}

.resistor-code {
    table-layout: fixed;
    font-size: .72em;
}

.resistor-code th,
.resistor-code td {
    padding: .3em .15em;
    text-align: center;
    overflow-wrap: anywhere;
}

.resistor-code th:first-child {
    width: 27%;
}

.resistor-code .band {
    text-align: left;
}

.resistor-code .band-black {
    background: #000;
    color: #fff;
}

.resistor-code .band-brown {
    background: #8b4513;
    color: #fff;
}

.resistor-code .band-red {
    background: #c00000;
    color: #fff;
}

.resistor-code .band-orange {
    background: #fd7e14;
    color: #222;
}

.resistor-code .band-yellow {
    background: #ffc107;
    color: #222;
}

.resistor-code .band-green {
    background: #198754;
    color: #fff;
}

.resistor-code .band-blue {
    background: #0d6efd;
    color: #fff;
}

.resistor-code .band-violet {
    background: #6f42c1;
    color: #fff;
}

.resistor-code .band-gray {
    background: #6c757d;
    color: #fff;
}

.resistor-code .band-white {
    background: #fff;
    color: #222;
}

.resistor-code .band-gold {
    background: #d4af37;
    color: #222;
}

.resistor-code .band-silver {
    background: #c0c0c0;
    color: #222;
}

.resistor-code .band-none {
    background: #fff;
    color: #222;
    border: 2px dashed #777;
}

.table_wrap {
    overflow-x: auto;
    clear: both;
}

.price {
    color: #b34700;
    font-weight: bold;
}

#sidebar_a {
    float: left;
    width: 22%;
    padding: 1.2em 1em;
    background: #ecf6f1;
    border-right: 1px solid #b7d6c8;
}

#main {
    float: left;
    width: 54%;
    padding: 1.2em;
}

#sidebar_b {
    float: right;
    width: 24%;
    padding: 1.2em 1em;
    background: #fff8e1;
    border-left: 1px solid #ecd48a;
}

#main figure.side {
    float: left;
    width: 42%;
    margin: 0 1em .5em 0;
}

#main h3 {
    clear: both;
    color: #0b3d2e;
}

.shop_box {
    padding: .6em;
    border: 2px dashed #f2b705;
    background: #fff;
    font-size: .9em;
}

.product-carousel {
    clear: both;
    margin: 0 0 1.2em;
    border: 3px solid #0b3d2e;
    background: #fff;
}

.product-carousel .carousel-item img {
    height: 280px;
    object-fit: contain;
    background: #fff;
}

.product-carousel .carousel-caption {
    right: 0;
    bottom: 1.5rem;
    left: 0;
    padding: .3em .8em;
    color: #fff;
    background: rgba(11, 61, 46, .85);
}

.product-carousel .carousel-caption p {
    margin: 0;
}

@media screen and (max-width: 700px) {
    .product-carousel .carousel-item img {
        height: 210px;
    }
}

@media screen and (max-width: 1000px) {
    #page {
        width: 94%;
    }
}

@media screen and (max-width: 700px) {
    header h1 {
        font-size: 1.7em;
    }

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

    #sidebar_a,
    #main,
    #sidebar_b {
        float: none;
        width: 100%;
        border: 0;
    }

    #main figure.side {
        float: none;
        width: 100%;
        margin: 0 0 1em;
    }
}