/* Shared foundations for the public storefront. Component styles follow in style.css. */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
}

ol, ul {
    padding-left: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

ol ol, ol ul, ul ol, ul ul {
    margin-bottom: 0;
}

b, strong {
    font-weight: bolder;
}

sub, sup {
    position: relative;
    font-size: .75em;
    line-height: 0;
    vertical-align: baseline;
}

sub { bottom: -.25em; }
sup { top: -.5em; }

img, svg {
    vertical-align: middle;
}

a:hover {
    color: #0a58ca;
}

a:not([href]):not([class]), a:not([href]):not([class]):hover {
    color: inherit;
    text-decoration: none;
}

table {
    caption-side: bottom;
}

th {
    text-align: inherit;
}

label {
    display: inline-block;
}

button, input, optgroup, select, textarea {
    margin: 0;
    font: inherit;
}

button, select {
    text-transform: none;
}

button {
    border-radius: 0;
}

select {
    word-wrap: normal;
}

textarea {
    resize: vertical;
}

[role="button"] {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.btn {
    display: inline-block;
    padding: .375rem .75rem;
    font-weight: 400;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    text-decoration: none;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #fff;
    background-clip: border-box;
    border-radius: 6px;
}

.card-img {
    width: 100%;
    border-radius: 5px;
}

.text-center {
    text-align: center !important;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    vertical-align: top;
    border-color: #dee2e6;
}

.table > :not(caption) > * > * {
    padding: .5rem;
    border-bottom-width: 1px;
}

.table > tbody {
    vertical-align: inherit;
}

.table > thead {
    vertical-align: bottom;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
}

.pagination .page-link {
    display: block;
    padding: .375rem .75rem;
    color: #6c757d;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.pagination .page-item:not(:first-child) .page-link {
    margin-left: -1px;
}

/* Keep the existing content widths while layouts use their own Grid/Flex rules. */
.content-container {
    width: 100%;
    margin-inline: auto;
    padding-inline: 12px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-inline: -12px;
}

.advantages-grid__cell {
    min-width: 0;
    padding-inline: 12px;
}

.pc-sliders__row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: -12px;
}

.pc-sliders__row > * {
    width: 100%;
    max-width: 100%;
    padding-inline: 12px;
}

.pc-sliders__slider-col {
    flex: 1 0 0%;
}

.pc-sliders__thumb-col {
    flex: 0 0 auto;
}

.product-reviews {
    margin-top: 3rem;
}

.product-reviews__row {
    margin-inline: -12px;
}

.product-reviews__column {
    padding-inline: 12px;
}

.product-review {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-bottom: 65px;
    background-color: #fff;
    border-radius: 6px;
}

.product-review__body {
    flex: 1 1 auto;
    padding: 1rem;
}

.product-review__title, .product-review .star-rating {
    margin-bottom: .5rem;
}

.product-review__date {
    margin-bottom: 0;
    color: #6c757d;
}

@media (min-width: 576px) {
    .content-container { max-width: 540px; }
}

@media (min-width: 768px) {
    .content-container { max-width: 720px; }
    .advantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-reviews__column {
        width: 66.66666667%;
        margin-left: 16.66666667%;
    }
}

@media (min-width: 992px) {
    .content-container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .content-container { max-width: 1140px; }
    .advantages-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1400px) {
    .content-container { max-width: 1320px; }
}
